[llvm] [DirectX] Set shader feature flags MinimumPrecision and NativeLowPrecision, and refactor the logic for setting low-precision-related flags (PR #139623)

Deric C. via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 16:57:04 PDT 2025


================
@@ -91,7 +91,10 @@ struct ModuleShaderFlags {
   const ComputedShaderFlags &getCombinedFlags() const { return CombinedSFMask; }
 
 private:
-  bool CanSetResMayNotAlias;
+  // Booleans set by module flags
+  bool CanSetResMayNotAlias;   // dx.resmayalias
+  bool NativeLowPrecisionMode; // dx.nativelowprec
----------------
Icohedron wrote:

I think `CanSetNativeLowPrecisionMode` would make more sense

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


More information about the llvm-commits mailing list