CIRCT  20.0.0git
Functions
LLHD.h File Reference
#include "mlir-c/IR.h"
Include dependency graph for LLHD.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ llhdAttrIsATimeAttr()

MLIR_CAPI_EXPORTED bool llhdAttrIsATimeAttr ( MlirAttribute  attr)

Check if an attribute is a time attribute.

Definition at line 57 of file LLHD.cpp.

References unwrap().

◆ llhdPointerTypeGet()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED MlirType llhdPointerTypeGetElementType ( MlirType  type)

Get the inner type of a pointer.

Definition at line 48 of file LLHD.cpp.

References unwrap(), and wrap().

◆ llhdSignalTypeGet()

MLIR_CAPI_EXPORTED MlirType llhdSignalTypeGet ( MlirType  element)

Create a signal type.

◆ llhdSignalTypeGetElementType()

MLIR_CAPI_EXPORTED MlirType llhdSignalTypeGetElementType ( MlirType  )

Get the inner type of a signal.

◆ llhdTimeAttrGet()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED uint64_t llhdTimeAttrGetDelta ( MlirAttribute  attr)

Get the delta component of a time attribute.

Definition at line 80 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetEpsilon()

MLIR_CAPI_EXPORTED uint64_t llhdTimeAttrGetEpsilon ( MlirAttribute  attr)

Get the epsilon component of a time attribute.

Definition at line 85 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetSeconds()

MLIR_CAPI_EXPORTED uint64_t llhdTimeAttrGetSeconds ( MlirAttribute  attr)

Get the seconds component of a time attribute.

Definition at line 75 of file LLHD.cpp.

References unwrap().

◆ llhdTimeAttrGetTimeUnit()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED 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()

MLIR_CAPI_EXPORTED bool llhdTypeIsAPointerType ( MlirType  type)

Check if a type is a pointer type.

Definition at line 33 of file LLHD.cpp.

References unwrap().

◆ llhdTypeIsASignalType()

MLIR_CAPI_EXPORTED bool llhdTypeIsASignalType ( MlirType  )

Check if a type is a signal type.

◆ llhdTypeIsATimeType()

MLIR_CAPI_EXPORTED bool llhdTypeIsATimeType ( MlirType  type)

Check if a type is a time type.

Definition at line 30 of file LLHD.cpp.

References unwrap().

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( LLHD  ,
llhd   
)