[llvm] [IR] Add disjoint flag for Or instructions. (PR #72583)

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 10:35:47 PST 2023


================
@@ -448,6 +448,11 @@ class Instruction : public User,
   /// which supports this flag. See LangRef.html for the meaning of this flag.
   void setIsExact(bool b = true);
 
+  /// Set or clear the disjoint flag on this instruction, which must be an
+  /// operator which supports this flag. See LangRef.html for the meaning of
+  /// this flag.
+  void setIsDisjoint(bool b = true);
----------------
nhaehnle wrote:

Mirroring a remark on https://github.com/llvm/llvm-project/pull/72501: Perhaps this method should only exist on `PossiblyDisjointInst`? (and same for `isDisjoint` below)

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


More information about the llvm-commits mailing list