CIRCT 23.0.0git
Loading...
Searching...
No Matches
Functions
Seq.cpp File Reference
#include "circt-c/Dialect/Seq.h"
#include "circt/Dialect/Seq/SeqDialect.h"
#include "circt/Dialect/Seq/SeqPasses.h"
#include "circt/Dialect/Seq/SeqTypes.h"
#include "mlir/CAPI/IR.h"
#include "mlir/CAPI/Registration.h"
#include "mlir/CAPI/Support.h"
Include dependency graph for Seq.cpp:

Go to the source code of this file.

Functions

void registerSeqPasses ()
 
bool seqTypeIsAClock (MlirType type)
 If the type is an clock type.
 
MlirType seqClockTypeGet (MlirContext ctx)
 Creates an seq clock type.
 
bool seqTypeIsAImmutable (MlirType type)
 If the type is an immutable type.
 
MlirType seqImmutableTypeGet (MlirType innerType)
 Creates a seq immutable type.
 
MlirType seqImmutableTypeGetInnerType (MlirType type)
 Creates a seq immutable type.
 
bool seqTypeIsAHLMem (MlirType type)
 If the type is a HLMemType.
 
MlirType seqHLMemTypeGet (MlirContext ctx, intptr_t rank, const int64_t *shape, MlirType elementType)
 Creates a seq HLMem type.
 
MlirType seqHLMemTypeGetElementType (MlirType type)
 Gets the element type of an HLMem type.
 
intptr_t seqHLMemTypeGetRank (MlirType type)
 Gets the rank of an HLMem type.
 
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.
 
bool seqTypeIsAFirMem (MlirType type)
 If the type is a FirMem type.
 
MlirType seqFirMemTypeGet (MlirContext ctx, uint64_t depth, uint32_t width, const uint32_t *maskWidth)
 Creates a seq FirMem type.
 
uint64_t seqFirMemTypeGetDepth (MlirType type)
 Gets the depth of a FirMem type.
 
uint32_t seqFirMemTypeGetWidth (MlirType type)
 Gets the width of a FirMem type.
 
bool seqFirMemTypeHasMask (MlirType type)
 Returns true if the FirMem type has a mask width defined.
 
uint32_t seqFirMemTypeGetMaskWidth (MlirType type)
 Gets the mask width of a FirMem type Behavior is undefined if seqFirMemTypeHasMask returns false.
 

Function Documentation

◆ registerSeqPasses()

void registerSeqPasses ( void  )

Definition at line 22 of file Seq.cpp.

Referenced by registerPasses().

◆ seqClockTypeGet()

MlirType seqClockTypeGet ( MlirContext  ctx)

Creates an seq clock type.

Definition at line 28 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqFirMemTypeGet()

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

uint64_t seqFirMemTypeGetDepth ( MlirType  type)

Gets the depth of a FirMem type.

Definition at line 78 of file Seq.cpp.

References unwrap().

◆ seqFirMemTypeGetMaskWidth()

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

uint32_t seqFirMemTypeGetWidth ( MlirType  type)

Gets the width of a FirMem type.

Definition at line 82 of file Seq.cpp.

References unwrap().

◆ seqFirMemTypeHasMask()

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

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

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

intptr_t seqHLMemTypeGetRank ( MlirType  type)

Gets the rank of an HLMem type.

Definition at line 58 of file Seq.cpp.

References unwrap().

◆ seqHLMemTypeGetShape()

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

MlirType seqImmutableTypeGet ( MlirType  innerType)

Creates a seq immutable type.

Definition at line 36 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqImmutableTypeGetInnerType()

MlirType seqImmutableTypeGetInnerType ( MlirType  type)

Creates a seq immutable type.

Definition at line 40 of file Seq.cpp.

References unwrap(), and wrap().

◆ seqTypeIsAClock()

bool seqTypeIsAClock ( MlirType  type)

If the type is an clock type.

Definition at line 24 of file Seq.cpp.

References unwrap().

◆ seqTypeIsAFirMem()

bool seqTypeIsAFirMem ( MlirType  type)

If the type is a FirMem type.

Definition at line 66 of file Seq.cpp.

References unwrap().

◆ seqTypeIsAHLMem()

bool seqTypeIsAHLMem ( MlirType  type)

If the type is a HLMemType.

Definition at line 44 of file Seq.cpp.

References unwrap().

◆ seqTypeIsAImmutable()

bool seqTypeIsAImmutable ( MlirType  type)

If the type is an immutable type.

Definition at line 32 of file Seq.cpp.

References unwrap().