CIRCT 21.0.0git
Loading...
Searching...
No Matches
Functions
SMT.cpp File Reference
#include "circt-c/Dialect/SMT.h"
#include "circt/Dialect/SMT/SMTDialect.h"
#include "circt/Dialect/SMT/SMTOps.h"
#include "mlir/CAPI/Registration.h"
Include dependency graph for SMT.cpp:

Go to the source code of this file.

Functions

bool smtTypeIsAnyNonFuncSMTValueType (MlirType type)
 Checks if the given type is any non-func SMT value type.
 
bool smtTypeIsAnySMTValueType (MlirType type)
 Checks if the given type is any SMT value type.
 
bool smtTypeIsAArray (MlirType type)
 Checks if the given type is a smt::ArrayType.
 
MlirType smtTypeGetArray (MlirContext ctx, MlirType domainType, MlirType rangeType)
 Creates an array type with the given domain and range types.
 
bool smtTypeIsABitVector (MlirType type)
 Checks if the given type is a smt::BitVectorType.
 
MlirType smtTypeGetBitVector (MlirContext ctx, int32_t width)
 Creates a smt::BitVectorType with the given width.
 
bool smtTypeIsABool (MlirType type)
 Checks if the given type is a smt::BoolType.
 
MlirType smtTypeGetBool (MlirContext ctx)
 Creates a smt::BoolType.
 
bool smtTypeIsAInt (MlirType type)
 Checks if the given type is a smt::IntType.
 
MlirType smtTypeGetInt (MlirContext ctx)
 Creates a smt::IntType.
 
bool smtTypeIsASMTFunc (MlirType type)
 Checks if the given type is a smt::FuncType.
 
MlirType smtTypeGetSMTFunc (MlirContext ctx, size_t numberOfDomainTypes, const MlirType *domainTypes, MlirType rangeType)
 Creates a smt::FuncType with the given domain and range types.
 
bool smtTypeIsASort (MlirType type)
 Checks if the given type is a smt::SortType.
 
MlirType smtTypeGetSort (MlirContext ctx, MlirIdentifier identifier, size_t numberOfSortParams, const MlirType *sortParams)
 Creates a smt::SortType with the given identifier and sort parameters.
 
bool smtAttrCheckBVCmpPredicate (MlirContext ctx, MlirStringRef str)
 Checks if the given string is a valid smt::BVCmpPredicate.
 
bool smtAttrCheckIntPredicate (MlirContext ctx, MlirStringRef str)
 Checks if the given string is a valid smt::IntPredicate.
 
bool smtAttrIsASMTAttribute (MlirAttribute attr)
 Checks if the given attribute is a smt::SMTAttribute.
 
MlirAttribute smtAttrGetBitVector (MlirContext ctx, uint64_t value, unsigned width)
 Creates a smt::BitVectorAttr with the given value and width.
 
MlirAttribute smtAttrGetBVCmpPredicate (MlirContext ctx, MlirStringRef str)
 Creates a smt::BVCmpPredicateAttr with the given string.
 
MlirAttribute smtAttrGetIntPredicate (MlirContext ctx, MlirStringRef str)
 Creates a smt::IntPredicateAttr with the given string.
 

Function Documentation

◆ smtAttrCheckBVCmpPredicate()

bool smtAttrCheckBVCmpPredicate ( MlirContext  ctx,
MlirStringRef  str 
)

Checks if the given string is a valid smt::BVCmpPredicate.

Definition at line 94 of file SMT.cpp.

References unwrap().

◆ smtAttrCheckIntPredicate()

bool smtAttrCheckIntPredicate ( MlirContext  ctx,
MlirStringRef  str 
)

Checks if the given string is a valid smt::IntPredicate.

Definition at line 98 of file SMT.cpp.

References unwrap().

◆ smtAttrGetBitVector()

MlirAttribute smtAttrGetBitVector ( MlirContext  ctx,
uint64_t  value,
unsigned  width 
)

Creates a smt::BitVectorAttr with the given value and width.

Definition at line 106 of file SMT.cpp.

References unwrap(), and wrap().

◆ smtAttrGetBVCmpPredicate()

