[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
Loading
Please sign in to comment