Internals: Add user#Or functions. No functional change.

This commit is contained in:
Wilson Snyder
2026-01-24 18:10:59 -05:00
parent 4ff57514c8
commit ad5005f8f5
3 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ enum PropagationType : uint8_t {
};
// Add timing flag to a node
static void addFlags(AstNode* const nodep, uint8_t flags) { nodep->user2(nodep->user2() | flags); }
static void addFlags(AstNode* const nodep, uint8_t flags) { nodep->user2Or(flags); }
// Check if a node has ALL of the expected flags set
static bool hasFlags(AstNode* const nodep, uint8_t flags) { return !(~nodep->user2() & flags); }