Skip to content

Commit 00ecb24

Browse files
jeanPeriergysit
andauthored
Comment and test indentation update
Co-authored-by: Tobias Gysi <[email protected]>
1 parent 25a74a9 commit 00ecb24

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ void CallOp::print(OpAsmPrinter &p) {
13421342
if (!isDirect)
13431343
p << getOperand(0).getType() << ", ";
13441344

1345-
// Reconstruct the function MLIR function type from operand and result types.
1345+
// Reconstruct the MLIR function type from operand and result types.
13461346
call_interface_impl::printFunctionSignature(
13471347
p, args.getTypes(), getArgAttrsAttr(),
13481348
/*isVariadic=*/false, getResultTypes(), getResAttrsAttr());

mlir/test/Target/LLVMIR/Import/call-argument-attributes.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ define void @test_call_arg_attrs_direct(i32 %0, ptr %1) {
1616
; CHECK-SAME: %[[VAL_0:.*]]: i16,
1717
; CHECK-SAME: %[[VAL_1:.*]]: !llvm.ptr
1818
define i16 @test_call_arg_attrs_indirect(i16 %0, ptr %1) {
19-
; CHECK: llvm.call tail %[[VAL_1]](%[[VAL_0]]) : !llvm.ptr, (i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext})
19+
; CHECK: llvm.call tail %[[VAL_1]](%[[VAL_0]]) : !llvm.ptr, (i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext})
2020
%3 = tail call signext i16 %1(i16 noundef signext %0)
2121
ret i16 %3
2222
}

mlir/test/Target/LLVMIR/Import/invoke-argument-attributes.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; CHECK-LABEL: llvm.func @test(
44
; CHECK-SAME: %[[VAL_0:.*]]: i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext}) attributes {personality = @__gxx_personality_v0} {
55
define signext i16 @test(i16 noundef signext %0) personality ptr @__gxx_personality_v0 {
6-
; CHECK: %[[VAL_3:.*]] = llvm.invoke @somefunc(%[[VAL_0]]) to ^bb2 unwind ^bb1 : (i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext})
6+
; CHECK: %[[VAL_3:.*]] = llvm.invoke @somefunc(%[[VAL_0]]) to ^bb2 unwind ^bb1 : (i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext})
77
%2 = invoke signext i16 @somefunc(i16 noundef signext %0)
88
to label %7 unwind label %3
99

mlir/test/Target/LLVMIR/invoke-argument-attributes.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
llvm.func @test(%arg0: i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext}) attributes {personality = @__gxx_personality_v0} {
55
%0 = llvm.mlir.zero : !llvm.ptr
66
%1 = llvm.mlir.constant(0 : i16) : i16
7-
// CHECK: invoke signext i16 @somefunc(i16 noundef signext %{{.*}})
8-
// CHECK-NEXT: to label %{{.*}} unwind label %{{.*}}
7+
// CHECK: invoke signext i16 @somefunc(i16 noundef signext %{{.*}})
8+
// CHECK-NEXT: to label %{{.*}} unwind label %{{.*}}
99
%2 = llvm.invoke @somefunc(%arg0) to ^bb2 unwind ^bb1 : (i16 {llvm.noundef, llvm.signext}) -> (i16 {llvm.signext})
1010
^bb1: // pred: ^bb0
1111
%3 = llvm.landingpad (catch %0 : !llvm.ptr) : !llvm.struct<(ptr, i32)>

0 commit comments

Comments
 (0)