41 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,CGSCC4 5define internal fastcc i32 @hash(ptr %ts, i32 %mod) nounwind {6; CGSCC: Function Attrs: mustprogress nofree norecurse noreturn nosync nounwind willreturn memory(none)7; CGSCC-LABEL: define {{[^@]+}}@hash8; CGSCC-SAME: () #[[ATTR0:[0-9]+]] {9; CGSCC-NEXT: entry:10; CGSCC-NEXT: unreachable11;12entry:13 unreachable14}15 16define void @encode(ptr %m, ptr %ts, ptr %new) nounwind {17; TUNIT: Function Attrs: mustprogress nofree norecurse noreturn nosync nounwind willreturn memory(none)18; TUNIT-LABEL: define {{[^@]+}}@encode19; TUNIT-SAME: (ptr nofree readnone captures(none) [[M:%.*]], ptr nofree readnone captures(none) [[TS:%.*]], ptr nofree readnone captures(none) [[NEW:%.*]]) #[[ATTR0:[0-9]+]] {20; TUNIT-NEXT: entry:21; TUNIT-NEXT: unreachable22;23; CGSCC: Function Attrs: mustprogress nofree noreturn nosync nounwind willreturn memory(none)24; CGSCC-LABEL: define {{[^@]+}}@encode25; CGSCC-SAME: (ptr nofree readnone captures(none) [[M:%.*]], ptr nofree readnone captures(none) [[TS:%.*]], ptr nofree readnone captures(none) [[NEW:%.*]]) #[[ATTR1:[0-9]+]] {26; CGSCC-NEXT: entry:27; CGSCC-NEXT: unreachable28;29entry:30 %0 = call fastcc i32 @hash( ptr %ts, i32 0 ) nounwind ; <i32> [#uses=0]31 unreachable32}33;.34; TUNIT: attributes #[[ATTR0]] = { mustprogress nofree norecurse noreturn nosync nounwind willreturn memory(none) }35;.36; CGSCC: attributes #[[ATTR0]] = { mustprogress nofree norecurse noreturn nosync nounwind willreturn memory(none) }37; CGSCC: attributes #[[ATTR1]] = { mustprogress nofree noreturn nosync nounwind willreturn memory(none) }38;.39;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:40; CHECK: {{.*}}41