MlirAttribute smtAttrGetBVCmpPredicate ( MlirContext  ctx,
MlirStringRef  str 
)

Creates a smt::BVCmpPredicateAttr with the given string.

Definition at line 111 of file SMT.cpp.

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

◆ smtAttrGetIntPredicate()

MlirAttribute smtAttrGetIntPredicate ( MlirContext  ctx,
MlirStringRef  str 
)

Creates a smt::IntPredicateAttr with the given string.

Definition at line 118 of file SMT.cpp.

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

◆ smtAttrIsASMTAttribute()

bool smtAttrIsASMTAttribute ( MlirAttribute  attr)

Checks if the given attribute is a smt::SMTAttribute.

Definition at line 102 of file SMT.cpp.

References unwrap().

◆ smtTypeGetArray()

MlirType smtTypeGetArray ( MlirContext  ctx,
MlirType  domainType,
MlirType  rangeType 
)

Creates an array type with the given domain and range types.

Definition at line 38 of file SMT.cpp.

References unwrap(), and wrap().

◆ smtTypeGetBitVector()

MlirType smtTypeGetBitVector ( MlirContext  ctx,
int32_t  width 
)

Creates a smt::BitVectorType with the given width.

Definition at line 48 of file SMT.cpp.

References unwrap(), and wrap().

◆ smtTypeGetBool()

MlirType smtTypeGetBool ( MlirContext  ctx)

Creates a smt::BoolType.

Definition at line 54 of file SMT.cpp.

References unwrap(), and wrap().

◆ smtTypeGetInt()

MlirType smtTypeGetInt ( MlirContext  ctx)

Creates a smt::IntType.

Definition at line 60 of file SMT.cpp.

References unwrap(), and wrap().

◆ smtTypeGetSMTFunc()

MlirType smtTypeGetSMTFunc ( MlirContext  ctx,
size_t  numberOfDomainTypes,
const MlirType *  domainTypes,
MlirType  rangeType 
)

Creates a smt::FuncType with the given domain and range types.

Definition at line 66 of file SMT.cpp.

References unwrap(), and wrap().

◆ smtTypeGetSort()

MlirType smtTypeGetSort ( MlirContext  ctx,
MlirIdentifier  identifier,
size_t  numberOfSortParams,
const MlirType *  sortParams 
)

Creates a smt::SortType with the given identifier and sort parameters.

Definition at line 79 of file SMT.cpp.

References unwrap(), and wrap().

◆ smtTypeIsAArray()

bool smtTypeIsAArray ( MlirType  type)

Checks if the given type is a smt::ArrayType.

Definition at line 36 of file SMT.cpp.

References unwrap().

◆ smtTypeIsABitVector()

bool smtTypeIsABitVector ( MlirType  type)

Checks if the given type is a smt::BitVectorType.

Definition at line 44 of file SMT.cpp.

References unwrap().

◆ smtTypeIsABool()

bool smtTypeIsABool ( MlirType  type)

Checks if the given type is a smt::BoolType.

Definition at line 52 of file SMT.cpp.

References unwrap().

◆ smtTypeIsAInt()

bool smtTypeIsAInt ( MlirType  type)

Checks if the given type is a smt::IntType.

Definition at line 58 of file SMT.cpp.

References unwrap().

◆ smtTypeIsAnyNonFuncSMTValueType()

bool smtTypeIsAnyNonFuncSMTValueType ( MlirType  type)

Checks if the given type is any non-func SMT value type.

Definition at line 28 of file SMT.cpp.

References unwrap().

◆ smtTypeIsAnySMTValueType()

bool smtTypeIsAnySMTValueType ( MlirType  type)

Checks if the given type is any SMT value type.

Definition at line 32 of file SMT.cpp.

References unwrap().

◆ smtTypeIsASMTFunc()

bool smtTypeIsASMTFunc ( MlirType  type)

Checks if the given type is a smt::FuncType.

Definition at line 64 of file SMT.cpp.

References unwrap().

◆ smtTypeIsASort()

bool smtTypeIsASort ( MlirType  type)

Checks if the given type is a smt::SortType.

Definition at line 77 of file SMT.cpp.

References unwrap().