[llvm] [IR] PossiblyExactOperator -> PossiblyExactInst (NFC) (PR #72501)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 02:41:59 PST 2023


================
@@ -706,6 +706,26 @@ class PossiblyNonNegInst : public CastInst {
   }
 };
 
+/// A div or shr instruction, which can be marked as "exact",
+/// indicating that no bits are destroyed.
+class PossiblyExactInst : public BinaryOperator {
----------------
nikic wrote:

This does make me wonder if I should just keep the old PossiblyExactOperator name and only do the hierarchy change. In that case "Operator" would now refer to "BinaryOperator" rather than "Instruction or ConstExpr". I've always found the overloaded use of this term confusing.

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


More information about the llvm-commits mailing list