|
LLVM
4.0.0
|
The instances of the Type class are immutable: once they are created, they are never changed. More...
#include <Type.h>
Public Types | |
| enum | TypeID { VoidTyID = 0, HalfTyID, FloatTyID, DoubleTyID, X86_FP80TyID, FP128TyID, PPC_FP128TyID, LabelTyID, MetadataTyID, X86_MMXTyID, TokenTyID, IntegerTyID, FunctionTyID, StructTyID, ArrayTyID, PointerTyID, VectorTyID } |
| Definitions of all of the base types for the Type system. More... | |
| typedef Type *const * | subtype_iterator |
| typedef std::reverse_iterator < subtype_iterator > | subtype_reverse_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 | 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 | 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 | 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... | |
| unsigned | 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... | |
| Type * | getScalarType () const LLVM_READONLY |
| 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 |
| Type * | getSequentialElementType () const |
| uint64_t | getArrayNumElements () const |
| Type * | getArrayElementType () const |
| unsigned | getVectorNumElements () const |
| Type * | getVectorElementType () const |
| Type * | getPointerElementType () const |
| 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) |
Static Protected Member Functions | |
| static bool | isSequentialType (TypeID TyID) |
Protected Attributes | |
| unsigned | NumContainedTys |
| Keeps track of how many Type*'s there are in the ContainedTys list. More... | |
| Type *const * | ContainedTys |
| 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.
| typedef Type* const* llvm::Type::subtype_iterator |
| typedef std::reverse_iterator<subtype_iterator> llvm::Type::subtype_reverse_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 | |
|---|---|
| VoidTyID |
0: type with no size |
| HalfTyID |
1: 16-bit floating point type |
| FloatTyID |
2: 32-bit floating point type |
| DoubleTyID |
3: 64-bit floating point type |
| X86_FP80TyID |
4: 80-bit floating point type (X87) |
| FP128TyID |
5: 128-bit floating point type (112-bit mantissa) |
| PPC_FP128TyID |
6: 128-bit floating point type (two 64-bits, PowerPC) |
| LabelTyID |
7: Labels |
| MetadataTyID |
8: Metadata |
| X86_MMXTyID |
9: MMX vectors (64 bits, X86 specific) |
| TokenTyID |
10: Tokens |
| IntegerTyID |
11: Arbitrary bit width integers |
| FunctionTyID |
12: Functions |
| StructTyID |
13: Structures |
| ArrayTyID |
14: Arrays |
| PointerTyID |
15: Pointers |
| VectorTyID |
16: SIMD 'packed' format, or other vector type |
|
inlineexplicitprotected |
Definition at line 89 of file Type.h.
Referenced by llvm::codeview::FieldListRecordBuilder::FieldListRecordBuilder().
|
protecteddefault |
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 54 of file Type.cpp.
References getTypeID(), isFirstClassType(), and X86_MMXTyID.
Referenced by llvm::Evaluator::EvaluateBlock().
| LLVM_DUMP_METHOD void Type::dump | ( | ) | const |
Definition at line 3544 of file AsmWriter.cpp.
References llvm::dbgs(), and print().
Referenced by llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters().
|
inline |
Definition at line 347 of file Type.h.
References ArrayTyID, assert(), ContainedTys, and getTypeID().
Referenced by arrayTypeToVecType(), llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), isConstantUsingVectorTy(), isSimpleType(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
Definition at line 364 of file DerivedTypes.h.
Referenced by arrayTypeToVecType(), llvm::getConstantStringInfo(), and scalarConstantToHexString().
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 316 of file Type.h.
References assert(), ContainedTys, i, and NumContainedTys.
Referenced by llvm::computeUsesVAFloatArgument(), lookupFunction(), llvm::Interpreter::visitInsertElementInst(), llvm::Interpreter::visitShuffleVectorInst(), and whichFPReturnVariant().
|
inline |
Return the LLVMContext in which this type was uniqued.
Definition at line 128 of file Type.h.
References Context.
Referenced by CoerceAvailableValueToLoadType(), llvm::ConstantFoldGetElementPtr(), convertPointerToIntegerType(), llvm::StructType::create(), createAndInstr(), llvm::orc::createIRTypedAddress(), llvm::FunctionLoweringInfo::CreateRegs(), CvtFDivConstToReciprocal(), DoPromotion(), llvm::Evaluator::EvaluateBlock(), llvm::InstCombiner::FoldAndOfICmps(), FoldBitCast(), foldConstantCastPair(), llvm::InlineAsm::get(), llvm::FunctionType::get(), llvm::ConstantInt::get(), llvm::StructType::get(), llvm::ConstantFP::get(), llvm::ConstantAggregateZero::get(), llvm::ArrayType::get(), llvm::VectorType::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::PointerType::get(), llvm::ConstantVector::get(), llvm::ConstantPointerNull::get(), llvm::UndefValue::get(), llvm::ConstantExpr::getAlignOf(), getAllocationDataForFunction(), llvm::Constant::getAllOnesValue(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::BasicBlock::getContext(), llvm::Function::getContext(), llvm::Value::getContext(), llvm::EVT::getEVT(), llvm::VectorType::getExtendedElementVectorType(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getFCmp(), getFoldedCast(), llvm::ConstantExpr::getICmp(), llvm::ConstantDataSequential::getImpl(), llvm::ConstantFP::getInfinity(), llvm::VectorType::getInteger(), llvm::Constant::getIntegerValue(), llvm::DataLayout::getIntPtrType(), GetLoadValueForLoad(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), GetMemInstValueForLoad(), llvm::ConstantFP::getNaN(), llvm::ConstantFP::getNegativeZero(), llvm::Constant::getNullValue(), llvm::ConstantExpr::getOffsetOf(), getPromotedType(), getReturnAttrs(), llvm::GetReturnInfo(), llvm::ConstantExpr::getShuffleVector(), llvm::ConstantExpr::getSizeOf(), GetStoreValueForLoad(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::ConstantInt::getTrue(), llvm::VectorType::getTruncatedElementVectorType(), llvm::TargetLoweringBase::getTypeLegalizationCost(), getTypePartition(), llvm::TargetLoweringBase::getValueType(), llvm::ValueAsMetadata::handleDeletion(), llvm::ValueAsMetadata::handleRAUW(), hasLifetimeMarkers(), IsIncrementNSW(), IsIncrementNUW(), isIntegerWideningViable(), isVectorPromotionViableForSlice(), LLVMConstIntOfArbitraryPrecision(), llvm::FastISel::lowerCallTo(), llvm::TargetLowering::LowerCallTo(), llvm::CmpInst::makeCmpResultType(), llvm::TargetLowering::ParseConstraints(), llvm::StructType::setBody(), llvm::StructType::setName(), SimplifyICmpInst(), unpackLoadToAggregate(), and unpackStoreToAggregate().
|
static |
Definition at line 185 of file Type.cpp.
References getDoubleTy(), and getPointerTo().
|
static |
Definition at line 158 of file Type.cpp.
References llvm::LLVMContextImpl::DoubleTy, and llvm::LLVMContext::pImpl.
Referenced by ConvertImplicitDefToConstZero(), DecodeFixedType(), EnsureFPIntrinsicsExist(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TypeBuilder< double, false >::get(), llvm::TypeBuilder< types::ieee_double, cross >::get(), llvm::ConstantFP::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getConstantVector(), getDoublePtrTy(), llvm::IRBuilderBase::getDoubleTy(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), llvm::LegalizerHelper::libcall(), LLVMDoubleTypeInContext(), LowerVectorBroadcast(), and ReplaceFPIntrinsicWithCall().
|
static |
Definition at line 181 of file Type.cpp.
References getFloatTy(), and getPointerTo().
|
static |
Definition at line 157 of file Type.cpp.
References llvm::LLVMContextImpl::FloatTy, and llvm::LLVMContext::pImpl.
Referenced by ConvertImplicitDefToConstZero(), llvm::MDBuilder::createFPMath(), DecodeFixedType(), EnsureFPIntrinsicsExist(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::TypeBuilder< float, false >::get(), llvm::TypeBuilder< types::ieee_float, cross >::get(), llvm::ConstantFP::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getConstantVector(), getFloatPtrTy(), llvm::IRBuilderBase::getFloatTy(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), getPrimitiveType(), llvm::AMDGPUIntrinsicInfo::getType(), llvm::EVT::getTypeForEVT(), llvm::LegalizerHelper::libcall(), LLVMFloatTypeInContext(), LowerVectorBroadcast(), ReplaceFPIntrinsicWithCall(), and UpgradeSSE41Function().
|
inline |
Definition at line 167 of file Type.h.
References 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(), and FoldBitCast().
|
static |
Definition at line 193 of file Type.cpp.
References getFP128Ty(), and getPointerTo().
|
static |
Definition at line 162 of file Type.cpp.
References llvm::LLVMContextImpl::FP128Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::TypeBuilder< types::fp128, cross >::get(), llvm::ConstantFP::get(), 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 127 of file Type.cpp.
References assert(), DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, isFloatingPointTy(), PPC_FP128TyID, and X86_FP80TyID.
Referenced by llvm::InstCombiner::visitFPTrunc().
|
inline |
Definition at line 155 of file DerivedTypes.h.
Referenced by createDirectCallInst().
Definition at line 151 of file DerivedTypes.h.
|
static |
Definition at line 177 of file Type.cpp.
References getHalfTy(), and getPointerTo().
|
static |
Definition at line 156 of file Type.cpp.
References llvm::LLVMContextImpl::HalfTy, and llvm::LLVMContext::pImpl.
Referenced by DecodeFixedType(), llvm::ConstantFP::get(), llvm::ConstantDataArray::getFP(), llvm::ConstantDataVector::getFP(), getHalfPtrTy(), llvm::IRBuilderBase::getHalfTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMHalfTypeInContext(), and llvm::InstCombiner::visitCallInst().
|
static |
Definition at line 171 of file Type.cpp.
References llvm::LLVMContextImpl::Int128Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::IntegerType::get(), llvm::IRBuilderBase::getInt128Ty(), llvm::EVT::getTypeForEVT(), and LLVMInt128TypeInContext().
|
static |
Definition at line 217 of file Type.cpp.
References getInt16Ty(), and getPointerTo().
|
static |
Definition at line 168 of file Type.cpp.
References llvm::LLVMContextImpl::Int16Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getInt16PtrTy(), llvm::IRBuilderBase::getInt16Ty(), llvm::EVT::getTypeForEVT(), and LLVMInt16TypeInContext().
|
static |
Definition at line 209 of file Type.cpp.
References getInt1Ty(), and getPointerTo().
Referenced by llvm::SCEVExpander::getIVIncOperand(), and llvm::InstCombiner::visitFree().
|
static |
Definition at line 166 of file Type.cpp.
References llvm::LLVMContextImpl::Int1Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::SelectInst::areInvalidOperands(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), llvm::ConstantFoldCompareInstruction(), llvm::IRBuilderBase::CreateMaskedGather(), llvm::IRBuilderBase::CreateMaskedScatter(), DisableAllLoopOptsOnLoop(), llvm::IntegerType::get(), llvm::ConstantExpr::getAlignOf(), getEdgeValueLocal(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getFCmp(), llvm::ConstantExpr::getICmp(), getInt1PtrTy(), llvm::IRBuilderBase::getInt1Ty(), getNegativeIsTrueBoolVec(), llvm::ConstantInt::getTrue(), llvm::EVT::getTypeForEVT(), LLVMInt1TypeInContext(), llvm::CmpInst::makeCmpResultType(), OptimizeGlobalAddressOfMalloc(), SimplifyCondBranchToCondBranch(), TryToShrinkGlobalToBoolean(), UpgradeIntrinsicFunction1(), and llvm::InstCombiner::visitAllocSite().
|
static |
Definition at line 221 of file Type.cpp.
References getInt32Ty(), and getPointerTo().
|
static |
Definition at line 169 of file Type.cpp.
References llvm::LLVMContextImpl::Int32Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::Module::addModuleFlag(), llvm::IntrinsicLowering::AddPrototypes(), addWithOverflow(), llvm::annotateValueSite(), BuildConstantFromSCEV(), collectShuffleElements(), collectSingleShuffleElements(), llvm::ConstantFoldInsertElementInstruction(), convertPointerToIntegerType(), llvm::ARMConstantPoolConstant::Create(), llvm::MDBuilder::createBranchWeights(), llvm::IRBuilder< TargetFolder >::CreateConstGEP1_32(), llvm::IRBuilder< TargetFolder >::CreateConstGEP2_32(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP1_32(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP2_32(), llvm::IRBuilder< TargetFolder >::CreateGlobalStringPtr(), createPrivateGlobalForSourceLoc(), createStringMetadata(), DoPromotion(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), emitThumb1LoadConstPool(), emitThumb2LoadConstPool(), llvm::SanitizerStatReport::finish(), FoldBitCast(), foldConstantInsEltIntoShuffle(), foldInsSequenceIntoBroadcast(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getAISize(), llvm::ConstantExpr::getAlignOf(), getDefaultPersonalityFn(), getInt32PtrTy(), llvm::IRBuilderBase::getInt32Ty(), llvm::X86TargetLowering::getIRStackGuard(), llvm::ConstantExpr::getOffsetOf(), getPromotedType(), llvm::X86TargetLowering::getSafeStackPointerLocation(), llvm::ConstantExpr::getSizeOf(), llvm::EVT::getTypeForEVT(), llvm::isBytewiseValue(), LLVMBuildArrayMalloc(), LLVMBuildMalloc(), LLVMInt32TypeInContext(), llvm::XCoreInstrInfo::loadImmediate(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), LowerBSWAP(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::MergeBasicBlockIntoOnlyPred(), llvm::EscapeEnumerator::Next(), llvm::AlignmentFromAssumptionsPass::processAssumption(), replaceExtractElements(), SimplifyRelativeLoad(), simplifyX86extrq(), simplifyX86insertq(), simplifyX86pshufb(), simplifyX86vpermilvar(), simplifyX86vpermv(), SRAGlobal(), subWithOverflow(), unpackLoadToAggregate(), unpackStoreToAggregate(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitShuffleVectorInst(), and llvm::BasicBlock::~BasicBlock().
|
static |
Definition at line 225 of file Type.cpp.
References getInt64Ty(), and getPointerTo().
|
static |
Definition at line 170 of file Type.cpp.
References llvm::LLVMContextImpl::Int64Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::GlobalObject::addTypeMetadata(), AnalyzeLoadFromClobberingMemInst(), llvm::annotateValueSite(), llvm::IRBuilder< TargetFolder >::CreateConstGEP1_64(), llvm::IRBuilder< TargetFolder >::CreateConstGEP2_64(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP1_64(), llvm::IRBuilder< TargetFolder >::CreateConstInBoundsGEP2_64(), llvm::MDBuilder::createFunctionEntryCount(), createIRLevelProfileFlagVariable(), llvm::orc::createIRTypedAddress(), llvm::IRBuilder< TargetFolder >::CreatePtrDiff(), llvm::MDBuilder::createTBAANode(), llvm::MDBuilder::createTBAAScalarTypeNode(), llvm::MDBuilder::createTBAAStructNode(), llvm::MDBuilder::createTBAAStructTagNode(), llvm::MDBuilder::createTBAAStructTypeNode(), DoPromotion(), llvm::SIFrameLowering::emitPrologue(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::AlignmentFromAssumptionsPass::extractAlignmentInfo(), foldConstantCastPair(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), llvm::ConstantExpr::getAlignOf(), getInt64PtrTy(), llvm::IRBuilderBase::getInt64Ty(), getKeyValMD(), GetMemInstValueForLoad(), llvm::ConstantExpr::getOffsetOf(), getRuntimeMDForKernel(), llvm::ConstantExpr::getSizeOf(), llvm::InstrProfIncrementInst::getStep(), llvm::EVT::getTypeForEVT(), llvm::InlineFunction(), llvm::DIBuilder::insertDbgValueIntrinsic(), llvm::isBytewiseValue(), LLVMInt64TypeInContext(), LowerBSWAP(), llvm::IntrinsicLowering::LowerIntrinsicCall(), SimplifyRelativeLoad(), simplifyX86extrq(), simplifyX86insertq(), unpackLoadToAggregate(), unpackStoreToAggregate(), and llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 213 of file Type.cpp.
References getInt8Ty(), and getPointerTo().
Referenced by llvm::IntrinsicLowering::AddPrototypes(), llvm::LoopAccessInfo::addRuntimeChecks(), AnalyzeLoadFromClobberingMemInst(), appendToGlobalArray(), appendToUsedList(), BuildConstantFromSCEV(), llvm::coro::Shape::buildFrom(), llvm::CoroIdInst::clearPromise(), createClone(), createFree(), CreateGCRelocates(), createIfThenElse(), createMalloc(), CreatePrologue(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), expandBounds(), llvm::SanitizerStatReport::finish(), getAllocationDataForFunction(), llvm::TargetLoweringBase::getDefaultSafeStackPointerLocation(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::AArch64TargetLowering::getIRStackGuard(), llvm::X86TargetLowering::getIRStackGuard(), llvm::TargetLoweringBase::getIRStackGuard(), llvm::SCEVExpander::getIVIncOperand(), GetMemInstValueForLoad(), getNaturalGEPWithOffset(), getRuntimeMDForKernel(), llvm::AArch64TargetLowering::getSafeStackPointerLocation(), llvm::X86TargetLowering::getSafeStackPointerLocation(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), hasLifetimeMarkers(), llvm::X86TargetLowering::insertSSPDeclarations(), llvm::TargetLoweringBase::insertSSPDeclarations(), llvm::isAllocaPromotable(), llvm::isFreeCall(), llvm::TargetLowering::LowerToTLSEmulatedModel(), LowerToTLSExecModel(), llvm::EscapeEnumerator::Next(), llvm::coro::replaceCoroFree(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::SanitizerStatReport::SanitizerStatReport(), setCoroInfo(), llvm::CoroIdInst::setCoroutineSelf(), setUsedInitializer(), SimplifyRelativeLoad(), and llvm::SelectionDAGBuilder::visitSPDescriptorParent().
|
static |
Definition at line 167 of file Type.cpp.
References llvm::LLVMContextImpl::Int8Ty, and llvm::LLVMContext::pImpl.
Referenced by AnalyzeLoadFromClobberingMemInst(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), llvm::SelectionDAG::getEVTAlignment(), getInt8PtrTy(), llvm::IRBuilderBase::getInt8Ty(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), GetMemInstValueForLoad(), llvm::EVT::getTypeForEVT(), llvm::isBytewiseValue(), LLVMInt8TypeInContext(), llvm::coro::LowererBase::makeSubFnCall(), simplifyX86extrq(), and simplifyX86insertq().
|
inline |
Definition at line 96 of file DerivedTypes.h.
References llvm::IntegerType::getBitWidth().
Referenced by canBeCheaplyTransformed(), llvm::ConstantFoldGetElementPtr(), EliminateDeadSwitchCases(), evaluateGEPOffsetExpression(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), generateSignedDivisionCode(), generateSignedRemainderCode(), llvm::LazyValueInfo::getConstantRange(), getEdgeValueLocal(), llvm::ARMTTIImpl::getIntImmCost(), getOCLTypeName(), getRuntimeMDValueType(), llvm::DataLayout::getTypeSizeInBits(), getValueFromICmpCondition(), hasSameExtUse(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::ConstantInt::isValueValidForType(), isZero(), and llvm::reassociate::XorOpnd::XorOpnd().
|
static |
Definition at line 205 of file Type.cpp.
References getIntNTy(), and getPointerTo().
|
static |
Definition at line 173 of file Type.cpp.
References llvm::IntegerType::get().
Referenced by combineLoadToOperationType(), llvm::ConstantFoldGetElementPtr(), createMaskInstrs(), getConstantVector(), getIntNPtrTy(), llvm::IRBuilderBase::getIntNTy(), llvm::DataLayout::getLargestLegalIntType(), llvm::DataLayout::getSmallestLegalIntType(), and LowerVectorBroadcast().
|
static |
Definition at line 155 of file Type.cpp.
References llvm::LLVMContextImpl::LabelTy, and llvm::LLVMContext::pImpl.
Referenced by getPrimitiveType(), and LLVMLabelTypeInContext().
|
static |
Definition at line 159 of file Type.cpp.
References llvm::LLVMContextImpl::MetadataTy, and llvm::LLVMContext::pImpl.
Referenced by DecodeFixedType(), llvm::MetadataAsValue::get(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), and llvm::ValueEnumerator::ValueEnumerator().
|
inline |
Return the number of types in the derived type.
Definition at line 322 of file Type.h.
References NumContainedTys.
Referenced by lookupFunction(), and llvm::InstCombiner::visitBitCast().
|
inline |
Get the address space of this pointer or pointer vector type.
Definition at line 479 of file DerivedTypes.h.
References getScalarType().
Referenced by appendsGenericAddressExpressionToPostorderStack(), BuildConstantFromSCEV(), llvm::castToCStr(), cloneConstantExprWithNewAddressSpace(), llvm::orc::cloneGlobalAliasDecl(), cloneInstructionWithNewAddressSpace(), cloneValueWithNewAddressSpace(), llvm::ConstantFoldCastOperand(), createMaskInstrs(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), expandBounds(), llvm::IntToPtrInst::getAddressSpace(), getAdjustedPtr(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::CastInst::getCastOpcode(), llvm::AddrSpaceCastInst::getDestAddressSpace(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::ConstantExpr::getGetElementPtr(), GetLoadValueForLoad(), GetMemInstValueForLoad(), llvm::Module::getOrInsertGlobal(), llvm::LoadInst::getPointerAddressSpace(), llvm::StoreInst::getPointerAddressSpace(), llvm::AtomicCmpXchgInst::getPointerAddressSpace(), llvm::AtomicRMWInst::getPointerAddressSpace(), llvm::GetElementPtrInst::getPointerAddressSpace(), llvm::PtrToIntInst::getPointerAddressSpace(), llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), llvm::ConstantExpr::getPointerCast(), getRuntimeMDForKernel(), llvm::AddrSpaceCastInst::getSrcAddressSpace(), llvm::DataLayout::getTypeSizeInBits(), llvm::SelectionDAGBuilder::getValueImpl(), hasLifetimeMarkers(), llvm::CastInst::isEliminableCastPair(), llvm::TargetLoweringObjectFileELF::lowerRelativeReference(), llvm::SelectionDAGBuilder::LowerStatepoint(), PerformHeapAllocSRoA(), shouldInstrumentReadWriteFromAddress(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
Definition at line 358 of file Type.h.
References assert(), ContainedTys, getTypeID(), and PointerTyID.
Referenced by cloneConstantExprWithNewAddressSpace(), cloneInstructionWithNewAddressSpace(), getAdjustedPtr(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), getRuntimeMDValueType(), llvm::RuntimePointerChecking::insert(), isAligned(), llvm::isDereferenceableAndAlignedPointer(), llvm::CastInst::isEliminableCastPair(), llvm::InductionDescriptor::isInductionPHI(), llvm::isSafeToLoadUnconditionally(), operandWithNewAddressSpaceOrCreateUndef(), and rewriteGEPAsOffset().
| 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 678 of file Type.cpp.
References llvm::PointerType::get().
Referenced by buildFrameType(), cloneConstantExprWithNewAddressSpace(), cloneInstructionWithNewAddressSpace(), combineLoadToNewType(), combineStoreToNewValue(), llvm::ConstantExpr::getAlignOf(), getDoublePtrTy(), getFloatPtrTy(), getFP128PtrTy(), llvm::ConstantExpr::getGetElementPtr(), getHalfPtrTy(), getInt16PtrTy(), getInt1PtrTy(), getInt32PtrTy(), getInt64PtrTy(), getInt8PtrTy(), getIntNPtrTy(), getPPC_FP128PtrTy(), llvm::TargetLoweringBase::getSafeStackPointerLocation(), getX86_FP80PtrTy(), getX86_MMXPtrTy(), insertSpills(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), lowerSubFn(), operandWithNewAddressSpaceOrCreateUndef(), scalarizeMaskedLoad(), scalarizeMaskedStore(), SimplifyRelativeLoad(), tryPromoteAllocaToVector(), and llvm::UpgradeIntrinsicCall().
|
static |
Definition at line 197 of file Type.cpp.
References getPointerTo(), and getPPC_FP128Ty().
|
static |
Definition at line 163 of file Type.cpp.
References llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::PPC_FP128Ty.
Referenced by llvm::TypeBuilder< types::ppc_fp128, cross >::get(), llvm::ConstantFP::get(), getPPC_FP128PtrTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMPPCFP128TypeInContext(), and lookThroughFPExtensions().
| unsigned 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.
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 108 of file Type.cpp.
References DoubleTyID, FloatTyID, FP128TyID, getBitWidth(), getTypeID(), HalfTyID, IntegerTyID, PPC_FP128TyID, VectorTyID, X86_FP80TyID, and X86_MMXTyID.
Referenced by llvm::HexagonTargetLowering::allowTruncateForTailCall(), llvm::ARMTargetLowering::allowTruncateForTailCall(), llvm::X86TargetLowering::allowTruncateForTailCall(), llvm::CastInst::castIsValid(), collectInsertionElements(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldLoadFromConstPtr(), llvm::DecodePSHUFBMask(), llvm::DecodeVPERMIL2PMask(), llvm::DecodeVPERMILPMask(), llvm::DecodeVPERMV3Mask(), llvm::DecodeVPERMVMask(), llvm::DecodeVPPERMMask(), despeculateCountZeros(), llvm::HexagonTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::HexagonTargetLowering::emitStoreConditional(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), evaluateGEPOffsetExpression(), llvm::AlignmentFromAssumptionsPass::extractAlignmentInfo(), llvm::extractConstantMask(), foldVecTruncToExtElt(), llvm::Constant::getAllOnesValue(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantDataSequential::getElementByteSize(), llvm::VectorType::getExtendedElementVectorType(), llvm::VectorType::getInteger(), llvm::SystemZTTIImpl::getIntImmCost(), llvm::PPCTTIImpl::getIntImmCost(), llvm::AArch64TTIImpl::getIntImmCost(), llvm::ARMTTIImpl::getIntImmCost(), llvm::X86TTIImpl::getIntImmCost(), llvm::MemoryDependenceResults::getLoadLoadClobberFullWidthSize(), llvm::PPCTTIImpl::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMemoryOpCost(), getNoopInput(), llvm::NVPTXTargetLowering::getPrototype(), getScalarSizeInBits(), llvm::X86TTIImpl::getShuffleCost(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::RecurrenceDescriptor::getSourceExtensionKind(), getTargetConstantBitsFromNode(), llvm::VectorType::getTruncatedElementVectorType(), getTypeSizeIndex(), llvm::CastInst::isBitCastable(), llvm::CastInst::isCastable(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), isMultipleOfTypeSize(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::NVPTXTargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isZExtFree(), LinearizeExprTree(), LowerBSWAP(), LowerCTLZ(), LowerCTPOP(), optimizeVectorResize(), processUGT_ADDCST_ADD(), processUMulZExtIdiom(), llvm::SCEVExpander::replaceCongruentIVs(), scalarConstantToHexString(), llvm::AArch64TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::ARMTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::PPCTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::X86TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::HexagonTargetLowering::shouldExpandAtomicLoadInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicLoadInIR(), llvm::ARMTargetLowering::shouldExpandAtomicLoadInIR(), llvm::SparcTargetLowering::shouldExpandAtomicRMWInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicRMWInIR(), llvm::ARMTargetLowering::shouldExpandAtomicRMWInIR(), llvm::HexagonTargetLowering::shouldExpandAtomicStoreInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicStoreInIR(), llvm::ARMTargetLowering::shouldExpandAtomicStoreInIR(), SimplifyICmpInst(), simplifyX86movmsk(), SwitchToLookupTable(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitPHINode(), llvm::InstCombiner::visitReturnInst(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSRem(), and llvm::InstCombiner::visitTrunc().
|
static |
Return a type based on an identifier.
Definition at line 26 of file Type.cpp.
References DoubleTyID, FloatTyID, FP128TyID, getDoubleTy(), getFloatTy(), getFP128Ty(), getHalfTy(), getLabelTy(), getMetadataTy(), getPPC_FP128Ty(), getTokenTy(), getVoidTy(), getX86_FP80Ty(), getX86_MMXTy(), HalfTyID, LabelTyID, MetadataTyID, PPC_FP128TyID, TokenTyID, VoidTyID, 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 123 of file Type.cpp.
References getPrimitiveSizeInBits(), and getScalarType().
Referenced by canEvaluateSExtd(), canEvaluateShiftedShift(), canEvaluateTruncated(), canEvaluateZExtd(), llvm::CastInst::castIsValid(), computeKnownBits(), computeKnownBitsFromOperator(), ComputeNumSignBits(), llvm::computeOverflowForUnsignedMul(), llvm::ConstantFoldCastOperand(), convertPointerToIntegerType(), llvm::CastInst::CreateFPCast(), llvm::CastInst::CreateIntegerCast(), llvm::CastInst::CreateSExtOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateSExtOrTrunc(), llvm::CastInst::CreateTruncOrBitCast(), llvm::CastInst::CreateZExtOrBitCast(), llvm::IRBuilder< TargetFolder >::CreateZExtOrTrunc(), llvm::extractConstantMask(), llvm::InstCombiner::FoldItoFPtoI(), llvm::InstCombiner::FoldShiftByConstant(), foldShiftByConstOfShiftByConst(), getBitWidth(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::ConstantExpr::getFPTrunc(), llvm::ConstantExpr::getIntegerCast(), llvm::TargetTransformInfoImplBase::getOperationCost(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSExtOrBitCast(), GetShiftedValue(), getTargetConstantBitsFromNode(), llvm::ConstantExpr::getTrunc(), llvm::ConstantExpr::getTruncOrBitCast(), llvm::ARMTTIImpl::getVectorInstrCost(), getWiderType(), llvm::ConstantExpr::getZExt(), llvm::ConstantExpr::getZExtOrBitCast(), llvm::RuntimePointerChecking::insert(), llvm::CastInst::isEliminableCastPair(), isKnownToBeAPowerOfTwo(), llvm::CastInst::isNoopCast(), llvm::AMDGPUTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isVectorShiftByScalarCheap(), llvm::AMDGPUTargetLowering::isZExtFree(), llvm::TargetTransformInfoImplBase::minRequiredElementSize(), rewriteGEPAsOffset(), llvm::InstCombiner::run(), scalarizeMaskedLoad(), scalarizeMaskedStore(), SimplifyAShrInst(), llvm::SimplifyInstruction(), SimplifyRightShift(), simplifySelectWithFakeICmpEq(), SimplifyShift(), SimplifySubInst(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAShr(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitIntToPtr(), llvm::InstCombiner::visitLShr(), llvm::InstCombiner::visitPtrToInt(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitSub(), llvm::InstCombiner::visitTrunc(), and llvm::InstCombiner::visitZExt().
| Type * Type::getScalarType | ( | ) | const |
If this is a vector type, return the element type, otherwise return 'this'.
Definition at line 44 of file Type.cpp.
Referenced by buildNew(), canConvertValue(), llvm::CastInst::castIsValid(), CoerceAvailableValueToLoadType(), computeKnownBits(), computeKnownBitsFromOperator(), ComputeNumSignBits(), ConcatenateTwoVectors(), llvm::ConstantFoldGetElementPtr(), convertValue(), llvm::GetElementPtrInst::Create(), llvm::IRBuilder< TargetFolder >::CreateBitOrPointerCast(), foldBitCastBitwiseLogic(), foldBoolSextMaskToSelect(), llvm::ConstantInt::get(), llvm::ConstantFP::get(), llvm::ConstantExpr::getAddrSpaceCast(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCmpSelInstrCost(), getFalse(), llvm::TargetTransformInfoImplCRTPBase< AMDGPUTTIImpl >::getGEPCost(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantFP::getInfinity(), llvm::Constant::getIntegerValue(), llvm::ARMTTIImpl::getInterleavedMemoryOpCost(), llvm::AArch64TTIImpl::getInterleavedMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::ConstantExpr::getIntToPtr(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), llvm::ConstantFP::getNaN(), llvm::ConstantFP::getNegativeZero(), getPointerAddressSpace(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::ConstantExpr::getPtrToInt(), getScalarIntrinsicDeclaration(), getScalarSizeInBits(), getSelectCondition(), GetStoreValueForLoad(), getTrue(), llvm::X86TTIImpl::getVectorInstrCost(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getVectorInstrCost(), hasSameExtUse(), llvm::haveNoCommonBitsSet(), llvm::CompositeType::indexValid(), llvm::CastInst::isEliminableCastPair(), isFPOrFPVectorTy(), llvm::isImpliedCondition(), isIntOrIntVectorTy(), isKnownNonZero(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedLoad(), isPtrOrPtrVectorTy(), llvm::Instruction::isSameOperationAs(), LinearizeExprTree(), lowerStatepointMetaArgs(), shouldInstrumentReadWriteFromAddress(), simplifyICmpOfBools(), stripAndComputeConstantOffsets(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAddrSpaceCast(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), and llvm::InstCombiner::visitSub().
|
inline |
Definition at line 341 of file Type.h.
References assert(), ContainedTys, getTypeID(), and isSequentialType().
Referenced by llvm::ConstantDataSequential::getImpl().
Definition at line 309 of file DerivedTypes.h.
Referenced by createCast(), isConstantUsingVectorTy(), and originalTypeIsF128().
|
inline |
Definition at line 301 of file DerivedTypes.h.
References getName().
Referenced by false::operator<<().
|
inline |
Definition at line 305 of file DerivedTypes.h.
Referenced by createCast(), llvm::ConstantAggregateZero::getNumElements(), llvm::UndefValue::getNumElements(), isConstantUsingVectorTy(), originalTypeIsF128(), and whichFPReturnVariant().
|
inlineprotected |
Definition at line 94 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 160 of file Type.cpp.
References llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::TokenTy.
Referenced by DecodeFixedType(), getPrimitiveType(), 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 canLosslesslyBitCastTo(), llvm::IntegerType::classof(), llvm::FunctionType::classof(), llvm::CompositeType::classof(), llvm::StructType::classof(), llvm::SequentialType::classof(), llvm::ArrayType::classof(), llvm::VectorType::classof(), llvm::PointerType::classof(), llvm::FunctionComparator::cmpTypes(), llvm::isa_impl< PointerType, Type >::doit(), executeFAddInst(), executeFCMP_OEQ(), executeFCMP_OGE(), executeFCMP_OGT(), executeFCMP_OLE(), executeFCMP_OLT(), executeFCMP_ONE(), executeFDivInst(), executeFMulInst(), executeFRemInst(), executeFSubInst(), executeICMP_EQ(), executeICMP_NE(), executeICMP_SGE(), executeICMP_SGT(), executeICMP_SLE(), executeICMP_SLT(), executeICMP_UGE(), executeICMP_UGT(), executeICMP_ULE(), executeICMP_ULT(), getArrayElementType(), llvm::ExecutionEngine::getConstantValue(), llvm::EVT::getEVT(), getFltSemantics(), llvm::ConstantExpr::getFPExtend(), getFPMantissaWidth(), llvm::ConstantExpr::getFPToSI(), llvm::ConstantExpr::getFPToUI(), llvm::ConstantExpr::getFPTrunc(), llvm::Constant::getNullValue(), getOCLTypeName(), getPointerElementType(), getPrimitiveSizeInBits(), llvm::NVPTXTargetLowering::getPrototype(), getRuntimeMDValueType(), getSequentialElementType(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSIToFP(), llvm::ConstantExpr::getTrunc(), getTypeID(), llvm::DataLayout::getTypeSizeInBits(), llvm::ConstantExpr::getUIToFP(), getVectorElementType(), llvm::MVT::getVT(), llvm::ConstantExpr::getZExt(), hasUnaryFloatFn(), isAggregateType(), isArrayTy(), isDoubleTy(), isFirstClassType(), isFloatingPointTy(), isFloatTy(), isFP128Ty(), isFunctionTy(), isHalfTy(), isIntegerTy(), isLabelTy(), isLeakCheckerRoot(), llvm::XCoreTargetLowering::isLegalAddressingMode(), isMetadataTy(), isPointerTy(), isPPC_FP128Ty(), isSized(), isStructTy(), isTokenTy(), llvm::ConstantFP::isValueValidForType(), isVectorTy(), isVoidTy(), isX86_FP80Ty(), isX86_MMXTy(), llvm::ExecutionEngine::LoadValueFromMemory(), needsFPFromSig(), needsFPStubFromParams(), ReplaceFPIntrinsicWithCall(), llvm::orc::OrcMCJITReplacement::runFunction(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::StoreValueToMemory(), llvm::Interpreter::visitExtractElementInst(), llvm::Interpreter::visitExtractValueInst(), llvm::Interpreter::visitInsertElementInst(), llvm::Interpreter::visitInsertValueInst(), llvm::Interpreter::visitShuffleVectorInst(), llvm::Interpreter::visitVAArgInst(), whichFPParamVariantNeeded(), and whichFPReturnVariant().
|
inline |
Definition at line 353 of file Type.h.
References assert(), ContainedTys, getTypeID(), and VectorTyID.
Referenced by llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), DecodeFixedType(), llvm::extractConstantMask(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::ConstantExpr::getExtractElement(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::ConstantExpr::getInsertElement(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX512(), getMangledTypeStr(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), llvm::AArch64TTIImpl::getMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getReductionCost(), getRuntimeMDValueType(), llvm::X86TTIImpl::getShuffleCost(), llvm::ConstantExpr::getShuffleVector(), llvm::ARMTTIImpl::getVectorInstrCost(), isSimpleType(), X86InterleavedAccessGroup::isSupported(), largestIntegerVectorType(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), llvm::Intrinsic::matchIntrinsicType(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), SimplifyExtractElementInst(), smallestIntegerVectorType(), llvm::UpgradeIntrinsicCall(), and WriteConstantInternal().
|
inline |
Definition at line 438 of file DerivedTypes.h.
Referenced by areInverseVectorBitmasks(), BitCastConstantVector(), canonicalizeCmpWithConstant(), cheapToScalarize(), collectShuffleElements(), collectSingleShuffleElements(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldSelectInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), llvm::CastInst::CreatePointerCast(), emitX86MaskSelect(), EmitX86Select(), llvm::extractConstantMask(), llvm::findScalarElement(), foldBitCastSelect(), foldConstantInsEltIntoShuffle(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCmpSelInstrCost(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::ConstantExpr::getGetElementPtr(), llvm::ARMTTIImpl::getInterleavedMemoryOpCost(), llvm::AArch64TTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCostAVX512(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::ConstantExpr::getIntToPtr(), getMangledTypeStr(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), llvm::PPCTTIImpl::getMemoryOpCost(), llvm::AArch64TTIImpl::getMemoryOpCost(), llvm::ConstantDataSequential::getNumElements(), getOCLTypeName(), llvm::ConstantExpr::getPtrToInt(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getReductionCost(), getScalarizationOverhead(), llvm::X86TTIImpl::getShuffleCost(), llvm::ShuffleVectorInst::getShuffleMask(), llvm::ConstantExpr::getShuffleVector(), getTargetConstantBitsFromNode(), INITIALIZE_PASS_WITH_OPTIONS(), isFiniteNonZeroFp(), llvm::IsFreeToInvert(), llvm::X86TTIImpl::isLegalMaskedGather(), isNormalFp(), isShuffleEquivalentToSelect(), isShuffleExtractingFromLHS(), isUndefShift(), isVectorReductionOp(), llvm::SITargetLowering::LowerFormalArguments(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), llvm::Intrinsic::matchIntrinsicType(), matchPairwiseReduction(), matchPairwiseShuffleMask(), matchVectorSplittingReduction(), replaceExtractElements(), scalarConstantToHexString(), scalarizeMaskedScatter(), simplifyX86movmsk(), simplifyX86vpermilvar(), stripAndComputeConstantOffsets(), llvm::UpgradeIntrinsicCall(), upgradeMaskedCompare(), UpgradeMaskedLoad(), UpgradeMaskedStore(), UpgradeX86ALIGNIntrinsics(), UpgradeX86PSLLDQIntrinsics(), UpgradeX86PSRLDQIntrinsics(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitInsertElementInst(), llvm::InstCombiner::visitIntToPtr(), llvm::InstCombiner::visitPtrToInt(), llvm::InstCombiner::visitShuffleVectorInst(), llvm::InstCombiner::visitSRem(), and WriteConstantInternal().
|
static |
Definition at line 154 of file Type.cpp.
References llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::VoidTy.
Referenced by llvm::IntrinsicLowering::AddPrototypes(), createFree(), llvm::createSanitizerCtorAndInitFunctions(), DecodeFixedType(), llvm::ARMSelectionDAGInfo::EmitSpecializedLibcall(), llvm::HexagonSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::XCoreSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::SanitizerStatReport::finish(), fixupFPReturnAndCall(), llvm::TypeBuilder< void, cross >::get(), getOrInsertValueProfilingCall(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), llvm::IRBuilderBase::getVoidTy(), InsertSafepointPoll(), llvm::X86TargetLowering::insertSSPDeclarations(), insertUseHolderAfter(), LLVMVoidTypeInContext(), llvm::SelectionDAGBuilder::LowerCallSiteWithDeoptBundleImpl(), llvm::TargetLowering::LowerCallTo(), llvm::SparcTargetLowering::LowerF128Op(), llvm::IntrinsicLowering::LowerIntrinsicCall(), makeStatepointExplicitImpl(), and llvm::Interpreter::visitReturnInst().
|
static |
Definition at line 189 of file Type.cpp.
References getPointerTo(), and getX86_FP80Ty().
|
static |
Definition at line 161 of file Type.cpp.
References llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::X86_FP80Ty.
Referenced by llvm::TypeBuilder< types::x86_fp80, cross >::get(), llvm::ConstantFP::get(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), getX86_FP80PtrTy(), and LLVMX86FP80TypeInContext().
|
static |
Definition at line 201 of file Type.cpp.
References getPointerTo(), and getX86_MMXTy().
|
static |
Definition at line 164 of file Type.cpp.
References llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::X86_MMXTy.
Referenced by DecodeFixedType(), llvm::TypeBuilder< types::x86_mmx, cross >::get(), 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 247 of file Type.h.
References ArrayTyID, getTypeID(), and StructTyID.
Referenced by advanceToNextLeafType(), llvm::CastInst::castIsValid(), firstRealType(), llvm::ExecutionEngine::getConstantValue(), llvm::NVPTXTargetLowering::getPrototype(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::NVPTXTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerFormalArguments(), unpackLoadToAggregate(), and unpackStoreToAggregate().
|
inline |
True if this is an instance of ArrayType.
Definition at line 210 of file Type.h.
References ArrayTyID, and getTypeID().
Referenced by AnalyzeLoadFromClobberingLoad(), AnalyzeLoadFromClobberingStore(), AnalyzeLoadFromClobberingWrite(), CanCoerceMustAliasedValueToLoad(), llvm::AArch64TargetLowering::emitStoreConditional(), EvaluateStoreInto(), llvm::FindInsertedValue(), llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::PPCTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::ConstantAggregateZero::get(), isArray(), isConstantUsingVectorTy(), llvm::SCEVUnknown::isOffsetOf(), isSimpleType(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
Return true if this is 'double', a 64-bit IEEE fp type.
Definition at line 148 of file Type.h.
References DoubleTyID, and getTypeID().
Referenced by appendTypeSuffix(), llvm::ConstantFoldCastInstruction(), emitDebugValueComment(), llvm::ExecutionEngine::getConstantValue(), llvm::ARMTTIImpl::getFPOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::ConstantDataSequential::isElementTypeCompatible(), isHomogeneousAggregate(), llvm::InductionDescriptor::isInductionPHI(), llvm::isMathLibCallNoop(), llvm::WebAssemblyMCInstLower::Lower(), llvm::Intrinsic::matchIntrinsicType(), optimizeBinaryDoubleFP(), optimizeUnaryDoubleFP(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and whichFPReturnVariant().
| 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 91 of file Type.cpp.
References i.
Referenced by areGlobalsPotentiallyEqual(), llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), llvm::FastISel::lowerCall(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::SelectionDAGBuilder::populateCallLoweringInfo(), and llvm::FunctionLoweringInfo::set().
|
inline |
Return true if the type is "first class", meaning it is a valid type for a Value.
Definition at line 233 of file Type.h.
References FunctionTyID, getTypeID(), and VoidTyID.
Referenced by canLosslesslyBitCastTo(), canTrapImpl(), llvm::CastInst::castIsValid(), llvm::FunctionComparator::cmpConstants(), foldConstantCastPair(), llvm::CastInst::getCastOpcode(), llvm::ConstantExpr::getExtractValue(), getFoldedCast(), llvm::ConstantExpr::getInsertValue(), llvm::ExecutionEngine::InitializeMemory(), llvm::CastInst::isBitCastable(), llvm::CastInst::isCastable(), llvm::FunctionType::isValidArgumentType(), and llvm::Value::Value().
|
inline |
Return true if this is one of the six floating-point types.
Definition at line 160 of file Type.h.
References DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, PPC_FP128TyID, and X86_FP80TyID.
Referenced by llvm::RecurrenceDescriptor::AddReductionVar(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldLoadFromConstPtr(), FoldBitCast(), llvm::Constant::getAllOnesValue(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), getFPMantissaWidth(), llvm::NVPTXTargetLowering::getPrototype(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::SystemZTTIImpl::getUnrollingPreferences(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::CastInst::isCastable(), llvm::CastInst::isEliminableCastPair(), llvm::SystemZTargetLowering::isFoldableMemAccessOffset(), llvm::InductionDescriptor::isFPInductionPHI(), isFPOrFPVectorTy(), llvm::InductionDescriptor::isInductionPHI(), llvm::RecurrenceDescriptor::isRecurrenceInstr(), isSimpleType(), isSingleValueType(), isSized(), isSupportedAtomicType(), llvm::VectorType::isValidElementType(), llvm::NVPTXTargetLowering::LowerCall(), optimizeSQRT(), llvm::InductionDescriptor::transform(), and TryToShrinkGlobalToBoolean().
|
inline |
Return true if this is 'float', a 32-bit IEEE fp type.
Definition at line 145 of file Type.h.
References FloatTyID, and getTypeID().
Referenced by appendTypeSuffix(), llvm::ConstantFoldCastInstruction(), emitDebugValueComment(), executeFCMP_ORD(), executeFCMP_UNO(), llvm::ExecutionEngine::getConstantValue(), llvm::ARMTTIImpl::getFPOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::ConstantDataSequential::isElementTypeCompatible(), isHomogeneousAggregate(), llvm::InductionDescriptor::isInductionPHI(), llvm::isMathLibCallNoop(), llvm::WebAssemblyMCInstLower::Lower(), llvm::Intrinsic::matchIntrinsicType(), optimizeUnaryDoubleFP(), TypeToFloatSemantics(), valueHasFloatPrecision(), llvm::InstCombiner::visitFCmpInst(), and whichFPReturnVariant().
|
inline |
Return true if this is 'fp128'.
Definition at line 154 of file Type.h.
References FP128TyID, and getTypeID().
Referenced by llvm::ConstantFoldCastInstruction(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), originalTypeIsF128(), TypeToFloatSemantics(), and llvm::InstCombiner::visitFCmpInst().
|
inline |
Return true if this is a FP type or a vector of FP.
Definition at line 183 of file Type.h.
References getScalarType(), and isFloatingPointTy().
Referenced by llvm::ARMTargetLowering::canCombineStoreAndExtract(), llvm::CastInst::castIsValid(), llvm::FPMathOperator::classof(), llvm::CastInst::CreateFPCast(), llvm::ConstantExpr::get(), getDecodedBinaryOpcode(), llvm::ConstantExpr::getFNeg(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::ConstantExpr::getFPToSI(), llvm::ConstantExpr::getFPToUI(), llvm::ConstantExpr::getFPTrunc(), llvm::ConstantExpr::getSIToFP(), llvm::ConstantExpr::getUIToFP(), llvm::ConstantFP::getZeroValueForNegation(), llvm::Constant::isNegativeZeroValue(), and llvm::Intrinsic::matchIntrinsicType().
|
inline |
True if this is an instance of FunctionType.
Definition at line 204 of file Type.h.
References FunctionTyID, and getTypeID().
Referenced by llvm::TargetLoweringObjectFileCOFF::emitLinkerFlagsForGlobal(), llvm::PointerType::isLoadableOrStorableType(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::FunctionType::isValidReturnType(), llvm::WebAssemblyMCInstLower::Lower(), and llvm::TargetLoweringObjectFileELF::lowerRelativeReference().
|
inline |
Definition at line 147 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 llvm::ConstantFoldCastInstruction(), llvm::ConstantDataSequential::isElementTypeCompatible(), llvm::InductionDescriptor::isInductionPHI(), llvm::isMathLibCallNoop(), llvm::Intrinsic::matchIntrinsicType(), TypeToFloatSemantics(), and llvm::InstCombiner::visitFCmpInst().
|
inline |
True if this is an instance of IntegerType.
Definition at line 195 of file Type.h.
References getTypeID(), and IntegerTyID.
Referenced by llvm::HexagonTargetLowering::allowTruncateForTailCall(), llvm::ARMTargetLowering::allowTruncateForTailCall(), llvm::X86TargetLowering::allowTruncateForTailCall(), AnalyzeLoadFromClobberingLoad(), llvm::bypassSlowDivision(), canConvertValue(), llvm::CastInst::castIsValid(), CoerceAvailableValueToLoadType(), combineLoadToNewType(), combineLoadToOperationType(), llvm::InstCombiner::commonCastTransforms(), llvm::InstCombiner::commonIDivTransforms(), computeKnownBitsFromOperator(), llvm::computeMinimumValueSizes(), llvm::ComputeMultiple(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::JumpThreadingPass::ComputeValueKnownInPredecessors(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldGetElementPtr(), convertValue(), llvm::CastInst::CreateBitOrPointerCast(), llvm::IRBuilder< TargetFolder >::CreateBitOrPointerCast(), createCast(), evaluateICmpRelation(), llvm::X86TargetLowering::ExpandInlineAsm(), ExtractConstantBytes(), llvm::extractConstantMask(), FoldBitCast(), foldBitCastBitwiseLogic(), foldBoolSextMaskToSelect(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), foldLogOpOfMaskedICmpsHelper(), foldSelectICmpAndOr(), FoldTwoEntryPHINode(), llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters(), getAdjustedPtr(), getAISize(), getAllocationDataForFunction(), llvm::CastInst::getCastOpcode(), llvm::LazyValueInfo::getConstantRange(), llvm::ExecutionEngine::getConstantValue(), llvm::ScalarEvolution::getEffectiveSCEVType(), llvm::ConstantExpr::getExtractElement(), getFalse(), llvm::ConstantInt::getFalse(), llvm::objcarc::GetFunctionClass(), llvm::DataLayout::getIndexedOffsetInType(), llvm::ConstantExpr::getInsertElement(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::SystemZTTIImpl::getIntImmCost(), llvm::PPCTTIImpl::getIntImmCost(), llvm::AArch64TTIImpl::getIntImmCost(), llvm::ARMTTIImpl::getIntImmCost(), llvm::X86TTIImpl::getIntImmCost(), llvm::ConstantExpr::getIntToPtr(), GetLoadValueForLoad(), llvm::AArch64TTIImpl::getMemoryOpCost(), getNaturalGEPWithOffset(), getNegativeIsTrueBoolVec(), llvm::ScalarEvolution::getNoopOrAnyExtend(), llvm::ScalarEvolution::getNoopOrSignExtend(), llvm::ScalarEvolution::getNoopOrZeroExtend(), llvm::SCEVExpander::getOrInsertCanonicalInductionVariable(), llvm::NVPTXTargetLowering::getPrototype(), llvm::ConstantExpr::getPtrToInt(), getSelectCondition(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::TargetLowering::getSingleConstraintMatchWeight(), GetStoreValueForLoad(), getTrue(), llvm::ConstantInt::getTrue(), llvm::ScalarEvolution::getTruncateOrNoop(), llvm::ScalarEvolution::getTruncateOrSignExtend(), llvm::ScalarEvolution::getTruncateOrZeroExtend(), getUnderlyingObjectFromInt(), llvm::SystemZTTIImpl::getUnrollingPreferences(), getValueFromICmpCondition(), llvm::ARMTTIImpl::getVectorInstrCost(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::CompositeType::indexValid(), llvm::isBytewiseValue(), llvm::CastInst::isCastable(), llvm::CastInst::isEliminableCastPair(), llvm::isGEPBasedOnPointerToString(), llvm::isImpliedCondition(), llvm::InductionDescriptor::isInductionPHI(), llvm::CastInst::isIntegerCast(), isIntegerTy(), isIntExtFree(), isIntOrIntVectorTy(), llvm::ScalarEvolution::isSCEVable(), isSimpleType(), isSingleValueType(), llvm::ConstantDataSequential::isString(), isSupportedAtomicType(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::NVPTXTargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), llvm::VectorType::isValidElementType(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), llvm::ConstantInt::isValueValidForType(), isVectorPromotionViable(), isVectorPromotionViableForSlice(), llvm::MSP430TargetLowering::isZExtFree(), llvm::AArch64TargetLowering::isZExtFree(), llvm::X86TargetLowering::isZExtFree(), LowerBSWAP(), llvm::NVPTXTargetLowering::LowerCall(), LowerCTPOP(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::IntrinsicLowering::LowerToByteSwap(), llvm::Intrinsic::matchIntrinsicType(), originalTypeIsF128(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::orc::OrcMCJITReplacement::runFunction(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::AArch64TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::ARMTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::PPCTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::X86TargetLowering::shouldConvertConstantLoadToIntImm(), SimplifyAddInst(), simplifyAllocaArraySize(), SimplifyDiv(), simplifyICmpOfBools(), SimplifyMulInst(), SimplifyRem(), SimplifySubInst(), llvm::JumpThreadingPass::TryToUnfoldSelectInCurrBB(), llvm::AttributeFuncs::typeIncompatible(), llvm::UnrollRuntimeLoopRemainder(), UpgradeX86IntrinsicsWith8BitMask(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitPHINode(), llvm::InstCombiner::visitReturnInst(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSRem(), and llvm::InstCombiner::visitSub().
Return true if this is an IntegerType of the given width.
Definition at line 50 of file Type.cpp.
References getBitWidth(), and isIntegerTy().
|
inline |
Return true if this is an integer type or a vector of integer types.
Definition at line 201 of file Type.h.
References getScalarType(), and isIntegerTy().
Referenced by buildMultiplyTree(), llvm::CastInst::castIsValid(), computeKnownBits(), CreateAdd(), llvm::CastInst::CreateIntegerCast(), CreateMul(), CreateNeg(), llvm::CastInst::CreatePointerCast(), llvm::IRBuilder< TargetFolder >::CreateSExtOrTrunc(), llvm::IRBuilder< TargetFolder >::CreateZExtOrTrunc(), llvm::ConstantExpr::get(), getDecodedBinaryOpcode(), llvm::ConstantExpr::getFPToSI(), llvm::ConstantExpr::getFPToUI(), llvm::ConstantExpr::getIntegerCast(), llvm::ConstantExpr::getNeg(), llvm::ConstantExpr::getNot(), llvm::ConstantExpr::getPointerCast(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSIToFP(), llvm::ConstantExpr::getTrunc(), llvm::ConstantExpr::getUIToFP(), llvm::ConstantExpr::getZExt(), llvm::haveNoCommonBitsSet(), llvm::CompositeType::indexValid(), llvm::CastInst::isEliminableCastPair(), LowerNegateToMultiply(), llvm::Intrinsic::matchIntrinsicType(), llvm::InstCombiner::run(), and llvm::SimplifyInstruction().
|
inline |
Return true if this is 'label'.
Definition at line 186 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 189 of file Type.h.
References getTypeID(), and MetadataTyID.
Referenced by canReplaceOperandWithVariable(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), llvm::FunctionType::isValidReturnType(), and llvm::Intrinsic::matchIntrinsicType().
|
inline |
True if this is an instance of PointerType.
Definition at line 213 of file Type.h.
References getTypeID(), and PointerTyID.
Referenced by addNoAliasAttrs(), addNonNullAttrs(), appendsGenericAddressExpressionToPostorderStack(), BuildConstantFromSCEV(), canConvertValue(), llvm::CastInst::castIsValid(), cloneInstructionWithNewAddressSpace(), CoerceAvailableValueToLoadType(), combineLoadToNewType(), computeKnownBits(), computeKnownBitsFromOperator(), convertPointerToIntegerType(), convertValue(), llvm::CastInst::CreateBitOrPointerCast(), llvm::IRBuilder< TargetFolder >::CreateBitOrPointerCast(), createCast(), createFree(), llvm::emitFPutC(), llvm::emitFPutS(), llvm::emitFWrite(), evaluateICmpRelation(), FindLoopCounter(), genLoopLimit(), getAdjustedPtr(), llvm::CastInst::getCastOpcode(), GetConstantInt(), llvm::ExecutionEngine::getConstantValue(), llvm::ScalarEvolution::getEffectiveSCEVType(), getIncrmentFactorSCEV(), getIndexedTypeInternal(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::ConstantExpr::getIntToPtr(), llvm::AAResults::getModRefInfo(), getNaturalGEPRecursively(), getNaturalGEPWithType(), llvm::MemoryDependenceResults::getNonLocalPointerDependency(), llvm::ScalarEvolution::getNoopOrAnyExtend(), llvm::ScalarEvolution::getNoopOrSignExtend(), llvm::ScalarEvolution::getNoopOrZeroExtend(), llvm::TargetTransformInfoImplBase::getOperationCost(), llvm::getOrEnforceKnownAlignment(), llvm::ScalarEvolution::getPointerBase(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::LazyValueInfo::getPredicateAt(), llvm::getPtrStride(), llvm::ConstantExpr::getPtrToInt(), llvm::SelectionDAG::getSrcValue(), GetStoreValueForLoad(), llvm::GetStringLength(), llvm::ScalarEvolution::getTruncateOrNoop(), llvm::ScalarEvolution::getTruncateOrSignExtend(), llvm::ScalarEvolution::getTruncateOrZeroExtend(), llvm::GetUnderlyingObject(), getUnderlyingObjects(), llvm::HexagonEvaluator::HexagonEvaluator(), llvm::cflaa::instantiateInterfaceValue(), llvm::MemoryDependenceResults::invalidateCachedPointerInfo(), llvm::CastInst::isCastable(), isCompatibleIVType(), isGEPKnownNonNull(), llvm::InductionDescriptor::isInductionPHI(), isInterestingPointer(), llvm::isKnownNonNull(), isKnownNonNullFromDominatingCondition(), isKnownNonZero(), llvm::CastInst::isLosslessCast(), isNoopBitcast(), isObjectDereferencedInBlock(), isPointerOperand(), isPtrOrPtrVectorTy(), isReturnNonNull(), llvm::ScalarEvolution::isSCEVable(), isSingleValueType(), isSupportedAtomicType(), llvm::VectorType::isValidElementType(), llvm::SelectionDAGBuilder::LowerAsSTATEPOINT(), llvm::NVPTXTargetLowering::LowerCall(), llvm::AArch64TargetLowering::lowerInterleavedLoad(), llvm::ARMTargetLowering::lowerInterleavedLoad(), llvm::AArch64TargetLowering::lowerInterleavedStore(), llvm::ARMTargetLowering::lowerInterleavedStore(), optimizeOnceStoredGlobal(), llvm::PointerMayBeCaptured(), promoteSingleBlockAlloca(), llvm::MemoryDependenceResults::removeInstruction(), llvm::SCEVExpander::replaceCongruentIVs(), replaceWithConstant(), rewriteGEPAsOffset(), rewriteSingleStoreAlloca(), llvm::orc::OrcMCJITReplacement::runFunction(), llvm::MCJIT::runFunction(), setNonNull(), SimplifyBranchOnICmpChain(), SimplifyICmpInst(), llvm::Value::stripAndAccumulateInBoundsConstantOffsets(), stripAndComputeConstantOffsets(), swapMayExposeCSEOpportunities(), TryToShrinkGlobalToBoolean(), llvm::AttributeFuncs::typeIncompatible(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitICmpInst(), and llvm::PtrUseVisitor< SliceBuilder >::visitPtr().
|
inline |
Return true if this is powerpc long double.
Definition at line 157 of file Type.h.
References getTypeID(), and PPC_FP128TyID.
Referenced by llvm::ConstantFoldCastInstruction(), emitGlobalConstantFP(), FoldBitCast(), llvm::Constant::getAllOnesValue(), isValidElementType(), TypeToFloatSemantics(), and llvm::InstCombiner::visitFCmpInst().
|
inline |
Return true if this is a pointer type or a vector of pointer types.
Definition at line 216 of file Type.h.
References getScalarType(), and isPointerTy().
Referenced by checkFunctionMemoryAccess(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), llvm::CastInst::CreatePointerCast(), findBaseDefiningValue(), llvm::DataLayout::getIntPtrType(), llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), llvm::ConstantExpr::getPointerCast(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::CastInst::isEliminableCastPair(), SimplifyCastInst(), llvm::UpgradeBitCastExpr(), and llvm::UpgradeBitCastInst().
Definition at line 112 of file Type.h.
References ArrayTyID, and VectorTyID.
Referenced by getSequentialElementType().
|
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 239 of file Type.h.
References isFloatingPointTy(), isIntegerTy(), isPointerTy(), isVectorTy(), and isX86_MMXTy().
Referenced by canConvertValue(), getOpenCLAlignment(), llvm::TargetLowering::ParseConstraints(), processInternalGlobal(), reduceToSingleValueType(), and stripAggregateTypeWrapping().
|
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 254 of file Type.h.
References ArrayTyID, getTypeID(), IntegerTyID, isFloatingPointTy(), PointerTyID, StructTyID, VectorTyID, and X86_MMXTyID.
Referenced by areGlobalsPotentiallyEqual(), combineLoadToOperationType(), computeArraySize(), computeKnownBitsFromOperator(), getIndexedTypeInternal(), getNaturalGEPWithOffset(), llvm::Value::getPointerAlignment(), llvm::DataLayout::getTypeSizeInBits(), isAligned(), isDenselyPacked(), llvm::isDereferenceableAndAlignedPointer(), llvm::InductionDescriptor::isInductionPHI(), llvm::HexagonTargetLowering::isLegalAddressingMode(), llvm::AArch64TargetLowering::isLegalAddressingMode(), isSafeToEliminateVarargsCast(), llvm::isSafeToLoadUnconditionally(), IsSmallObject(), llvm::LLT::LLT(), llvm::TargetLowering::ParseConstraints(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), SimplifyGEPInst(), tryToOptimizeStoreOfMallocToGlobal(), llvm::ObjectSizeOffsetVisitor::visitAllocaInst(), llvm::ObjectSizeOffsetEvaluator::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::InstCombiner::visitBitCast(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
True if this is an instance of StructType.
Definition at line 207 of file Type.h.
References getTypeID(), and StructTyID.
Referenced by AnalyzeLoadFromClobberingLoad(), AnalyzeLoadFromClobberingStore(), AnalyzeLoadFromClobberingWrite(), CanCoerceMustAliasedValueToLoad(), createCast(), DoPromotion(), llvm::FindInsertedValue(), llvm::ConstantAggregateZero::get(), insertSinCosCall(), isConstantUsingVectorTy(), llvm::SCEVUnknown::isOffsetOf(), false::next_type(), false::operator<<(), originalTypeIsF128(), runIPSCCP(), tryToReplaceWithConstant(), llvm::Value::Value(), llvm::InlineAsm::Verify(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
Return true if this is 'token'.
Definition at line 192 of file Type.h.
References getTypeID(), and TokenTyID.
Referenced by llvm::SelectInst::areInvalidOperands(), canSinkInstructions(), llvm::formLCSSAForInstructions(), llvm::FunctionLoweringInfo::InitializeRegForValue(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), llvm::Intrinsic::matchIntrinsicType(), llvm::removeAllNonTerminatorAndEHPadInstructions(), and llvm::SplitLandingPadPredecessors().
|
inline |
True if this is an instance of VectorType.
Definition at line 219 of file Type.h.
References getTypeID(), and VectorTyID.
Referenced by llvm::ARMTargetLowering::canCombineStoreAndExtract(), canonicalizeCmpWithConstant(), llvm::CastInst::castIsValid(), collectShuffleElements(), computeKnownBitsFromOperator(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), convertValue(), llvm::CastInst::CreatePointerCast(), despeculateCountZeros(), executeFCMP_BOOL(), executeFCMP_ONE(), executeFCMP_ORD(), executeFCMP_UNO(), executeSelectInst(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), llvm::extractConstantMask(), findBaseDefiningValue(), FindLIVLoopCondition(), llvm::findScalarElement(), foldBitCastBitwiseLogic(), foldBitCastSelect(), foldLogOpOfMaskedICmpsHelper(), llvm::ConstantAggregateZero::get(), llvm::X86TTIImpl::getAddressComputationCost(), llvm::ARMTTIImpl::getAddressComputationCost(), llvm::AArch64TTIImpl::getAddressComputationCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getArithmeticInstrCost(), llvm::ARMTTIImpl::getCastInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCastInstrCost(), llvm::CastInst::getCastOpcode(), llvm::ARMTTIImpl::getCmpSelInstrCost(), llvm::AArch64TTIImpl::getCmpSelInstrCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getCmpSelInstrCost(), llvm::ConstantExpr::getExtractElement(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getInsertElement(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getIntrinsicInstrCost(), llvm::PPCTTIImpl::getMemoryOpCost(), llvm::AArch64TTIImpl::getMemoryOpCost(), llvm::ARMTTIImpl::getMemoryOpCost(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMemoryOpCost(), llvm::GetPointerBaseWithConstantOffset(), llvm::NVPTXTargetLowering::getPrototype(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getReductionCost(), getScalarizationOverhead(), getSelectCondition(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), getTargetConstantBitsFromNode(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), getUniformBase(), llvm::TargetLoweringBase::getValueType(), llvm::X86TTIImpl::getVectorInstrCost(), llvm::PPCTTIImpl::getVectorInstrCost(), llvm::AArch64TTIImpl::getVectorInstrCost(), llvm::ARMTTIImpl::getVectorInstrCost(), llvm::CompositeType::indexValid(), llvm::CastInst::isCastable(), isConstantUsingVectorTy(), llvm::CastInst::isEliminableCastPair(), isFiniteNonZeroFp(), llvm::SystemZTargetLowering::isFoldableMemAccessOffset(), llvm::IsFreeToInvert(), llvm::isImpliedCondition(), isIntExtFree(), isKnownNonEqual(), llvm::PPCTargetLowering::isLegalAddressingMode(), isNormalFp(), isSimpleType(), isSingleValueType(), isTruePredicate(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), isVectorReductionOp(), llvm::NVPTXTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerFormalArguments(), matchPairwiseReductionAtLevel(), processAdd(), processAShr(), processPHI(), processSDiv(), processSelect(), processSRem(), shouldConvertImpl(), SimplifyFCmpInst(), simplifyX86movmsk(), stripAndComputeConstantOffsets(), ThreadCmpOverSelect(), tryPromoteAllocaToVector(), TryToShrinkGlobalToBoolean(), llvm::Interpreter::visitAShr(), llvm::Interpreter::visitBinaryOperator(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::Interpreter::visitInsertElementInst(), llvm::InstCombiner::visitIntToPtr(), llvm::Interpreter::visitLShr(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitPtrToInt(), llvm::InstCombiner::visitSExt(), llvm::Interpreter::visitShl(), llvm::Interpreter::visitShuffleVectorInst(), llvm::InstCombiner::visitTrunc(), and llvm::InstCombiner::visitZExt().
|
inline |
Return true if this is 'void'.
Definition at line 139 of file Type.h.
References getTypeID(), and VoidTyID.
Referenced by addArgumentAttrs(), addArgumentReturnedAttrs(), llvm::AllocaInst::AllocaInst(), llvm::ComputeValueVTs(), createMalloc(), CreateWrapper(), determinePointerReadAttrs(), llvm::BasicTTIImplBase< AMDGPUTTIImpl >::getMemoryOpCost(), getRetComponentType(), getScalarizationOverhead(), llvm::Intrinsic::getType(), HoistThenElseCodeToIf(), llvm::InlineFunction(), insertCallRetCast(), insertCallRetPHI(), llvm::isFreeCall(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), lowerCallFromStatepointLoweringInfo(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::SelectionDAGBuilder::LowerStatepoint(), MakeGuardControlFlowExplicit(), makeStatepointExplicitImpl(), llvm::orc::makeStub(), llvm::Intrinsic::matchIntrinsicType(), NumRetVals(), llvm::TargetLowering::ParseConstraints(), llvm::PointerMayBeCaptured(), PropagateConstantReturn(), removeLifetimeIntrinsicUsers(), llvm::orc::OrcMCJITReplacement::runFunction(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), runIPSCCP(), runSCCP(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::Value::Value(), llvm::slpvectorizer::BoUpSLP::vectorizeTree(), and llvm::InlineAsm::Verify().
|
inline |
Return true if this is x86 long double.
Definition at line 151 of file Type.h.
References getTypeID(), and X86_FP80TyID.
Referenced by llvm::ConstantFoldCastInstruction(), llvm::ExecutionEngine::getConstantValue(), isValidElementType(), TypeToFloatSemantics(), and llvm::InstCombiner::visitFCmpInst().
|
inline |
Return true if this is X86 MMX.
Definition at line 180 of file Type.h.
References getTypeID(), and X86_MMXTyID.
Referenced by llvm::ConstantFoldCastInstruction(), llvm::CastInst::getCastOpcode(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::CastInst::isBitCastable(), llvm::CastInst::isCastable(), isSingleValueType(), and llvm::Intrinsic::matchIntrinsicType().
| 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 3368 of file AsmWriter.cpp.
References llvm::StructType::isLiteral().
Referenced by dump(), emitGlobalConstantFP(), and llvm::operator<<().
|
inlineprotected |
Definition at line 96 of file Type.h.
References assert(), and getSubclassData().
Referenced by llvm::StructType::get(), llvm::IntegerType::IntegerType(), llvm::StructType::isSized(), and llvm::StructType::setBody().
|
inline |
Definition at line 299 of file Type.h.
References ContainedTys.
Referenced by llvm::GraphTraits< Type * >::child_begin(), llvm::GraphTraits< const Type * >::child_begin(), subtype_rend(), and subtypes().
|
inline |
Definition at line 300 of file Type.h.
References ContainedTys, and NumContainedTys.
Referenced by llvm::GraphTraits< Type * >::child_end(), llvm::GraphTraits< const Type * >::child_end(), subtype_rbegin(), and subtypes().
|
inline |
Definition at line 306 of file Type.h.
References subtype_end().
|
inline |
Definition at line 309 of file Type.h.
References subtype_begin().
Definition at line 301 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 110 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(), getSequentialElementType(), getVectorElementType(), llvm::FunctionType::param_begin(), llvm::FunctionType::param_end(), llvm::SequentialType::SequentialType(), llvm::StructType::setBody(), subtype_begin(), and subtype_end().
|
protected |
Keeps track of how many Type*'s there are in the ContainedTys list.
Definition at line 103 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::SequentialType::SequentialType(), llvm::StructType::setBody(), and subtype_end().
1.8.6