[all-commits] [llvm/llvm-project] 9519e3: [mlir] support dialect attribute translation to LL...
ftynse via All-commits
all-commits at lists.llvm.org
Tue Dec 19 05:18:30 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9519e3ecbf6ed251c5ab7c74549fe86df1efc14c
https://github.com/llvm/llvm-project/commit/9519e3ecbf6ed251c5ab7c74549fe86df1efc14c
Author: Oleksandr "Alex" Zinenko <zinenko at google.com>
Date: 2023-12-19 (Tue, 19 Dec 2023)
Changed paths:
M mlir/include/mlir/Target/LLVMIR/LLVMTranslationInterface.h
M mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
M mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
M mlir/lib/Target/LLVMIR/Dialect/ROCDL/ROCDLToLLVMIRTranslation.cpp
M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
M mlir/test/Target/LLVMIR/test.mlir
M mlir/test/lib/Dialect/Test/TestToLLVMIRTranslation.cpp
Log Message:
-----------
[mlir] support dialect attribute translation to LLVM IR (#75309)
Extend the `amendOperation` mechanism for translating dialect attributes
attached to operations from another dialect when translating MLIR to
LLVM IR. Previously, this mechanism would have no knowledge of the LLVM
IR instructions created for the given operation, making it impossible
for it to perform local modifications such as attaching operation-level
metadata. Collect instructions inserted by the LLVM IR builder and pass
them to `amendOperation`.
More information about the All-commits
mailing list