MLIR 22.0.0git
SMT.h File Reference
#include "mlir-c/IR.h"

Go to the source code of this file.

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (SMT, smt)
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAnyNonFuncSMTValueType (MlirType type)
 Checks if the given type is any non-func SMT value type.
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAnySMTValueType (MlirType type)
 Checks if the given type is any SMT value type.
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAArray (MlirType type)
 Checks if the given type is a smt::ArrayType.
MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetArray (MlirContext ctx, MlirType domainType, MlirType rangeType)
 Creates an array type with the given domain and range types.
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsABitVector (MlirType type)
 Checks if the given type is a smt::BitVectorType.
MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetBitVector (MlirContext ctx, int32_t width)
 Creates a smt::BitVectorType with the given width.
MLIR_CAPI_EXPORTED MlirStringRef mlirSMTBitVectorTypeGetName (void)
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsABool (MlirType type)
 Checks if the given type is a smt::BoolType.
MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetBool (MlirContext ctx)
 Creates a smt::BoolType.
MLIR_CAPI_EXPORTED MlirStringRef mlirSMTBoolTypeGetName (void)
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAInt (MlirType type)
 Checks if the given type is a smt::IntType.
MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetInt (MlirContext ctx)
 Creates a smt::IntType.
MLIR_CAPI_EXPORTED MlirStringRef mlirSMTIntTypeGetName (void)
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsASMTFunc (MlirType type)
 Checks if the given type is a smt::FuncType.
MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetSMTFunc (MlirContext ctx, size_t numberOfDomainTypes, const MlirType *domainTypes, MlirType rangeType)
 Creates a smt::FuncType with the given domain and range types.
MLIR_CAPI_EXPORTED bool mlirSMTTypeIsASort (MlirType type)
 Checks if the given type is a smt::SortType.
MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetSort (MlirContext ctx, MlirIdentifier identifier, size_t numberOfSortParams, const MlirType *sortParams)
 Creates a smt::SortType with the given identifier and sort parameters.
MLIR_CAPI_EXPORTED bool mlirSMTAttrCheckBVCmpPredicate (MlirContext ctx, MlirStringRef str)
 Checks if the given string is a valid smt::BVCmpPredicate.
MLIR_CAPI_EXPORTED bool mlirSMTAttrCheckIntPredicate (MlirContext ctx, MlirStringRef str)
 Checks if the given string is a valid smt::IntPredicate.
MLIR_CAPI_EXPORTED bool mlirSMTAttrIsASMTAttribute (MlirAttribute attr)
 Checks if the given attribute is a smt::SMTAttribute.
MLIR_CAPI_EXPORTED MlirAttribute mlirSMTAttrGetBitVector (MlirContext ctx, uint64_t value, unsigned width)
 Creates a smt::BitVectorAttr with the given value and width.
MLIR_CAPI_EXPORTED MlirAttribute mlirSMTAttrGetBVCmpPredicate (MlirContext ctx, MlirStringRef str)
 Creates a smt::BVCmpPredicateAttr with the given string.
MLIR_CAPI_EXPORTED MlirAttribute mlirSMTAttrGetIntPredicate (MlirContext ctx, MlirStringRef str)
 Creates a smt::IntPredicateAttr with the given string.

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( SMT ,
smt  )

References MLIR_CAPI_EXPORTED.

◆ mlirSMTAttrCheckBVCmpPredicate()

MLIR_CAPI_EXPORTED bool mlirSMTAttrCheckBVCmpPredicate ( MlirContext ctx,
MlirStringRef str )

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

Definition at line 106 of file SMT.cpp.

References unwrap().

◆ mlirSMTAttrCheckIntPredicate()

MLIR_CAPI_EXPORTED bool mlirSMTAttrCheckIntPredicate ( MlirContext ctx,
MlirStringRef str )

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

Definition at line 110 of file SMT.cpp.

References unwrap().

◆ mlirSMTAttrGetBitVector()

MLIR_CAPI_EXPORTED MlirAttribute mlirSMTAttrGetBitVector ( MlirContext ctx,
uint64_t value,
unsigned width )

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

Definition at line 118 of file SMT.cpp.

References unwrap(), and wrap().

◆ mlirSMTAttrGetBVCmpPredicate()

