[llvm] [X86][GlobalISel] Support globals in pic mode (PR #170038)

Evgenii Kudriashov via llvm-commits llvm-commits at lists.llvm.org
Sun May 3 05:45:41 PDT 2026


================
@@ -997,6 +1001,33 @@ bool X86LegalizerInfo::legalizeSETROUNDING(MachineInstr &MI,
   return true;
 }
 
+bool X86LegalizerInfo::legalizeGLOBAL_VALUE(MachineInstr &MI,
+                                            MachineRegisterInfo &MRI,
+                                            LegalizerHelper &Helper) const {
+  auto GV = MI.getOperand(1).getGlobal();
----------------
e-kud wrote:

Fixed all autos.

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


More information about the llvm-commits mailing list