summaryrefslogtreecommitdiffstats
path: root/mlir/test/Target
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-06-25 16:06:13 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-06-25 16:06:58 -0700
commit4842b2d42e95ff4b5a8425ec7108c9e4e90e8b6c (patch)
tree04fefb7f46510e3d39bdb61d5bdcab903810f908 /mlir/test/Target
parent1df5f3159e538fdc12c451f09f3f879ca0200d66 (diff)
downloadbcm5719-llvm-4842b2d42e95ff4b5a8425ec7108c9e4e90e8b6c.tar.gz
bcm5719-llvm-4842b2d42e95ff4b5a8425ec7108c9e4e90e8b6c.zip
Modify the syntax of the the ElementsAttrs to print the type as a colon type.
This is the standard syntax for types on operations, and is also already used by IntegerAttr and FloatAttr. Example: dense<5> : tensor<i32> dense<[3]> : tensor<1xi32> PiperOrigin-RevId: 255069157
Diffstat (limited to 'mlir/test/Target')
-rw-r--r--mlir/test/Target/llvmir.mlir2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/Target/llvmir.mlir b/mlir/test/Target/llvmir.mlir
index 2ee0719cc06..00f9a7dfb82 100644
--- a/mlir/test/Target/llvmir.mlir
+++ b/mlir/test/Target/llvmir.mlir
@@ -694,7 +694,7 @@ func @multireturn_caller() {
// CHECK-LABEL: define <4 x float> @vector_ops(<4 x float>, <4 x i1>, <4 x i64>) {
func @vector_ops(%arg0: !llvm<"<4 x float>">, %arg1: !llvm<"<4 x i1>">, %arg2: !llvm<"<4 x i64>">) -> !llvm<"<4 x float>"> {
- %0 = llvm.constant(dense<vector<4xf32>, 4.200000e+01>) : !llvm<"<4 x float>">
+ %0 = llvm.constant(dense<4.200000e+01> : vector<4xf32>) : !llvm<"<4 x float>">
// CHECK-NEXT: %4 = fadd <4 x float> %0, <float 4.200000e+01, float 4.200000e+01, float 4.200000e+01, float 4.200000e+01>
%1 = llvm.fadd %arg0, %0 : !llvm<"<4 x float>">
// CHECK-NEXT: %5 = select <4 x i1> %1, <4 x float> %4, <4 x float> %0
OpenPOWER on IntegriCloud