CIRCT 24.0.0git
Loading...
Searching...
No Matches
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()

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()

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 54 of file SimTypes.cpp.

References isCallOperandDir().

Referenced by isCallOperandDir().

◆ operator==()

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

◆ 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 28 of file SimTypes.cpp.

References stringifyDPIDirectionKeyword().

Referenced by stringifyDPIDirectionKeyword().