1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals 2; RUN: opt -attributor -enable-new-pm=0 -attributor-manifest-internal -attributor-max-iterations-verify -attributor-annotate-decl-cs -attributor-max-iterations=2 -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_CGSCC_NPM,NOT_CGSCC_OPM,NOT_TUNIT_NPM,IS__TUNIT____,IS________OPM,IS__TUNIT_OPM 3; RUN: opt -aa-pipeline=basic-aa -passes=attributor -attributor-manifest-internal -attributor-max-iterations-verify -attributor-annotate-decl-cs -attributor-max-iterations=2 -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_CGSCC_OPM,NOT_CGSCC_NPM,NOT_TUNIT_OPM,IS__TUNIT____,IS________NPM,IS__TUNIT_NPM 4; RUN: opt -attributor-cgscc -enable-new-pm=0 -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_TUNIT_NPM,NOT_TUNIT_OPM,NOT_CGSCC_NPM,IS__CGSCC____,IS________OPM,IS__CGSCC_OPM 5; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_TUNIT_NPM,NOT_TUNIT_OPM,NOT_CGSCC_OPM,IS__CGSCC____,IS________NPM,IS__CGSCC_NPM 6 7%struct.wobble = type { i32 } 8%struct.zot = type { %struct.wobble, %struct.wobble, %struct.wobble } 9 10declare dso_local fastcc float @bar(%struct.wobble* noalias, <8 x i32>) unnamed_addr 11 12define %struct.zot @widget(<8 x i32> %arg) local_unnamed_addr { 13; CHECK: Function Attrs: nofree norecurse nosync nounwind readnone willreturn 14; CHECK-LABEL: define {{[^@]+}}@widget 15; CHECK-SAME: (<8 x i32> [[ARG:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { 16; CHECK-NEXT: bb: 17; CHECK-NEXT: ret [[STRUCT_ZOT:%.*]] undef 18; 19bb: 20 ret %struct.zot undef 21} 22 23define void @baz(<8 x i32> %arg) local_unnamed_addr { 24; IS__TUNIT____: Function Attrs: nofree norecurse nosync nounwind readnone willreturn 25; IS__TUNIT____-LABEL: define {{[^@]+}}@baz 26; IS__TUNIT____-SAME: (<8 x i32> [[ARG:%.*]]) local_unnamed_addr #[[ATTR0]] { 27; IS__TUNIT____-NEXT: bb: 28; IS__TUNIT____-NEXT: [[TMP1:%.*]] = extractvalue [[STRUCT_ZOT:%.*]] undef, 0, 0 29; IS__TUNIT____-NEXT: ret void 30; 31; IS__CGSCC____: Function Attrs: nofree nosync nounwind readnone willreturn 32; IS__CGSCC____-LABEL: define {{[^@]+}}@baz 33; IS__CGSCC____-SAME: (<8 x i32> [[ARG:%.*]]) local_unnamed_addr #[[ATTR1:[0-9]+]] { 34; IS__CGSCC____-NEXT: bb: 35; IS__CGSCC____-NEXT: ret void 36; 37bb: 38 %tmp = call %struct.zot @widget(<8 x i32> %arg) 39 %tmp1 = extractvalue %struct.zot %tmp, 0, 0 40 ret void 41} 42;. 43; IS__TUNIT____: attributes #[[ATTR0]] = { nofree norecurse nosync nounwind readnone willreturn } 44;. 45; IS__CGSCC____: attributes #[[ATTR0]] = { nofree norecurse nosync nounwind readnone willreturn } 46; IS__CGSCC____: attributes #[[ATTR1]] = { nofree nosync nounwind readnone willreturn } 47;. 48