CIRCT 22.0.0git
Loading...
Searching...
No Matches
Functions
Structure.cpp File Reference
#include "ImportVerilogInternals.h"
#include "slang/ast/Compilation.h"
#include "slang/ast/symbols/ClassSymbols.h"
#include "llvm/ADT/ScopeExit.h"
Include dependency graph for Structure.cpp:

Go to the source code of this file.

Functions

static void guessNamespacePrefix (const slang::ast::Symbol &symbol, SmallString< 64 > &prefix)
 
static moore::ProcedureKind convertProcedureKind (slang::ast::ProceduralBlockKind kind)
 
static moore::NetKind convertNetKind (slang::ast::NetType::NetKind kind)
 
static LogicalResult rewriteCallSitesToPassCaptures (mlir::func::FuncOp callee, ArrayRef< Value > captures)
 Special case handling for recursive functions with captures; this function fixes the in-body call of the recursive function with the captured arguments.
 

Function Documentation

◆ convertNetKind()

static moore::NetKind convertNetKind ( slang::ast::NetType::NetKind  kind)
static

Definition at line 208 of file Structure.cpp.

◆ convertProcedureKind()

static moore::ProcedureKind convertProcedureKind ( slang::ast::ProceduralBlockKind  kind)
static

Definition at line 190 of file Structure.cpp.

◆ guessNamespacePrefix()

static void guessNamespacePrefix ( const slang::ast::Symbol &  symbol,
SmallString< 64 > &  prefix 
)
static

◆ rewriteCallSitesToPassCaptures()

static LogicalResult rewriteCallSitesToPassCaptures ( mlir::func::FuncOp  callee,
ArrayRef< Value >  captures 
)
static

Special case handling for recursive functions with captures; this function fixes the in-body call of the recursive function with the captured arguments.

Definition at line 1112 of file Structure.cpp.

Referenced by circt::ImportVerilog::Context::convertFunction().