CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::hw::HWModulePortAccessor Class Reference

#include <HWOps.h>

Collaboration diagram for circt::hw::HWModulePortAccessor:

Public Member Functions

 HWModulePortAccessor (Location loc, const ModulePortInfo &info, Region &bodyRegion)
Value getInput (unsigned i)
Value getInput (StringRef name)
ValueRange getInputs ()
void setOutput (unsigned i, Value v)
void setOutput (StringRef name, Value v)
const ModulePortInfo & getPortList () const
const llvm::SmallVector< Value > & getOutputOperands () const

Private Attributes

llvm::StringMap< unsigned > inputIdx
llvm::StringMap< unsigned > outputIdx
llvm::SmallVector< Value > inputArgs
llvm::SmallVector< Value > outputOperands
ModulePortInfo info

Detailed Description

Definition at line 97 of file HWOps.h.

Constructor & Destructor Documentation

◆ HWModulePortAccessor()

HWModulePortAccessor::HWModulePortAccessor ( Location loc,
const ModulePortInfo & info,
Region & bodyRegion )

Definition at line 223 of file HWOps.cpp.

References info, inputArgs, and outputOperands.

Member Function Documentation

◆ getInput() [1/2]

Value HWModulePortAccessor::getInput ( StringRef name)

Definition at line 249 of file HWOps.cpp.

References getInput(), and inputIdx.

◆ getInput() [2/2]

Value HWModulePortAccessor::getInput ( unsigned i)

Definition at line 245 of file HWOps.cpp.

References assert(), and inputArgs.

Referenced by getInput().

◆ getInputs()

ValueRange circt::hw::HWModulePortAccessor::getInputs ( )
inline

Definition at line 106 of file HWOps.h.

References inputArgs.

◆ getOutputOperands()

const llvm::SmallVector< Value > & circt::hw::HWModulePortAccessor::getOutputOperands ( ) const
inline

Definition at line 113 of file HWOps.h.

References outputOperands.

◆ getPortList()

const ModulePortInfo & circt::hw::HWModulePortAccessor::getPortList ( ) const
inline

Definition at line 112 of file HWOps.h.

References info.

◆ setOutput() [1/2]

void HWModulePortAccessor::setOutput ( StringRef name,
Value v )

Definition at line 252 of file HWOps.cpp.

References outputIdx, and setOutput().

◆ setOutput() [2/2]

void HWModulePortAccessor::setOutput ( unsigned i,
Value v )

Definition at line 239 of file HWOps.cpp.

References assert(), and outputOperands.

Referenced by setOutput().

Member Data Documentation

◆ info

ModulePortInfo circt::hw::HWModulePortAccessor::info
private

Definition at line 121 of file HWOps.h.

Referenced by getPortList(), and HWModulePortAccessor().

◆ inputArgs

llvm::SmallVector<Value> circt::hw::HWModulePortAccessor::inputArgs
private

Definition at line 119 of file HWOps.h.

Referenced by getInput(), getInputs(), and HWModulePortAccessor().

◆ inputIdx

llvm::StringMap<unsigned> circt::hw::HWModulePortAccessor::inputIdx
private

Definition at line 118 of file HWOps.h.

Referenced by getInput().

◆ outputIdx

llvm::StringMap<unsigned> circt::hw::HWModulePortAccessor::outputIdx
private

Definition at line 118 of file HWOps.h.

Referenced by setOutput().

◆ outputOperands

llvm::SmallVector<Value> circt::hw::HWModulePortAccessor::outputOperands
private

Definition at line 120 of file HWOps.h.

Referenced by getOutputOperands(), HWModulePortAccessor(), and setOutput().


The documentation for this class was generated from the following files: