|
LLVM
13.0.0git
|
The instances of the Type class are immutable: once they are created, they are never changed. More...
#include "llvm/IR/Type.h"


Public Types | |
| enum | TypeID { HalfTyID = 0, BFloatTyID, FloatTyID, DoubleTyID, X86_FP80TyID, FP128TyID, PPC_FP128TyID, VoidTyID, LabelTyID, MetadataTyID, X86_MMXTyID, X86_AMXTyID, TokenTyID, IntegerTyID, FunctionTyID, PointerTyID, StructTyID, ArrayTyID, FixedVectorTyID, ScalableVectorTyID } |
| Definitions of all of the base types for the Type system. More... | |
| using | subtype_iterator = Type *const * |
| using | subtype_reverse_iterator = std::reverse_iterator< subtype_iterator > |
Public Member Functions | |
| void | print (raw_ostream &O, bool IsForDebug=false, bool NoDetails=false) const |
| Print the current type. More... | |
| void | dump () const |
| LLVMContext & | getContext () const |
| Return the LLVMContext in which this type was uniqued. More... | |
| TypeID | getTypeID () const |
| Return the type id for the type. More... | |
| bool | isVoidTy () const |
| Return true if this is 'void'. More... | |
| bool | isHalfTy () const |
| Return true if this is 'half', a 16-bit IEEE fp type. More... | |
| bool | isBFloatTy () const |
| Return true if this is 'bfloat', a 16-bit bfloat type. More... | |
| bool | isFloatTy () const |
| Return true if this is 'float', a 32-bit IEEE fp type. More... | |
| bool | isDoubleTy () const |
| Return true if this is 'double', a 64-bit IEEE fp type. More... | |
| bool | isX86_FP80Ty () const |
| Return true if this is x86 long double. More... | |
| bool | isFP128Ty () const |
| Return true if this is 'fp128'. More... | |
| bool | isPPC_FP128Ty () const |
| Return true if this is powerpc long double. More... | |
| bool | isFloatingPointTy () const |
| Return true if this is one of the six floating-point types. More... | |
| const fltSemantics & | getFltSemantics () const |
| bool | isX86_MMXTy () const |
| Return true if this is X86 MMX. More... | |
| bool | isX86_AMXTy () const |
| Return true if this is X86 AMX. More... | |
| bool | isFPOrFPVectorTy () const |
| Return true if this is a FP type or a vector of FP. More... | |
| bool | isLabelTy () const |
| Return true if this is 'label'. More... | |
| bool | isMetadataTy () const |
| Return true if this is 'metadata'. More... | |
| bool | isTokenTy () const |
| Return true if this is 'token'. More... | |
| bool | isIntegerTy () const |
| True if this is an instance of IntegerType. More... | |
| bool | isIntegerTy (unsigned Bitwidth) const |
| Return true if this is an IntegerType of the given width. More... | |
| bool | isIntOrIntVectorTy () const |
| Return true if this is an integer type or a vector of integer types. More... | |
| bool | isIntOrIntVectorTy (unsigned BitWidth) const |
| Return true if this is an integer type or a vector of integer types of the given width. More... | |
| bool | isIntOrPtrTy () const |
| Return true if this is an integer type or a pointer type. More... | |
| bool | isFunctionTy () const |
| True if this is an instance of FunctionType. More... | |
| bool | isStructTy () const |
| True if this is an instance of StructType. More... | |
| bool | isArrayTy () const |
| True if this is an instance of ArrayType. More... | |
| bool | isPointerTy () const |
| True if this is an instance of PointerType. More... | |
| bool | isPtrOrPtrVectorTy () const |
| Return true if this is a pointer type or a vector of pointer types. More... | |
| bool | isVectorTy () const |
| True if this is an instance of VectorType. More... | |
| bool | canLosslesslyBitCastTo (Type *Ty) const |
| Return true if this type could be converted with a lossless BitCast to type 'Ty'. More... | |
| bool | isEmptyTy () const |
| Return true if this type is empty, that is, it has no elements or all of its elements are empty. More... | |
| bool | isFirstClassType () const |
| Return true if the type is "first class", meaning it is a valid type for a Value. More... | |
| bool | isSingleValueType () const |
| Return true if the type is a valid type for a register in codegen. More... | |
| bool | isAggregateType () const |
| Return true if the type is an aggregate type. More... | |
| bool | isSized (SmallPtrSetImpl< Type * > *Visited=nullptr) const |
| Return true if it makes sense to take the size of this type. More... | |
| TypeSize | getPrimitiveSizeInBits () const LLVM_READONLY |
| Return the basic size of this type if it is a primitive type. More... | |
| unsigned | getScalarSizeInBits () const LLVM_READONLY |
| If this is a vector type, return the getPrimitiveSizeInBits value for the element type. More... | |
| int | getFPMantissaWidth () const |
| Return the width of the mantissa of this type. More... | |
| bool | isIEEE () const |
| Return whether the type is IEEE compatible, as defined by the eponymous method in APFloat. More... | |
| Type * | getScalarType () const |
| If this is a vector type, return the element type, otherwise return 'this'. More... | |
| subtype_iterator | subtype_begin () const |
| subtype_iterator | subtype_end () const |
| ArrayRef< Type * > | subtypes () const |
| subtype_reverse_iterator | subtype_rbegin () const |
| subtype_reverse_iterator | subtype_rend () const |
| Type * | getContainedType (unsigned i) const |
| This method is used to implement the type iterator (defined at the end of the file). More... | |
| unsigned | getNumContainedTypes () const |
| Return the number of types in the derived type. More... | |
| unsigned | getIntegerBitWidth () const |
| Type * | getFunctionParamType (unsigned i) const |
| unsigned | getFunctionNumParams () const |
| bool | isFunctionVarArg () const |
| StringRef | getStructName () const |
| unsigned | getStructNumElements () const |
| Type * | getStructElementType (unsigned N) const |
| uint64_t | getArrayNumElements () const |
| Type * | getArrayElementType () const |
| Type * | getPointerElementType () const |
| Type * | getWithNewType (Type *EltTy) const |
| Given vector type, change the element type, whilst keeping the old number of elements. More... | |
| Type * | getWithNewBitWidth (unsigned NewBitWidth) const |
| Given an integer or vector type, change the lane bitwidth to NewBitwidth, whilst keeping the old number of lanes. More... | |
| Type * | getExtendedType () const |
| Given scalar/vector integer type, returns a type with elements twice as wide as in the original type. More... | |
| unsigned | getPointerAddressSpace () const |
| Get the address space of this pointer or pointer vector type. More... | |
| PointerType * | getPointerTo (unsigned AddrSpace=0) const |
| Return a pointer to the current type. More... | |
Protected Member Functions | |
| Type (LLVMContext &C, TypeID tid) | |
| ~Type ()=default | |
| unsigned | getSubclassData () const |
| void | setSubclassData (unsigned val) |
Protected Attributes | |
| unsigned | NumContainedTys = 0 |
| Keeps track of how many Type*'s there are in the ContainedTys list. More... | |
| Type *const * | ContainedTys = nullptr |
| A pointer to the array of Types contained by this Type. More... | |
Friends | |
| class | LLVMContextImpl |
The instances of the Type class are immutable: once they are created, they are never changed.
Also note that only one instance of a particular type is ever created. Thus seeing if two types are equal is a matter of doing a trivial pointer comparison. To enforce that no two equal instances are created, Type instances can only be created via static factory methods in class Type and in derived classes. Once allocated, Types are never free'd.
| using llvm::Type::subtype_iterator = Type * const * |
| using llvm::Type::subtype_reverse_iterator = std::reverse_iterator<subtype_iterator> |
| enum llvm::Type::TypeID |
Definitions of all of the base types for the Type system.
Based on this value, you can cast to a class defined in DerivedTypes.h. Note: If you add an element to this, you need to add an element to the Type::getPrimitiveType function, or else things will break! Also update LLVMTypeKind and LLVMGetTypeKind () in the C binding.
| Enumerator | |
|---|---|
| HalfTyID | 16-bit floating point type |
| BFloatTyID | 16-bit floating point type (7-bit significand) |
| FloatTyID | 32-bit floating point type |
| DoubleTyID | 64-bit floating point type |
| X86_FP80TyID | 80-bit floating point type (X87) |
| FP128TyID | 128-bit floating point type (112-bit significand) |
| PPC_FP128TyID | 128-bit floating point type (two 64-bits, PowerPC) |
| VoidTyID | type with no size |
| LabelTyID | Labels. |
| MetadataTyID | |
| X86_MMXTyID | MMX vectors (64 bits, X86 specific) |
| X86_AMXTyID | AMX vectors (8192 bits, X86 specific) |
| TokenTyID | Tokens. |
| IntegerTyID | Arbitrary bit width integers. |
| FunctionTyID | Functions. |
| PointerTyID | Pointers. |
| StructTyID | Structures. |
| ArrayTyID | Arrays. |
| FixedVectorTyID | Fixed width SIMD vector type. |
| ScalableVectorTyID | Scalable SIMD vector type. |
|
inlineexplicitprotected |
Definition at line 93 of file Type.h.
Referenced by llvm::object::MinidumpFile::create().
|
protecteddefault |
| bool Type::canLosslesslyBitCastTo | ( | Type * | Ty | ) | const |
Return true if this type could be converted with a lossless BitCast to type 'Ty'.
For example, i8* to i32*. BitCasts are valid for types of the same size only where no re-interpretation of the bits is done. Determine if this type could be losslessly bitcast to Ty
Definition at line 63 of file Type.cpp.
References llvm::TypeSize::getFixedSize(), getPrimitiveSizeInBits(), isFirstClassType(), isX86_AMXTy(), and isX86_MMXTy().
| LLVM_DUMP_METHOD void Type::dump | ( | ) | const |
Definition at line 4777 of file AsmWriter.cpp.
References llvm::dbgs(), and print().
Referenced by llvm::coro::Shape::buildFrom(), and llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters().
|
inline |
Definition at line 373 of file Type.h.
References ArrayTyID, assert(), ContainedTys, and getTypeID().
Referenced by llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), isConstantUsingVectorTy(), and llvm::InstCombinerImpl::visitGetElementPtrInst().
|
inline |
Definition at line 386 of file DerivedTypes.h.
Referenced by llvm::InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse(), llvm::getConstantDataArrayInfo(), scalarConstantToHexString(), and llvm::InstCombinerImpl::visitGetElementPtrInst().
|
static |
Definition at line 209 of file Type.cpp.
References getBFloatTy(), and getPointerTo().
|
static |
Definition at line 183 of file Type.cpp.
Referenced by DecodeFixedType(), getBFloatPtrTy(), llvm::IRBuilderBase::getBFloatTy(), getFloatingPointTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMBFloatTypeInContext(), and UpgradeIntrinsicFunction1().
|
inline |
This method is used to implement the type iterator (defined at the end of the file).
For derived types, this returns the types 'contained' in the derived type.
Definition at line 346 of file Type.h.
References assert(), ContainedTys, i, and NumContainedTys.
Referenced by getScalarType(), llvm::X86TTIImpl::getTypeBasedIntrinsicInstrCost(), and llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getTypeBasedIntrinsicInstrCost().
|
inline |
Return the LLVMContext in which this type was uniqued.
Definition at line 128 of file Type.h.
References Context.
Referenced by llvm::InnerLoopVectorizer::buildScalarSteps(), llvm::VNCoercion::coerceAvailableValueToLoadTypeHelper(), llvm::ConstantFoldGetElementPtr(), llvm::convertPointerToIntegerType(), llvm::ShuffleVectorInst::convertShuffleMaskForBitcode(), llvm::StructType::create(), llvm::MatrixBuilder< IRBuilderTy >::CreateExtractElement(), llvm::orc::createIRTypedAddress(), llvm::FunctionLoweringInfo::CreateRegs(), evaluateBitcastFromPtr(), FoldBitCast(), foldConstantCastPair(), llvm::InlineAsm::get(), llvm::ConstantInt::get(), llvm::StructType::get(), llvm::ConstantFP::get(), llvm::ArrayType::get(), llvm::ConstantArray::get(), llvm::ConstantVector::get(), llvm::FixedVectorType::get(), llvm::ScalableVectorType::get(), llvm::PointerType::get(), llvm::ConstantExpr::getAlignOf(), getAllocationDataForFunction(), llvm::Constant::getAllOnesValue(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticReductionCost(), llvm::AArch64TTIImpl::getArithmeticReductionCostSVE(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::BasicBlock::getContext(), llvm::Function::getContext(), llvm::Value::getContext(), llvm::EVT::getEVT(), llvm::IntegerType::getExtendedType(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getFCmp(), getFoldedCast(), llvm::ConstantExpr::getICmp(), llvm::ConstantDataSequential::getImpl(), llvm::DataLayout::getIndexType(), llvm::ConstantFP::getInfinity(), llvm::VectorType::getInteger(), llvm::Constant::getIntegerValue(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), llvm::DataLayout::getIntPtrType(), llvm::VNCoercion::getLoadValueForLoad(), llvm::VNCoercion::getMemInstValueForLoadHelper(), llvm::X86TTIImpl::getMemoryOpCost(), llvm::TargetLoweringBase::getMemValueType(), llvm::AArch64TTIImpl::getMinMaxReductionCost(), llvm::ConstantFP::getNaN(), llvm::ConstantFP::getNegativeZero(), llvm::Constant::getNullValue(), llvm::ConstantExpr::getOffsetOf(), getPromotedType(), llvm::ConstantFP::getQNaN(), getReturnAttrs(), llvm::CallLowering::getReturnInfo(), llvm::ConstantExpr::getShuffleVector(), llvm::ConstantExpr::getSizeOf(), llvm::ConstantFP::getSNaN(), llvm::ConstantVector::getSplat(), llvm::InnerLoopVectorizer::getStepVector(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::ConstantInt::getTrue(), llvm::VectorType::getTruncatedElementVectorType(), llvm::TargetLoweringBase::getTypeLegalizationCost(), getTypePartition(), llvm::TargetLoweringBase::getValueType(), getWithNewBitWidth(), llvm::PointerType::getWithSamePointeeType(), llvm::ValueAsMetadata::handleDeletion(), hasLifetimeMarkers(), llvm::CallLowering::insertSRetIncomingArgument(), IsIncrementNSW(), IsIncrementNUW(), isIntegerWideningViable(), isVectorPromotionViableForSlice(), LLVMConstIntOfArbitraryPrecision(), llvm::FastISel::lowerCallTo(), llvm::TargetLowering::LowerCallTo(), llvm::AArch64CallLowering::lowerReturn(), llvm::CmpInst::makeCmpResultType(), memVTFromImageData(), llvm::TargetLowering::ParseConstraints(), llvm::GCNTTIImpl::rewriteIntrinsicWithAddressSpace(), llvm::StructType::setBody(), setInfoSVEStN(), llvm::StructType::setName(), llvm::ARMTargetLowering::shouldConvertSplatType(), SimplifyGEPInst(), solveTypeName(), llvm::CallLowering::splitToValueTypes(), llvm::InnerLoopVectorizer::truncateToMinimalBitwidths(), and llvm::MetadataAsValue::~MetadataAsValue().
|
static |
Definition at line 217 of file Type.cpp.
References getDoubleTy(), and getPointerTo().
|
static |
Definition at line 185 of file Type.cpp.
Referenced by convertImplicitDefToConstZero(), DecodeFixedType(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ConstantDataVector::get(), getDoublePtrTy(), llvm::IRBuilderBase::getDoubleTy(), getFloatingPointTy(), getFloatTypeForLLT(), getIntrinsicParamType(), getKeyFPValMD(), getPrimitiveType(), getScalarTy(), llvm::EVT::getTypeForEVT(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::LegalizerHelper::libcall(), LLVMDoubleTypeInContext(), LowerFPToInt(), ReplaceFPIntrinsicWithCall(), and shrinkFPConstant().
|
inline |
Given scalar/vector integer type, returns a type with elements twice as wide as in the original type.
For vectors, preserves element count.
Definition at line 705 of file DerivedTypes.h.
References assert(), llvm::VectorType::getExtendedElementVectorType(), and isIntOrIntVectorTy().
Referenced by dropRedundantMaskingOfLeftShiftInput().
|
inlinestatic |
Definition at line 444 of file Type.h.
References assert(), llvm::APFloatBase::BFloat(), getBFloatTy(), getDoubleTy(), getFloatTy(), getFP128Ty(), getHalfTy(), getPPC_FP128Ty(), getX86_FP80Ty(), llvm::APFloatBase::IEEEdouble(), llvm::APFloatBase::IEEEhalf(), llvm::APFloatBase::IEEEquad(), llvm::APFloatBase::IEEEsingle(), llvm::APFloatBase::PPCDoubleDouble(), S, and llvm::APFloatBase::x87DoubleExtended().
Referenced by llvm::ConstantFP::get().
|
static |
Definition at line 213 of file Type.cpp.
References getFloatTy(), and getPointerTo().
|
static |
Definition at line 184 of file Type.cpp.
Referenced by convertImplicitDefToConstZero(), llvm::MDBuilder::createFPMath(), DecodeFixedType(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::ConstantDataVector::get(), getFloatingPointTy(), getFloatPtrTy(), llvm::IRBuilderBase::getFloatTy(), getFloatTypeForLLT(), getIntrinsicParamType(), getPrimitiveType(), getScalarTy(), llvm::VectorType::getTruncatedElementVectorType(), llvm::EVT::getTypeForEVT(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::LegalizerHelper::libcall(), LLVMFloatTypeInContext(), LowerFPToInt(), ReplaceFPIntrinsicWithCall(), shrinkFPConstant(), and UpgradePTESTIntrinsic().
|
inline |
Definition at line 170 of file Type.h.
References llvm::APFloatBase::BFloat(), BFloatTyID, DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, llvm::APFloatBase::IEEEdouble(), llvm::APFloatBase::IEEEhalf(), llvm::APFloatBase::IEEEquad(), llvm::APFloatBase::IEEEsingle(), llvm_unreachable, PPC_FP128TyID, llvm::APFloatBase::PPCDoubleDouble(), X86_FP80TyID, and llvm::APFloatBase::x87DoubleExtended().
Referenced by llvm::ConstantFoldCastInstruction(), FoldBitCast(), fpModeMatchesGlobalFPAtomicMode(), llvm::ConstantFP::get(), llvm::Constant::getAllOnesValue(), llvm::ConstantFP::getInfinity(), llvm::ConstantFP::getNaN(), llvm::ConstantFP::getNegativeZero(), llvm::ConstantFP::getQNaN(), llvm::ConstantFP::getSNaN(), llvm::GCNTTIImpl::instCombineIntrinsic(), isIEEE(), llvm::isKnownNeverInfinity(), and llvm::InstCombinerImpl::visitFAdd().
|
static |
Definition at line 225 of file Type.cpp.
References getFP128Ty(), and getPointerTo().
|
static |
Definition at line 189 of file Type.cpp.
Referenced by DecodeFixedType(), llvm::X86InstrInfo::foldMemoryOperandImpl(), getFloatingPointTy(), getFloatTypeForLLT(), getFP128PtrTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), and LLVMFP128TypeInContext().
| int Type::getFPMantissaWidth | ( | ) | const |
Return the width of the mantissa of this type.
This is only valid on floating-point types. If the FP type does not have a stable mantissa (e.g. ppc long double), this method returns -1.
Definition at line 152 of file Type.cpp.
References assert(), BFloatTyID, DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, isFloatingPointTy(), PPC_FP128TyID, and X86_FP80TyID.
Referenced by llvm::InstCombinerImpl::foldFCmpIntToFPConst(), isKnownExactCastIntToFP(), shrinkFPConstantVector(), and llvm::InstCombinerImpl::visitFPTrunc().
|
inline |
Definition at line 156 of file DerivedTypes.h.
|
inline |
Definition at line 152 of file DerivedTypes.h.
References i.
Referenced by llvm::isLegalToPromote().
|
static |
Definition at line 205 of file Type.cpp.
References getHalfTy(), and getPointerTo().
|
static |
Definition at line 182 of file Type.cpp.
Referenced by convertTo16Bit(), DecodeFixedType(), getFloatingPointTy(), getFloatTypeForLLT(), getHalfPtrTy(), llvm::IRBuilderBase::getHalfTy(), getIntrinsicParamType(), getPrimitiveType(), llvm::VectorType::getTruncatedElementVectorType(), llvm::EVT::getTypeForEVT(), LLVMHalfTypeInContext(), shrinkFPConstant(), and simplifyAMDGCNImageIntrinsic().
|
static |
Definition at line 199 of file Type.cpp.
Referenced by llvm::IntegerType::get(), llvm::IRBuilderBase::getInt128Ty(), llvm::EVT::getTypeForEVT(), and LLVMInt128TypeInContext().
|
static |
Definition at line 253 of file Type.cpp.
References getInt16Ty(), and getPointerTo().
|
static |
Definition at line 196 of file Type.cpp.
Referenced by convertTo16Bit(), llvm::IntegerType::get(), llvm::ConstantDataVector::get(), getInt16PtrTy(), llvm::IRBuilderBase::getInt16Ty(), getIntrinsicParamType(), llvm::GCNTTIImpl::getMemcpyLoopLoweringType(), llvm::GCNTTIImpl::getMemcpyLoopResidualLoweringType(), llvm::EVT::getTypeForEVT(), llvm::isBytewiseValue(), LLVMInt16TypeInContext(), llvm::ARMTargetLowering::shouldConvertSplatType(), and simplifyAMDGCNImageIntrinsic().
|
static |
Definition at line 245 of file Type.cpp.
References getInt1Ty(), and getPointerTo().
Referenced by llvm::InstCombiner::CreateNonTerminatorUnreachable(), llvm::InstCombinerImpl::CreateNonTerminatorUnreachable(), and llvm::SCEVExpander::getIVIncOperand().
|
static |
Definition at line 194 of file Type.cpp.
Referenced by llvm::SelectInst::areInvalidOperands(), llvm::JumpThreadingPass::computeValueKnownInPredecessorsImpl(), llvm::ConstantFoldCompareInstruction(), convertToGuardPredicates(), CreateAssert(), llvm::MDBuilder::createCallbackEncoding(), llvm::IRBuilderBase::CreateMaskedGather(), llvm::IRBuilderBase::CreateMaskedScatter(), DisableAllLoopOptsOnLoop(), llvm::IntegerType::get(), llvm::ConstantExpr::getAlignOf(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticReductionCost(), getEdgeValueLocal(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getFCmp(), llvm::ConstantExpr::getICmp(), getInt1PtrTy(), llvm::IRBuilderBase::getInt1Ty(), llvm::ConstantInt::getTrue(), llvm::EVT::getTypeForEVT(), LLVMInt1TypeInContext(), llvm::CmpInst::makeCmpResultType(), OptimizeGlobalAddressOfMalloc(), processCmp(), rewrite(), SimplifyCondBranchToCondBranch(), SwitchToLookupTable(), TryToShrinkGlobalToBoolean(), UpgradeIntrinsicFunction1(), and llvm::InstCombinerImpl::visitAllocSite().
|
static |
Definition at line 257 of file Type.cpp.
References getInt32Ty(), and getPointerTo().
|
static |
Definition at line 197 of file Type.cpp.
Referenced by llvm::Module::addModuleFlag(), llvm::annotateValueSite(), BuildConstantFromSCEV(), OutlinableGroup::collectGVNStoreSets(), llvm::ConstantFoldInsertElementInstruction(), llvm::convertPointerToIntegerType(), llvm::ShuffleVectorInst::convertShuffleMaskForBitcode(), llvm::ARMConstantPoolConstant::Create(), llvm::MDBuilder::createBranchWeights(), llvm::IRBuilderBase::CreateConstGEP1_32(), llvm::IRBuilderBase::CreateConstGEP2_32(), llvm::IRBuilderBase::CreateConstInBoundsGEP1_32(), llvm::IRBuilderBase::CreateConstInBoundsGEP2_32(), llvm::OpenMPIRBuilder::createDynamicWorkshareLoop(), llvm::IRBuilderBase::CreateGlobalStringPtr(), llvm::IRBuilderBase::CreatePreserveArrayAccessIndex(), llvm::IRBuilderBase::CreatePreserveStructAccessIndex(), createPrivateGlobalForSourceLoc(), createRelLookupTable(), llvm::OpenMPIRBuilder::createSections(), llvm::OpenMPIRBuilder::createStaticWorkshareLoop(), createStringMetadata(), createSwitchStatement(), doPromotion(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), evaluateInDifferentElementOrder(), findCostForOutputBlocks(), llvm::SanitizerStatReport::finish(), FoldBitCast(), foldInsSequenceIntoSplat(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::IntegerType::get(), llvm::ConstantDataVector::get(), getAISize(), llvm::ConstantExpr::getAlignOf(), getDefaultPersonalityFn(), getInt32PtrTy(), llvm::IRBuilderBase::getInt32Ty(), getIntrinsicParamType(), llvm::OpenMPIRBuilder::getLanemaskType(), llvm::GCNTTIImpl::getMemcpyLoopLoweringType(), llvm::GCNTTIImpl::getMemcpyLoopResidualLoweringType(), getOffsetFromIndices(), llvm::ConstantExpr::getOffsetOf(), getPromotedType(), llvm::ConstantExpr::getSizeOf(), llvm::ConstantVector::getSplat(), llvm::EVT::getTypeForEVT(), insertCall(), llvm::BPFCoreSharedInfo::insertPassThrough(), llvm::ARMTTIImpl::instCombineIntrinsic(), instCombineRDFFR(), llvm::isBytewiseValue(), llvm::PPCTTIImpl::isHardwareLoopProfitable(), llvm::ARMTTIImpl::isHardwareLoopProfitable(), llvm::ARMLegalizerInfo::legalizeCustom(), llvm::LegalizerHelper::libcall(), LLVMBuildArrayMalloc(), LLVMBuildMalloc(), LLVMInt32TypeInContext(), llvm::XCoreInstrInfo::loadImmediate(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::IntrinsicLowering::LowerIntrinsicCall(), lowerLoadRelative(), llvm::MergeBasicBlockIntoOnlyPred(), llvm::EscapeEnumerator::Next(), replaceCalledFunction(), runPass(), SegmentOffset(), llvm::ARMTargetLowering::shouldConvertSplatType(), llvm::InstCombinerImpl::SimplifyDemandedVectorElts(), SimplifyRelativeLoad(), splitGlobal(), SRAGlobal(), unpackLoadToAggregate(), unpackStoreToAggregate(), llvm::CallInst::updateProfWeight(), llvm::UpgradeIntrinsicCall(), llvm::UpgradeModuleFlags(), validExtractValueIndex(), validInsertValueIndex(), validShuffleVectorIndex(), llvm::InstCombinerImpl::visitBitCast(), llvm::InstCombinerImpl::visitExtractElementInst(), llvm::InstCombinerImpl::visitShuffleVectorInst(), and llvm::BasicBlock::~BasicBlock().
|
static |
Definition at line 261 of file Type.cpp.
References getInt64Ty(), and getPointerTo().
|
static |
Definition at line 198 of file Type.cpp.
Referenced by addModuleFlags(), llvm::GlobalObject::addTypeMetadata(), llvm::VNCoercion::analyzeLoadFromClobberingMemInst(), llvm::annotateValueSite(), llvm::MDBuilder::createCallbackEncoding(), llvm::IRBuilderBase::CreateConstGEP1_64(), llvm::IRBuilderBase::CreateConstGEP2_64(), llvm::IRBuilderBase::CreateConstInBoundsGEP1_64(), llvm::IRBuilderBase::CreateConstInBoundsGEP2_64(), llvm::MDBuilder::createFunctionEntryCount(), llvm::createIRLevelProfileFlagVar(), llvm::MDBuilder::createIrrLoopHeaderWeight(), llvm::orc::createIRTypedAddress(), llvm::MDBuilder::createPseudoProbeDesc(), llvm::IRBuilderBase::CreatePtrDiff(), llvm::MDBuilder::createTBAAAccessTag(), llvm::MDBuilder::createTBAANode(), llvm::MDBuilder::createTBAAScalarTypeNode(), llvm::MDBuilder::createTBAAStructNode(), llvm::MDBuilder::createTBAAStructTagNode(), llvm::MDBuilder::createTBAAStructTypeNode(), llvm::MDBuilder::createTBAATypeNode(), doPromotion(), llvm::orc::IRSpeculationLayer::emit(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::emitHiddenKernelArgs(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::AlignmentFromAssumptionsPass::extractAlignmentInfo(), foldConstantCastPair(), genLoopLimit(), llvm::IntegerType::get(), llvm::ConstantDataVector::get(), llvm::ConstantExpr::getAlignOf(), getInt64PtrTy(), llvm::IRBuilderBase::getInt64Ty(), getIntrinsicParamType(), getKeyValMD(), llvm::OpenMPIRBuilder::getLanemaskType(), llvm::GCNTTIImpl::getMemcpyLoopResidualLoweringType(), llvm::VNCoercion::getMemInstValueForLoadHelper(), llvm::ConstantExpr::getOffsetOf(), llvm::DIBuilder::getOrCreateSubrange(), llvm::ConstantExpr::getSizeOf(), llvm::InstrProfIncrementInst::getStep(), llvm::EVT::getTypeForEVT(), llvm::InlineFunction(), insertLifetimeMarkersSurroundingCall(), instCombineSVEDup(), instCombineSVELast(), llvm::isBytewiseValue(), llvm::PPCTTIImpl::isHardwareLoopProfitable(), llvm::LegalizerHelper::libcall(), LLVMInt64TypeInContext(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::GlobalObject::setVCallVisibilityMetadata(), llvm::AArch64TTIImpl::shouldConsiderAddressTypePromotion(), SimplifyRelativeLoad(), simplifyX86extrq(), unpackLoadToAggregate(), unpackStoreToAggregate(), llvm::CallInst::updateProfWeight(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::UpgradeTBAANode(), and llvm::InstCombinerImpl::visitCallInst().
|
static |
Definition at line 249 of file Type.cpp.
References getInt8Ty(), and getPointerTo().
Referenced by llvm::addRuntimeChecks(), llvm::VNCoercion::analyzeLoadFromClobberingMemInst(), appendToUsedList(), BuildConstantFromSCEV(), llvm::coro::Shape::buildFrom(), llvm::CoroIdInst::clearPromise(), createDevirtTriggerFunc(), createFree(), CreateGCRelocates(), createMalloc(), llvm::createMemLibcall(), CreatePrologue(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::emitHiddenKernelArgs(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), expandBounds(), llvm::CodeExtractor::findAllocas(), llvm::SanitizerStatReport::finish(), getAllocationDataForFunction(), llvm::TargetLoweringBase::getDefaultSafeStackPointerLocation(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::TargetLoweringBase::getIRStackGuard(), llvm::SCEVExpander::getIVIncOperand(), llvm::VNCoercion::getMemInstValueForLoadHelper(), getNaturalGEPWithOffset(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), hasLifetimeMarkers(), insertCall(), insertLifetimeMarkersSurroundingCall(), llvm::ARMTargetLowering::insertSSPDeclarations(), llvm::AArch64TargetLowering::insertSSPDeclarations(), llvm::PPCTargetLowering::insertSSPDeclarations(), llvm::X86TargetLowering::insertSSPDeclarations(), llvm::TargetLoweringBase::insertSSPDeclarations(), instrumentOneFunc(), llvm::isLibFreeFunction(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), llvm::EscapeEnumerator::Next(), prepareForSplit(), RemovePreallocated(), replaceAsyncResumeFunction(), llvm::coro::replaceCoroFree(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::SanitizerStatReport::SanitizerStatReport(), SegmentOffset(), setCoroInfo(), llvm::CoroIdInst::setCoroutineSelf(), setUsedInitializer(), SimplifyRelativeLoad(), splitAsyncCoroutine(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().
|
static |
Definition at line 195 of file Type.cpp.
Referenced by llvm::VNCoercion::analyzeLoadFromClobberingMemInst(), llvm::createMemCpyLoopUnknownSize(), llvm::OpenMPIRBuilder::createOffloadMapnames(), llvm::EmbedBitcodeInModule(), llvm::orc::IRSpeculationLayer::emit(), llvm::IntegerType::get(), llvm::ConstantDataVector::get(), llvm::SelectionDAG::getEVTAlign(), getInt8PtrTy(), llvm::IRBuilderBase::getInt8Ty(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getInterleavedMemoryOpCost(), getIntrinsicParamType(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), llvm::TargetTransformInfoImplBase::getMemcpyLoopLoweringType(), llvm::GCNTTIImpl::getMemcpyLoopResidualLoweringType(), llvm::TargetTransformInfoImplBase::getMemcpyLoopResidualLoweringType(), llvm::VNCoercion::getMemInstValueForLoadHelper(), llvm::EVT::getTypeForEVT(), llvm::isBytewiseValue(), LLVMInt8TypeInContext(), lowerLoadRelative(), llvm::coro::LowererBase::makeSubFnCall(), llvm::AtomicMemIntrinsic::setElementSizeInBytes(), splitAsyncCoroutine(), and llvm::UpgradeModuleFlags().
|
inline |
Definition at line 96 of file DerivedTypes.h.
Referenced by canBeCheaplyTransformed(), checkOverflow(), llvm::ConstantFoldGetElementPtr(), ConvertShiftToMul(), llvm::EmitGEPOffset(), evaluateGEPOffsetExpression(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), llvm::InstCombinerImpl::foldCmpLoadFromIndexedGlobal(), llvm::InstCombinerImpl::foldICmpWithCastOp(), generateSignedDivisionCode(), generateSignedRemainderCode(), llvm::LazyValueInfo::getConstantRange(), llvm::LazyValueInfo::getConstantRangeOnEdge(), getEdgeValueLocal(), llvm::ARMTTIImpl::getIntImmCostInst(), getKmpcForDynamicInitForType(), getKmpcForDynamicNextForType(), getKmpcForStaticInitForType(), llvm::RecurrenceDescriptor::getRecurrenceIdentity(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::getTypeName(), llvm::DataLayout::getTypeSizeInBits(), getValueFromICmpCondition(), getValueFromSimpleICmpCondition(), hasSameExtUse(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::X86TTIImpl::instCombineIntrinsic(), llvm::GCNTTIImpl::instCombineIntrinsic(), llvm::X86TTIImpl::isLegalMaskedExpandLoad(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), isLoadCombineCandidateImpl(), llvm::ConstantInt::isValueValidForType(), narrowSDivOrSRem(), processUDivOrURem(), stripAndComputeConstantOffsets(), and llvm::InstCombinerImpl::visitFAdd().
|
static |
Definition at line 241 of file Type.cpp.
References getIntNTy(), getPointerTo(), and N.
Referenced by getAddrPtrType().
|
static |
Definition at line 201 of file Type.cpp.
References llvm::IntegerType::get(), and N.
Referenced by computeRecurrenceType(), llvm::ConstantFoldGetElementPtr(), llvm::InnerLoopVectorizer::createBitOrPointerCast(), createMaskInstrs(), foldBitcastExtElt(), getConstantVector(), llvm::IntegerType::getExtendedType(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), getIntNPtrTy(), llvm::IRBuilderBase::getIntNTy(), llvm::DataLayout::getLargestLegalIntType(), getMemCmpLoad(), getScalarTy(), llvm::DataLayout::getSmallestLegalIntType(), getWithNewBitWidth(), inlineGetBaseAndOffset(), llvm::isBytewiseValue(), lowerBuildVectorAsBroadcast(), makeStatepointExplicitImpl(), narrowSDivOrSRem(), processUDivOrURem(), and llvm::recognizeBSwapOrBitReverseIdiom().
|
static |
Definition at line 181 of file Type.cpp.
Referenced by getPrimitiveType(), and LLVMLabelTypeInContext().
|
static |
Definition at line 186 of file Type.cpp.
Referenced by DecodeFixedType(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMMetadataTypeInContext(), and llvm::ValueEnumerator::ValueEnumerator().
|
inline |
Return the number of types in the derived type.
Definition at line 352 of file Type.h.
References NumContainedTys.
|
inline |
Get the address space of this pointer or pointer vector type.
Definition at line 728 of file DerivedTypes.h.
References getScalarType().
Referenced by AddNonNullPointer(), llvm::AMDGPUAAResult::alias(), llvm::VNCoercion::analyzeLoadFromClobberingMemInst(), annotateDereferenceableBytes(), annotateNonNullNoUndefBasedOnAccess(), BuildConstantFromSCEV(), llvm::VNCoercion::canCoerceMustAliasedValueToLoad(), canConvertValue(), llvm::castToCStr(), cloneConstantExprWithNewAddressSpace(), llvm::orc::cloneGlobalAliasDecl(), llvm::InstCombinerImpl::combineLoadToNewType(), llvm::ConstantFoldCastOperand(), convertValue(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), expandBounds(), llvm::InstCombinerImpl::foldGEPICmp(), llvm::InstCombinerImpl::foldICmpWithCastOp(), getAccessType(), llvm::IntToPtrInst::getAddressSpace(), llvm::AMDGPUTargetMachine::getAssumedAddrSpace(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::CastInst::getCastOpcode(), llvm::AddrSpaceCastOperator::getDestAddressSpace(), llvm::AddrSpaceCastInst::getDestAddressSpace(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::VNCoercion::getLoadValueForLoad(), llvm::VNCoercion::getMemInstValueForLoadHelper(), llvm::Module::getOrInsertGlobal(), llvm::LoadInst::getPointerAddressSpace(), llvm::StoreInst::getPointerAddressSpace(), llvm::GEPOperator::getPointerAddressSpace(), llvm::AtomicCmpXchgInst::getPointerAddressSpace(), llvm::AtomicRMWInst::getPointerAddressSpace(), llvm::GetElementPtrInst::getPointerAddressSpace(), llvm::PtrToIntInst::getPointerAddressSpace(), llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), llvm::ConstantExpr::getPointerCast(), llvm::getPointersDiff(), llvm::AddrSpaceCastOperator::getSrcAddressSpace(), llvm::AddrSpaceCastInst::getSrcAddressSpace(), llvm::DataLayout::getTypeSizeInBits(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::getValueKind(), hasLifetimeMarkers(), inlineGetBaseAndOffset(), isCompatibleIVType(), llvm::CastInst::isEliminableCastPair(), isKnownNonNullFromDominatingCondition(), isKnownNonZeroFromAssume(), isUnsupportedAMDGPUAddrspace(), llvm::TargetLoweringObjectFileELF::lowerRelativeReference(), llvm::TargetLoweringObjectFileCOFF::lowerRelativeReference(), llvm::TargetLoweringObjectFileWasm::lowerRelativeReference(), llvm::MachinePointerInfo::MachinePointerInfo(), maybePrintCallAddrSpace(), optimizeMemCmpConstantSize(), optimizeOnceStoredGlobal(), llvm::AMDGPUAAResult::pointsToConstantMemory(), llvm::GCNTTIImpl::rewriteIntrinsicWithAddressSpace(), scalarizeMaskedLoad(), scalarizeMaskedStore(), shouldBeMustTail(), shouldInstrumentReadWriteFromAddress(), simplifyInvariantGroupIntrinsic(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::InnerLoopVectorizer::vectorizeInterleaveGroup(), llvm::InstCombinerImpl::visitAllocaInst(), and llvm::InstCombinerImpl::visitGetElementPtrInst().
|
inline |
Definition at line 378 of file Type.h.
References assert(), ContainedTys, getTypeID(), and PointerTyID.
Referenced by CleanupConstantGlobalUsers(), llvm::InstCombinerImpl::combineLoadToNewType(), llvm::OpenMPIRBuilder::createAtomicCapture(), llvm::OpenMPIRBuilder::createAtomicRead(), llvm::OpenMPIRBuilder::createAtomicUpdate(), llvm::OpenMPIRBuilder::createAtomicWrite(), llvm::coro::createMustTailCall(), getFrameLayout(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::RuntimePointerChecking::insert(), llvm::CastInst::isEliminableCastPair(), llvm::InductionDescriptor::isInductionPHI(), isLoadCombineCandidateImpl(), isVectorPromotionViableForSlice(), llvm::IRBuilderBase::LLVM_ATTRIBUTE_DEPRECATED(), llvm::PatternMatch::VScaleVal_match::match(), operandWithNewAddressSpaceOrCreateUndef(), llvm::promoteLoopAccessesToScalars(), replaceSwiftErrorOps(), tryPromoteAllocaToVector(), and llvm::InnerLoopVectorizer::widenPHIInstruction().
| PointerType * Type::getPointerTo | ( | unsigned | AddrSpace = 0 | ) | const |
Return a pointer to the current type.
This is equivalent to PointerType::get(Foo, AddrSpace).
Definition at line 728 of file Type.cpp.
References llvm::PointerType::get().
Referenced by buildFrameType(), llvm::InstCombinerImpl::combineLoadToNewType(), combineStoreToNewValue(), llvm::OpenMPIRBuilder::createAtomicRead(), llvm::OpenMPIRBuilder::createAtomicWrite(), createCmpXchgInstFun(), createFramePtr(), llvm::OpenMPIRBuilder::createOffloadMapnames(), llvm::EmbedBitcodeInModule(), llvm::orc::IRSpeculationLayer::emit(), emitSetSwiftErrorValue(), llvm::HexagonTargetLowering::emitStoreConditional(), getAdjustedPtr(), llvm::ConstantExpr::getAlignOf(), getBFloatPtrTy(), getDoublePtrTy(), getFloatPtrTy(), getFP128PtrTy(), llvm::ConstantExpr::getGetElementPtr(), getHalfPtrTy(), getInt16PtrTy(), getInt1PtrTy(), getInt32PtrTy(), getInt64PtrTy(), getInt8PtrTy(), getIntNPtrTy(), getIntrinsicParamType(), llvm::OpenMPIRBuilder::getOrCreateRuntimeFunction(), getPPC_FP128PtrTy(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), llvm::ScalarEvolution::getSizeOfScalableVectorExpr(), getX86_AMXPtrTy(), getX86_FP80PtrTy(), getX86_MMXPtrTy(), llvm::CallLowering::insertSRetLoads(), llvm::CallLowering::insertSRetStores(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedStore(), lowerLoadRelative(), lowerSubFn(), operandWithNewAddressSpaceOrCreateUndef(), optimizeMemCmpConstantSize(), llvm::ExecutionEngine::runFunctionAsMain(), scalarizeMaskedLoad(), scalarizeMaskedStore(), SegmentOffset(), SimplifyRelativeLoad(), splitMergedValStore(), splitRetconCoroutine(), tryPromoteAllocaToVector(), UseTlsOffset(), and llvm::InnerLoopVectorizer::vectorizeInterleaveGroup().
|
static |
Definition at line 229 of file Type.cpp.
References getPointerTo(), and getPPC_FP128Ty().
|
static |
Definition at line 190 of file Type.cpp.
Referenced by getFloatingPointTy(), getPPC_FP128PtrTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMPPCFP128TypeInContext(), and shrinkFPConstant().
| TypeSize Type::getPrimitiveSizeInBits | ( | ) | const |
Return the basic size of this type if it is a primitive type.
These are fixed by LLVM and are not target-dependent. This will return zero if the type does not have a size or is not a primitive type.
If this is a scalable vector type, the scalable property will be set and the runtime size will be a positive integer multiple of the base size.
Note that this may not reflect the size of memory allocated for an instance of the type or the number of bytes that are written when an instance of the type is stored to memory. The DataLayout class provides additional query functions to provide this information.
Definition at line 122 of file Type.cpp.
References assert(), BFloatTyID, DoubleTyID, llvm::TypeSize::Fixed(), FixedVectorTyID, FloatTyID, FP128TyID, getBitWidth(), llvm::VectorType::getElementCount(), llvm::VectorType::getElementType(), llvm::TypeSize::getFixedSize(), getPrimitiveSizeInBits(), getTypeID(), HalfTyID, IntegerTyID, llvm::LinearPolySize< LeafTy >::isScalable(), PPC_FP128TyID, ScalableVectorTyID, X86_AMXTyID, X86_FP80TyID, and X86_MMXTyID.
Referenced by llvm::HexagonTargetLowering::allowTruncateForTailCall(), llvm::ARMTargetLowering::allowTruncateForTailCall(), llvm::X86TargetLowering::allowTruncateForTailCall(), areExtractShuffleVectors(), llvm::ARMTargetLowering::canCombineStoreAndExtract(), canLosslesslyBitCastTo(), llvm::CastInst::castIsValid(), CheckAndCreateOffsetAdd(), collectInsertionElements(), llvm::InstCombinerImpl::commonCastTransforms(), llvm::SelectionDAG::computeKnownBits(), llvm::SelectionDAG::ComputeNumSignBits(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldLoadFromConstPtr(), createCmpXchgInstFun(), llvm::DecodeVPERMIL2PMask(), llvm::DecodeVPPERMMask(), despeculateCountZeros(), llvm::HexagonTargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), evaluateGEPOffsetExpression(), llvm::extractConstantMask(), FoldBitCast(), foldBitcastExtElt(), llvm::InstCombinerImpl::foldCmpLoadFromIndexedGlobal(), llvm::InstCombinerImpl::foldGEPICmp(), llvm::InstCombinerImpl::foldICmpEquality(), foldIdentityExtractShuffle(), foldVecTruncToExtElt(), llvm::AArch64TargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::Constant::getAllOnesValue(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantDataSequential::getElementByteSize(), llvm::VectorType::getInteger(), llvm::SystemZTTIImpl::getIntImmCost(), llvm::PPCTTIImpl::getIntImmCost(), llvm::AArch64TTIImpl::getIntImmCost(), llvm::ARMTTIImpl::getIntImmCost(), llvm::X86TTIImpl::getIntImmCost(), llvm::SystemZTTIImpl::getIntImmCostInst(), llvm::PPCTTIImpl::getIntImmCostInst(), llvm::AArch64TTIImpl::getIntImmCostInst(), llvm::X86TTIImpl::getIntImmCostInst(), llvm::SystemZTTIImpl::getIntImmCostIntrin(), llvm::PPCTTIImpl::getIntImmCostIntrin(), llvm::AArch64TTIImpl::getIntImmCostIntrin(), llvm::X86TTIImpl::getIntImmCostIntrin(), llvm::VNCoercion::getLoadLoadClobberFullWidthSize(), llvm::HexagonTTIImpl::getMemoryOpCost(), llvm::PPCTTIImpl::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMemoryOpCost(), llvm::InnerLoopVectorizer::getOrCreateTripCount(), getPrimitiveSizeInBits(), llvm::NVPTXTargetLowering::getPrototype(), getScalarSizeInBits(), llvm::X86TTIImpl::getShuffleCost(), getTargetConstantBitsFromNode(), llvm::VectorType::getTruncatedElementVectorType(), getTypeSizeIndex(), llvm::SystemZTTIImpl::getVectorTruncCost(), hasTocDataAttr(), llvm::X86TTIImpl::instCombineIntrinsic(), llvm::CastInst::isBitCastable(), llvm::ARMTTIImpl::isLegalMaskedLoad(), isMultipleOfTypeSize(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::RISCVTargetLowering::isTruncateFree(), llvm::ARMTargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::NVPTXTargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isZExtFree(), LowerCTLZ(), LowerCTPOP(), optimizeVectorResizeWithIntegerBitCasts(), processUGT_ADDCST_ADD(), processUMulZExtIdiom(), llvm::replaceAllDbgUsesWith(), llvm::SCEVExpander::replaceCongruentIVs(), scalarConstantToHexString(), scalarizeMaskedLoad(), scalarizeMaskedStore(), llvm::ARMTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::AArch64TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::PPCTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::X86TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::RISCVTargetLowering::shouldExpandAtomicCmpXchgInIR(), llvm::ARMTargetLowering::shouldExpandAtomicCmpXchgInIR(), llvm::HexagonTargetLowering::shouldExpandAtomicLoadInIR(), llvm::ARMTargetLowering::shouldExpandAtomicLoadInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicLoadInIR(), llvm::SparcTargetLowering::shouldExpandAtomicRMWInIR(), llvm::RISCVTargetLowering::shouldExpandAtomicRMWInIR(), llvm::ARMTargetLowering::shouldExpandAtomicRMWInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicRMWInIR(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetShuffle(), SimplifyICmpInst(), simplifyX86pack(), SwitchToLookupTable(), upgradeAVX512MaskToSelect(), UpgradeMaskedLoad(), UpgradeX86VPERMT2Intrinsics(), llvm::InstCombinerImpl::visitGetElementPtrInst(), and llvm::InstCombinerImpl::visitPHINode().
|
static |
Return a type based on an identifier.
Definition at line 39 of file Type.cpp.
References BFloatTyID, DoubleTyID, FloatTyID, FP128TyID, getBFloatTy(), getDoubleTy(), getFloatTy(), getFP128Ty(), getHalfTy(), getLabelTy(), getMetadataTy(), getPPC_FP128Ty(), getTokenTy(), getVoidTy(), getX86_AMXTy(), getX86_FP80Ty(), getX86_MMXTy(), HalfTyID, LabelTyID, MetadataTyID, PPC_FP128TyID, TokenTyID, VoidTyID, X86_AMXTyID, X86_FP80TyID, and X86_MMXTyID.
| unsigned Type::getScalarSizeInBits | ( | ) | const |
If this is a vector type, return the getPrimitiveSizeInBits value for the element type.
Otherwise return the getPrimitiveSizeInBits value for this type.
Definition at line 147 of file Type.cpp.
References llvm::TypeSize::getFixedSize(), getPrimitiveSizeInBits(), and getScalarType().
Referenced by llvm::InnerLoopVectorizer::buildScalarSteps(), canEvaluateSExtd(), canEvaluateShiftedShift(), canEvaluateTruncated(), canEvaluateZExtd(), canonicalizeAbs(), canScalarizeAccess(), canTryToConstantAddTwoShiftAmounts(), llvm::CastInst::castIsValid(), CheckAndCreateOffsetAdd(), collectBitParts(), llvm::computeConstantRange(), llvm::SelectionDAG::computeKnownBits(), llvm::computeOverflowForSignedMul(), llvm::ConstantFoldCastOperand(), llvm::ConstantFoldGetElementPtr(), llvm::convertPointerToIntegerType(), llvm::OpenMPIRBuilder::createAtomicRead(), llvm::OpenMPIRBuilder::createAtomicWrite(), llvm::MatrixBuilder< IRBuilderTy >::CreateExtractElement(), llvm::CastInst::CreateFPCast(), llvm::CastInst::CreateIntegerCast(), llvm::FixedPointBuilder< IRBuilderTy >::CreateIntegerToFixed(), llvm::CastInst::CreateSExtOrBitCast(), llvm::IRBuilderBase::CreateSExtOrTrunc(), llvm::CastInst::CreateTruncOrBitCast(), llvm::CastInst::CreateZExtOrBitCast(), llvm::IRBuilderBase::CreateZExtOrTrunc(), dropRedundantMaskingOfLeftShiftInput(), llvm::InstCombinerImpl::foldAddWithConstant(), foldCtpop(), llvm::InstCombinerImpl::foldFCmpIntToFPConst(), foldGuardedFunnelShift(), llvm::InstCombinerImpl::foldICmpAndConstConst(), foldICmpBitCast(), llvm::InstCombinerImpl::foldICmpSRemConstant(), llvm::InstCombinerImpl::foldICmpTruncConstant(), llvm::InstCombinerImpl::foldICmpUsingKnownBits(), foldICmpWithZextOrSext(), llvm::InstCombinerImpl::foldItoFPtoI(), foldSelectICmpAndOr(), foldSelectICmpLshrAshr(), llvm::InstCombinerImpl::FoldShiftByConstant(), foldShiftedShift(), foldShiftIntoShiftInAnotherHandOfAndInICmp(), foldShiftOfShiftedLogic(), llvm::InstCombinerImpl::foldSignBitTest(), foldSignedTruncationCheck(), foldTruncShuffle(), generateCreationChecksForBinOp(), llvm::SystemZTTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticInstrCost(), getBitWidth(), llvm::SystemZTTIImpl::getCastInstrCost(), llvm::TargetTransformInfoImplBase::getCastInstrCost(), llvm::SystemZTTIImpl::getCmpSelInstrCost(), llvm::ExecutionEngine::getConstantValue(), getElSizeLog2Diff(), llvm::IntegerType::getExtendedType(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::ConstantExpr::getFPTrunc(), llvm::ConstantExpr::getIntegerCast(), llvm::ARMTTIImpl::getIntrinsicInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::GCNTTIImpl::getLoadVectorFactor(), llvm::SystemZTTIImpl::getMemoryOpCost(), getScalarSizeInBits(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSExtOrBitCast(), llvm::InnerLoopVectorizer::getStepVector(), getTargetConstantBitsFromNode(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::ConstantExpr::getTrunc(), llvm::ConstantExpr::getTruncOrBitCast(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getTypeBasedIntrinsicInstrCost(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getUserCost(), getValueFromICmpCondition(), llvm::SystemZTTIImpl::getVectorBitmaskConversionCost(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::ARMTTIImpl::getVectorInstrCost(), llvm::SystemZTTIImpl::getVectorTruncCost(), llvm::getWiderType(), llvm::ConstantExpr::getZExt(), llvm::ConstantExpr::getZExtOrBitCast(), llvm::ARMTTIImpl::instCombineIntrinsic(), llvm::X86TTIImpl::instCombineIntrinsic(), llvm::CastInst::isEliminableCastPair(), llvm::SystemZTTIImpl::isFoldableLoad(), isKnownExactCastIntToFP(), isKnownToBeAPowerOfTwo(), llvm::ARMTTIImpl::isLegalMaskedGather(), llvm::ARMTTIImpl::isLegalMaskedLoad(), llvm::CastInst::isNoopCast(), llvm::AMDGPUTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isVectorShiftByScalarCheap(), llvm::AMDGPUTargetLowering::isZExtFree(), LowerBSWAP(), matchIntPart(), matchOrConcat(), llvm::TargetTransformInfoImplBase::minRequiredElementSize(), llvm::ARMTTIImpl::preferInLoopReduction(), processAbsIntrinsic(), llvm::recognizeBSwapOrBitReverseIdiom(), llvm::salvageDebugInfoImpl(), SimplifyAndInst(), SimplifyAShrInst(), llvm::InstCombinerImpl::SimplifyDemandedInstructionBits(), llvm::InstCombinerImpl::SimplifyDemandedUseBits(), SimplifyGEPInst(), SimplifyLShrInst(), llvm::InstCombinerImpl::simplifyShrShlDemandedBits(), simplifyUnaryIntrinsic(), simplifyX86pack(), llvm::InstCombinerImpl::SliceUpIllegalIntegerPHI(), tryToRecognizePopCount(), upgradeAVX512MaskToSelect(), UpgradeX86VPERMT2Intrinsics(), llvm::InstCombinerImpl::visitAnd(), llvm::InstCombinerImpl::visitAShr(), llvm::InstCombinerImpl::visitBitCast(), llvm::InstCombinerImpl::visitCallInst(), llvm::InstCombinerImpl::visitIntToPtr(), llvm::InstCombinerImpl::visitLShr(), llvm::InstCombinerImpl::visitOr(), llvm::InstCombinerImpl::visitPtrToInt(), llvm::InstCombinerImpl::visitSDiv(), llvm::InstCombinerImpl::visitSExt(), llvm::InstCombinerImpl::visitShl(), llvm::InstCombinerImpl::visitShuffleVectorInst(), llvm::InstCombinerImpl::visitSub(), llvm::InstCombinerImpl::visitTrunc(), llvm::InstCombinerImpl::visitXor(), llvm::InstCombinerImpl::visitZExt(), and llvm::reassociate::XorOpnd::XorOpnd().
|
inlinestatic |
Definition at line 430 of file Type.h.
References getDoubleTy(), getFloatTy(), getIntNTy(), and llvm_unreachable.
|
inline |
If this is a vector type, return the element type, otherwise return 'this'.
Definition at line 317 of file Type.h.
References getContainedType(), and isVectorTy().
Referenced by llvm::VNCoercion::analyzeLoadFromClobberingMemInst(), llvm::InnerLoopVectorizer::buildScalarSteps(), llvm::VNCoercion::canCoerceMustAliasedValueToLoad(), canConvertValue(), llvm::CastInst::castIsValid(), computeKnownBits(), computeKnownBitsFromOperator(), ComputeNumSignBitsImpl(), concatenateTwoVectors(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldLoadThroughBitcast(), llvm::GetElementPtrInst::Create(), llvm::MatrixBuilder< IRBuilderTy >::CreateScalarMultiply(), llvm::IRBuilderBase::CreateStepVector(), llvm::EmitGEPOffset(), evaluateInDifferentElementOrder(), llvm::InstCombinerImpl::foldICmpUsingKnownBits(), llvm::InstCombinerImpl::foldVectorBinop(), fpModeMatchesGlobalFPAtomicMode(), llvm::ConstantInt::get(), llvm::ConstantFP::get(), llvm::ConstantExpr::getAddrSpaceCast(), llvm::SystemZTTIImpl::getArithmeticInstrCost(), llvm::AArch64TTIImpl::getArithmeticInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::SystemZTTIImpl::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), getCmpOpsType(), llvm::SystemZTTIImpl::getCmpSelInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCmpSelInstrCost(), llvm::ConstantExpr::getExactLogBase2(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::DataLayout::getIndexTypeSizeInBits(), llvm::ConstantFP::getInfinity(), llvm::Constant::getIntegerValue(), llvm::ARMTTIImpl::getInterleavedMemoryOpCost(), llvm::AArch64TTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX512(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::ConstantFP::getNaN(), llvm::ConstantFP::getNegativeZero(), getPointerAddressSpace(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::ConstantFP::getQNaN(), llvm::PPCTTIImpl::getRegisterClassForType(), getScalarIntrinsicDeclaration(), getScalarSizeInBits(), llvm::SystemZTTIImpl::getShuffleCost(), llvm::ConstantFP::getSNaN(), llvm::InnerLoopVectorizer::getStepVector(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getTypeBasedIntrinsicInstrCost(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::X86TTIImpl::getVectorInstrCost(), llvm::ARMTTIImpl::getVectorInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getVectorInstrCost(), hasSameExtUse(), llvm::haveNoCommonBitsSet(), llvm::GCNTTIImpl::instCombineIntrinsic(), llvm::CastInst::isEliminableCastPair(), llvm::AArch64TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::PPCTargetLowering::isFMAFasterThanFMulAndFAdd(), isFPOrFPVectorTy(), isIntOrIntVectorTy(), llvm::isKnownNeverInfinity(), isKnownNonZero(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::RISCVTTIImpl::isLegalMaskedGatherScatter(), llvm::AArch64TTIImpl::isLegalMaskedGatherScatter(), llvm::X86TTIImpl::isLegalMaskedLoad(), llvm::RISCVTTIImpl::isLegalMaskedLoadStore(), llvm::AArch64TTIImpl::isLegalMaskedLoadStore(), isPtrOrPtrVectorTy(), LLVMBuildGEP(), LLVMBuildInBoundsGEP(), LLVMBuildStructGEP(), LLVMConstGEP(), LLVMConstInBoundsGEP(), lowerStatepointMetaArgs(), llvm::ARMTargetLowering::shouldConvertSplatType(), shrinkInsertElt(), simplifyAMDGCNMemoryIntrinsicDemanded(), upgradeX86ConcatShift(), upgradeX86Rotate(), llvm::InstCombinerImpl::visitAddrSpaceCast(), llvm::InstCombinerImpl::visitAnd(), llvm::InstCombinerImpl::visitBitCast(), llvm::InstCombinerImpl::visitFAdd(), visitMaskedMerge(), llvm::InstCombinerImpl::visitPtrToInt(), llvm::InstCombinerImpl::visitXor(), and llvm::InnerLoopVectorizer::widenPHIInstruction().
|
inline |
Definition at line 354 of file DerivedTypes.h.
References N.
Referenced by createCast(), isConstantUsingVectorTy(), originalTypeIsF128(), and simplifyX86addcarry().
|
inline |
Definition at line 346 of file DerivedTypes.h.
Referenced by false::operator<<(), and solveTypeName().
|
inline |
Definition at line 350 of file DerivedTypes.h.
Referenced by createCast(), llvm::InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse(), llvm::ConstantAggregateZero::getElementCount(), llvm::UndefValue::getNumElements(), isConstantUsingVectorTy(), and originalTypeIsF128().
|
inlineprotected |
Definition at line 97 of file Type.h.
Referenced by llvm::PointerType::getAddressSpace(), llvm::IntegerType::getBitWidth(), llvm::StructType::isLiteral(), llvm::StructType::isOpaque(), llvm::StructType::isPacked(), llvm::StructType::isSized(), llvm::FunctionType::isVarArg(), llvm::StructType::setBody(), and setSubclassData().
|
static |
Definition at line 187 of file Type.cpp.
Referenced by DecodeFixedType(), getPrimitiveType(), LLVMBuildCatchSwitch(), LLVMBuildCleanupPad(), and LLVMTokenTypeInContext().
|
inline |
Return the type id for the type.
This will return one of the TypeID enum elements defined above.
Definition at line 136 of file Type.h.
Referenced by llvm::FunctionComparator::cmpTypes(), llvm::isa_impl< PointerType, Type >::doit(), executeFAddInst(), executeFCMP_OEQ(), executeFCMP_OGE(), executeFCMP_OGT(), executeFCMP_OLE(), executeFCMP_OLT(), executeFCMP_ONE(), executeFDivInst(), executeFMulInst(), executeFNegInst(), executeFRemInst(), executeFSubInst(), executeICMP_EQ(), executeICMP_NE(), executeICMP_SGE(), executeICMP_SGT(), executeICMP_SLE(), executeICMP_SLT(), executeICMP_UGE(), executeICMP_UGT(), executeICMP_ULE(), executeICMP_ULT(), llvm::InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse(), getArrayElementType(), llvm::ExecutionEngine::getConstantValue(), llvm::EVT::getEVT(), llvm::getFloatFnName(), getFltSemantics(), getFPMantissaWidth(), getMangledTypeStr(), llvm::Constant::getNullValue(), getPointerElementType(), getPrimitiveSizeInBits(), llvm::NVPTXTargetLowering::getPrototype(), llvm::VectorType::getTruncatedElementVectorType(), getTypeID(), llvm::AMDGPU::HSAMD::MetadataStreamerV3::getTypeName(), llvm::DataLayout::getTypeSizeInBits(), llvm::MVT::getVT(), llvm::hasFloatFn(), isAggregateType(), isArrayTy(), isBFloatTy(), isDoubleTy(), isFirstClassType(), isFloatingPointTy(), isFloatTy(), llvm::AArch64TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::PPCTargetLowering::isFMAFasterThanFMulAndFAdd(), isFP128Ty(), isFunctionTy(), isHalfTy(), isIntegerTy(), isLabelTy(), isLeakCheckerRoot(), llvm::XCoreTargetLowering::isLegalAddressingMode(), isMetadataTy(), isPointerTy(), isPPC_FP128Ty(), isSized(), isStructTy(), isTokenTy(), llvm::ConstantFP::isValueValidForType(), isVectorTy(), isVoidTy(), isX86_AMXTy(), isX86_FP80Ty(), isX86_MMXTy(), llvm::ExecutionEngine::LoadValueFromMemory(), needsFPFromSig(), needsFPStubFromParams(), ReplaceFPIntrinsicWithCall(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::StoreValueToMemory(), llvm::Interpreter::visitExtractElementInst(), llvm::Interpreter::visitExtractValueInst(), llvm::Interpreter::visitInsertElementInst(), llvm::Interpreter::visitInsertValueInst(), llvm::Interpreter::visitShuffleVectorInst(), and llvm::Interpreter::visitVAArgInst().
|
static |
Definition at line 180 of file Type.cpp.
Referenced by CreateAssert(), createDevirtTriggerFunc(), llvm::MIRParserImpl::createDummyFunction(), createEmptyFunction(), createFrameHelperMachineFunction(), createFree(), llvm::createMemLibcall(), llvm::createSanitizerCtor(), llvm::ThunkInserter< Derived >::createThunkFunction(), llvm::declareSanitizerInitFunction(), DecodeFixedType(), llvm::orc::IRSpeculationLayer::emit(), emitInlineAsm(), llvm::SanitizerStatReport::finish(), fixupFPReturnAndCall(), getFunctionTypeFromAsyncSuspend(), llvm::getOrCreateInitFunction(), llvm::getOrCreateSanitizerCtorAndInitFunctions(), getOrInsertValueProfilingCall(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), llvm::IRBuilderBase::getVoidTy(), insertCall(), InsertSafepointPoll(), llvm::ARMTargetLowering::insertSSPDeclarations(), llvm::AArch64TargetLowering::insertSSPDeclarations(), llvm::X86TargetLowering::insertSSPDeclarations(), insertUseHolderAfter(), LLVMVoidTypeInContext(), llvm::SelectionDAGBuilder::LowerCallSiteWithDeoptBundleImpl(), makeStatepointExplicitImpl(), prepareForSplit(), and llvm::Interpreter::visitReturnInst().
|
inline |
Given an integer or vector type, change the lane bitwidth to NewBitwidth, whilst keeping the old number of lanes.
Definition at line 721 of file DerivedTypes.h.
References assert(), getContext(), getIntNTy(), getWithNewType(), and isIntOrIntVectorTy().
Referenced by extractIntPart(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), and llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getTypeBasedIntrinsicInstrCost().
Given vector type, change the element type, whilst keeping the old number of elements.
For non-vectors simply returns EltTy.
Definition at line 715 of file DerivedTypes.h.
References llvm::VectorType::get().
Referenced by getWithNewBitWidth(), llvm::InstCombinerImpl::visitIntToPtr(), and llvm::InstCombinerImpl::visitPtrToInt().
|
static |
Definition at line 237 of file Type.cpp.
References getPointerTo(), and getX86_AMXTy().
|
static |
Definition at line 192 of file Type.cpp.
Referenced by createAllocaInstAtEntry(), DecodeFixedType(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), getX86_AMXPtrTy(), and LLVMX86AMXTypeInContext().
|
static |
Definition at line 221 of file Type.cpp.
References getPointerTo(), and getX86_FP80Ty().
|
static |
Definition at line 188 of file Type.cpp.
Referenced by getFloatingPointTy(), getFloatTypeForLLT(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), getX86_FP80PtrTy(), and LLVMX86FP80TypeInContext().
|
static |
Definition at line 233 of file Type.cpp.
References getPointerTo(), and getX86_MMXTy().
|
static |
Definition at line 191 of file Type.cpp.
Referenced by DecodeFixedType(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), getX86_MMXPtrTy(), and LLVMX86MMXTypeInContext().
|
inline |
Return true if the type is an aggregate type.
This means it is valid as the first operand of an insertvalue or extractvalue instruction. This includes struct and array types, but does not include vector types.
Definition at line 265 of file Type.h.
References ArrayTyID, getTypeID(), and StructTyID.
Referenced by advanceToNextLeafType(), llvm::CastInst::castIsValid(), llvm::ConstantFoldLoadThroughBitcast(), firstRealType(), llvm::ExecutionEngine::getConstantValue(), llvm::NVPTXTargetLowering::getPrototype(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::NVPTXTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerFormalArguments(), nextRealType(), llvm::InnerLoopVectorizer::scalarizeInstruction(), and tryPromoteAllocaToVector().
|
inline |
True if this is an instance of ArrayType.
Definition at line 226 of file Type.h.
References ArrayTyID, and getTypeID().
Referenced by llvm::VNCoercion::analyzeLoadFromClobberingLoad(), llvm::ConstantFoldCastInstruction(), llvm::FindInsertedValue(), llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::AArch64TargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::PPCTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::ConstantAggregateZero::get(), hasTocDataAttr(), isArray(), isConstantUsingVectorTy(), llvm::VNCoercion::isFirstClassAggregateOrScalableType(), llvm::SCEVUnknown::isOffsetOf(), and llvm::InstCombinerImpl::visitGetElementPtrInst().
|
inline |
Return true if this is 'bfloat', a 16-bit bfloat type.
Definition at line 145 of file Type.h.
References BFloatTyID, and getTypeID().
Referenced by emitDebugValueComment(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), llvm::ConstantDataSequential::isElementTypeCompatible(), llvm::AArch64TTIImpl::isLegalElementTypeForSVE(), llvm::AArch64TTIImpl::isLegalToVectorizeReduction(), LLVMConstRealGetDouble(), and matchIntrinsicType().
|
inline |
Return true if this is 'double', a 64-bit IEEE fp type.
Definition at line 151 of file Type.h.
References DoubleTyID, and getTypeID().
Referenced by llvm::ConstantFoldCastInstruction(), emitDebugValueComment(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::PPCTTIImpl::getRegisterClassForType(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::GCNTTIImpl::instCombineIntrinsic(), llvm::ConstantDataSequential::isElementTypeCompatible(), isHomogeneousAggregate(), llvm::InductionDescriptor::isInductionPHI(), llvm::RISCVTTIImpl::isLegalElementTypeForRVV(), llvm::AArch64TTIImpl::isLegalElementTypeForSVE(), llvm::X86TTIImpl::isLegalMaskedExpandLoad(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), llvm::X86TTIImpl::isLegalNTStore(), llvm::isMathLibCallNoop(), LLVMConstRealGetDouble(), llvm::ExecutionEngine::LoadValueFromMemory(), llvm::WebAssemblyMCInstLower::lower(), matchIntrinsicType(), optimizeDoubleFP(), llvm::SITargetLowering::shouldExpandAtomicRMWInIR(), shrinkFPConstant(), and solveTypeName().
| bool Type::isEmptyTy | ( | ) | const |
Return true if this type is empty, that is, it has no elements or all of its elements are empty.
Definition at line 105 of file Type.cpp.
References i.
Referenced by areGlobalsPotentiallyEqual(), llvm::CallLowering::ArgInfo::ArgInfo(), llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), llvm::FastISel::lowerCallTo(), and llvm::SelectionDAGBuilder::populateCallLoweringInfo().
|
inline |
Return true if the type is "first class", meaning it is a valid type for a Value.
Definition at line 251 of file Type.h.
References FunctionTyID, getTypeID(), and VoidTyID.
Referenced by canLosslesslyBitCastTo(), llvm::CastInst::castIsValid(), llvm::FunctionComparator::cmpConstants(), foldConstantCastPair(), llvm::CastInst::getCastOpcode(), llvm::ConstantExpr::getExtractValue(), getFoldedCast(), llvm::ConstantExpr::getInsertValue(), llvm::CastInst::isBitCastable(), llvm::FunctionType::isValidArgumentType(), and llvm::Value::Value().
|
inline |
Return true if this is one of the six floating-point types.
Definition at line 163 of file Type.h.
References BFloatTyID, DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, PPC_FP128TyID, and X86_FP80TyID.
Referenced by llvm::InnerLoopVectorizer::buildScalarSteps(), llvm::ConstantFoldLoadFromConstPtr(), llvm::ConstantFoldLoadThroughBitcast(), convertTo16Bit(), llvm::OpenMPIRBuilder::createAtomicCapture(), llvm::OpenMPIRBuilder::createAtomicRead(), llvm::OpenMPIRBuilder::createAtomicUpdate(), llvm::OpenMPIRBuilder::createAtomicWrite(), llvm::InnerLoopVectorizer::createBitOrPointerCast(), createCmpXchgInstFun(), llvm::MatrixBuilder< IRBuilderTy >::CreateScalarMultiply(), FoldBitCast(), foldBitcastExtElt(), llvm::Constant::getAllOnesValue(), llvm::SystemZTTIImpl::getCastInstrCost(), llvm::CastInst::getCastOpcode(), llvm::SystemZTTIImpl::getCmpSelInstrCost(), llvm::ExecutionEngine::getConstantValue(), getFPMantissaWidth(), getInductionVariable(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getInstructionLatency(), llvm::HexagonTTIImpl::getMemoryOpCost(), llvm::NVPTXTargetLowering::getPrototype(), llvm::InnerLoopVectorizer::getStepVector(), llvm::VectorType::getTruncatedElementVectorType(), llvm::X86TTIImpl::getVectorInstrCost(), llvm::AA::getWithType(), llvm::CastInst::isEliminableCastPair(), llvm::InductionDescriptor::isFPInductionPHI(), isFPOrFPVectorTy(), llvm::InductionDescriptor::isInductionPHI(), isSingleValueType(), isSized(), isSupportedAtomicType(), llvm::VectorType::isValidElementType(), llvm::NVPTXTargetLowering::LowerCall(), MaybeVectorizeType(), llvm::TargetLoweringBase::shouldConvertPhiType(), simplifyAMDGCNImageIntrinsic(), solveDIType(), solveTypeName(), supportedAddressingMode(), TryToShrinkGlobalToBoolean(), UpgradeIntrinsicFunction1(), llvm::InstCombinerImpl::visitAtomicRMWInst(), and llvm::InstCombinerImpl::visitInsertElementInst().
|
inline |
Return true if this is 'float', a 32-bit IEEE fp type.
Definition at line 148 of file Type.h.
References FloatTyID, and getTypeID().
Referenced by llvm::ConstantFoldCastInstruction(), emitDebugValueComment(), executeFCMP_ORD(), executeFCMP_UNO(), llvm::SystemZTTIImpl::getCmpSelInstrCost(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::PPCTTIImpl::getRegisterClassForType(), llvm::GCNTTIImpl::instCombineIntrinsic(), llvm::ConstantDataSequential::isElementTypeCompatible(), isHomogeneousAggregate(), llvm::InductionDescriptor::isInductionPHI(), llvm::RISCVTTIImpl::isLegalElementTypeForRVV(), llvm::AArch64TTIImpl::isLegalElementTypeForSVE(), llvm::X86TTIImpl::isLegalMaskedExpandLoad(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), llvm::X86TTIImpl::isLegalNTStore(), llvm::isMathLibCallNoop(), LLVMConstRealGetDouble(), llvm::ExecutionEngine::LoadValueFromMemory(), llvm::WebAssemblyMCInstLower::lower(), matchIntrinsicType(), optimizeDoubleFP(), optimizeWithFDivFast(), llvm::ARMTargetLowering::shouldConvertSplatType(), llvm::SITargetLowering::shouldExpandAtomicRMWInIR(), and solveTypeName().
|
inline |
Return true if this is 'fp128'.
Definition at line 157 of file Type.h.
References FP128TyID, and getTypeID().
Referenced by llvm::ConstantFoldCastInstruction(), llvm::AArch64TTIImpl::getArithmeticInstrCost(), llvm::PPCTTIImpl::getRegisterClassForType(), llvm::SystemZTTIImpl::getShuffleCost(), llvm::SparcTargetLowering::LowerF128Op(), matchIntrinsicType(), and originalTypeIsF128().
|
inline |
Return true if this is a FP type or a vector of FP.
Definition at line 190 of file Type.h.
References getScalarType(), and isFloatingPointTy().
Referenced by llvm::ARMTargetLowering::canCombineStoreAndExtract(), llvm::CastInst::castIsValid(), llvm::FPMathOperator::classof(), llvm::ConstantFoldCompareInstruction(), llvm::CastInst::CreateFPCast(), evaluateICmpRelation(), llvm::GCNTTIImpl::getArithmeticInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::HexagonTTIImpl::getCastInstrCost(), llvm::ARMTTIImpl::getCmpSelInstrCost(), getDecodedBinaryOpcode(), getDecodedUnaryOpcode(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::ConstantExpr::getFPTrunc(), llvm::X86TTIImpl::getMinMaxCost(), llvm::AArch64TTIImpl::getMinMaxReductionCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMinMaxReductionCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getOperandsScalarizationOverhead(), llvm::ConstantExpr::getSIToFP(), llvm::ConstantExpr::getUIToFP(), llvm::ConstantFP::getZeroValueForNegation(), llvm::isKnownNeverInfinity(), llvm::isKnownNeverNaN(), matchIntrinsicType(), NegateValue(), originalTypeIsVectorFloat(), upgradeAVX512MaskToSelect(), and UpgradeX86VPERMT2Intrinsics().
|
inline |
True if this is an instance of FunctionType.
Definition at line 220 of file Type.h.
References FunctionTyID, and getTypeID().
Referenced by llvm::convertToDeclaration(), llvm::emitLinkerFlagsForGlobalCOFF(), llvm::GlobalVariable::GlobalVariable(), llvm::PointerType::isLoadableOrStorableType(), llvm::SystemZSubtarget::isPC32DBLSymbol(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::FunctionType::isValidReturnType(), llvm::TargetLoweringObjectFileELF::lowerRelativeReference(), llvm::TargetLoweringObjectFileWasm::lowerRelativeReference(), and llvm::SITargetLowering::shouldEmitGOTReloc().
|
inline |
Definition at line 148 of file DerivedTypes.h.
|
inline |
Return true if this is 'half', a 16-bit IEEE fp type.
Definition at line 142 of file Type.h.
References getTypeID(), and HalfTyID.
Referenced by canSafelyConvertTo16Bit(), llvm::ConstantFoldCastInstruction(), emitDebugValueComment(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::NVPTXTargetLowering::getPrototype(), llvm::PPCTTIImpl::getRegisterClassForType(), llvm::GCNTTIImpl::instCombineIntrinsic(), llvm::ConstantDataSequential::isElementTypeCompatible(), llvm::InductionDescriptor::isInductionPHI(), llvm::RISCVTTIImpl::isLegalElementTypeForRVV(), llvm::AArch64TTIImpl::isLegalElementTypeForSVE(), llvm::ARMTargetLowering::isLegalInterleavedAccessType(), llvm::isMathLibCallNoop(), LLVMConstRealGetDouble(), matchIntrinsicType(), llvm::ARMTargetLowering::shouldConvertSplatType(), and llvm::SITargetLowering::shouldExpandAtomicRMWInIR().
|
inline |
Return whether the type is IEEE compatible, as defined by the eponymous method in APFloat.
Definition at line 313 of file Type.h.
References getFltSemantics(), llvm::APFloat::getZero(), and llvm::APFloat::isIEEE().
|
inline |
True if this is an instance of IntegerType.
Definition at line 202 of file Type.h.
References getTypeID(), and IntegerTyID.
Referenced by llvm::HexagonTargetLowering::allowTruncateForTailCall(), llvm::ARMTargetLowering::allowTruncateForTailCall(), llvm::X86TargetLowering::allowTruncateForTailCall(), llvm::VNCoercion::analyzeLoadFromClobberingLoad(), llvm::InnerLoopVectorizer::buildScalarSteps(), canConvertValue(), canSafelyConvertTo16Bit(), llvm::VNCoercion::coerceAvailableValueToLoadTypeHelper(), llvm::InstCombinerImpl::commonCastTransforms(), llvm::ComputeMultiple(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), ComputePTXValueVTs(), llvm::ConstantFoldLoadThroughBitcast(), convertTo16Bit(), llvm::OpenMPIRBuilder::createAtomicCapture(), llvm::OpenMPIRBuilder::createAtomicRead(), llvm::OpenMPIRBuilder::createAtomicUpdate(), llvm::OpenMPIRBuilder::createAtomicWrite(), llvm::CastInst::CreateBitOrPointerCast(), createCast(), llvm::X86TargetLowering::ExpandInlineAsm(), llvm::extractConstantMask(), FindLoopCounter(), llvm::InnerLoopVectorizer::fixupIVUsers(), FoldBitCast(), FoldCondBranchOnPHI(), llvm::InstCombinerImpl::foldIntegerTypedPHI(), llvm::InstCombinerImpl::foldPHIArgOpIntoPHI(), FoldTwoEntryPHINode(), llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), getAdjustedPtr(), getAISize(), getAllocationDataForFunction(), llvm::ARMTTIImpl::getArithmeticInstrCost(), llvm::SystemZTTIImpl::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::CastInst::getCastOpcode(), llvm::SystemZTTIImpl::getCmpSelInstrCost(), llvm::ARMTTIImpl::getCmpSelInstrCost(), llvm::getConstantDataArrayInfo(), llvm::LazyValueInfo::getConstantRange(), llvm::ExecutionEngine::getConstantValue(), llvm::ScalarEvolution::getEffectiveSCEVType(), llvm::ConstantExpr::getExtractElement(), llvm::DataLayout::getIndexedOffsetInType(), getInductionVariable(), llvm::ConstantExpr::getInsertElement(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX2(), llvm::SystemZTTIImpl::getIntImmCost(), llvm::RISCVTTIImpl::getIntImmCost(), llvm::PPCTTIImpl::getIntImmCost(), llvm::LanaiTTIImpl::getIntImmCost(), llvm::AArch64TTIImpl::getIntImmCost(), llvm::ARMTTIImpl::getIntImmCost(), llvm::X86TTIImpl::getIntImmCost(), llvm::SystemZTTIImpl::getIntImmCostInst(), llvm::RISCVTTIImpl::getIntImmCostInst(), llvm::PPCTTIImpl::getIntImmCostInst(), llvm::AArch64TTIImpl::getIntImmCostInst(), llvm::X86TTIImpl::getIntImmCostInst(), llvm::SystemZTTIImpl::getIntImmCostIntrin(), llvm::PPCTTIImpl::getIntImmCostIntrin(), llvm::AArch64TTIImpl::getIntImmCostIntrin(), llvm::X86TTIImpl::getIntImmCostIntrin(), getLoadStoreAddrMode(), llvm::VNCoercion::getLoadValueForLoad(), llvm::ScalarEvolution::getLosslessPtrToIntExpr(), getMaskedTypeForICmpPair(), getNaturalGEPWithOffset(), llvm::NVPTXTargetLowering::getPrototype(), llvm::ScalarEvolution::getPtrToIntExpr(), getSignedIntOrFpConstant(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::TargetLowering::getSingleConstraintMatchWeight(), llvm::InnerLoopVectorizer::getStepVector(), getUnderlyingObjectFromInt(), getValueFromICmpCondition(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::X86TTIImpl::getVectorInstrCost(), llvm::HexagonTTIImpl::getVectorInstrCost(), llvm::ARMTTIImpl::getVectorInstrCost(), llvm::AA::getWithType(), llvm::hasIterationCountInvariantInParent(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::GCNTTIImpl::instCombineIntrinsic(), llvm::isBytewiseValue(), isCallingConvCCompatible(), isConstantFalse(), llvm::CastInst::isEliminableCastPair(), llvm::isGEPBasedOnPointerToString(), llvm::isImpliedCondition(), llvm::InductionDescriptor::isInductionPHI(), llvm::CastInst::isIntegerCast(), isIntegerLoopHeaderPHI(), isIntegerTy(), isIntOrIntVectorTy(), isIntOrPtrTy(), llvm::RISCVTTIImpl::isLegalElementTypeForRVV(), llvm::AArch64TTIImpl::isLegalElementTypeForSVE(), llvm::X86TTIImpl::isLegalMaskedExpandLoad(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), isSingleValueType(), llvm::ConstantDataSequential::isString(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::RISCVTargetLowering::isTruncateFree(), llvm::ARMTargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::NVPTXTargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), llvm::VectorType::isValidElementType(), llvm::ConstantInt::isValueValidForType(), isVectorPromotionViable(), isVectorPromotionViableForSlice(), llvm::MSP430TargetLowering::isZExtFree(), llvm::AArch64TargetLowering::isZExtFree(), llvm::X86TargetLowering::isZExtFree(), llvm::ExecutionEngine::LoadValueFromMemory(), llvm::NVPTXTargetLowering::LowerCall(), LowerCTPOP(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::IntrinsicLowering::LowerToByteSwap(), matchIntrinsicType(), originalTypeIsF128(), llvm::replaceAllDbgUsesWith(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::ARMTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::AArch64TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::PPCTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::X86TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::TargetLoweringBase::shouldConvertPhiType(), simplifyAllocaArraySize(), llvm::InstCombinerImpl::SimplifyAnyMemSet(), SimplifyUsingControlFlow(), simplifyX86addcarry(), solveDIType(), solveTypeName(), splitMergedValStore(), llvm::AttributeFuncs::typeIncompatible(), llvm::UnrollRuntimeLoopRemainder(), updatePredecessorProfileMetadata(), UpgradeX86IntrinsicsWith8BitMask(), llvm::InstCombinerImpl::visitAtomicRMWInst(), llvm::InstCombinerImpl::visitBitCast(), llvm::InstCombinerImpl::visitInsertElementInst(), llvm::InstCombinerImpl::visitLShr(), llvm::InstCombinerImpl::visitPHINode(), llvm::InstCombinerImpl::visitReturnInst(), and llvm::InstCombinerImpl::visitTrunc().
| bool Type::isIntegerTy | ( | unsigned | Bitwidth | ) | const |
Return true if this is an IntegerType of the given width.
Definition at line 59 of file Type.cpp.
References isIntegerTy().
|
inline |
Return true if this is an integer type or a vector of integer types.
Definition at line 208 of file Type.h.
References getScalarType(), and isIntegerTy().
Referenced by buildMultiplyTree(), llvm::CastInst::castIsValid(), llvm::InstCombinerImpl::commonIDivTransforms(), llvm::computeConstantRange(), computeKnownBits(), llvm::ConstantFoldGetElementPtr(), convertValue(), CreateAdd(), llvm::IRBuilderBase::CreateBitOrPointerCast(), llvm::CastInst::CreateIntegerCast(), llvm::IRBuilderBase::CreateLogicalAnd(), llvm::IRBuilderBase::CreateLogicalOr(), CreateMul(), CreateNeg(), llvm::CastInst::CreatePointerCast(), llvm::IRBuilderBase::CreateSExtOrTrunc(), llvm::IRBuilderBase::CreateZExtOrTrunc(), foldBitCastBitwiseLogic(), llvm::InstCombinerImpl::foldICmpUsingKnownBits(), foldSelectICmpLshrAshr(), foldTruncShuffle(), getBoolVecFromMask(), llvm::ARMTTIImpl::getCmpSelInstrCost(), getDecodedBinaryOpcode(), getDecodedUnaryOpcode(), llvm::VectorType::getExtendedElementVectorType(), getExtendedType(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getFPToSI(), llvm::ConstantExpr::getFPToUI(), llvm::ConstantExpr::getIntegerCast(), llvm::ARMTTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getMinMaxCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMinMaxReductionCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getOperandsScalarizationOverhead(), llvm::ConstantExpr::getPointerCast(), llvm::ConstantExpr::getPtrToInt(), getSafeDivisor(), llvm::X86TTIImpl::getScalarizationOverhead(), llvm::ConstantExpr::getSExt(), llvm::ConstantInt::getTrue(), llvm::ConstantExpr::getTrunc(), llvm::GetElementPtrInst::getTypeAtIndex(), llvm::SystemZTTIImpl::getVectorInstrCost(), getWithNewBitWidth(), llvm::ConstantExpr::getZExt(), llvm::haveNoCommonBitsSet(), llvm::StructType::indexValid(), llvm::CastInst::isEliminableCastPair(), llvm::isImpliedCondition(), isKnownNonEqual(), llvm::DemandedBits::isUseDead(), LowerBSWAP(), LowerNegateToMultiply(), matchIntrinsicType(), llvm::recognizeBSwapOrBitReverseIdiom(), SimplifyAddInst(), SimplifyAndInst(), llvm::InstCombinerImpl::SimplifyDemandedUseBits(), simplifyDivRem(), simplifyICmpOfBools(), SimplifyMulInst(), SimplifyOrInst(), SimplifySubInst(), tryToRecognizePopCount(), llvm::InstCombinerImpl::visitAdd(), and llvm::InstCombinerImpl::visitICmpInst().
|
inline |
Return true if this is an integer type or a vector of integer types of the given width.
Definition at line 212 of file Type.h.
References llvm::BitWidth, getScalarType(), and isIntegerTy().
|
inline |
Return true if this is an integer type or a pointer type.
Definition at line 217 of file Type.h.
References isIntegerTy(), and isPointerTy().
Referenced by computeKnownBitsFromOperator(), evaluateICmpRelation(), llvm::ScalarEvolution::getNoopOrAnyExtend(), llvm::ScalarEvolution::getNoopOrSignExtend(), llvm::ScalarEvolution::getNoopOrZeroExtend(), llvm::ScalarEvolution::getTruncateOrNoop(), llvm::ScalarEvolution::getTruncateOrSignExtend(), llvm::ScalarEvolution::getTruncateOrZeroExtend(), isBitCastSemanticsPreserving(), llvm::ScalarEvolution::isSCEVable(), isSupportedAtomicType(), and MaybeVectorizeType().
|
inline |
Return true if this is 'label'.
Definition at line 193 of file Type.h.
References getTypeID(), and LabelTyID.
Referenced by llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), and llvm::FunctionType::isValidReturnType().
|
inline |
Return true if this is 'metadata'.
Definition at line 196 of file Type.h.
References getTypeID(), and MetadataTyID.
Referenced by llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), llvm::FunctionType::isValidReturnType(), and matchIntrinsicType().
|
inline |
True if this is an instance of PointerType.
Definition at line 229 of file Type.h.
References getTypeID(), and PointerTyID.
Referenced by addConditions(), BuildConstantFromSCEV(), canConvertValue(), llvm::canReplacePointersIfEqual(), CompareValueComplexity(), computeKnownBits(), computeKnownBitsFromAssume(), computeKnownBitsFromOperator(), ComputeNumSignBitsImpl(), llvm::ConstantFoldLoadThroughBitcast(), llvm::convertPointerToIntegerType(), llvm::copyMetadataForLoad(), llvm::OpenMPIRBuilder::createAtomicCapture(), llvm::OpenMPIRBuilder::createAtomicRead(), llvm::OpenMPIRBuilder::createAtomicUpdate(), llvm::OpenMPIRBuilder::createAtomicWrite(), llvm::CastInst::CreateBitOrPointerCast(), llvm::InnerLoopVectorizer::createBitOrPointerCast(), createCast(), FindLoopCounter(), llvm::CFLSteensAAResult::FunctionInfo::FunctionInfo(), genLoopLimit(), getAdjustedPtr(), llvm::AMDGPUTargetMachine::getAssumedAddrSpace(), llvm::TargetTransformInfoImplBase::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::CastInst::getCastOpcode(), GetConstantInt(), llvm::ExecutionEngine::getConstantValue(), llvm::ScalarEvolution::getEffectiveSCEVType(), getInductionVariable(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::ScalarEvolution::getLosslessPtrToIntExpr(), getNaturalGEPRecursively(), getNaturalGEPWithType(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), llvm::InnerLoopVectorizer::getOrCreateTripCount(), llvm::getOrEnforceKnownAlignment(), llvm::AMDGPULibFunc::getOrInsertFunction(), llvm::ScalarEvolution::getPointerBase(), llvm::LazyValueInfo::getPredicateAt(), llvm::getPtrStride(), llvm::VNCoercion::getStoreValueForLoadHelper(), llvm::GetStringLength(), llvm::ScalarEvolution::getTypeSizeInBits(), llvm::getUnderlyingObject(), llvm::AA::getWithType(), hasTocDataAttr(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::MemoryDependenceResults::invalidateCachedPointerInfo(), isCallingConvCCompatible(), isCompatibleIVType(), isDereferenceableAndAlignedPointer(), llvm::InductionDescriptor::isInductionPHI(), isInterestingPointer(), isIntOrPtrTy(), isKnownNonZero(), isKnownNonZeroFromAssume(), llvm::RISCVTTIImpl::isLegalElementTypeForRVV(), llvm::AArch64TTIImpl::isLegalElementTypeForSVE(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), llvm::CastInst::isLosslessCast(), isMinMaxWithLoads(), isNoopBitcast(), isPointerOperand(), isPtrOrPtrVectorTy(), isSingleValueType(), llvm::VectorType::isValidElementType(), llvm::PointerType::isValidElementType(), isValidRewrite(), llvm::SelectionDAGBuilder::LowerAsSTATEPOINT(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), optimizeOnceStoredGlobal(), llvm::PointerMayBeCaptured(), llvm::SCEVExpander::replaceCongruentIVs(), replaceWithConstant(), llvm::MCJIT::runFunction(), shouldBeMustTail(), SimplifyICmpInst(), solveDIType(), solveTypeName(), swapMayExposeCSEOpportunities(), TryToShrinkGlobalToBoolean(), llvm::AttributeFuncs::typeIncompatible(), llvm::InstCombinerImpl::visitBitCast(), llvm::InstCombinerImpl::visitCallInst(), llvm::InstCombinerImpl::visitICmpInst(), and llvm::InstCombinerImpl::visitPHINode().
|
inline |
Return true if this is powerpc long double.
Definition at line 160 of file Type.h.
References getTypeID(), and PPC_FP128TyID.
Referenced by llvm::ConstantFoldCastInstruction(), emitGlobalConstantFP(), FoldBitCast(), foldICmpBitCast(), llvm::PPCTTIImpl::getRegisterClassForType(), and isValidElementType().
|
inline |
Return true if this is a pointer type or a vector of pointer types.
Definition at line 232 of file Type.h.
References getScalarType(), and isPointerTy().
Referenced by llvm::CastInst::castIsValid(), llvm::VNCoercion::coerceAvailableValueToLoadTypeHelper(), combineLoadToOperationType(), computeKnownBits(), llvm::ConstantFoldLoadThroughBitcast(), convertValue(), llvm::IRBuilderBase::CreateBitOrPointerCast(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), llvm::CastInst::CreatePointerCast(), llvm::DataLayout::getIndexType(), llvm::DataLayout::getIndexTypeSizeInBits(), llvm::DataLayout::getIntPtrType(), llvm::ConstantExpr::getIntToPtr(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getOperandsScalarizationOverhead(), llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), llvm::ConstantExpr::getPointerCast(), llvm::DataLayout::getPointerTypeSizeInBits(), getScalarSizeInBits(), llvm::CastInst::isEliminableCastPair(), SimplifyCastInst(), stripAndComputeConstantOffsets(), llvm::UpgradeBitCastExpr(), and llvm::UpgradeBitCastInst().
|
inline |
Return true if the type is a valid type for a register in codegen.
This includes all first-class types except struct and array types.
Definition at line 257 of file Type.h.
References isFloatingPointTy(), isIntegerTy(), isPointerTy(), isVectorTy(), isX86_AMXTy(), and isX86_MMXTy().
Referenced by canConvertValue(), getAggregateSize(), getOpenCLAlignment(), llvm::InlineAsmLowering::lowerInlineAsm(), llvm::TargetLowering::ParseConstraints(), processInternalGlobal(), stripAggregateTypeWrapping(), and llvm::SCCPInstVisitor::trackValueOfGlobalVariable().
|
inline |
Return true if it makes sense to take the size of this type.
To get the actual size for a particular target, it is reasonable to use the DataLayout subsystem to do this.
Definition at line 272 of file Type.h.
References ArrayTyID, getTypeID(), IntegerTyID, isFloatingPointTy(), isVectorTy(), PointerTyID, StructTyID, X86_AMXTyID, and X86_MMXTyID.
Referenced by areGlobalsPotentiallyEqual(), buildFrameDebugInfo(), canReplaceGEPIdxWithZero(), computeKnownBitsFromOperator(), llvm::getLLTForType(), getNaturalGEPWithOffset(), llvm::Value::getPointerAlignment(), llvm::DataLayout::getTypeSizeInBits(), llvm::AMDGPUTTIImpl::getUnrollingPreferences(), hasTocDataAttr(), isDereferenceableAndAlignedPointer(), llvm::isDereferenceableAndAlignedPointer(), llvm::RISCVELFTargetObjectFile::isGlobalInSmallSection(), llvm::InductionDescriptor::isInductionPHI(), llvm::SITargetLowering::isLegalAddressingMode(), llvm::HexagonTargetLowering::isLegalAddressingMode(), llvm::AArch64TargetLowering::isLegalAddressingMode(), isSafeToEliminateVarargsCast(), IsSmallObject(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::TargetLowering::ParseConstraints(), llvm::InstCombinerImpl::PromoteCastOfAllocation(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), SimplifyGEPInst(), tryToOptimizeStoreOfMallocToGlobal(), llvm::InstCombinerImpl::visitAllocaInst(), llvm::ObjectSizeOffsetVisitor::visitArgument(), llvm::InstCombinerImpl::visitBitCast(), and llvm::InstCombinerImpl::visitGetElementPtrInst().
|
inline |
True if this is an instance of StructType.
Definition at line 223 of file Type.h.
References getTypeID(), and StructTyID.
Referenced by llvm::VNCoercion::analyzeLoadFromClobberingLoad(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldLoadThroughBitcast(), createCast(), createWrapper(), doPromotion(), llvm::FindInsertedValue(), llvm::ConstantAggregateZero::get(), llvm::SCCPInstVisitor::getLatticeValueFor(), hasTocDataAttr(), insertSinCosCall(), isConstantUsingVectorTy(), llvm::VNCoercion::isFirstClassAggregateOrScalableType(), llvm::SCEVUnknown::isOffsetOf(), isStructure(), isVectorPromotionViableForSlice(), false::operator<<(), originalTypeIsF128(), solveDIType(), solveTypeName(), tryToReplaceWithConstant(), llvm::Value::Value(), llvm::InlineAsm::Verify(), and llvm::InstCombinerImpl::visitGetElementPtrInst().
|
inline |
Return true if this is 'token'.
Definition at line 199 of file Type.h.
References getTypeID(), and TokenTyID.
Referenced by llvm::SelectInst::areInvalidOperands(), llvm::LoopVectorizationCostModel::calculateRegisterUsage(), llvm::FunctionLoweringInfo::InitializeRegForValue(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), matchIntrinsicType(), llvm::removeAllNonTerminatorAndEHPadInstructions(), SplitLandingPadPredecessorsImpl(), and llvm::LoopInfo::wouldBeOutOfLoopUseRequiringLCSSA().
|
inline |
True if this is an instance of VectorType.
Definition at line 235 of file Type.h.
References FixedVectorTyID, getTypeID(), and ScalableVectorTyID.
Referenced by llvm::ARMTargetLowering::canCombineStoreAndExtract(), canEvaluateShuffled(), collectShuffleElements(), llvm::SelectionDAG::computeKnownBits(), computeKnownBitsFromOperator(), llvm::SelectionDAG::ComputeNumSignBits(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::JumpThreadingPass::computeValueKnownInPredecessorsImpl(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldGetElementPtr(), llvm::ConstantFoldLoadThroughBitcast(), llvm::MatrixBuilder< IRBuilderTy >::CreateAdd(), llvm::IRBuilderBase::CreateMaskedLoad(), llvm::IRBuilderBase::CreateMaskedStore(), llvm::CastInst::CreatePointerCast(), llvm::MatrixBuilder< IRBuilderTy >::CreateScalarDiv(), llvm::MatrixBuilder< IRBuilderTy >::CreateSub(), despeculateCountZeros(), llvm::EmitGEPOffset(), evaluateInDifferentElementOrder(), llvm::VPBranchOnMaskRecipe::execute(), executeFCMP_BOOL(), executeFCMP_ONE(), executeFCMP_ORD(), executeFCMP_UNO(), executeSelectInst(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), llvm::findScalarElement(), foldBitCastBitwiseLogic(), foldBitCastSelect(), llvm::InstCombinerImpl::foldGEPICmp(), foldSelectICmpAnd(), foldSelectICmpAndOr(), llvm::InstCombinerImpl::foldSelectOpOp(), foldShiftIntoShiftInAnotherHandOfAndInICmp(), foldTruncShuffle(), llvm::ConstantAggregateZero::get(), llvm::MipsTargetLowering::getABIAlignmentForCallingConv(), llvm::ARMTargetLowering::getABIAlignmentForCallingConv(), llvm::X86TTIImpl::getAddressComputationCost(), llvm::AArch64TTIImpl::getAddressComputationCost(), llvm::ARMTTIImpl::getAddressComputationCost(), llvm::SystemZTTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::HexagonTTIImpl::getArithmeticInstrCost(), llvm::AArch64TTIImpl::getArithmeticInstrCost(), llvm::SystemZTTIImpl::getCastInstrCost(), llvm::CastInst::getCastOpcode(), getCmpOpsType(), llvm::SystemZTTIImpl::getCmpSelInstrCost(), llvm::HexagonTTIImpl::getCmpSelInstrCost(), llvm::ARMTTIImpl::getCmpSelInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCmpSelInstrCost(), llvm::ConstantExpr::getExtractElement(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::ARMTTIImpl::getGatherScatterOpCost(), llvm::ConstantExpr::getInsertElement(), llvm::GCNTTIImpl::getIntrinsicInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::SystemZTTIImpl::getMemoryOpCost(), llvm::HexagonTTIImpl::getMemoryOpCost(), llvm::PPCTTIImpl::getMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMemoryOpCost(), llvm::NVPTXTargetLowering::getPrototype(), getReducedType(), getScalarType(), getTargetConstantBitsFromNode(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getTypeBasedIntrinsicInstrCost(), getUniformBase(), llvm::PPCTTIImpl::getUserCost(), llvm::SystemZTTIImpl::getVectorBitmaskConversionCost(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::X86TTIImpl::getVectorInstrCost(), llvm::HexagonTTIImpl::getVectorInstrCost(), llvm::AArch64TTIImpl::getVectorInstrCost(), llvm::ARMTTIImpl::getVectorInstrCost(), getVectorIntrinsicInstrCost(), llvm::SystemZTTIImpl::getVectorTruncCost(), hasTocDataAttr(), llvm::StructType::indexValid(), llvm::X86TTIImpl::instCombineIntrinsic(), isConstantUsingVectorTy(), llvm::CastInst::isEliminableCastPair(), llvm::isImpliedCondition(), llvm::PPCTargetLowering::isLegalAddressingMode(), isSingleValueType(), isSized(), isTruePredicate(), llvm::HexagonSubtarget::isTypeForHVX(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), llvm::NVPTXTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerFormalArguments(), narrowSDivOrSRem(), originalTypeIsVectorFloat(), processAnd(), processAShr(), processBinOp(), processCallSite(), processPHI(), processSDiv(), processSDivOrSRem(), processSExt(), processSRem(), processUDivOrURem(), llvm::InnerLoopVectorizer::reverseVector(), llvm::salvageDebugInfoImpl(), shouldConvertImpl(), llvm::InstCombinerImpl::SimplifyDemandedVectorElts(), llvm::X86TargetLowering::SimplifyDemandedVectorEltsForTargetShuffle(), simplifySelectWithICmpCond(), supportedAddressingMode(), ThreadCmpOverSelect(), transformToIndexedCompare(), tryPromoteAllocaToVector(), TryToShrinkGlobalToBoolean(), llvm::PPCTTIImpl::vectorCostAdjustment(), llvm::InstCombinerImpl::visitAShr(), llvm::Interpreter::visitAShr(), llvm::Interpreter::visitBinaryOperator(), llvm::InstCombinerImpl::visitBitCast(), llvm::InstCombinerImpl::visitGetElementPtrInst(), llvm::InstCombinerImpl::visitInsertElementInst(), llvm::Interpreter::visitLShr(), llvm::Interpreter::visitShl(), llvm::InstCombinerImpl::visitTrunc(), and llvm::Interpreter::visitUnaryOperator().
|
inline |
Return true if this is 'void'.
Definition at line 139 of file Type.h.
References getTypeID(), and VoidTyID.
Referenced by llvm::AllocaInst::AllocaInst(), llvm::CallLowering::ArgInfo::ArgInfo(), llvm::coro::Shape::buildFrom(), llvm::computeValueLLTs(), llvm::ComputeValueVTs(), copyMustTailReturn(), createMalloc(), createRetPHINode(), llvm::Attributor::createShallowWrapper(), createWrapper(), llvm::Evaluator::EvaluateFunction(), llvm::OpenMPIRBuilder::finalize(), llvm::GCNTTIImpl::getIntrinsicInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::SystemZTTIImpl::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMemoryOpCost(), getRetComponentType(), llvm::SITargetLowering::getTgtMemIntrinsic(), llvm::InlineFunction(), isCallingConvCCompatible(), llvm::isLibFreeFunction(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::SelectionDAGBuilder::LowerStatepoint(), llvm::makeGuardControlFlowExplicit(), matchIntrinsicType(), llvm::InstDeleterIRStrategy::mutate(), NumRetVals(), llvm::VPReplicateRecipe::print(), llvm::promoteCall(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::InnerLoopVectorizer::scalarizeInstruction(), shouldBeMustTail(), llvm::AttributeFuncs::typeIncompatible(), llvm::Value::Value(), and llvm::InlineAsm::Verify().
|
inline |
Return true if this is X86 AMX.
Definition at line 187 of file Type.h.
References getTypeID(), and X86_AMXTyID.
Referenced by canLosslesslyBitCastTo(), combineLoadToOperationType(), combineStoreToValueType(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldLoadThroughBitcast(), createTileStore(), isAMXIntrinsic(), isSingleValueType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), matchIntrinsicType(), onlyTileDef(), and replaceWithTileLoad().
|
inline |
Return true if this is x86 long double.
Definition at line 154 of file Type.h.
References getTypeID(), and X86_FP80TyID.
Referenced by llvm::ConstantFoldCastInstruction(), llvm::ExecutionEngine::getConstantValue(), and isValidElementType().
|
inline |
Return true if this is X86 MMX.
Definition at line 184 of file Type.h.
References getTypeID(), and X86_MMXTyID.
Referenced by canLosslesslyBitCastTo(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldLoadThroughBitcast(), llvm::CastInst::getCastOpcode(), llvm::CastInst::isBitCastable(), isSingleValueType(), matchIntrinsicType(), and llvm::InstCombinerImpl::visitBitCast().
| void Type::print | ( | raw_ostream & | O, |
| bool | IsForDebug = false, |
||
| bool | NoDetails = false |
||
| ) | const |
Print the current type.
Omit the type details if NoDetails == true. E.g., let st = type { i32, i16 } When NoDetails is true, we only print st. Put differently, NoDetails prints the type as if inlined with the operands when printing an instruction.
Definition at line 4597 of file AsmWriter.cpp.
References llvm::StructType::isLiteral().
Referenced by dump(), emitGlobalConstantFP(), llvm::Attribute::getAsString(), and getBranchCondString().
|
inlineprotected |
Definition at line 99 of file Type.h.
References assert(), getSubclassData(), and val.
Referenced by llvm::IntegerType::IntegerType(), llvm::StructType::isSized(), and llvm::StructType::setBody().
|
inline |
Definition at line 328 of file Type.h.
References ContainedTys.
Referenced by subtype_rend(), and subtypes().
|
inline |
Definition at line 329 of file Type.h.
References ContainedTys, and NumContainedTys.
Referenced by subtype_rbegin(), and subtypes().
|
inline |
Definition at line 336 of file Type.h.
References subtype_end().
|
inline |
Definition at line 339 of file Type.h.
References subtype_begin().
Definition at line 330 of file Type.h.
References llvm::makeArrayRef(), subtype_begin(), and subtype_end().
|
friend |
A pointer to the array of Types contained by this Type.
For example, this includes the arguments of a function type, the elements of a structure, the pointee of a pointer, the element type of an array, etc. This pointer may be 0 for types that don't contain other types (Integer, Double, Float).
Definition at line 113 of file Type.h.
Referenced by llvm::StructType::element_begin(), llvm::StructType::element_end(), getArrayElementType(), getContainedType(), llvm::StructType::getElementType(), llvm::FunctionType::getParamType(), getPointerElementType(), llvm::FunctionType::getReturnType(), llvm::FunctionType::param_begin(), llvm::FunctionType::param_end(), llvm::StructType::setBody(), subtype_begin(), subtype_end(), and llvm::VectorType::VectorType().
|
protected |
Keeps track of how many Type*'s there are in the ContainedTys list.
Definition at line 106 of file Type.h.
Referenced by llvm::StructType::element_end(), getContainedType(), llvm::StructType::getElementType(), getNumContainedTypes(), llvm::StructType::getNumElements(), llvm::FunctionType::getNumParams(), llvm::FunctionType::param_end(), llvm::StructType::setBody(), subtype_end(), and llvm::VectorType::VectorType().
1.8.17