CIRCT  20.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 llhdTypeIsAPointerType (MlirType type)
 Check if a type is a pointer type. More...
 
MlirType llhdTimeTypeGet (MlirContext ctx)
 Create a time type. More...
 
MlirType llhdPointerTypeGet (MlirType element)
 Create a pointer type. 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 57 of file LLHD.cpp.

References unwrap().

◆ llhdPointerTypeGet()

MlirType llhdPointerTypeGet ( MlirType  element)

Create a pointer type.

Definition at line 43 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 48 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 62 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 80 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetEpsilon()

uint64_t llhdTimeAttrGetEpsilon ( MlirAttribute  attr)

Get the epsilon component of a time attribute.

Definition at line 85 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetSeconds()

uint64_t llhdTimeAttrGetSeconds ( MlirAttribute  attr)

Get the seconds component of a time attribute.

Definition at line 75 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetTimeUnit()

MlirStringRef llhdTimeAttrGetTimeUnit ( MlirAttribute  attr)

Get the time unit of a time attribute.

Definition at line 70 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdTimeTypeGet()

MlirType llhdTimeTypeGet ( MlirContext  ctx)

Create a time type.

Definition at line 38 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 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().