|
clang 23.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenBuilder.h"
Public Member Functions | |
| CIRGenBuilderTy (mlir::MLIRContext &mlirContext, const CIRGenTypeCache &tc) | |
| mlir::Attribute | getString (llvm::StringRef str, mlir::Type eltTy, std::optional< size_t > size) |
| Get a cir::ConstArrayAttr for a string literal. | |
| cir::ConstArrayAttr | getConstArray (mlir::Attribute attrs, cir::ArrayType arrayTy) const |
| mlir::Attribute | getConstRecordOrZeroAttr (mlir::ArrayAttr arrayAttr, bool packed=false, bool padded=false, mlir::Type type={}) |
| cir::ConstRecordAttr | getAnonConstRecord (mlir::ArrayAttr arrayAttr, bool packed=false, bool padded=false, mlir::Type ty={}) |
| cir::TypeInfoAttr | getTypeInfo (mlir::ArrayAttr fieldsAttr) |
| std::string | getUniqueAnonRecordName () |
| std::string | getUniqueRecordName (const std::string &baseName) |
| void | setIsFPConstrained (bool isCon) |
| Enable/Disable use of constrained floating point math. | |
| bool | getIsFPConstrained () const |
| Query for the use of constrained floating point math. | |
| void | setDefaultConstrainedExcept (llvm::fp::ExceptionBehavior newExcept) |
| Set the exception handling to be used with constrained floating point. | |
| llvm::fp::ExceptionBehavior | getDefaultConstrainedExcept () const |
| Get the exception handling used with constrained floating point. | |
| void | setDefaultConstrainedRounding (llvm::RoundingMode newRounding) |
| Set the rounding mode handling to be used with constrained floating point. | |
| llvm::RoundingMode | getDefaultConstrainedRounding () const |
| Get the rounding mode handling used with constrained floating point. | |
| cir::LongDoubleType | getLongDoubleTy (const llvm::fltSemantics &format) const |
| mlir::Type | getPtrToVPtrType () |
| cir::FuncType | getFuncType (llvm::ArrayRef< mlir::Type > params, mlir::Type retTy, bool isVarArg=false) |
| cir::RecordType::RecordKind | getRecordKind (const clang::TagTypeKind kind) |
| Get a CIR record kind from a AST declaration tag. | |
| cir::RecordType | getCompleteNamedRecordType (llvm::ArrayRef< mlir::Type > members, bool packed, bool padded, llvm::StringRef name) |
| Get a CIR named record type. | |
| cir::RecordType | getCompleteRecordType (mlir::ArrayAttr fields, bool packed=false, bool padded=false, llvm::StringRef name="") |
| cir::RecordType | getIncompleteRecordTy (llvm::StringRef name, const clang::RecordDecl *rd) |
| Get an incomplete CIR struct type. | |
| cir::MemCpyOp | createMemCpy (mlir::Location loc, mlir::Value dst, mlir::Value src, mlir::Value len) |
| cir::MemMoveOp | createMemMove (mlir::Location loc, mlir::Value dst, mlir::Value src, mlir::Value len) |
| cir::MemSetOp | createMemSet (mlir::Location loc, mlir::Value dst, mlir::Value val, mlir::Value len) |
| cir::MemSetOp | createMemSet (mlir::Location loc, Address dst, mlir::Value val, mlir::Value len) |
| cir::DataMemberAttr | getDataMemberAttr (cir::DataMemberType ty, unsigned memberIndex) |
| cir::DataMemberAttr | getNullDataMemberAttr (cir::DataMemberType ty) |
| bool | isNullValue (mlir::Attribute attr) const |
| cir::IntType | getUIntNTy (int n) |
| cir::IntType | getSIntNTy (int n) |
| cir::VoidType | getVoidTy () |
| cir::IntType | getSInt8Ty () |
| cir::IntType | getSInt16Ty () |
| cir::IntType | getSInt32Ty () |
| cir::IntType | getSInt64Ty () |
| cir::IntType | getUInt8Ty () |
| cir::IntType | getUInt16Ty () |
| cir::IntType | getUInt32Ty () |
| cir::IntType | getUInt64Ty () |
| cir::FP16Type | getFp16Ty () |
| cir::BF16Type | getBfloat6Ty () |
| cir::SingleType | getSingleTy () |
| cir::DoubleType | getDoubleTy () |
| cir::ConstantOp | getConstInt (mlir::Location loc, llvm::APSInt intVal) |
| cir::ConstantOp | getConstInt (mlir::Location loc, llvm::APInt intVal, bool isUnsigned=true) |
| cir::ConstantOp | getConstInt (mlir::Location loc, mlir::Type t, uint64_t c) |
| cir::ConstantOp | getConstFP (mlir::Location loc, mlir::Type t, llvm::APFloat fpVal) |
| bool | isInt8Ty (mlir::Type i) |
| bool | isInt16Ty (mlir::Type i) |
| bool | isInt32Ty (mlir::Type i) |
| bool | isInt64Ty (mlir::Type i) |
| bool | isInt (mlir::Type i) |
| cir::PointerType | getUInt8PtrTy () |
| cir::RecordType | getAnonRecordTy (llvm::ArrayRef< mlir::Type > members, bool packed=false, bool padded=false) |
| Get a CIR anonymous record type. | |
| cir::ConstantOp | getSInt32 (int32_t c, mlir::Location loc) |
| cir::ConstantOp | getUInt32 (uint32_t c, mlir::Location loc) |
| cir::ConstantOp | getSInt64 (uint64_t c, mlir::Location loc) |
| cir::ConstantOp | getUInt64 (uint64_t c, mlir::Location loc) |
| cir::ConstantOp | getNullDataMemberPtr (cir::DataMemberType ty, mlir::Location loc) |
| Create constant nullptr for pointer-to-data-member type ty. | |
| cir::ConstantOp | getNullMethodPtr (cir::MethodType ty, mlir::Location loc) |
| mlir::Value | createNeg (mlir::Value value) |
| mlir::Value | createFNeg (mlir::Value value) |
| mlir::Value | createFSub (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createFAdd (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createFMul (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createFDiv (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createFloatingCast (mlir::Value v, mlir::Type destType) |
| mlir::Value | createDynCast (mlir::Location loc, mlir::Value src, cir::PointerType destType, bool isRefCast, cir::DynamicCastInfoAttr info) |
| mlir::Value | createDynCastToVoid (mlir::Location loc, mlir::Value src, bool vtableUseRelativeLayout) |
| Address | createBaseClassAddr (mlir::Location loc, Address addr, mlir::Type destType, unsigned offset, bool assumeNotNull) |
| Address | createDerivedClassAddr (mlir::Location loc, Address addr, mlir::Type destType, unsigned offset, bool assumeNotNull) |
| mlir::Value | createVTTAddrPoint (mlir::Location loc, mlir::Type retTy, mlir::Value addr, uint64_t offset) |
| mlir::Value | createVTTAddrPoint (mlir::Location loc, mlir::Type retTy, mlir::FlatSymbolRefAttr sym, uint64_t offset) |
| cir::IsFPClassOp | createIsFPClass (mlir::Location loc, mlir::Value src, cir::FPClassTest flags) |
| Address | createElementBitCast (mlir::Location loc, Address addr, mlir::Type destType) |
| Cast the element type of the given address to a different type, preserving information like the alignment. | |
| cir::LoadOp | createLoad (mlir::Location loc, Address addr, bool isVolatile=false) |
| cir::LoadOp | createAlignedLoad (mlir::Location loc, mlir::Type ty, mlir::Value ptr, llvm::MaybeAlign align) |
| cir::LoadOp | createAlignedLoad (mlir::Location loc, mlir::Type ty, mlir::Value ptr, clang::CharUnits align=clang::CharUnits::One()) |
| cir::StoreOp | createStore (mlir::Location loc, mlir::Value val, Address dst, bool isVolatile=false, mlir::IntegerAttr align={}, cir::SyncScopeKindAttr scope={}, cir::MemOrderAttr order={}) |
| mlir::Value | createComplexRealPtr (mlir::Location loc, mlir::Value value) |
| Create a cir.complex.real_ptr operation that derives a pointer to the real part of the complex value pointed to by the specified pointer value. | |
| Address | createComplexRealPtr (mlir::Location loc, Address addr) |
| mlir::Value | createComplexImagPtr (mlir::Location loc, mlir::Value value) |
| Create a cir.complex.imag_ptr operation that derives a pointer to the imaginary part of the complex value pointed to by the specified pointer value. | |
| Address | createComplexImagPtr (mlir::Location loc, Address addr) |
| cir::GetRuntimeMemberOp | createGetIndirectMember (mlir::Location loc, mlir::Value objectPtr, mlir::Value memberPtr) |
| mlir::Value | getArrayElement (mlir::Location arrayLocBegin, mlir::Location arrayLocEnd, mlir::Value arrayPtr, mlir::Type eltTy, mlir::Value idx, bool shouldDecay) |
| Create a cir.ptr_stride operation to get access to an array element. | |
| mlir::Value | maybeBuildArrayDecay (mlir::Location loc, mlir::Value arrayPtr, mlir::Type eltTy) |
Returns a decayed pointer to the first element of the array pointed to by arrayPtr. | |
| void | computeGlobalViewIndicesFromFlatOffset (int64_t offset, mlir::Type ty, cir::CIRDataLayout layout, llvm::SmallVectorImpl< int64_t > &indices) |
| cir::GlobalOp | createVersionedGlobal (mlir::ModuleOp module, mlir::Location loc, mlir::StringRef name, mlir::Type type, bool isConstant, cir::GlobalLinkageKind linkage) |
| Creates a versioned global variable. | |
| cir::StackSaveOp | createStackSave (mlir::Location loc, mlir::Type ty) |
| cir::StackRestoreOp | createStackRestore (mlir::Location loc, mlir::Value v) |
| mlir::Value | createSetBitfield (mlir::Location loc, mlir::Type resultType, Address dstAddr, mlir::Type storageType, mlir::Value src, const CIRGenBitFieldInfo &info, bool isLvalueVolatile, bool useVolatile) |
| mlir::Value | createGetBitfield (mlir::Location loc, mlir::Type resultType, Address addr, mlir::Type storageType, const CIRGenBitFieldInfo &info, bool isLvalueVolatile, bool useVolatile) |
| mlir::Value | createMaskedLoad (mlir::Location loc, mlir::Type ty, mlir::Value ptr, llvm::Align alignment, mlir::Value mask, mlir::Value passThru) |
| cir::VecShuffleOp | createVecShuffle (mlir::Location loc, mlir::Value vec1, mlir::Value vec2, llvm::ArrayRef< mlir::Attribute > maskAttrs) |
| cir::VecShuffleOp | createVecShuffle (mlir::Location loc, mlir::Value vec1, mlir::Value vec2, llvm::ArrayRef< int64_t > mask) |
| cir::VecShuffleOp | createVecShuffle (mlir::Location loc, mlir::Value vec1, llvm::ArrayRef< int64_t > mask) |
| template<typename... Operands> | |
| mlir::Value | emitIntrinsicCallOp (mlir::Location loc, const llvm::StringRef str, const mlir::Type &resTy, Operands &&...op) |
| Public Member Functions inherited from cir::CIRBaseBuilderTy | |
| CIRBaseBuilderTy (mlir::MLIRContext &mlirContext) | |
| CIRBaseBuilderTy (mlir::OpBuilder &builder) | |
| mlir::Value | getConstAPInt (mlir::Location loc, mlir::Type typ, const llvm::APInt &val) |
| cir::ConstantOp | getConstant (mlir::Location loc, mlir::TypedAttr attr) |
| cir::ConstantOp | getConstantInt (mlir::Location loc, mlir::Type ty, int64_t value) |
| mlir::Value | getSignedInt (mlir::Location loc, int64_t val, unsigned numBits) |
| mlir::Value | getUnsignedInt (mlir::Location loc, uint64_t val, unsigned numBits) |
| cir::ConstantOp | getNullValue (mlir::Type ty, mlir::Location loc) |
| mlir::TypedAttr | getConstNullPtrAttr (mlir::Type t) |
| mlir::TypedAttr | getNullDataMemberAttr (cir::DataMemberType ty) |
| mlir::TypedAttr | getZeroInitAttr (mlir::Type ty) |
| cir::ConstantOp | getBool (bool state, mlir::Location loc) |
| cir::ConstantOp | getFalse (mlir::Location loc) |
| cir::ConstantOp | getTrue (mlir::Location loc) |
| cir::BoolType | getBoolTy () |
| cir::VoidType | getVoidTy () |
| cir::IntType | getUIntNTy (int n) |
| cir::IntType | getSIntNTy (int n) |
| cir::PointerType | getPointerTo (mlir::Type ty) |
| cir::PointerType | getPointerTo (mlir::Type ty, mlir::ptr::MemorySpaceAttrInterface as) |
| cir::PointerType | getPointerTo (mlir::Type ty, clang::LangAS langAS) |
| cir::PointerType | getVoidPtrTy (clang::LangAS langAS=clang::LangAS::Default) |
| cir::PointerType | getVoidPtrTy (mlir::ptr::MemorySpaceAttrInterface as) |
| cir::MethodAttr | getMethodAttr (cir::MethodType ty, cir::FuncOp methodFuncOp) |
| cir::MethodAttr | getNullMethodAttr (cir::MethodType ty) |
| cir::BoolAttr | getCIRBoolAttr (bool state) |
| cir::BoolAttr | getTrueAttr () |
| cir::BoolAttr | getFalseAttr () |
| mlir::Value | createComplexCreate (mlir::Location loc, mlir::Value real, mlir::Value imag) |
| mlir::Value | createComplexReal (mlir::Location loc, mlir::Value operand) |
| mlir::Value | createComplexImag (mlir::Location loc, mlir::Value operand) |
| cir::LoadOp | createLoad (mlir::Location loc, mlir::Value ptr, bool isVolatile=false, uint64_t alignment=0) |
| mlir::Value | createAlignedLoad (mlir::Location loc, mlir::Value ptr, uint64_t alignment) |
| mlir::Value | createNot (mlir::Value value) |
| cir::DoWhileOp | createDoWhile (mlir::Location loc, llvm::function_ref< void(mlir::OpBuilder &, mlir::Location)> condBuilder, llvm::function_ref< void(mlir::OpBuilder &, mlir::Location)> bodyBuilder) |
| Create a do-while operation. | |
| cir::WhileOp | createWhile (mlir::Location loc, llvm::function_ref< void(mlir::OpBuilder &, mlir::Location)> condBuilder, llvm::function_ref< void(mlir::OpBuilder &, mlir::Location)> bodyBuilder) |
| Create a while operation. | |
| cir::ForOp | createFor (mlir::Location loc, llvm::function_ref< void(mlir::OpBuilder &, mlir::Location)> condBuilder, llvm::function_ref< void(mlir::OpBuilder &, mlir::Location)> bodyBuilder, llvm::function_ref< void(mlir::OpBuilder &, mlir::Location)> stepBuilder) |
| Create a for operation. | |
| cir::BreakOp | createBreak (mlir::Location loc) |
| Create a break operation. | |
| cir::ContinueOp | createContinue (mlir::Location loc) |
| Create a continue operation. | |
| mlir::Value | createUnaryOp (mlir::Location loc, cir::UnaryOpKind kind, mlir::Value operand) |
| mlir::TypedAttr | getConstPtrAttr (mlir::Type type, int64_t value) |
| mlir::Value | createAlloca (mlir::Location loc, cir::PointerType addrType, mlir::Type type, llvm::StringRef name, mlir::IntegerAttr alignment, mlir::Value dynAllocSize) |
| mlir::Value | createAlloca (mlir::Location loc, cir::PointerType addrType, mlir::Type type, llvm::StringRef name, clang::CharUnits alignment, mlir::Value dynAllocSize) |
| mlir::Value | createAlloca (mlir::Location loc, cir::PointerType addrType, mlir::Type type, llvm::StringRef name, mlir::IntegerAttr alignment) |
| mlir::Value | createAlloca (mlir::Location loc, cir::PointerType addrType, mlir::Type type, llvm::StringRef name, clang::CharUnits alignment) |
| cir::GlobalViewAttr | getGlobalViewAttr (cir::GlobalOp globalOp, mlir::ArrayAttr indices={}) |
| Get constant address of a global variable as an MLIR attribute. | |
| cir::GlobalViewAttr | getGlobalViewAttr (cir::PointerType type, cir::GlobalOp globalOp, mlir::ArrayAttr indices={}) |
| Get constant address of a global variable as an MLIR attribute. | |
| mlir::Value | createGetGlobal (mlir::Location loc, cir::GlobalOp global, bool threadLocal=false) |
| mlir::Value | createGetGlobal (cir::GlobalOp global, bool threadLocal=false) |
| cir::CopyOp | createCopy (mlir::Value dst, mlir::Value src, bool isVolatile=false) |
| Create a copy with inferred length. | |
| cir::StoreOp | createStore (mlir::Location loc, mlir::Value val, mlir::Value dst, bool isVolatile=false, mlir::IntegerAttr align={}, cir::SyncScopeKindAttr scope={}, cir::MemOrderAttr order={}) |
| cir::LoadOp | createFlagLoad (mlir::Location loc, mlir::Value addr) |
| Emit a load from an boolean flag variable. | |
| cir::StoreOp | createFlagStore (mlir::Location loc, bool val, mlir::Value dst) |
| cir::GlobalOp | createGlobal (mlir::ModuleOp mlirModule, mlir::Location loc, mlir::StringRef name, mlir::Type type, bool isConstant, cir::GlobalLinkageKind linkage) |
| cir::GetMemberOp | createGetMember (mlir::Location loc, mlir::Type resultTy, mlir::Value base, llvm::StringRef name, unsigned index) |
| mlir::Value | createDummyValue (mlir::Location loc, mlir::Type type, clang::CharUnits alignment) |
| cir::PtrStrideOp | createPtrStride (mlir::Location loc, mlir::Value base, mlir::Value stride) |
| cir::CallOp | createCallOp (mlir::Location loc, mlir::SymbolRefAttr callee, mlir::Type returnType, mlir::ValueRange operands, llvm::ArrayRef< mlir::NamedAttribute > attrs={}, llvm::ArrayRef< mlir::NamedAttrList > argAttrs={}, llvm::ArrayRef< mlir::NamedAttribute > resAttrs={}) |
| cir::CallOp | createCallOp (mlir::Location loc, cir::FuncOp callee, mlir::ValueRange operands, llvm::ArrayRef< mlir::NamedAttribute > attrs={}, llvm::ArrayRef< mlir::NamedAttrList > argAttrs={}, llvm::ArrayRef< mlir::NamedAttribute > resAttrs={}) |
| cir::CallOp | createIndirectCallOp (mlir::Location loc, mlir::Value indirectTarget, cir::FuncType funcType, mlir::ValueRange operands, llvm::ArrayRef< mlir::NamedAttribute > attrs={}, llvm::ArrayRef< mlir::NamedAttrList > argAttrs={}, llvm::ArrayRef< mlir::NamedAttribute > resAttrs={}) |
| cir::CallOp | createCallOp (mlir::Location loc, mlir::SymbolRefAttr callee, mlir::ValueRange operands=mlir::ValueRange(), llvm::ArrayRef< mlir::NamedAttribute > attrs={}, llvm::ArrayRef< mlir::NamedAttrList > argAttrs={}, llvm::ArrayRef< mlir::NamedAttribute > resAttrs={}) |
| mlir::Value | createCast (mlir::Location loc, cir::CastKind kind, mlir::Value src, mlir::Type newTy) |
| mlir::Value | createCast (cir::CastKind kind, mlir::Value src, mlir::Type newTy) |
| mlir::Value | createIntCast (mlir::Value src, mlir::Type newTy) |
| mlir::Value | createIntToPtr (mlir::Value src, mlir::Type newTy) |
| mlir::Value | createPtrToInt (mlir::Value src, mlir::Type newTy) |
| mlir::Value | createPtrToBoolCast (mlir::Value v) |
| mlir::Value | createBoolToInt (mlir::Value src, mlir::Type newTy) |
| mlir::Value | createBitcast (mlir::Value src, mlir::Type newTy) |
| mlir::Value | createBitcast (mlir::Location loc, mlir::Value src, mlir::Type newTy) |
| mlir::Value | createPtrBitcast (mlir::Value src, mlir::Type newPointeeTy) |
| mlir::Value | createPtrIsNull (mlir::Value ptr) |
| mlir::Value | createAddrSpaceCast (mlir::Location loc, mlir::Value src, mlir::Type newTy) |
| mlir::Value | createAddrSpaceCast (mlir::Value src, mlir::Type newTy) |
| mlir::Value | createExtractElement (mlir::Location loc, mlir::Value vec, uint64_t idx) |
| mlir::Value | createInsertElement (mlir::Location loc, mlir::Value vec, mlir::Value newElt, uint64_t idx) |
| cir::SignBitOp | createSignBit (mlir::Location loc, mlir::Value val) |
| mlir::Value | createLowBitsSet (mlir::Location loc, unsigned size, unsigned bits) |
| mlir::Value | createAnd (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createOr (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createSelect (mlir::Location loc, mlir::Value condition, mlir::Value trueValue, mlir::Value falseValue) |
| mlir::Value | createLogicalAnd (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createLogicalOr (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createMul (mlir::Location loc, mlir::Value lhs, mlir::Value rhs, OverflowBehavior ob=OverflowBehavior::None) |
| mlir::Value | createNSWMul (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createNUWAMul (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createSub (mlir::Location loc, mlir::Value lhs, mlir::Value rhs, OverflowBehavior ob=OverflowBehavior::None) |
| mlir::Value | createNSWSub (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createNUWSub (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createAdd (mlir::Location loc, mlir::Value lhs, mlir::Value rhs, OverflowBehavior ob=OverflowBehavior::None) |
| mlir::Value | createNSWAdd (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createNUWAdd (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createDiv (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createRem (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createXor (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createMax (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| cir::CmpOp | createCompare (mlir::Location loc, cir::CmpOpKind kind, mlir::Value lhs, mlir::Value rhs) |
| cir::VecCmpOp | createVecCompare (mlir::Location loc, cir::CmpOpKind kind, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createIsNaN (mlir::Location loc, mlir::Value operand) |
| mlir::Value | createShift (mlir::Location loc, mlir::Value lhs, mlir::Value rhs, bool isShiftLeft) |
| mlir::Value | createShift (mlir::Location loc, mlir::Value lhs, const llvm::APInt &rhs, bool isShiftLeft) |
| mlir::Value | createShift (mlir::Location loc, mlir::Value lhs, unsigned bits, bool isShiftLeft) |
| mlir::Value | createShiftLeft (mlir::Location loc, mlir::Value lhs, unsigned bits) |
| mlir::Value | createShiftRight (mlir::Location loc, mlir::Value lhs, unsigned bits) |
| mlir::Value | createShiftLeft (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::Value | createShiftRight (mlir::Location loc, mlir::Value lhs, mlir::Value rhs) |
| mlir::IntegerAttr | getAlignmentAttr (clang::CharUnits alignment) |
| mlir::IntegerAttr | getAlignmentAttr (llvm::Align alignment) |
| mlir::IntegerAttr | getAlignmentAttr (int64_t alignment) |
| mlir::IntegerAttr | getSizeFromCharUnits (clang::CharUnits size) |
| cir::ConstantOp | getNullPtr (mlir::Type ty, mlir::Location loc) |
| cir::ConditionOp | createCondition (mlir::Value condition) |
| Create a loop condition. | |
| cir::YieldOp | createYield (mlir::Location loc, mlir::ValueRange value={}) |
| Create a yield operation. | |
| GetMethodResults | createGetMethod (mlir::Location loc, mlir::Value method, mlir::Value objectPtr) |
Additional Inherited Members | |
| Static Public Member Functions inherited from cir::CIRBaseBuilderTy | |
| static unsigned | getCIRIntOrFloatBitWidth (mlir::Type eltTy) |
| static OpBuilder::InsertPoint | getBestAllocaInsertPoint (mlir::Block *block) |
Definition at line 29 of file CIRGenBuilder.h.
|
inline |
Definition at line 39 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::CIRBaseBuilderTy().
| void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset | ( | int64_t | offset, |
| mlir::Type | ty, | ||
| cir::CIRDataLayout | layout, | ||
| llvm::SmallVectorImpl< int64_t > & | indices ) |
Definition at line 87 of file CIRGenBuilder.cpp.
References computeGlobalViewIndicesFromFlatOffset(), clang::Default, cir::CIRDataLayout::getABITypeAlign(), and cir::CIRDataLayout::getTypeAllocSize().
Referenced by computeGlobalViewIndicesFromFlatOffset().
|
inline |
Definition at line 608 of file CIRGenBuilder.h.
References createAlignedLoad(), and clang::CharUnits::One().
|
inline |
Definition at line 595 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::createPtrBitcast(), and cir::CIRBaseBuilderTy::getAlignmentAttr().
Referenced by createAlignedLoad(), and emitX86Aeswide().
|
inline |
Definition at line 525 of file CIRGenBuilder.h.
References clang::CIRGen::Address::getAlignment(), clang::CIRGen::Address::getElementType(), clang::CIRGen::Address::getPointer(), and cir::CIRBaseBuilderTy::getPointerTo().
|
inline |
Definition at line 648 of file CIRGenBuilder.h.
References createComplexImagPtr(), clang::CIRGen::Address::getAlignment(), and clang::CIRGen::Address::getPointer().
|
inline |
Create a cir.complex.imag_ptr operation that derives a pointer to the imaginary part of the complex value pointed to by the specified pointer value.
Definition at line 641 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::getPointerTo().
Referenced by createComplexImagPtr().
|
inline |
Definition at line 633 of file CIRGenBuilder.h.
References createComplexRealPtr(), clang::CIRGen::Address::getAlignment(), and clang::CIRGen::Address::getPointer().
|
inline |
Create a cir.complex.real_ptr operation that derives a pointer to the real part of the complex value pointed to by the specified pointer value.
Definition at line 626 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::getPointerTo().
Referenced by createComplexRealPtr().
|
inline |
Definition at line 538 of file CIRGenBuilder.h.
References clang::CIRGen::Address::getAlignment(), clang::CIRGen::Address::getElementType(), clang::CIRGen::Address::getPointer(), and cir::CIRBaseBuilderTy::getPointerTo().
|
inline |
Definition at line 503 of file CIRGenBuilder.h.
|
inline |
Definition at line 512 of file CIRGenBuilder.h.
References cir::MissingFeatures::addressSpace(), and cir::CIRBaseBuilderTy::getVoidPtrTy().
Referenced by emitDynamicCastToVoid().
|
inline |
Cast the element type of the given address to a different type, preserving information like the alignment.
Definition at line 576 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::createBitcast(), clang::CIRGen::Address::getAlignment(), clang::CIRGen::Address::getElementType(), clang::CIRGen::Address::getPointer(), and cir::CIRBaseBuilderTy::getPointerTo().
Referenced by clang::CIRGen::CIRGenFunction::emitPointerWithAlignment().
|
inline |
Definition at line 467 of file CIRGenBuilder.h.
References cir::MissingFeatures::fastMathFlags(), cir::MissingFeatures::fpConstraints(), and cir::MissingFeatures::metaDataNode().
|
inline |
Definition at line 482 of file CIRGenBuilder.h.
References cir::MissingFeatures::fastMathFlags(), cir::MissingFeatures::fpConstraints(), and cir::MissingFeatures::metaDataNode().
|
inline |
Definition at line 496 of file CIRGenBuilder.h.
References cir::MissingFeatures::fpConstraints().
Referenced by clang::CIRGen::emitArgumentDemotion(), and emitAsmStores().
|
inline |
Definition at line 475 of file CIRGenBuilder.h.
References cir::MissingFeatures::fastMathFlags(), cir::MissingFeatures::fpConstraints(), and cir::MissingFeatures::metaDataNode().
|
inline |
Definition at line 444 of file CIRGenBuilder.h.
References cir::MissingFeatures::fastMathFlags(), cir::MissingFeatures::fpConstraints(), and cir::MissingFeatures::metaDataNode().
|
inline |
Definition at line 459 of file CIRGenBuilder.h.
References cir::MissingFeatures::fastMathFlags(), cir::MissingFeatures::fpConstraints(), and cir::MissingFeatures::metaDataNode().
|
inline |
Definition at line 730 of file CIRGenBuilder.h.
References clang::CIRGen::Address::getAlignment(), clang::CharUnits::getAsAlign(), clang::CIRGen::Address::getPointer(), clang::CIRGen::CIRGenBitFieldInfo::isSigned, clang::CIRGen::CIRGenBitFieldInfo::name, clang::CIRGen::CIRGenBitFieldInfo::offset, clang::CIRGen::CIRGenBitFieldInfo::size, clang::CIRGen::CIRGenBitFieldInfo::volatileOffset, and clang::CIRGen::CIRGenBitFieldInfo::volatileStorageSize.
|
inline |
Definition at line 653 of file CIRGenBuilder.h.
References cir::MissingFeatures::addressSpace(), and cir::CIRBaseBuilderTy::getPointerTo().
|
inline |
Definition at line 569 of file CIRGenBuilder.h.
|
inline |
Definition at line 586 of file CIRGenBuilder.h.
References clang::CIRGen::Address::getAlignment(), cir::CIRBaseBuilderTy::getAlignmentAttr(), and clang::CIRGen::Address::getPointer().
Referenced by emitAtomicCmpXchg(), emitAtomicOp(), emitExactDynamicCast(), and emitMemberInitializer().
|
inline |
Definition at line 748 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::getConstant().
Referenced by emitX86MaskedLoad().
|
inline |
Definition at line 238 of file CIRGenBuilder.h.
|
inline |
Definition at line 243 of file CIRGenBuilder.h.
|
inline |
Definition at line 254 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::getAlignmentAttr(), and getUInt8Ty().
|
inline |
Definition at line 248 of file CIRGenBuilder.h.
References getUInt8Ty().
|
inline |
Definition at line 431 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::createIntCast(), and getSIntNTy().
Referenced by emitPointerArithmetic().
|
inline |
Definition at line 712 of file CIRGenBuilder.h.
References clang::CIRGen::Address::getAlignment(), clang::CharUnits::getAsAlign(), clang::CIRGen::Address::getPointer(), clang::CIRGen::CIRGenBitFieldInfo::isSigned, clang::CIRGen::CIRGenBitFieldInfo::name, clang::CIRGen::CIRGenBitFieldInfo::offset, clang::CIRGen::CIRGenBitFieldInfo::size, clang::CIRGen::CIRGenBitFieldInfo::volatileOffset, and clang::CIRGen::CIRGenBitFieldInfo::volatileStorageSize.
|
inline |
Definition at line 708 of file CIRGenBuilder.h.
|
inline |
Definition at line 704 of file CIRGenBuilder.h.
|
inline |
Definition at line 613 of file CIRGenBuilder.h.
Referenced by emitAsmStores(), emitAtomicCmpXchg(), emitAtomicOp(), emitEncodeKey(), emitNullBaseClassInitialization(), emitStoresForConstant(), emitX86Aes(), emitX86Aeswide(), and initCatchParam().
|
inline |
Create a unary shuffle. The second vector operand of the IR instruction is poison.
Definition at line 784 of file CIRGenBuilder.h.
References createVecShuffle(), and cir::CIRBaseBuilderTy::getConstant().
|
inline |
Definition at line 774 of file CIRGenBuilder.h.
References createVecShuffle(), and getSInt32Ty().
|
inline |
Definition at line 765 of file CIRGenBuilder.h.
Referenced by createVecShuffle(), createVecShuffle(), emitPshufWord(), emitX86CvtF16ToFloatExpr(), emitX86MaskedCompareResult(), emitX86MaskUnpack(), and getMaskVecValue().
|
inlinenodiscard |
Creates a versioned global variable.
If the symbol is already taken, an ID will be appended to the symbol. The returned global must always be queried for its name so it can be referenced correctly.
Definition at line 691 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::createGlobal(), and clang::ast_matchers::type.
|
inline |
Definition at line 560 of file CIRGenBuilder.h.
|
inline |
Definition at line 554 of file CIRGenBuilder.h.
|
inline |
Definition at line 794 of file CIRGenBuilder.h.
Referenced by emitCallMaybeConstrainedBuiltin(), emitEncodeKey(), emitX86Aes(), emitX86Aeswide(), emitX86CompressExpand(), emitX86CvtF16ToFloatExpr(), emitX86Fpclass(), emitX86FunnelShift(), emitX86MaskAddLogic(), emitX86MaskTest(), and genVscaleTimesFactor().
|
inline |
Definition at line 80 of file CIRGenBuilder.h.
Referenced by getTypeInfo().
|
inline |
Get a CIR anonymous record type.
Definition at line 395 of file CIRGenBuilder.h.
References cir::MissingFeatures::astRecordDeclAttr(), getType(), and kind.
Referenced by emitX86Aes(), emitX86Aeswide(), and getCompleteRecordType().
| mlir::Value CIRGenBuilderTy::getArrayElement | ( | mlir::Location | arrayLocBegin, |
| mlir::Location | arrayLocEnd, | ||
| mlir::Value | arrayPtr, | ||
| mlir::Type | eltTy, | ||
| mlir::Value | idx, | ||
| bool | shouldDecay ) |
Create a cir.ptr_stride operation to get access to an array element.
idx is the index of the element to access, shouldDecay is true if the result should decay to a pointer to the element type.
Definition at line 34 of file CIRGenBuilder.cpp.
References cir::CIRBaseBuilderTy::getPointerTo(), and maybeBuildArrayDecay().
Referenced by emitArraySubscriptPtr(), and emitX86Aeswide().
|
inline |
Definition at line 363 of file CIRGenBuilder.h.
|
inline |
Get a CIR named record type.
If a record already exists and is complete, but the client tries to fetch it with a different set of attributes, this method will crash.
Definition at line 193 of file CIRGenBuilder.h.
References cir::MissingFeatures::astRecordDeclAttr(), getType(), kind, and clang::ast_matchers::type.
Referenced by getCompleteRecordType().
| cir::RecordType clang::CIRGen::CIRGenBuilderTy::getCompleteRecordType | ( | mlir::ArrayAttr | fields, |
| bool | packed = false, | ||
| bool | padded = false, | ||
| llvm::StringRef | name = "" ) |
Definition at line 150 of file CIRGenBuilder.cpp.
References cir::MissingFeatures::astRecordDeclAttr(), getAnonRecordTy(), and getCompleteNamedRecordType().
Referenced by getConstRecordOrZeroAttr().
|
inline |
Definition at line 70 of file CIRGenBuilder.h.
| cir::ConstantOp clang::CIRGen::CIRGenBuilderTy::getConstFP | ( | mlir::Location | loc, |
| mlir::Type | t, | ||
| llvm::APFloat | fpVal ) |
Definition at line 81 of file CIRGenBuilder.cpp.
| cir::ConstantOp CIRGenBuilderTy::getConstInt | ( | mlir::Location | loc, |
| llvm::APInt | intVal, | ||
| bool | isUnsigned = true ) |
Definition at line 68 of file CIRGenBuilder.cpp.
References getConstInt(), and isUnsigned().
| cir::ConstantOp CIRGenBuilderTy::getConstInt | ( | mlir::Location | loc, |
| llvm::APSInt | intVal ) |
Definition at line 59 of file CIRGenBuilder.cpp.
References getConstInt(), getSIntNTy(), and getUIntNTy().
Referenced by emitCXXNewAllocSize(), emitExactDynamicCast(), getConstInt(), and getConstInt().
| cir::ConstantOp CIRGenBuilderTy::getConstInt | ( | mlir::Location | loc, |
| mlir::Type | t, | ||
| uint64_t | c ) |
Definition at line 74 of file CIRGenBuilder.cpp.
References c.
| mlir::Attribute clang::CIRGen::CIRGenBuilderTy::getConstRecordOrZeroAttr | ( | mlir::ArrayAttr | arrayAttr, |
| bool | packed = false, | ||
| bool | padded = false, | ||
| mlir::Type | type = {} ) |
Definition at line 166 of file CIRGenBuilder.cpp.
References getCompleteRecordType(), isNullValue(), and clang::ast_matchers::type.
|
inline |
Definition at line 262 of file CIRGenBuilder.h.
Referenced by clang::CIRGen::ConstantEmitter::tryEmitPrivate().
|
inline |
Get the exception handling used with constrained floating point.
Definition at line 135 of file CIRGenBuilder.h.
|
inline |
Get the rounding mode handling used with constrained floating point.
Definition at line 147 of file CIRGenBuilder.h.
|
inline |
Definition at line 365 of file CIRGenBuilder.h.
|
inline |
Definition at line 362 of file CIRGenBuilder.h.
|
inline |
Definition at line 167 of file CIRGenBuilder.h.
Referenced by getBadCastFn(), and getItaniumDynamicCastFn().
|
inline |
Get an incomplete CIR struct type.
If we have a complete record declaration, we may create an incomplete type and then add the members, so rd here may be complete.
Definition at line 225 of file CIRGenBuilder.h.
References getRecordKind(), clang::TagDecl::getTagKind(), getType(), and kind.
|
inline |
Query for the use of constrained floating point math.
Definition at line 125 of file CIRGenBuilder.h.
|
inline |
Definition at line 151 of file CIRGenBuilder.h.
|
inline |
Definition at line 267 of file CIRGenBuilder.h.
Referenced by getNullDataMemberPtr().
|
inline |
Create constant nullptr for pointer-to-data-member type ty.
Definition at line 419 of file CIRGenBuilder.h.
References getNullDataMemberAttr().
|
inline |
Definition at line 424 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::getNullMethodAttr().
|
inline |
Definition at line 163 of file CIRGenBuilder.h.
References cir::CIRBaseBuilderTy::getPointerTo().
|
inline |
Get a CIR record kind from a AST declaration tag.
Definition at line 173 of file CIRGenBuilder.h.
References clang::Class, clang::Enum, clang::Interface, kind, clang::Struct, and clang::Union.
Referenced by getIncompleteRecordTy().
|
inline |
Definition at line 364 of file CIRGenBuilder.h.
|
inline |
Definition at line 353 of file CIRGenBuilder.h.
Referenced by getSIntNTy().
|
inline |
Definition at line 405 of file CIRGenBuilder.h.
References c, cir::CIRBaseBuilderTy::getConstantInt(), and getSInt32Ty().
Referenced by emitEncodeKey().
|
inline |
Definition at line 354 of file CIRGenBuilder.h.
Referenced by createVecShuffle(), emitX86MaskTest(), emitX86MaskUnpack(), getMaskVecValue(), getSInt32(), and getSIntNTy().
|
inline |
Definition at line 411 of file CIRGenBuilder.h.
References c, cir::CIRBaseBuilderTy::getConstantInt(), and getSInt64Ty().
Referenced by performTypeAdjustment().
|
inline |
Definition at line 355 of file CIRGenBuilder.h.
Referenced by emitX86MaskedCompareResult(), emitX86Muldq(), getSInt64(), and getSIntNTy().
|
inline |
Definition at line 352 of file CIRGenBuilder.h.
Referenced by getSIntNTy().
|
inline |
Definition at line 335 of file CIRGenBuilder.h.
References getSInt16Ty(), getSInt32Ty(), getSInt64Ty(), and getSInt8Ty().
Referenced by createNeg(), emitAArch64CompareBuiltinExpr(), emitX86Fpclass(), emitX86MaskedCompare(), emitX86vpcom(), getConstInt(), getMaskVecValue(), getMaskZeroBitAsBool(), and makeBinaryAtomicValue().
|
inline |
Get a cir::ConstArrayAttr for a string literal.
Note: This is different from what is returned by mlir::Builder::getStringAttr() which is an mlir::StringAttr.
Definition at line 45 of file CIRGenBuilder.h.
|
inline |
Definition at line 97 of file CIRGenBuilder.h.
References getAnonConstRecord().
|
inline |
Definition at line 358 of file CIRGenBuilder.h.
Referenced by getUIntNTy().
|
inline |
Definition at line 408 of file CIRGenBuilder.h.
References c, cir::CIRBaseBuilderTy::getConstantInt(), and getUInt32Ty().
Referenced by emitX86Aeswide().
|
inline |
Definition at line 359 of file CIRGenBuilder.h.
Referenced by emitEncodeKey(), getUInt32(), and getUIntNTy().
|
inline |
Definition at line 414 of file CIRGenBuilder.h.
References c, cir::CIRBaseBuilderTy::getConstantInt(), and getUInt64Ty().
Referenced by emitVecInsert(), and genVscaleTimesFactor().
|
inline |
Definition at line 360 of file CIRGenBuilder.h.
Referenced by emitEncodeKey(), emitExactDynamicCast(), getUInt64(), and getUIntNTy().
|
inline |
Definition at line 392 of file CIRGenBuilder.h.
Referenced by emitBuiltinAlloca(), emitExactDynamicCast(), getItaniumDynamicCastFn(), and performTypeAdjustment().
|
inline |
Definition at line 357 of file CIRGenBuilder.h.
Referenced by createMemSet(), createMemSet(), emitBuiltinAlloca(), and getUIntNTy().
|
inline |
Definition at line 320 of file CIRGenBuilder.h.
References getUInt16Ty(), getUInt32Ty(), getUInt64Ty(), and getUInt8Ty().
Referenced by emitX86Aes(), emitX86Aeswide(), emitX86FunnelShift(), emitX86MaskedCompareResult(), emitX86vpcom(), getConstInt(), and makeBinaryAtomicValue().
|
inline |
Definition at line 102 of file CIRGenBuilder.h.
References getUniqueRecordName().
|
inline |
Definition at line 104 of file CIRGenBuilder.h.
Referenced by getUniqueAnonRecordName().
|
inline |
Definition at line 350 of file CIRGenBuilder.h.
Referenced by emitPrefetch().
|
inline |
Definition at line 389 of file CIRGenBuilder.h.
|
inline |
Definition at line 380 of file CIRGenBuilder.h.
|
inline |
Definition at line 383 of file CIRGenBuilder.h.
|
inline |
Definition at line 386 of file CIRGenBuilder.h.
|
inline |
Definition at line 377 of file CIRGenBuilder.h.
|
inline |
Definition at line 273 of file CIRGenBuilder.h.
References isNullValue().
Referenced by emitNullBaseClassInitialization(), getConstRecordOrZeroAttr(), isNullValue(), and clang::CIRGen::ConstantEmitter::tryEmitPrivate().
| mlir::Value CIRGenBuilderTy::maybeBuildArrayDecay | ( | mlir::Location | loc, |
| mlir::Value | arrayPtr, | ||
| mlir::Type | eltTy ) |
Returns a decayed pointer to the first element of the array pointed to by arrayPtr.
Definition at line 17 of file CIRGenBuilder.cpp.
References cir::CIRBaseBuilderTy::getPointerTo().
Referenced by getArrayElement().
|
inline |
Set the exception handling to be used with constrained floating point.
Definition at line 128 of file CIRGenBuilder.h.
|
inline |
Set the rounding mode handling to be used with constrained floating point.
Definition at line 140 of file CIRGenBuilder.h.
|
inline |
Enable/Disable use of constrained floating point math.
When enabled the CreateF<op>() calls instead create constrained floating point intrinsic calls. Fast math flags are unaffected by this setting.
Definition at line 122 of file CIRGenBuilder.h.