aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorTobias Gysi <tobias.gysi@nextsilicon.com>2022-10-07 14:13:24 +0300
committerTobias Gysi <tobias.gysi@nextsilicon.com>2022-10-07 14:30:30 +0300
commitd85f6e5d57f38f0cbbc756484e3a93ae89b11195 (patch)
tree349cd2a8b2e25cb04e07be1528afa860ae337f50 /clang/lib/Basic/SourceManager.cpp
parent3771310eede0041bae452870ef5e3fa70e48c17b (diff)
downloadllvm-d85f6e5d57f38f0cbbc756484e3a93ae89b11195.zip
llvm-d85f6e5d57f38f0cbbc756484e3a93ae89b11195.tar.gz
llvm-d85f6e5d57f38f0cbbc756484e3a93ae89b11195.tar.bz2
[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
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions