[all-commits] [llvm/llvm-project] 0a2131: [mlir] LLVMFuncOp: provide a capability to pass at...
ftynse via All-commits
all-commits at lists.llvm.org
Thu Apr 2 03:52:52 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0a2131b7e2213fc8b45f7ff1e02f29fb4d544259
https://github.com/llvm/llvm-project/commit/0a2131b7e2213fc8b45f7ff1e02f29fb4d544259
Author: Alex Zinenko <zinenko at google.com>
Date: 2020-04-02 (Thu, 02 Apr 2020)
Changed paths:
M mlir/docs/Dialects/LLVM.md
M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
M mlir/test/Target/llvmir-invalid.mlir
M mlir/test/Target/llvmir.mlir
Log Message:
-----------
[mlir] LLVMFuncOp: provide a capability to pass attributes through to LLVM IR
Summary:
LLVM IR functions can have arbitrary attributes attached to them, some of which
affect may affect code transformations. Until we can model all attributes
consistently, provide a pass-through mechanism that forwards attributes from
the LLVMFuncOp in MLIR to LLVM IR functions during translation. This mechanism
relies on LLVM IR being able to recognize string representations of the
attributes and performs some additional checking to avoid hitting assertions
within LLVM code.
Differential Revision: https://reviews.llvm.org/D77072
More information about the All-commits
mailing list