[llvm] [AArch64][GlobalISel] Add `G_FMODF` instruction (PR #160061)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 03:57:32 PDT 2025


================
@@ -702,6 +704,46 @@ LegalizerHelper::LegalizeResult LegalizerHelper::emitSincosLibcall(
   return LegalizerHelper::Legalized;
 }
 
+LegalizerHelper::LegalizeResult
+LegalizerHelper::emitModfLibcall(MachineInstr &MI, MachineIRBuilder &MIRBuilder,
+                                 unsigned Size, Type *OpType,
+                                 LostDebugLocObserver &LocObserver) {
+  MachineFunction &MF = *MI.getMF();
----------------
arsenm wrote:

The MIRBuilder is the home of the context you're working in. Getting it through the MachineInstr is more levels of indirection, it has to query the parent block and then the block's parent 

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


More information about the llvm-commits mailing list