[llvm-branch-commits] [llvm] CodeGen: Remove UsesMSVCFloatingPoint from MachineModuleInfo (PR #100368)

Reid Kleckner via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 24 09:41:32 PDT 2024


================
@@ -975,6 +976,28 @@ static void emitNonLazyStubs(MachineModuleInfo *MMI, MCStreamer &OutStreamer) {
   }
 }
 
+/// True if this module is being built for windows/msvc, and uses floating
+/// point.  This is used to emit an undefined reference to _fltused.
----------------
rnk wrote:

Please add a FIXME or TODO about computing this from MIR instead of the IR, and include some context about how this is used in Windows kernel or driver contexts to find and prevent code from modifying non-GPR registers.

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


More information about the llvm-branch-commits mailing list