|
CIRCT 23.0.0git
|
#include "ImportVerilogInternals.h"#include "slang/ast/Compilation.h"#include "slang/ast/symbols/ClassSymbols.h"#include "slang/ast/symbols/MemberSymbols.h"#include "slang/syntax/AllSyntax.h"#include "slang/syntax/SyntaxVisitor.h"#include "llvm/ADT/STLFunctionalExtras.h"#include "llvm/ADT/ScopeExit.h"
Go to the source code of this file.
Functions | |
| static void | recordDPIExportDirectives (Context &context, const slang::ast::Scope &scope, const slang::syntax::SyntaxNode *syntax) |
Record export "DPI-C" directives in the given scope so that callable declarations can be tagged with the exported C name. | |
| 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 FunctionType | getFunctionSignature (Context &context, const slang::ast::SubroutineSymbol &subroutine, ArrayRef< Type > prefixParams, ArrayRef< Type > suffixParams={}) |
| Helper function to generate the function signature from a SubroutineSymbol and optional extra arguments (used for this argument) | |
| static FailureOr< SmallVector< moore::DPIArgInfo > > | getDPISignature (Context &context, const slang::ast::SubroutineSymbol &subroutine) |
Variables | |
| static constexpr StringLiteral | dpiExportAttrName = "circt.dpi.export" |
|
static |
Definition at line 265 of file Structure.cpp.
|
static |
Definition at line 247 of file Structure.cpp.
|
static |
Definition at line 1818 of file Structure.cpp.
References context.
Referenced by circt::ImportVerilog::Context::declareCallableImpl().
|
static |
Helper function to generate the function signature from a SubroutineSymbol and optional extra arguments (used for this argument)
Definition at line 1783 of file Structure.cpp.
Referenced by circt::ImportVerilog::Context::declareCallableImpl().
|
static |
Definition at line 60 of file Structure.cpp.
References guessNamespacePrefix().
Referenced by circt::ImportVerilog::Context::convertGlobalVariable(), circt::ImportVerilog::Context::declareFunction(), and guessNamespacePrefix().
|
static |
Record export "DPI-C" directives in the given scope so that callable declarations can be tagged with the exported C name.
Slang resolves the directives during elaboration but does not expose them on the subroutine symbols themselves, so walk the scope's syntax to recover them.
Definition at line 31 of file Structure.cpp.
References context.
Referenced by circt::ImportVerilog::Context::convertCompilation(), circt::ImportVerilog::Context::convertModuleBody(), and circt::ImportVerilog::Context::convertPackage().
|
staticconstexpr |
Definition at line 21 of file Structure.cpp.
Referenced by circt::ImportVerilog::Context::declareCallableImpl().