reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ; RUN: llvm-link %s %p/Inputs/byval-types-1.ll -S | FileCheck %s %struct = type {i32, i8} declare void @foo(%struct* byval(%struct) %a) define void @bar() { %ptr = alloca %struct ; CHECK: call void @foo(%struct* byval(%struct) %ptr) call void @foo(%struct* byval(%struct) %ptr) ret void } ; CHECK: define void @foo(%struct* byval(%struct) %a) ; CHECK-NEXT: call void @baz(%struct* byval(%struct) %a) ; CHECK: declare void @baz(%struct* byval(%struct)) |