Types


ArrayType

CIR array type

CIR.array represents C/C++ constant arrays.

Parameters:

Parameter C++ type Description
eltType mlir::Type  
size uint64_t  

BoolType

CIR bool type

cir.bool represent's C++ bool type.

PointerType

CIR pointer type

CIR.ptr is a type returned by any op generating a pointer in C++.

Parameters:

Parameter C++ type Description
pointee mlir::Type  

StructType

CIR struct type

Each unique clang::RecordDecl is mapped to a cir.struct and any object in C/C++ that has a struct type will have a cir.struct in CIR.

Parameters:

Parameter C++ type Description
members ::llvm::ArrayRef<mlir::Type> members
typeName mlir::StringAttr