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/test/Conversion/GPUToCUDA | |
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/test/Conversion/GPUToCUDA')
-rw-r--r-- | mlir/test/Conversion/GPUToCUDA/insert-cubin-getter.mlir | 6 | ||||
-rw-r--r-- | mlir/test/Conversion/GPUToCUDA/lower-launch-func-to-cuda.mlir | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mlir/test/Conversion/GPUToCUDA/insert-cubin-getter.mlir b/mlir/test/Conversion/GPUToCUDA/insert-cubin-getter.mlir index c59acd83769..d2e291f57e7 100644 --- a/mlir/test/Conversion/GPUToCUDA/insert-cubin-getter.mlir +++ b/mlir/test/Conversion/GPUToCUDA/insert-cubin-getter.mlir @@ -1,14 +1,14 @@ // RUN: mlir-opt %s --generate-cubin-accessors | FileCheck %s -// CHECK: llvm.global constant @[[global:.*]]("CUBIN") +// CHECK: llvm.mlir.global constant @[[global:.*]]("CUBIN") func @kernel(!llvm.float, !llvm<"float*">) // CHECK: attributes {gpu.kernel, nvvm.cubin = "CUBIN", nvvm.cubingetter = @[[getter:.*]]} attributes {gpu.kernel, nvvm.cubin = "CUBIN"} // CHECK: func @[[getter]]() -> !llvm<"i8*"> -// CHECK: %[[addressof:.*]] = llvm.addressof @[[global]] -// CHECK: %[[c0:.*]] = llvm.constant(0 : index) +// CHECK: %[[addressof:.*]] = llvm.mlir.addressof @[[global]] +// CHECK: %[[c0:.*]] = llvm.mlir.constant(0 : index) // CHECK: %[[gep:.*]] = llvm.getelementptr %[[addressof]][%[[c0]], %[[c0]]] // CHECK-SAME: -> !llvm<"i8*"> // CHECK: llvm.return %[[gep]] : !llvm<"i8*"> diff --git a/mlir/test/Conversion/GPUToCUDA/lower-launch-func-to-cuda.mlir b/mlir/test/Conversion/GPUToCUDA/lower-launch-func-to-cuda.mlir index 39c44293caa..bc843e3595b 100644 --- a/mlir/test/Conversion/GPUToCUDA/lower-launch-func-to-cuda.mlir +++ b/mlir/test/Conversion/GPUToCUDA/lower-launch-func-to-cuda.mlir @@ -1,6 +1,6 @@ // RUN: mlir-opt %s --launch-func-to-cuda | FileCheck %s -// CHECK: llvm.global constant @[[kernel_name:.*]]("kernel\00") +// CHECK: llvm.mlir.global constant @[[kernel_name:.*]]("kernel\00") func @cubin_getter() -> !llvm<"i8*"> |