[llvm] [IR] Add zext nneg flag (PR #67982)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 14:24:21 PDT 2023


================
@@ -692,6 +692,20 @@ class CastInst : public UnaryInstruction {
   }
 };
 
+/// Instruction that can have a nneg flag (only zext).
+class NonNegInstruction : public CastInst {
----------------
goldsteinn wrote:

Agreed, I would go with `PossiblyNonNegInstruction`. Think with that name (since its so explicitly a query) the `CastInst` isn't so important.

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


More information about the llvm-commits mailing list