Emit: Factor out parts needed for emitting an AstCFunc

Factored out bits from V3EmitC.cpp that is required to emit a whole
(non-trace) AstCFunc. This is mostly what used to be the EmitCStmts
class plus relevant bits from EmitCImp. These now live in EmitCFunc,
which is reusable by anything that needs to emit a regular AstCFunc
(differences in tracing to be addressed later). EmitCImp now extends
EmitCFunc instead of EmitCStmts. No functional change intended.
This commit is contained in:
Geza Lore 2021-06-24 17:35:12 +01:00
parent bbbee8b89e
commit c6f6dab413
4 changed files with 2425 additions and 2370 deletions

View File

@ -182,6 +182,7 @@ RAW_OBJS = \
V3EmitC.o \
V3EmitCBase.o \
V3EmitCConstPool.o \
V3EmitCFunc.o \
V3EmitCInlines.o \
V3EmitCSyms.o \
V3EmitCMake.o \

File diff suppressed because it is too large Load Diff

1091
src/V3EmitCFunc.cpp Normal file

File diff suppressed because it is too large Load Diff

1258
src/V3EmitCFunc.h Normal file

File diff suppressed because it is too large Load Diff