diff options
| author | Alex Zinenko <zinenko@google.com> | 2019-09-03 09:10:24 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-09-03 09:10:56 -0700 |
| commit | c335d9d3137b9db6c17b7cdbf45ddf80f651c6c1 (patch) | |
| tree | d0cd02688eac19ba15ac23f91d63513367358fd4 /mlir/lib/Target | |
| parent | da646505c5bc5f03252c7a83bbeb890e5b3a19fa (diff) | |
| download | bcm5719-llvm-c335d9d3137b9db6c17b7cdbf45ddf80f651c6c1.tar.gz bcm5719-llvm-c335d9d3137b9db6c17b7cdbf45ddf80f651c6c1.zip | |
LLVM dialect: prefix auxiliary operations with "mlir."
Some of the operations in the LLVM dialect are required to model the LLVM IR in
MLIR, for example "constant" operations are needed to declare a constant value
since MLIR, unlike LLVM, does not support immediate values as operands. To
avoid confusion with actual LLVM operations, we prefix such axuiliary
operations with "mlir.".
PiperOrigin-RevId: 266942838
Diffstat (limited to 'mlir/lib/Target')
| -rw-r--r-- | mlir/lib/Target/LLVMIR/ModuleTranslation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp index e872794d426..198aa8fcf3c 100644 --- a/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp +++ b/mlir/lib/Target/LLVMIR/ModuleTranslation.cpp @@ -297,7 +297,8 @@ LogicalResult ModuleTranslation::convertBlock(Block &bb, bool ignoreArguments) { return success(); } -// Create named global variables that correspond to llvm.global definitions. +// Create named global variables that correspond to llvm.mlir.global +// definitions. void ModuleTranslation::convertGlobals() { for (auto op : mlirModule.getOps<LLVM::GlobalOp>()) { llvm::Constant *cst; |

