This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG7128e647063d: [UpdateTestChecks] include { in function signature check line (authored by sstefan1). Herald added subscribers: cfe-commits, danielkiss. Herald added a project: clang.
Changed prior to commit: https://reviews.llvm.org/D86769?vs=288547&id=288709#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D86769/new/ https://reviews.llvm.org/D86769 Files: clang/test/utils/update_cc_test_checks/Inputs/mangled_names.c.funcsig.expected llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/argument_name_reuse.ll.expected llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/basic.ll.funcsig.expected llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.plain.expected llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.expected llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/various_ir_values.ll.funcsig.expected llvm/utils/UpdateTestChecks/common.py
Index: llvm/utils/UpdateTestChecks/common.py =================================================================== --- llvm/utils/UpdateTestChecks/common.py +++ llvm/utils/UpdateTestChecks/common.py @@ -146,7 +146,7 @@ OPT_FUNCTION_RE = re.compile( r'^(\s*;\s*Function\sAttrs:\s(?P<attrs>[\w\s]+?))?\s*define\s+(?:internal\s+)?[^@]*@(?P<func>[\w.-]+?)\s*' - r'(?P<args_and_sig>\((\)|(.*?[\w.-]+?)\))[^{]*)\{\n(?P<body>.*?)^\}$', + r'(?P<args_and_sig>\((\)|(.*?[\w.-]+?)\))[^{]*\{)\n(?P<body>.*?)^\}$', flags=(re.M | re.S)) ANALYZE_FUNCTION_RE = re.compile( Index: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/various_ir_values.ll.funcsig.expected =================================================================== --- llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/various_ir_values.ll.funcsig.expected +++ llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/various_ir_values.ll.funcsig.expected @@ -10,7 +10,7 @@ ; Function Attrs: nounwind uwtable define dso_local void @foo(i32* %A) #0 !dbg !7 { ; CHECK-LABEL: define {{[^@]+}}@foo -; CHECK-SAME: (i32* [[A:%.*]]) [[ATTR0:#.*]] [[DBG7:!dbg !.*]] +; CHECK-SAME: (i32* [[A:%.*]]) [[ATTR0:#.*]] [[DBG7:!dbg !.*]] { ; CHECK-NEXT: entry: ; CHECK-NEXT: [[A_ADDR:%.*]] = alloca i32*, align 8 ; CHECK-NEXT: [[I:%.*]] = alloca i32, align 4 @@ -99,7 +99,7 @@ ; Function Attrs: nounwind uwtable define dso_local void @bar(i32* %A) #0 !dbg !39 { ; CHECK-LABEL: define {{[^@]+}}@bar -; CHECK-SAME: (i32* [[A:%.*]]) [[ATTR0]] [[DBG39:!dbg !.*]] +; CHECK-SAME: (i32* [[A:%.*]]) [[ATTR0]] [[DBG39:!dbg !.*]] { ; CHECK-NEXT: entry: ; CHECK-NEXT: [[A_ADDR:%.*]] = alloca i32*, align 8 ; CHECK-NEXT: [[I:%.*]] = alloca i32, align 4 Index: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected =================================================================== --- llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected +++ llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected @@ -18,14 +18,14 @@ ; UTC_ARGS: --enable define void @check_lines_2() { -; CHECK-LABEL: define {{[^@]+}}@check_lines_2() +; CHECK-LABEL: define {{[^@]+}}@check_lines_2() { ; CHECK-NEXT: ret void ; ret void } define void @scrub() { -; CHECK-LABEL: define {{[^@]+}}@scrub() +; CHECK-LABEL: define {{[^@]+}}@scrub() { ; CHECK-NEXT: call void @foo() ; CHECK-NEXT: ret void ; @@ -35,7 +35,7 @@ define i32 @signature(i32 %arg) { ; CHECK-LABEL: define {{[^@]+}}@signature -; CHECK-SAME: (i32 [[ARG:%.*]]) +; CHECK-SAME: (i32 [[ARG:%.*]]) { ; CHECK-NEXT: ret i32 [[ARG]] ; ret i32 %arg Index: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.expected =================================================================== --- llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.expected +++ llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.expected @@ -4,7 +4,7 @@ declare void @foo() define void @check_lines_1() { -; CHECK-LABEL: define {{[^@]+}}@check_lines_1() +; CHECK-LABEL: define {{[^@]+}}@check_lines_1() { ; CHECK-NEXT: ret void ; ret void @@ -21,14 +21,14 @@ ; UTC_ARGS: --enable define void @check_lines_2() { -; CHECK-LABEL: define {{[^@]+}}@check_lines_2() +; CHECK-LABEL: define {{[^@]+}}@check_lines_2() { ; CHECK-NEXT: ret void ; ret void } define void @scrub() { -; CHECK-LABEL: define {{[^@]+}}@scrub() +; CHECK-LABEL: define {{[^@]+}}@scrub() { ; CHECK-NEXT: call void @foo() ; CHECK-NEXT: ret void ; @@ -38,7 +38,7 @@ define i32 @signature(i32 %arg) { ; CHECK-LABEL: define {{[^@]+}}@signature -; CHECK-SAME: (i32 [[ARG:%.*]]) +; CHECK-SAME: (i32 [[ARG:%.*]]) { ; CHECK-NEXT: ret i32 [[ARG]] ; ret i32 %arg Index: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.plain.expected =================================================================== --- llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.plain.expected +++ llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.plain.expected @@ -9,7 +9,7 @@ define i32* @foo(%struct.ST* %s) nounwind uwtable readnone optsize ssp { ; CHECK-LABEL: define {{[^@]+}}@foo -; CHECK-SAME: (%struct.ST* nofree readnone [[S:%.*]]) [[ATTR0:#.*]] +; CHECK-SAME: (%struct.ST* nofree readnone [[S:%.*]]) [[ATTR0:#.*]] { ; CHECK-NEXT: entry: ; CHECK-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13 ; CHECK-NEXT: ret i32* [[ARRAYIDX]] Index: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected =================================================================== --- llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected +++ llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected @@ -10,14 +10,14 @@ define i32* @foo(%struct.ST* %s) nounwind uwtable readnone optsize ssp { ; IS__TUNIT____: Function Attrs: nofree nosync nounwind optsize readnone ssp uwtable willreturn ; IS__TUNIT____-LABEL: define {{[^@]+}}@foo -; IS__TUNIT____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) [[ATTR0:#.*]] +; IS__TUNIT____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) [[ATTR0:#.*]] { ; IS__TUNIT____-NEXT: entry: ; IS__TUNIT____-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13 ; IS__TUNIT____-NEXT: ret i32* [[ARRAYIDX]] ; ; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind optsize readnone ssp uwtable willreturn ; IS__CGSCC____-LABEL: define {{[^@]+}}@foo -; IS__CGSCC____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) [[ATTR0:#.*]] +; IS__CGSCC____-SAME: (%struct.ST* nofree readnone [[S:%.*]]) [[ATTR0:#.*]] { ; IS__CGSCC____-NEXT: entry: ; IS__CGSCC____-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds [[STRUCT_ST:%.*]], %struct.ST* [[S]], i64 1, i32 2, i32 1, i64 5, i64 13 ; IS__CGSCC____-NEXT: ret i32* [[ARRAYIDX]] Index: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/basic.ll.funcsig.expected =================================================================== --- llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/basic.ll.funcsig.expected +++ llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/basic.ll.funcsig.expected @@ -4,7 +4,7 @@ define i32 @common_sub_operand(i32 %X, i32 %Y) { ; CHECK-LABEL: define {{[^@]+}}@common_sub_operand -; CHECK-SAME: (i32 [[X:%.*]], i32 [[Y:%.*]]) +; CHECK-SAME: (i32 [[X:%.*]], i32 [[Y:%.*]]) { ; CHECK-NEXT: ret i32 [[X]] ; %Z = sub i32 %X, %Y @@ -14,7 +14,7 @@ define i32 @negated_operand(i32 %x) { ; CHECK-LABEL: define {{[^@]+}}@negated_operand -; CHECK-SAME: (i32 [[X:%.*]]) +; CHECK-SAME: (i32 [[X:%.*]]) { ; CHECK-NEXT: ret i32 0 ; %negx = sub i32 0, %x @@ -24,7 +24,7 @@ define <2 x i32> @negated_operand_commute_vec(<2 x i32> %x) { ; CHECK-LABEL: define {{[^@]+}}@negated_operand_commute_vec -; CHECK-SAME: (<2 x i32> [[X:%.*]]) +; CHECK-SAME: (<2 x i32> [[X:%.*]]) { ; CHECK-NEXT: ret <2 x i32> zeroinitializer ; %negx = sub <2 x i32> zeroinitializer, %x @@ -34,7 +34,7 @@ define i8 @knownnegation(i8 %x, i8 %y) { ; CHECK-LABEL: define {{[^@]+}}@knownnegation -; CHECK-SAME: (i8 [[X:%.*]], i8 [[Y:%.*]]) +; CHECK-SAME: (i8 [[X:%.*]], i8 [[Y:%.*]]) { ; CHECK-NEXT: ret i8 0 ; %xy = sub i8 %x, %y @@ -45,7 +45,7 @@ define <2 x i8> @knownnegation_commute_vec(<2 x i8> %x, <2 x i8> %y) { ; CHECK-LABEL: define {{[^@]+}}@knownnegation_commute_vec -; CHECK-SAME: (<2 x i8> [[X:%.*]], <2 x i8> [[Y:%.*]]) +; CHECK-SAME: (<2 x i8> [[X:%.*]], <2 x i8> [[Y:%.*]]) { ; CHECK-NEXT: ret <2 x i8> zeroinitializer ; %xy = sub <2 x i8> %x, %y @@ -56,7 +56,7 @@ define i32 @nameless_value(i32 %X) { ; CHECK-LABEL: define {{[^@]+}}@nameless_value -; CHECK-SAME: (i32 [[X:%.*]]) +; CHECK-SAME: (i32 [[X:%.*]]) { ; CHECK-NEXT: [[TMP1:%.*]] = sub i32 42, [[X]] ; CHECK-NEXT: ret i32 [[TMP1]] ; Index: llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/argument_name_reuse.ll.expected =================================================================== --- llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/argument_name_reuse.ll.expected +++ llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/argument_name_reuse.ll.expected @@ -3,7 +3,7 @@ define i32 @reuse_arg_names(i32 %X, i32 %Y) { ; CHECK-LABEL: define {{[^@]+}}@reuse_arg_names -; CHECK-SAME: (i32 [[X:%.*]], i32 [[Y:%.*]]) +; CHECK-SAME: (i32 [[X:%.*]], i32 [[Y:%.*]]) { ; CHECK-NEXT: [[Z:%.*]] = sub i32 [[X]], [[Y]] ; CHECK-NEXT: [[Q:%.*]] = add i32 [[Z]], [[Y]] ; CHECK-NEXT: ret i32 [[Q]] Index: clang/test/utils/update_cc_test_checks/Inputs/mangled_names.c.funcsig.expected =================================================================== --- clang/test/utils/update_cc_test_checks/Inputs/mangled_names.c.funcsig.expected +++ clang/test/utils/update_cc_test_checks/Inputs/mangled_names.c.funcsig.expected @@ -3,7 +3,7 @@ // RUN: %clang_cc1 -triple=x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s // CHECK-LABEL: define {{[^@]+}}@test -// CHECK-SAME: (i64 [[A:%.*]], i32 [[B:%.*]]) [[ATTR0:#.*]] +// CHECK-SAME: (i64 [[A:%.*]], i32 [[B:%.*]]) [[ATTR0:#.*]] { // CHECK-NEXT: entry: // CHECK-NEXT: [[A_ADDR:%.*]] = alloca i64, align 8 // CHECK-NEXT: [[B_ADDR:%.*]] = alloca i32, align 4 @@ -21,7 +21,7 @@ // A function with a mangled name // CHECK-LABEL: define {{[^@]+}}@_Z4testlii -// CHECK-SAME: (i64 [[A:%.*]], i32 [[B:%.*]], i32 [[C:%.*]]) [[ATTR0]] +// CHECK-SAME: (i64 [[A:%.*]], i32 [[B:%.*]], i32 [[C:%.*]]) [[ATTR0]] { // CHECK-NEXT: entry: // CHECK-NEXT: [[A_ADDR:%.*]] = alloca i64, align 8 // CHECK-NEXT: [[B_ADDR:%.*]] = alloca i32, align 4
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits