Skip to content

Commit a56ccb8

Browse files
necipfazilPrabhuk
authored andcommitted
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.6-beta.1 [skip ci]
1 parent 7a1c8fb commit a56ccb8

File tree

11 files changed

+22
-24
lines changed

11 files changed

+22
-24
lines changed

llvm/include/llvm/CodeGen/AsmPrinter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class AsmPrinter : public MachineFunctionPass {
361361
void emitIndirectCalleeLabels(
362362
FunctionInfo &FuncInfo,
363363
const MachineFunction::CallSiteInfoMap &CallSitesInfoMap,
364-
MachineInstr &MI);
364+
const MachineInstr &MI);
365365

366366
//===------------------------------------------------------------------===//
367367
// XRay instrumentation implementation.

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,13 +1863,11 @@ static StringRef getMIMnemonic(const MachineInstr &MI, MCStreamer &Streamer) {
18631863
void AsmPrinter::emitIndirectCalleeLabels(
18641864
FunctionInfo &FuncInfo,
18651865
const MachineFunction::CallSiteInfoMap &CallSitesInfoMap,
1866-
MachineInstr &MI) {
1866+
const MachineInstr &MI) {
18671867
// Only indirect calls have type identifiers set.
18681868
const auto &CallSiteInfo = CallSitesInfoMap.find(&MI);
18691869
if (CallSiteInfo == CallSitesInfoMap.end())
18701870
return;
1871-
if (CallSiteInfo->second.CalleeTypeIds.empty())
1872-
return;
18731871

18741872
for (auto *CalleeTypeId : CallSiteInfo->second.CalleeTypeIds) {
18751873
// Emit label.

llvm/test/CodeGen/AArch64/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple aarch64-linux-gnu < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/ARM/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple arm-linux-gnu < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/MIR/X86/callsite-emit-calleetypeid.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
; PRINTER_CSI: name: main
3939
; PRINTER_CSI: callSites:
4040
; PRINTER_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
41-
; PRINTER_CSI-NEXT: { arg: 0, reg: '$edi' }
41+
; PRINTER_CSI-NEXT: { arg: 0, reg: {{.*}} }
4242
; PRINTER_CSI-NOT: calleeTypeIds:
4343

4444

@@ -49,7 +49,7 @@
4949
; PARSER_CSI: name: main
5050
; PARSER_CSI: callSites:
5151
; PARSER_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
52-
; PARSER_CSI-NEXT: { arg: 0, reg: '$edi' }
52+
; PARSER_CSI-NEXT: { arg: 0, reg: {{.*}} }
5353
; PARSER_CSI-NOT: calleeTypeIds:
5454

5555
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -64,7 +64,7 @@
6464
; PRINTER_CGS_CSI: name: main
6565
; PRINTER_CGS_CSI: callSites:
6666
; PRINTER_CGS_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
67-
; PRINTER_CGS_CSI-NEXT: { arg: 0, reg: '$edi' }, calleeTypeIds:
67+
; PRINTER_CGS_CSI-NEXT: { arg: 0, reg: {{.*}} }, calleeTypeIds:
6868
; PRINTER_CGS_CSI-NEXT: [ 7854600665770582568 ] }
6969

7070

@@ -75,7 +75,7 @@
7575
; PARSER_CGS_CSI: name: main
7676
; PARSER_CGS_CSI: callSites:
7777
; PARSER_CGS_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
78-
; PARSER_CGS_CSI-NEXT: { arg: 0, reg: '$edi' }, calleeTypeIds:
78+
; PARSER_CGS_CSI-NEXT: { arg: 0, reg: {{.*}} }, calleeTypeIds:
7979
; PARSER_CGS_CSI-NEXT: [ 7854600665770582568 ] }
8080

8181
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

llvm/test/CodeGen/Mips/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple=mips-linux-gnu < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/RISCV/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; RUN: llc --call-graph-section -mtriple riscv64 < %s -stop-after=finalize-isel -o - | FileCheck %s
77
; RUN: llc --call-graph-section -mtriple riscv32 < %s -stop-after=finalize-isel -o - | FileCheck %s
88

9-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
9+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
1010
entry:
1111
; CHECK: callSites:
1212
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/X86/call-graph-section-tailcall.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
;; Tests that we store the type identifiers in .callgraph section of the object file for tailcalls.
22

3-
; RUN: llc --call-graph-section -filetype=obj -o - < %s | \
3+
; RUN: llc -mtriple=x86_64-unknown-linux --call-graph-section -filetype=obj -o - < %s | \
44
; RUN: llvm-readelf -x .callgraph - | FileCheck %s
55

6-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
6+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
77
entry:
88
%call = tail call noundef i32 %func(i8 noundef signext %x), !callee_type !1
99
ret i32 %call

llvm/test/CodeGen/X86/call-graph-section.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;; Tests that we store the type identifiers in .callgraph section of the object file.
22

3-
; RUN: llc --call-graph-section -filetype=obj -o - < %s | \
3+
; RUN: llc -mtriple=x86_64-unknown-linux --call-graph-section -filetype=obj -o - < %s | \
44
; RUN: llvm-readelf -x .callgraph - | FileCheck %s
55

66
declare !type !0 void @foo()

llvm/test/CodeGen/X86/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple=x86_64-unknown-linux < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

0 commit comments

Comments
 (0)