CIRCT 22.0.0git
Loading...
Searching...
No Matches
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.
 
bool llhdTypeIsARefType (MlirType type)
 Check if a type is a reference type.
 
MlirType llhdTimeTypeGet (MlirContext ctx)
 Create a time type.
 
MlirType llhdRefTypeGet (MlirType element)
 Create a reference type.
 
MlirType llhdRefTypeGetNestedType (MlirType type)
 Get the inner type of a reference.
 
bool llhdAttrIsATimeAttr (MlirAttribute attr)
 Check if an attribute is a time attribute.
 
MlirAttribute llhdTimeAttrGet (MlirContext ctx, MlirStringRef timeUnit, uint64_t seconds, uint64_t delta, uint64_t epsilon)
 Create a time attribute.
 
MlirStringRef llhdTimeAttrGetTimeUnit (MlirAttribute attr)
 Get the time unit of a time attribute.
 
uint64_t llhdTimeAttrGetSeconds (MlirAttribute attr)
 Get the seconds component of a time attribute.
 
uint64_t llhdTimeAttrGetDelta (MlirAttribute attr)
 Get the delta component of a time attribute.
 
uint64_t llhdTimeAttrGetEpsilon (MlirAttribute attr)
 Get the epsilon component of a time attribute.
 

Function Documentation

◆ llhdAttrIsATimeAttr()

bool llhdAttrIsATimeAttr ( MlirAttribute  attr)

Check if an attribute is a time attribute.

Definition at line 55 of file LLHD.cpp.

References unwrap().

◆ llhdRefTypeGet()

MlirType llhdRefTypeGet ( MlirType  element)

Create a reference type.

Definition at line 41 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdRefTypeGetNestedType()

MlirType llhdRefTypeGetNestedType ( MlirType  type)

Get the inner type of a reference.

Definition at line 46 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 60 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdTimeAttrGetDelta()

uint64_t llhdTimeAttrGetDelta ( MlirAttribute  attr)

Get the delta component of a time attribute.

Definition at line 78 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetEpsilon()

uint64_t llhdTimeAttrGetEpsilon ( MlirAttribute  attr)

Get the epsilon component of a time attribute.

Definition at line 83 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetSeconds()

uint64_t llhdTimeAttrGetSeconds ( MlirAttribute  attr)

Get the seconds component of a time attribute.

Definition at line 73 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetTimeUnit()

MlirStringRef llhdTimeAttrGetTimeUnit ( MlirAttribute  attr)

Get the time unit of a time attribute.

Definition at line 68 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdTimeTypeGet()

MlirType llhdTimeTypeGet ( MlirContext  ctx)

Create a time type.

Definition at line 36 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdTypeIsARefType()

bool llhdTypeIsARefType ( MlirType  type)

Check if a type is a reference 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().