mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Add user#Or functions. No functional change.
This commit is contained in:
+1
-1
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user