|
| 1 | +# Test MIR printer and parser to NOT have `CalleeTypeIds` field in callSites. |
| 2 | +# `CalleeTypeId` is used for propagating call site type identifiers for |
| 3 | +# indirect targets only. This test does not contain any indirect targets. |
| 4 | + |
| 5 | +# RUN: llc -mtriple=x86_64 --call-graph-section %s -run-pass=none -o - | FileCheck --match-full-lines %s |
| 6 | +# CHECK-NOT: calleeTypeIds |
| 7 | +# CHECK: name: bar |
| 8 | +# CHECK: callSites: |
| 9 | +# CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [] } |
| 10 | +# CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [] } |
| 11 | +# CHECK: name: foo |
| 12 | +# CHECK: callSites: |
| 13 | +# CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [] } |
| 14 | + |
| 15 | +--- | |
| 16 | + declare i32 @fizz(i32, i32) |
| 17 | + |
| 18 | + declare i32 @buzz(i32, i32) |
| 19 | + |
| 20 | + define i32 @bar(i32 %x, i32 %y) !type !0 { |
| 21 | + entry: |
| 22 | + %call = call i32 @buzz(i32 %x, i32 %x) |
| 23 | + %call1 = call i32 @fizz(i32 %x, i32 %x) |
| 24 | + ret i32 0 |
| 25 | + } |
| 26 | + |
| 27 | + define i32 @foo(i32 %x, i32 %y) !type !0 { |
| 28 | + entry: |
| 29 | + %call1 = call i32 @bar(i32 %x, i32 %x) |
| 30 | + ret i32 0 |
| 31 | + } |
| 32 | + |
| 33 | + !0 = !{i64 0, !"_ZTSFiiiE.generalized"} |
| 34 | +... |
| 35 | +--- |
| 36 | +name: bar |
| 37 | +callSites: |
| 38 | + - { bb: 0, offset: 0, fwdArgRegs: [] } |
| 39 | + - { bb: 0, offset: 1, fwdArgRegs: [] } |
| 40 | +body: | |
| 41 | + bb.0.entry: |
| 42 | + CALL64pcrel32 target-flags(x86-plt) @buzz, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit $esi, implicit-def $rsp, implicit-def $ssp, implicit-def $eax |
| 43 | + CALL64pcrel32 target-flags(x86-plt) @fizz, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit $esi, implicit-def $rsp, implicit-def $ssp, implicit-def $eax |
| 44 | +
|
| 45 | +... |
| 46 | +--- |
| 47 | +name: foo |
| 48 | +callSites: |
| 49 | + - { bb: 0, offset: 0, fwdArgRegs: [] } |
| 50 | +body: | |
| 51 | + bb.0.entry: |
| 52 | + CALL64pcrel32 target-flags(x86-plt) @bar, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit $esi, implicit-def $rsp, implicit-def $ssp, implicit-def $eax |
| 53 | +
|
| 54 | +... |
0 commit comments