diff --git a/mlir/docs/TargetLLVMIR.md b/mlir/docs/TargetLLVMIR.md --- a/mlir/docs/TargetLLVMIR.md +++ b/mlir/docs/TargetLLVMIR.md @@ -340,7 +340,7 @@ } llvm.func @bar() { %0 = llvm.mlir.constant(42 : i32) : i32 - %1 = llvm.mlir.constant(17) : i64 + %1 = llvm.mlir.constant(17 : i64) : i64 // call and extract the values from the structure %2 = llvm.call @bar(%0, %1) @@ -390,7 +390,7 @@ %arg3: i64, // Size in dim 0. %arg4: i64) { // Stride in dim 0. // Populate memref descriptor structure. - %0 = llvm.mlir.undef : + %0 = llvm.mlir.undef : !llvm.memref_1d %1 = llvm.insertvalue %arg0, %0[0] : !llvm.memref_1d %2 = llvm.insertvalue %arg1, %1[1] : !llvm.memref_1d %3 = llvm.insertvalue %arg2, %2[2] : !llvm.memref_1d @@ -516,7 +516,7 @@ Examples: ``` -func.func @callee(memref<2x4xf32>) { +func.func @callee(memref<2x4xf32>) func.func @caller(%0 : memref<2x4xf32>) { call @callee(%0) : (memref<2x4xf32>) -> () @@ -838,7 +838,7 @@ array<4xi64>, array<4xi64>)> // Get the address of the data pointer. -%ptr = llvm.getelementptr %aligned[%addr8] +%ptr = llvm.getelementptr %aligned[%addr7] : !llvm.struct<(ptr, ptr, i64, array<4xi64>, array<4xi64>)> -> !llvm.ptr