CIRCT 23.0.0git
Loading...
Searching...
No Matches
Functions
Seq.h File Reference
#include "mlir-c/IR.h"
Include dependency graph for Seq.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 (Sequential, seq)
 
MLIR_CAPI_EXPORTED void registerSeqPasses (void)
 
MLIR_CAPI_EXPORTED bool seqTypeIsAClock (MlirType type)
 If the type is an clock type.
 
MLIR_CAPI_EXPORTED MlirType seqClockTypeGet (MlirContext ctx)
 Creates an seq clock type.
 
MLIR_CAPI_EXPORTED bool seqTypeIsAImmutable (MlirType type)
 If the type is an immutable type.
 
MLIR_CAPI_EXPORTED MlirType seqImmutableTypeGet (MlirType type)
 Creates a seq immutable type.
 
MLIR_CAPI_EXPORTED MlirType seqImmutableTypeGetInnerType (MlirType type)
 Creates a seq immutable type.
 
MLIR_CAPI_EXPORTED bool seqTypeIsAHLMem (MlirType type)
 If the type is a HLMemType.
 
MLIR_CAPI_EXPORTED MlirType seqHLMemTypeGet (MlirContext ctx, intptr_t rank, const int64_t *shape, MlirType elementType)
 Creates a seq HLMem type.
 
MLIR_CAPI_EXPORTED MlirType seqHLMemTypeGetElementType (MlirType type)
 Gets the element type of an HLMem type.
 
MLIR_CAPI_EXPORTED intptr_t seqHLMemTypeGetRank (MlirType type)
 Gets the rank of an HLMem type.
 
MLIR_CAPI_EXPORTED const int64_t * seqHLMemTypeGetShape (MlirType type)
 Gets a pointer to the shape array of an HLMem type The array length is equal to the rank.
 
MLIR_CAPI_EXPORTED bool seqTypeIsAFirMem (MlirType type)
 If the type is a FirMem type.
 
MLIR_CAPI_EXPORTED MlirType seqFirMemTypeGet (MlirContext ctx, uint64_t depth, uint32_t width, const uint32_t *maskWidth)
 Creates a seq FirMem type.
 
MLIR_CAPI_EXPORTED uint64_t seqFirMemTypeGetDepth (MlirType type)
 Gets the depth of a FirMem type.
 
MLIR_CAPI_EXPORTED uint32_t seqFirMemTypeGetWidth (MlirType type)
 Gets the width of a FirMem type.
 
MLIR_CAPI_EXPORTED bool seqFirMemTypeHasMask (MlirType type)
 Returns true if the FirMem type has a mask width defined.
 
MLIR_CAPI_EXPORTED uint32_t seqFirMemTypeGetMaskWidth (MlirType type)
 Gets the mask width of a FirMem type Behavior is undefined if seqFirMemTypeHasMask returns false.
 

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( Sequential  ,
seq   
)

◆ registerSeqPasses()

MLIR_CAPI_EXPORTED void registerSeqPasses ( void  )

Definition at line 22 of file Seq.cpp.

Referenced by registerPasses().

◆ seqClockTypeGet()

MLIR_CAPI_EXPORTED MlirType seqClockTypeGet ( MlirContext  ctx)

Creates an seq clock type.

Definition at line 28 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqFirMemTypeGet()

MLIR_CAPI_EXPORTED MlirType seqFirMemTypeGet ( MlirContext  ctx,
uint64_t  depth,
uint32_t  width,
const uint32_t *  maskWidth 
)

Creates a seq FirMem type.

Parameters
maskWidthA pointer to the mask width. Pass NULL if no mask is present.

Definition at line 70 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqFirMemTypeGetDepth()

MLIR_CAPI_EXPORTED uint64_t seqFirMemTypeGetDepth ( MlirType  type)

Gets the depth of a FirMem type.

Definition at line 78 of file Seq.cpp.

References unwrap().

◆ seqFirMemTypeGetMaskWidth()

MLIR_CAPI_EXPORTED uint32_t seqFirMemTypeGetMaskWidth ( MlirType  type)

Gets the mask width of a FirMem type Behavior is undefined if seqFirMemTypeHasMask returns false.

Definition at line 90 of file Seq.cpp.

References unwrap().

◆ seqFirMemTypeGetWidth()

MLIR_CAPI_EXPORTED uint32_t seqFirMemTypeGetWidth ( MlirType  type)

Gets the width of a FirMem type.

Definition at line 82 of file Seq.cpp.

References unwrap().

◆ seqFirMemTypeHasMask()

MLIR_CAPI_EXPORTED bool seqFirMemTypeHasMask ( MlirType  type)

Returns true if the FirMem type has a mask width defined.

Definition at line 86 of file Seq.cpp.

References unwrap().

◆ seqHLMemTypeGet()

MLIR_CAPI_EXPORTED MlirType seqHLMemTypeGet ( MlirContext  ctx,
intptr_t  rank,
const int64_t *  shape,
MlirType  elementType 
)

Creates a seq HLMem type.

Definition at line 48 of file Seq.cpp.

References elementType, unwrap(), and wrap().

◆ seqHLMemTypeGetElementType()

MLIR_CAPI_EXPORTED MlirType seqHLMemTypeGetElementType ( MlirType  type)

Gets the element type of an HLMem type.

Definition at line 54 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqHLMemTypeGetRank()

MLIR_CAPI_EXPORTED intptr_t seqHLMemTypeGetRank ( MlirType  type)

Gets the rank of an HLMem type.

Definition at line 58 of file Seq.cpp.

References unwrap().

◆ seqHLMemTypeGetShape()

MLIR_CAPI_EXPORTED const int64_t * seqHLMemTypeGetShape ( MlirType  type)

Gets a pointer to the shape array of an HLMem type The array length is equal to the rank.

The pointer remains valid as long as the MlirType exists.

Definition at line 62 of file Seq.cpp.

References unwrap().

◆ seqImmutableTypeGet()

MLIR_CAPI_EXPORTED MlirType seqImmutableTypeGet ( MlirType  type)

Creates a seq immutable type.

Definition at line 36 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqImmutableTypeGetInnerType()

MLIR_CAPI_EXPORTED MlirType seqImmutableTypeGetInnerType ( MlirType  type)

Creates a seq immutable type.

Definition at line 40 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqTypeIsAClock()

MLIR_CAPI_EXPORTED bool seqTypeIsAClock ( MlirType  type)

If the type is an clock type.

Definition at line 24 of file Seq.cpp.

References unwrap().

◆ seqTypeIsAFirMem()

MLIR_CAPI_EXPORTED bool seqTypeIsAFirMem ( MlirType  type)

If the type is a FirMem type.

Definition at line 66 of file Seq.cpp.

References unwrap().

◆ seqTypeIsAHLMem()

MLIR_CAPI_EXPORTED bool seqTypeIsAHLMem ( MlirType  type)

If the type is a HLMemType.

Definition at line 44 of file Seq.cpp.

References unwrap().

◆ seqTypeIsAImmutable()

MLIR_CAPI_EXPORTED bool seqTypeIsAImmutable ( MlirType  type)

If the type is an immutable type.

Definition at line 32 of file Seq.cpp.

References unwrap().