[llvm] [IR] Store fast-math flags in subclasses of Instruction (PR #191190)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 01:09:07 PDT 2026


================
@@ -201,6 +201,9 @@ class FPMathOperator : public Operator {
 private:
   friend class Instruction;
 
+  unsigned short &getFMFValue();
+  unsigned short getFMFValue() const;
----------------
aengelke wrote:

How is this different from getFastMathFlags? Could be called getFastMathFlagsImpl or similar? Also these should be LLVM_READONLY.

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


More information about the llvm-commits mailing list