[llvm] [AMDGPU] Handled G_UBSANTRAP GlobalIsel (PR #134492)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 01:23:13 PDT 2025
================
@@ -7045,6 +7047,28 @@ bool AMDGPULegalizerInfo::legalizeDebugTrap(MachineInstr &MI,
return true;
}
+bool AMDGPULegalizerInfo::legalizeUbsanTrap(MachineInstr &MI,
+ MachineRegisterInfo &MRI,
+ MachineIRBuilder &B) const {
----------------
Pierre-vh wrote:
Yes, you can just rename that function above to "legalizeDebugUbsanTrap" and select the TrapID based on the opcode. The warning can also just say "debugtrap/ubsantrap handler not supported".
https://github.com/llvm/llvm-project/pull/134492
More information about the llvm-commits
mailing list