[all-commits] [llvm/llvm-project] d85f6e: [mlir][llvmir] Import intrinsics with attributes f...
Tobias Gysi via All-commits
all-commits at lists.llvm.org
Fri Oct 7 04:31:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d85f6e5d57f38f0cbbc756484e3a93ae89b11195
https://github.com/llvm/llvm-project/commit/d85f6e5d57f38f0cbbc756484e3a93ae89b11195
Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
Date: 2022-10-07 (Fri, 07 Oct 2022)
Changed paths:
M mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
M mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
M mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
M mlir/test/Target/LLVMIR/Import/intrinsic.ll
M mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp
Log Message:
-----------
[mlir][llvmir] Import intrinsics with attributes from LLVMIR.
The revision adds support to specify custom import functions for
LLVM IR intrinsics with immediate arguments that translate to MLIR
attributes. It takes an approach similar to the MLIR to LLVM translation
that uses a tablegen defined build method. The default implementation
of this newly introduced "mlirBuilder" assumes all intrinsic arguments
translate to operands. Specific intrinsics, such as
llvm.lifetime.start/stop then define a custom builder that converts
their immediate arguments to MLIR attributes.
Depends on D135349
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D135350
More information about the All-commits
mailing list