[llvm] Add Instruction selection support for x87 ld/st (PR #97016)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 05:02:49 PDT 2024


================
@@ -1503,14 +1521,15 @@ bool X86InstructionSelector::materializeFP(MachineInstr &I,
   const Register DstReg = I.getOperand(0).getReg();
   const LLT DstTy = MRI.getType(DstReg);
   const RegisterBank &RegBank = *RBI.getRegBank(DstReg, MRI, TRI);
-  Align Alignment = Align(DstTy.getSizeInBytes());
+  // Create the load from the constant pool.
+  const ConstantFP *CFP = I.getOperand(1).getFPImm();
+  const auto &DataLayout = MF.getDataLayout();
----------------
arsenm wrote:

Usual convention call this DL, I dislike the shadowing of the type name (and last I checked lldb still struggled with this) 

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


More information about the llvm-commits mailing list