CIRCT  19.0.0git
Functions
LLHD.cpp File Reference
#include "circt-c/Dialect/LLHD.h"
#include "circt/Dialect/LLHD/IR/LLHDDialect.h"
#include "circt/Dialect/LLHD/IR/LLHDTypes.h"
#include "mlir/CAPI/IR.h"
#include "mlir/CAPI/Registration.h"
#include "mlir/CAPI/Support.h"
Include dependency graph for LLHD.cpp:

Go to the source code of this file.

Functions

bool llhdTypeIsATimeType (MlirType type)
 Check if a type is a time type. More...
 
bool llhdTypeIsASignalType (MlirType type)
 Check if a type is a signal type. More...
 
bool llhdTypeIsAPointerType (MlirType type)
 Check if a type is a pointer type. More...
 
MlirType llhdTimeTypeGet (MlirContext ctx)
 Create a time type. More...
 
MlirType llhdSignalTypeGet (MlirType element)
 Create a signal type. More...
 
MlirType llhdPointerTypeGet (MlirType element)
 Create a pointer type. More...
 
MlirType llhdSignalTypeGetElementType (MlirType type)
 Get the inner type of a signal. More...
 
MlirType llhdPointerTypeGetElementType (MlirType type)
 Get the inner type of a pointer. More...
 
bool llhdAttrIsATimeAttr (MlirAttribute attr)
 Check if an attribute is a time attribute. More...
 
MlirAttribute llhdTimeAttrGet (MlirContext ctx, MlirStringRef timeUnit, uint64_t seconds, uint64_t delta, uint64_t epsilon)
 Create a time attribute. More...
 
MlirStringRef llhdTimeAttrGetTimeUnit (MlirAttribute attr)
 Get the time unit of a time attribute. More...
 
uint64_t llhdTimeAttrGetSeconds (MlirAttribute attr)
 Get the seconds component of a time attribute. More...
 
uint64_t llhdTimeAttrGetDelta (MlirAttribute attr)
 Get the delta component of a time attribute. More...
 
uint64_t llhdTimeAttrGetEpsilon (MlirAttribute attr)
 Get the epsilon component of a time attribute. More...
 

Function Documentation

◆ llhdAttrIsATimeAttr()

bool llhdAttrIsATimeAttr ( MlirAttribute  attr)

Check if an attribute is a time attribute.

Definition at line 70 of file LLHD.cpp.

References unwrap().

◆ llhdPointerTypeGet()

MlirType llhdPointerTypeGet ( MlirType  element)

Create a pointer type.

Definition at line 51 of file LLHD.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ llhdPointerTypeGetElementType()

MlirType llhdPointerTypeGetElementType ( MlirType  type)

Get the inner type of a pointer.

Definition at line 61 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdSignalTypeGet()

MlirType llhdSignalTypeGet ( MlirType  element)

Create a signal type.

Definition at line 46 of file LLHD.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ llhdSignalTypeGetElementType()

MlirType llhdSignalTypeGetElementType ( MlirType  type)

Get the inner type of a signal.

Definition at line 56 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdTimeAttrGet()

MlirAttribute llhdTimeAttrGet ( MlirContext  ctx,
MlirStringRef  timeUnit,
uint64_t  seconds,
uint64_t  delta,
uint64_t  epsilon 
)

Create a time attribute.

Definition at line 75 of file LLHD.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ llhdTimeAttrGetDelta()

uint64_t llhdTimeAttrGetDelta ( MlirAttribute  attr)

Get the delta component of a time attribute.

Definition at line 93 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetEpsilon()

uint64_t llhdTimeAttrGetEpsilon ( MlirAttribute  attr)

Get the epsilon component of a time attribute.

Definition at line 98 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetSeconds()

uint64_t llhdTimeAttrGetSeconds ( MlirAttribute  attr)

Get the seconds component of a time attribute.

Definition at line 88 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetTimeUnit()

MlirStringRef llhdTimeAttrGetTimeUnit ( MlirAttribute  attr)

Get the time unit of a time attribute.

Definition at line 83 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdTimeTypeGet()

MlirType llhdTimeTypeGet ( MlirContext  ctx)

Create a time type.

Definition at line 41 of file LLHD.cpp.

References circt::calyx::direction::get(), unwrap(), and wrap().

◆ llhdTypeIsAPointerType()

bool llhdTypeIsAPointerType ( MlirType  type)

Check if a type is a pointer type.

Definition at line 36 of file LLHD.cpp.

References unwrap().

◆ llhdTypeIsASignalType()

bool llhdTypeIsASignalType ( MlirType  type)

Check if a type is a signal type.

Definition at line 33 of file LLHD.cpp.

References unwrap().

◆ llhdTypeIsATimeType()

bool llhdTypeIsATimeType ( MlirType  type)

Check if a type is a time type.

Definition at line 30 of file LLHD.cpp.

References unwrap().