[llvm] [WIP]AMDGPU/GlobalISel: Gracefully report regbanklegalize errors (PR #169511)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 08:50:03 PST 2025


================
@@ -27,11 +30,14 @@ namespace AMDGPU {
 // to replace instruction. In other case InstApplyMethod will create new
 // instruction(s).
 class RegBankLegalizeHelper {
+  MachineFunction &MF;
   const GCNSubtarget &ST;
   MachineIRBuilder &B;
   MachineRegisterInfo &MRI;
   const MachineUniformityInfo &MUI;
   const RegisterBankInfo &RBI;
+  const TargetPassConfig &TPC;
----------------
petar-avramovic wrote:

There is a // FIXME: Eliminate dependency on TargetPassConfig for NewPM transition
what should I do here then, write reportGISelFailure without TPC argument?

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


More information about the llvm-commits mailing list