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

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 10:19:57 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:

Personally not a fan of `NonNegInstruction` as the name. To me atleast, that seems to imply a lot more coverage than just `zext`.
Maybe a bit more specific `NonNegCastInstruction`?

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


More information about the llvm-commits mailing list