Internals: Add AstNodeStmt.h (#6295)

Move AstNodeStmt and all its subtypes into AstNodeStmt.h.

This is the first step for #6280.

No functional change
This commit is contained in:
Geza Lore 2025-08-16 09:46:18 +01:00 committed by GitHub
parent 6f69c990fd
commit a300bfc538
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 1428 additions and 1391 deletions

View File

@ -48,6 +48,7 @@ set(HEADERS
V3AstNodeDType.h
V3AstNodeExpr.h
V3AstNodeOther.h
V3AstNodeStmt.h
V3AstUserAllocator.h
V3Begin.h
V3Branch.h
@ -372,8 +373,8 @@ add_custom_command(
COMMAND ${PYTHON3}
ARGS
${ASTGEN} -I "${srcdir}" --astdef V3AstNodeDType.h --astdef
V3AstNodeExpr.h --astdef V3AstNodeOther.h --dfgdef V3DfgVertices.h
--classes
V3AstNodeExpr.h --astdef V3AstNodeOther.h --astdef V3AstNodeStmt.h
--dfgdef V3DfgVertices.h --classes
)
list(
APPEND
@ -485,8 +486,8 @@ foreach(astgen_name ${ASTGENERATED_NAMES})
COMMAND ${PYTHON3}
ARGS
${ASTGEN} -I "${srcdir}" --astdef V3AstNodeDType.h --astdef
V3AstNodeExpr.h --astdef V3AstNodeOther.h --dfgdef V3DfgVertices.h
${astgen_name}.cpp
V3AstNodeExpr.h --astdef V3AstNodeOther.h --astdef V3AstNodeStmt.h
--dfgdef V3DfgVertices.h ${astgen_name}.cpp
)
list(APPEND GENERATED_FILES ${astgen_name}__gen.cpp)
endforeach()

View File

@ -331,6 +331,7 @@ NON_STANDALONE_HEADERS = \
V3AstNodeDType.h \
V3AstNodeExpr.h \
V3AstNodeOther.h \
V3AstNodeStmt.h \
V3DfgVertices.h \
V3ThreadPool.h \
V3WidthRemove.h \
@ -339,6 +340,7 @@ AST_DEFS := \
V3AstNodeDType.h \
V3AstNodeExpr.h \
V3AstNodeOther.h \
V3AstNodeStmt.h \
DFG_DEFS := \
V3DfgVertices.h

View File

@ -3153,6 +3153,7 @@ AstNode* VNVisitor::iterateSubtreeReturnEdits(AstNode* nodep) {
#include "V3AstNodeDType.h"
#include "V3AstNodeExpr.h"
#include "V3AstNodeOther.h"
#include "V3AstNodeStmt.h"
// Inline function definitions need to go last
#include "V3AstInlines.h"

File diff suppressed because it is too large Load Diff

1420
src/V3AstNodeStmt.h Normal file

File diff suppressed because it is too large Load Diff