1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals
2 ; RUN: opt -aa-pipeline=basic-aa -passes=attributor -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,TUNIT
3 ; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,CGSCC
4 target triple = "x86_64-pc-windows-msvc"
6 define internal void @callee(ptr) {
7 ; CHECK: Function Attrs: memory(readwrite, argmem: none)
8 ; CHECK-LABEL: define {{[^@]+}}@callee
9 ; CHECK-SAME: () #[[ATTR0:[0-9]+]] {
11 ; CHECK-NEXT: call void @thunk()
12 ; CHECK-NEXT: ret void
19 define void @test1() personality ptr @__CxxFrameHandler3 {
20 ; CHECK-LABEL: define {{[^@]+}}@test1() personality ptr @__CxxFrameHandler3 {
22 ; CHECK-NEXT: invoke void @thunk()
23 ; CHECK-NEXT: to label [[OUT:%.*]] unwind label [[CPAD:%.*]]
25 ; CHECK-NEXT: ret void
27 ; CHECK-NEXT: [[PAD:%.*]] = cleanuppad within none []
28 ; CHECK-NEXT: call void @callee() [ "funclet"(token [[PAD]]) ]
29 ; CHECK-NEXT: cleanupret from [[PAD]] unwind to caller
33 to label %out unwind label %cpad
39 %pad = cleanuppad within none []
40 call void @callee(ptr null) [ "funclet"(token %pad) ]
41 cleanupret from %pad unwind to caller
47 declare i32 @__CxxFrameHandler3(...)
49 ; CHECK: attributes #[[ATTR0]] = { memory(readwrite, argmem: none) }
51 ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: