mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 02:23:19 +02:00
Internals: Rename isInoutish
This commit is contained in:
+3
-3
@@ -535,7 +535,7 @@ string AstVar::vlEnumType() const {
|
||||
|
||||
string AstVar::vlEnumDir() const {
|
||||
string out;
|
||||
if (isInoutish()) {
|
||||
if (isInout()) {
|
||||
out = "VLVD_INOUT";
|
||||
} else if (isWritable()) {
|
||||
out = "VLVD_OUT";
|
||||
@@ -2448,7 +2448,7 @@ int AstVarRef::instrCount() const {
|
||||
void AstVar::dump(std::ostream& str) const {
|
||||
this->AstNode::dump(str);
|
||||
if (isSc()) str << " [SC]";
|
||||
if (isPrimaryIO()) str << (isInoutish() ? " [PIO]" : (isWritable() ? " [PO]" : " [PI]"));
|
||||
if (isPrimaryIO()) str << (isInout() ? " [PIO]" : (isWritable() ? " [PO]" : " [PI]"));
|
||||
if (isIO()) str << " " << direction().ascii();
|
||||
if (isConst()) str << " [CONST]";
|
||||
if (isPullup()) str << " [PULLUP]";
|
||||
@@ -2649,7 +2649,7 @@ bool AstNodeFTask::getPurityRecurse() const {
|
||||
// or any write reference to a variable that isn't an automatic function local.
|
||||
for (AstNode* stmtp = this->stmtsp(); stmtp; stmtp = stmtp->nextp()) {
|
||||
if (const AstVar* const varp = VN_CAST(stmtp, Var)) {
|
||||
if (varp->isInoutish() || varp->isRef()) return false;
|
||||
if (varp->isInoutOrRef()) return false;
|
||||
}
|
||||
if (!stmtp->isPure()) return false;
|
||||
if (stmtp->exists([](const AstNodeVarRef* const varrefp) {
|
||||
|
||||
Reference in New Issue
Block a user