llvm-project/mlir/test/Transforms
Tobias Gysi f809eb4db2 [mlir] Argument and result attribute handling during inlining.
The revision adds the handleArgument and handleResult handlers that
allow users of the inlining interface to implement argument and result
conversions that take argument and result attributes into account. The
motivating use cases for this revision are taken from the LLVM dialect
inliner, which has to copy arguments that are marked as byval and that
also has to consider zeroext / signext when converting integers.

All type conversions are currently handled by the
materializeCallConversion hook. It runs before isLegalToInline and
supports only the introduction of a single cast operation since it may
have to rollback. The new handlers run shortly before and after
inlining and cannot fail. As a result, they can introduce more complex
ir such as copying a struct argument. At the moment, the new hooks
cannot be used to perform type conversions since all type conversions
have to be done using the materializeCallConversion. A follow up
revision will either relax this constraint or drop
materializeCallConversion in favor of the new and more flexible
handlers.

The revision also extends the CallableOpInterface to provide access
to the argument and result attributes if available.

Reviewed By: rriddle, Dinistro

Differential Revision: https://reviews.llvm.org/D145582
2023-03-22 09:02:15 +01:00
..
buffer-results-to-out-params.mlir
canonicalize-block-merge.mlir
canonicalize-dce.mlir
canonicalize-td.mlir
canonicalize.mlir [mlir] Add test-convergence option to Canonicalizer tests 2023-01-04 12:02:21 +01:00
compose-subview.mlir
constant-fold.mlir
control-flow-sink-test.mlir
control-flow-sink.mlir
cse.mlir [mlir][transforms] CSE ops with multiple regions 2023-01-27 12:14:45 +01:00
decompose-call-graph-types.mlir [mlir][func] Add support for nested tuples to TestDecomposeCallGraphTypes. 2023-02-09 05:22:01 +00:00
inlining-dce.mlir
inlining-dump-default-pipeline.mlir [mlir][core] Fix inline pass default pipeline dump 2023-03-11 09:18:11 -08:00
inlining-recursive.mlir
inlining-repeated-use.mlir
inlining.mlir [mlir] Argument and result attribute handling during inlining. 2023-03-22 09:02:15 +01:00
location-snapshot.mlir
loop-fusion-2.mlir [MLIR] Generalize affine fusion to work on Block instead of FuncOp 2022-12-14 22:56:29 +05:30
loop-fusion-3.mlir [MLIR] Generalize affine fusion to work on Block instead of FuncOp 2022-12-14 22:56:29 +05:30
loop-fusion-4.mlir [MLIR] Generalize affine fusion to work on Block instead of FuncOp 2022-12-14 22:56:29 +05:30
loop-fusion-dependence-check.mlir
loop-fusion-slice-computation.mlir
loop-fusion-transformation.mlir
loop-fusion.mlir [MLIR] Generalize affine fusion to work on Block instead of FuncOp 2022-12-14 22:56:29 +05:30
loop-invariant-code-motion.mlir
memref-bound-check.mlir [MLIR] Update/fix memref region computation for affine.parallel ops 2023-03-15 06:40:24 +05:30
memref-dependence-check.mlir [MLIR] Fix bug in addAffineParallelOpDomain upper bound constraint 2023-02-28 10:28:24 +05:30
normalize-memrefs-ops-dynamic.mlir
normalize-memrefs-ops.mlir
normalize-memrefs.mlir
parallel-loop-collapsing.mlir
parametric-mapping.mlir
parametric-tiling.mlir
pipeline-data-transfer.mlir
print-op-graph.mlir [mlir] print-op-graph: StringMap=>map to stabilize iteration order 2023-02-02 20:03:34 -08:00
promote-buffers-to-stack.mlir [mlir] PromoteBuffersToStackPass - Copy attributes of original AllocOp 2023-02-16 17:06:45 +02:00
sccp-callgraph.mlir
sccp-structured.mlir
sccp.mlir
scf-if-utils.mlir
scf-loop-unroll.mlir
scf-replace-with-new-yields.mlir
single-parallel-loop-collapsing.mlir
strip-debuginfo.mlir
test-canonicalize-filter.mlir
test-canonicalize.mlir
test-commutativity-utils.mlir
test-convert-call-op.mlir
test-dialect-conversion-pdll.mlir
test-inlining.mlir
test-legalize-erased-op-with-uses.mlir
test-legalize-remapped-value.mlir
test-legalize-target-materialization-no-uses.mlir
test-legalize-type-conversion.mlir
test-legalize-unknown-root.mlir
test-legalizer-analysis.mlir
test-legalizer-full.mlir
test-legalizer.mlir [mlir] fail gracefull in CallOpSignatureConversion 2023-01-27 09:04:04 +00:00
test-merge-blocks.mlir
test-operation-folder-commutative.mlir
test-operation-folder.mlir
test-pattern-selective-replacement.mlir
test-rewrite-dynamic-op.mlir
test-strict-pattern-driver.mlir [mlir] Add RewriterBase::replaceAllUsesWith for Blocks. 2023-02-15 07:23:21 +00:00
test-symbol-dce.mlir
test-symbol-privatize.mlir
test-toposort.mlir