[llvm] [AMDGPU] Handled G_UBSANTRAP GlobalIsel (PR #134492)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 19:49:07 PDT 2025
================
@@ -7023,22 +7025,26 @@ bool AMDGPULegalizerInfo::legalizeTrapHsa(MachineInstr &MI,
return true;
}
-bool AMDGPULegalizerInfo::legalizeDebugTrap(MachineInstr &MI,
- MachineRegisterInfo &MRI,
- MachineIRBuilder &B) const {
+bool AMDGPULegalizerInfo::legalizeDebugUbsanTrap(MachineInstr &MI,
+ MachineRegisterInfo &MRI,
+ MachineIRBuilder &B,
+ unsigned int Opcode) const {
// Is non-HSA path or trap-handler disabled? Then, report a warning
// accordingly
if (!ST.isTrapHandlerEnabled() ||
ST.getTrapHandlerAbi() != GCNSubtarget::TrapHandlerAbi::AMDHSA) {
- DiagnosticInfoUnsupported NoTrap(B.getMF().getFunction(),
- "debugtrap handler not supported",
- MI.getDebugLoc(), DS_Warning);
+ DiagnosticInfoUnsupported NoTrap(
+ B.getMF().getFunction(), "debugtrap/ubsantrap handler not supported",
----------------
arsenm wrote:
```suggestion
B.getMF().getFunction(), "trap handler not supported",
```
https://github.com/llvm/llvm-project/pull/134492
More information about the llvm-commits
mailing list