brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 8fb6af0 Raw
29 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals2; RUN: opt -aa-pipeline=basic-aa -passes=attributor -attributor-manifest-internal  -attributor-annotate-decl-cs  -S < %s | FileCheck %s --check-prefixes=CHECK,TUNIT3; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -attributor-manifest-internal  -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,CGSCC4define internal void @foo(i32 %X) {5; CGSCC-LABEL: define {{[^@]+}}@foo6; CGSCC-SAME: (i32 [[X:%.*]]) {7; CGSCC-NEXT:    call void @foo(i32 [[X]])8; CGSCC-NEXT:    ret void9;10  call void @foo( i32 %X )11  ret void12}13 14define void @bar() {15; CHECK: Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)16; CHECK-LABEL: define {{[^@]+}}@bar17; CHECK-SAME: () #[[ATTR0:[0-9]+]] {18; CHECK-NEXT:    ret void19;20  ret void21}22;.23; TUNIT: attributes #[[ATTR0]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) }24;.25; CGSCC: attributes #[[ATTR0]] = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) }26;.27;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:28; TUNIT: {{.*}}29