CIRCT 21.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
circt::scheduling::Problem::ResourceType Struct Reference

Resource types are distinguished by name (chosen by the client). More...

#include <Problems.h>

Collaboration diagram for circt::scheduling::Problem::ResourceType:
Collaboration graph
[legend]

Public Member Functions

 ResourceType ()=default
 
 ResourceType (mlir::StringAttr attr)
 
mlir::StringAttr getAttr () const
 
mlir::StringRef getValue () const
 
std::string str () const
 
bool operator!= (const ResourceType &rhs) const
 

Static Public Member Functions

static ResourceType get (mlir::MLIRContext *ctx, llvm::StringRef name)
 

Public Attributes

mlir::StringAttr attr
 

Friends

bool operator== (const ResourceType &lhs, const ResourceType &rhs)
 

Detailed Description

Resource types are distinguished by name (chosen by the client).

Definition at line 120 of file Problems.h.

Constructor & Destructor Documentation

◆ ResourceType() [1/2]

circt::scheduling::Problem::ResourceType::ResourceType ( )
default

◆ ResourceType() [2/2]

circt::scheduling::Problem::ResourceType::ResourceType ( mlir::StringAttr  attr)
inline

Definition at line 124 of file Problems.h.

Member Function Documentation

◆ get()

static ResourceType circt::scheduling::Problem::ResourceType::get ( mlir::MLIRContext *  ctx,
llvm::StringRef  name 
)
inlinestatic

◆ getAttr()

mlir::StringAttr circt::scheduling::Problem::ResourceType::getAttr ( ) const
inline

Definition at line 130 of file Problems.h.

References attr.

Referenced by circt::scheduling::scheduleCPSAT().

◆ getValue()

mlir::StringRef circt::scheduling::Problem::ResourceType::getValue ( ) const
inline

◆ operator!=()

bool circt::scheduling::Problem::ResourceType::operator!= ( const ResourceType rhs) const
inline

Definition at line 139 of file Problems.h.

◆ str()

std::string circt::scheduling::Problem::ResourceType::str ( ) const
inline

Definition at line 134 of file Problems.h.

References attr.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const ResourceType lhs,
const ResourceType rhs 
)
friend

Definition at line 136 of file Problems.h.

Member Data Documentation

◆ attr

mlir::StringAttr circt::scheduling::Problem::ResourceType::attr

The documentation for this struct was generated from the following file: