brintos

brintos / llvm-project-archived public Read only

0
0
Text · 678 B · 41400d8 Raw
26 lines · plain
1; RUN: llvm-link %s %p/Inputs/inalloca-type-input.ll -S | FileCheck %s2 3%a = type { i64 }4%struct = type { i32, i8 }5 6; CHECK-LABEL: define void @f(ptr inalloca(%a) %0)7define void @f(ptr inalloca(%a)) {8  ret void9}10 11; CHECK-LABEL: define void @bar(12; CHECK: call void @foo(ptr inalloca(%struct) %ptr)13define void @bar() {14  %ptr = alloca inalloca %struct15  call void @foo(ptr inalloca(%struct) %ptr)16  ret void17}18 19; CHECK-LABEL: define void @g(ptr inalloca(%a) %0)20 21; CHECK-LABEL: define void @foo(ptr inalloca(%struct) %a)22; CHECK-NEXT:   call void @baz(ptr inalloca(%struct) %a)23declare void @foo(ptr inalloca(%struct) %a)24 25; CHECK: declare void @baz(ptr inalloca(%struct))26