[llvm-branch-commits] [llvm] [amdgpu-cfi: 4/9]: [AMDGPU] Emit entry function Dwarf CFI (PR #183152)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 6 02:42:45 PDT 2026


================
@@ -2187,3 +2212,15 @@ bool SIFrameLowering::requiresStackPointerReference(
   // references the SP, like variable sized stack objects.
   return frameTriviallyRequiresSP(MFI);
 }
+
+MachineInstr *SIFrameLowering::buildCFI(MachineBasicBlock &MBB,
+                                        MachineBasicBlock::iterator MBBI,
+                                        const DebugLoc &DL,
+                                        const MCCFIInstruction &CFIInst,
+                                        MachineInstr::MIFlag flag) const {
+  MachineFunction &MF = *MBB.getParent();
+  const SIInstrInfo *TII = MF.getSubtarget<GCNSubtarget>().getInstrInfo();
----------------
arsenm wrote:

Either/or. Probably should be the target specific instance in the target subclasses 

https://github.com/llvm/llvm-project/pull/183152


More information about the llvm-branch-commits mailing list