MLIR_CAPI_EXPORTED MlirAttribute mlirSMTAttrGetBVCmpPredicate ( MlirContext ctx,
MlirStringRef str )

Creates a smt::BVCmpPredicateAttr with the given string.

Definition at line 123 of file SMT.cpp.

References unwrap(), and wrap().

◆ mlirSMTAttrGetIntPredicate()

MLIR_CAPI_EXPORTED MlirAttribute mlirSMTAttrGetIntPredicate ( MlirContext ctx,
MlirStringRef str )

Creates a smt::IntPredicateAttr with the given string.

Definition at line 130 of file SMT.cpp.

References unwrap(), and wrap().

◆ mlirSMTAttrIsASMTAttribute()

MLIR_CAPI_EXPORTED bool mlirSMTAttrIsASMTAttribute ( MlirAttribute attr)

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

Definition at line 114 of file SMT.cpp.

References unwrap().

◆ mlirSMTBitVectorTypeGetName()

MLIR_CAPI_EXPORTED MlirStringRef mlirSMTBitVectorTypeGetName ( void )

Definition at line 52 of file SMT.cpp.

References wrap().

◆ mlirSMTBoolTypeGetName()

MLIR_CAPI_EXPORTED MlirStringRef mlirSMTBoolTypeGetName ( void )

Definition at line 62 of file SMT.cpp.

References wrap().

◆ mlirSMTIntTypeGetName()

MLIR_CAPI_EXPORTED MlirStringRef mlirSMTIntTypeGetName ( void )

Definition at line 70 of file SMT.cpp.

References wrap().

◆ mlirSMTTypeGetArray()

MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetArray ( 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().

◆ mlirSMTTypeGetBitVector()

MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetBitVector ( 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().

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::smt::BitVectorType::bindDerived().

◆ mlirSMTTypeGetBool()

MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetBool ( MlirContext ctx)

Creates a smt::BoolType.

Definition at line 58 of file SMT.cpp.

References unwrap(), and wrap().

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::smt::BoolType::bindDerived().

◆ mlirSMTTypeGetInt()

MLIR_CAPI_EXPORTED MlirType mlirSMTTypeGetInt ( MlirContext ctx)

Creates a smt::IntType.

Definition at line 66 of file SMT.cpp.

References unwrap(), and wrap().

Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::smt::IntType::bindDerived().

◆ mlirSMTTypeGetSMTFunc()

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

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

Definition at line 76 of file SMT.cpp.

References unwrap(), and wrap().

◆ mlirSMTTypeGetSort()

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

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

Definition at line 90 of file SMT.cpp.

References unwrap(), and wrap().

◆ mlirSMTTypeIsAArray()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAArray ( MlirType type)

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

Definition at line 36 of file SMT.cpp.

References unwrap().

◆ mlirSMTTypeIsABitVector()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsABitVector ( MlirType type)

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

Definition at line 44 of file SMT.cpp.

References unwrap().

◆ mlirSMTTypeIsABool()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsABool ( MlirType type)

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

Definition at line 56 of file SMT.cpp.

References unwrap().

◆ mlirSMTTypeIsAInt()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAInt ( MlirType type)

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

Definition at line 64 of file SMT.cpp.

References unwrap().

◆ mlirSMTTypeIsAnyNonFuncSMTValueType()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAnyNonFuncSMTValueType ( MlirType type)

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

Definition at line 28 of file SMT.cpp.

References mlir::smt::isAnyNonFuncSMTValueType(), mlirSMTTypeIsAnyNonFuncSMTValueType(), and unwrap().

Referenced by mlirSMTTypeIsAnyNonFuncSMTValueType().

◆ mlirSMTTypeIsAnySMTValueType()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsAnySMTValueType ( MlirType type)

Checks if the given type is any SMT value type.

Definition at line 32 of file SMT.cpp.

References mlir::smt::isAnySMTValueType(), and unwrap().

◆ mlirSMTTypeIsASMTFunc()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsASMTFunc ( MlirType type)

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

Definition at line 72 of file SMT.cpp.

References unwrap().

◆ mlirSMTTypeIsASort()

MLIR_CAPI_EXPORTED bool mlirSMTTypeIsASort ( MlirType type)

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

Definition at line 88 of file SMT.cpp.

References unwrap().