llvm-project/mlir/test
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
..
Analysis [mlir][Analysis] Guard data flow analysis from no block function 2023-02-22 15:20:11 +09:00
Bytecode Implements MLIR Bytecode versioning capability 2023-03-10 23:28:56 +01:00
CAPI [mlir][sparse] Renaming "pointer/index" to "position/coordinate" 2023-03-06 12:23:33 -08:00
Conversion Add scalar support for amdgpu.raw_buffer_{load,store} 2023-03-20 20:19:20 +00:00
Dialect [mlir][memref] Use folded composed affine apply ops in FoldMemRefAliasOps 2023-03-21 22:17:36 -07:00
Examples [MLIR] Fix tensor shapes in Toy chapter 1 2023-01-27 10:09:25 +00:00
Integration [mlir][sparse][gpu] end-to-end test for 2:4 sparsity on NVidia GPUs 2023-03-21 13:32:43 -07:00
Interfaces [mlir] Add function for checking if a block is inside a loop 2023-02-10 16:14:17 +00:00
IR [mlir][IR] Add ReverseDominanceIterator for IR walkers 2023-03-22 09:01:58 +01:00
lib [mlir] Argument and result attribute handling during inlining. 2023-03-22 09:02:15 +01:00
mlir-cpu-runner Reland "[mlir] Enable opaque pointers in LLVM conversion passes by default" 2023-03-10 11:24:58 +01:00
mlir-linalg-ods-gen
mlir-lsp-server Add a skipRegion() feature to the OpPrintingFlags for MLIR ASM printer 2023-03-20 13:40:55 +01:00
mlir-opt Make mlir-opt --show-dialects option print on a single line 2023-03-08 01:17:51 +01:00
mlir-pdll
mlir-pdll-lsp-server
mlir-reduce [mlir-reduce] Create proper tmp test files (NFC) 2023-03-01 13:22:19 +01:00
mlir-spirv-cpu-runner Reland "[mlir] Make the vast majority of intgration and runner tests work on Windows" 2023-02-15 19:14:43 +01:00
mlir-tblgen [mlir][llvm] Add AliasAnalysis and AccessGroup interfaces to intrinsics. 2023-03-02 10:21:37 +01:00
mlir-translate
mlir-vulkan-runner Reland "[mlir] Make the vast majority of intgration and runner tests work on Windows" 2023-02-15 19:14:43 +01:00
Pass Add capture of "IRUnits" as context for an MLIR Action 2023-03-20 13:40:55 +01:00
python Support retrieving the splat value from DenseElementsAttrs in Python 2023-03-21 08:43:17 -07:00
Rewrite
Target [MLIR][OpenMP] Added OMPIRBuilder support for Target Data directives 2023-03-20 18:48:21 +00:00
tblgen-lsp-server
Transforms [mlir] Argument and result attribute handling during inlining. 2023-03-22 09:02:15 +01:00
Unit
APITest.h
CMakeLists.txt Revert "[mlir] Make the vast majority of integration and runner tests work on Windows" 2023-02-13 18:30:52 -08:00
lit.cfg.py Reland "[mlir] Make the vast majority of intgration and runner tests work on Windows" 2023-02-15 19:14:43 +01:00
lit.site.cfg.py.in Reland "[mlir] Make the vast majority of intgration and runner tests work on Windows" 2023-02-15 19:14:43 +01:00