CIRCT 23.0.0git
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
circt::sim Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  DPIArgument
 A single argument in a DPI function type. More...
 

Functions

static mlir::Value getFormattedValue (mlir::Operation *fmtOp)
 Returns the value operand of a value formatting operation.
 
llvm::StringRef stringifyDPIDirectionKeyword (DPIDirection dir)
 Return the keyword string for a DPIDirection (e.g. "in", "return").
 
std::optional< DPIDirection > parseDPIDirectionKeyword (llvm::StringRef keyword)
 Parse a keyword string to a DPIDirection. Returns std::nullopt on failure.
 
bool isCallOperandDir (DPIDirection dir)
 True if an argument with this direction is a call operand (input/inout/ref).
 
static bool operator== (const DPIArgument &a, const DPIArgument &b)
 
static llvm::hash_code hash_value (const DPIArgument &arg)
 

Function Documentation

◆ getFormattedValue()

static mlir::Value circt::sim::getFormattedValue ( mlir::Operation *  fmtOp)
inlinestatic

Returns the value operand of a value formatting operation.

Returns a null value for all other operations.

Definition at line 42 of file SimOps.h.

◆ hash_value()

static llvm::hash_code circt::sim::hash_value ( const DPIArgument arg)
inlinestatic

◆ isCallOperandDir()

bool circt::sim::isCallOperandDir ( DPIDirection  dir)

True if an argument with this direction is a call operand (input/inout/ref).

Definition at line 53 of file SimTypes.cpp.

◆ operator==()

static bool circt::sim::operator== ( const DPIArgument a,
const DPIArgument b 
)
inlinestatic

Definition at line 43 of file SimTypes.h.

◆ parseDPIDirectionKeyword()

std::optional< DPIDirection > circt::sim::parseDPIDirectionKeyword ( llvm::StringRef  keyword)

Parse a keyword string to a DPIDirection. Returns std::nullopt on failure.

◆ stringifyDPIDirectionKeyword()

StringRef circt::sim::stringifyDPIDirectionKeyword ( DPIDirection  dir)

Return the keyword string for a DPIDirection (e.g. "in", "return").

Definition at line 27 of file SimTypes.cpp.