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

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

Referenced by get(), operator!=(), and operator==.

◆ ResourceType() [2/2]

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

Definition at line 124 of file Problems.h.

References attr.

Member Function Documentation

◆ get()

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.

References ResourceType().

◆ str()

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

Definition at line 134 of file Problems.h.

References attr.

◆ operator==

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

Definition at line 136 of file Problems.h.

References attr, and ResourceType().

Member Data Documentation

◆ attr


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