LLVM API Documentation
#include <Type.h>
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.
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) |
IntegerTyID |
10: Arbitrary bit width integers |
FunctionTyID |
11: Functions |
StructTyID |
12: Structures |
ArrayTyID |
13: Arrays |
PointerTyID |
14: Pointers |
VectorTyID |
15: SIMD 'packed' format, or other vector type |
llvm::Type::Type | ( | LLVMContext & | C, |
TypeID | tid | ||
) | [inline, explicit, protected] |
Definition at line 89 of file Type.h.
References setTypeID().
llvm::Type::~Type | ( | ) | [inline, protected] |
bool Type::canLosslesslyBitCastTo | ( | Type * | Ty | ) | const |
Determine if this type could be losslessly bitcast to Ty.
canLosslesslyBitCastTo - 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.
Definition at line 65 of file Type.cpp.
References getTypeID(), isFirstClassType(), and X86_MMXTyID.
void Type::dump | ( | ) | const |
Definition at line 2559 of file AsmWriter.cpp.
References llvm::dbgs(), and print().
Referenced by llvm::ARMTargetLowering::functionArgumentNeedsConsecutiveRegisters().
Type* llvm::Type::getArrayElementType | ( | ) | const [inline] |
Definition at line 358 of file Type.h.
References getSequentialElementType().
Referenced by arrayTypeToVecType(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), isConstantUsingVectorTy(), tryPromoteAllocaToVector(), and llvm::InstCombiner::visitGetElementPtrInst().
uint64_t Type::getArrayNumElements | ( | ) | const |
Definition at line 208 of file Type.cpp.
Referenced by arrayTypeToVecType(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), llvm::getConstantStringInfo(), and tryPromoteAllocaToVector().
Type* llvm::Type::getContainedType | ( | unsigned | i | ) | const [inline] |
getContainedType - 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 329 of file Type.h.
References ContainedTys, and NumContainedTys.
Referenced by llvm::ComputeUsesVAFloatArgument(), lookupFunction(), llvm::Interpreter::visitInsertElementInst(), llvm::Interpreter::visitShuffleVectorInst(), and whichFPReturnVariant().
LLVMContext& llvm::Type::getContext | ( | ) | const [inline] |
getContext - Return the LLVMContext in which this type was uniqued.
Definition at line 125 of file Type.h.
Referenced by CoerceAvailableValueToLoadType(), ConstantFoldGetElementPtrImpl(), ConstantFoldScalarCall(), convertPointerToIntegerType(), llvm::StructType::create(), createAndInstr(), llvm::FunctionLoweringInfo::CreateRegs(), CvtFDivConstToReciprocal(), llvm::ConstantArray::destroyConstant(), llvm::ConstantStruct::destroyConstant(), llvm::ConstantVector::destroyConstant(), llvm::ConstantDataSequential::destroyConstant(), llvm::BlockAddress::destroyConstant(), llvm::ConstantExpr::destroyConstant(), llvm::InstCombiner::FoldAndOfICmps(), FoldBitCast(), foldConstantCastPair(), FoldReinterpretLoadFromConstPtr(), llvm::InlineAsm::get(), llvm::ConstantInt::get(), llvm::FunctionType::get(), llvm::StructType::get(), llvm::ConstantFP::get(), llvm::ConstantAggregateZero::get(), llvm::ArrayType::get(), llvm::ConstantArray::get(), llvm::VectorType::get(), llvm::ConstantStruct::get(), llvm::ConstantVector::get(), llvm::PointerType::get(), llvm::ConstantPointerNull::get(), llvm::UndefValue::get(), llvm::ConstantExpr::getAlignOf(), getAllocationData(), llvm::Constant::getAllOnesValue(), GetConstantFoldFPValue(), 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::DataLayout::getIndexedOffset(), llvm::ConstantFP::getInfinity(), llvm::VectorType::getInteger(), llvm::Constant::getIntegerValue(), llvm::DataLayout::getIntPtrType(), GetLoadValueForLoad(), GetMemInstValueForLoad(), 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(), hasLifetimeMarkers(), isIntegerWideningViable(), isVectorPromotionViableForSlice(), LLVMConstIntOfArbitraryPrecision(), llvm::FastISel::lowerCallTo(), llvm::TargetLowering::LowerCallTo(), llvm::CmpInst::makeCmpResultType(), llvm::TargetLowering::ParseConstraints(), llvm::AssemblyWriter::printInstruction(), llvm::StructType::setBody(), llvm::StructType::setName(), SymbolicallyEvaluateGEP(), and llvm::AttributeFuncs::typeIncompatible().
PointerType * Type::getDoublePtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 254 of file Type.cpp.
References getDoubleTy(), and getPointerTo().
Type * Type::getDoubleTy | ( | LLVMContext & | C | ) | [static] |
Definition at line 229 of file Type.cpp.
References llvm::LLVMContextImpl::DoubleTy, and llvm::LLVMContext::pImpl.
Referenced by DecodeFixedType(), EnsureFPIntrinsicsExist(), llvm::TypeBuilder< double, false >::get(), llvm::TypeBuilder< types::ieee_double, cross >::get(), llvm::ConstantFP::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getDoublePtrTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMDoubleTypeInContext(), and ReplaceFPIntrinsicWithCall().
PointerType * Type::getFloatPtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 250 of file Type.cpp.
References getFloatTy(), and getPointerTo().
Type * Type::getFloatTy | ( | LLVMContext & | C | ) | [static] |
Definition at line 228 of file Type.cpp.
References llvm::LLVMContextImpl::FloatTy, and llvm::LLVMContext::pImpl.
Referenced by llvm::MDBuilder::createFPMath(), DecodeFixedType(), EnsureFPIntrinsicsExist(), llvm::TypeBuilder< float, false >::get(), llvm::TypeBuilder< types::ieee_float, cross >::get(), llvm::ConstantFP::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getFloatPtrTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMFloatTypeInContext(), ReplaceFPIntrinsicWithCall(), llvm::UpgradeIntrinsicCall(), and UpgradeSSE41Function().
const fltSemantics& llvm::Type::getFltSemantics | ( | ) | const [inline] |
Definition at line 166 of file Type.h.
References DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, llvm::APFloat::IEEEdouble, llvm::APFloat::IEEEhalf, llvm::APFloat::IEEEquad, llvm::APFloat::IEEEsingle, llvm_unreachable, PPC_FP128TyID, llvm::APFloat::PPCDoubleDouble, X86_FP80TyID, and llvm::APFloat::x87DoubleExtended.
Referenced by llvm::ConstantFoldCastInstruction(), and FoldBitCast().
PointerType * Type::getFP128PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 262 of file Type.cpp.
References getFP128Ty(), and getPointerTo().
Type * Type::getFP128Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 232 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 |
getFPMantissaWidth - 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 146 of file Type.cpp.
References DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, isFloatingPointTy(), PPC_FP128TyID, and X86_FP80TyID.
Referenced by llvm::InstCombiner::FoldFCmp_IntToFP_Cst(), llvm::InstCombiner::visitFPToSI(), llvm::InstCombiner::visitFPToUI(), and llvm::InstCombiner::visitFPTrunc().
unsigned Type::getFunctionNumParams | ( | ) | const |
Type * Type::getFunctionParamType | ( | unsigned | i | ) | const |
PointerType * Type::getHalfPtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 246 of file Type.cpp.
References getHalfTy(), and getPointerTo().
Type * Type::getHalfTy | ( | LLVMContext & | C | ) | [static] |
Definition at line 227 of file Type.cpp.
References llvm::LLVMContextImpl::HalfTy, and llvm::LLVMContext::pImpl.
Referenced by DecodeFixedType(), llvm::ConstantFP::get(), getHalfPtrTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), and LLVMHalfTypeInContext().
PointerType * Type::getInt16PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 286 of file Type.cpp.
References getInt16Ty(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
IntegerType * Type::getInt16Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 238 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::EVT::getTypeForEVT(), LLVMInt16TypeInContext(), and ReadDataFromGlobal().
PointerType * Type::getInt1PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 278 of file Type.cpp.
References getInt1Ty(), and getPointerTo().
Referenced by llvm::SCEVExpander::getIVIncOperand(), and llvm::InstCombiner::visitFree().
IntegerType * Type::getInt1Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 236 of file Type.cpp.
References llvm::LLVMContextImpl::Int1Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::SelectInst::areInvalidOperands(), llvm::ConstantFoldCompareInstruction(), ConstantFoldScalarCall(), llvm::DIBuilder::createCompileUnit(), createFunctionHelper(), llvm::DIBuilder::createMethod(), llvm::IntegerType::get(), llvm::ConstantExpr::getAlignOf(), getEdgeValueLocal(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getFCmp(), llvm::ConstantExpr::getICmp(), getInt1PtrTy(), llvm::ConstantInt::getTrue(), llvm::EVT::getTypeForEVT(), LLVMInt1TypeInContext(), llvm::CmpInst::makeCmpResultType(), OptimizeGlobalAddressOfMalloc(), SimplifyCondBranchToCondBranch(), TryToShrinkGlobalToBoolean(), UpgradeIntrinsicFunction1(), and llvm::InstCombiner::visitAllocSite().
PointerType * Type::getInt32PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 290 of file Type.cpp.
References getInt32Ty(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
IntegerType * Type::getInt32Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 239 of file Type.cpp.
References llvm::LLVMContextImpl::Int32Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::Module::addModuleFlag(), llvm::IntrinsicLowering::AddPrototypes(), AddWithOverflow(), BuildConstantFromSCEV(), calculateVectorIndex(), llvm::cleanseInlinedVariable(), CollectShuffleElements(), CollectSingleShuffleElements(), convertPointerToIntegerType(), llvm::ARMConstantPoolConstant::Create(), llvm::DIBuilder::createArrayType(), llvm::DIBuilder::createArtificialType(), llvm::DIBuilder::createBasicType(), llvm::MDBuilder::createBranchWeights(), llvm::DIBuilder::createClassType(), llvm::DIBuilder::createCompileUnit(), llvm::DIBuilder::createComplexVariable(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP1_32(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP2_32(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP1_32(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP2_32(), llvm::DIBuilder::createEnumerationType(), llvm::DIBuilder::createForwardDecl(), llvm::DIBuilder::createFriend(), createFunctionHelper(), llvm::IRBuilder< true, TargetFolder >::CreateGlobalStringPtr(), llvm::DIBuilder::createGlobalVariable(), createImportedModule(), llvm::DIBuilder::createInheritance(), llvm::DIBuilder::createLexicalBlock(), llvm::DIBuilder::createLexicalBlockFile(), llvm::DIBuilder::createLocalVariable(), llvm::DIBuilder::createMemberPointerType(), llvm::DIBuilder::createMemberType(), llvm::DIBuilder::createMethod(), llvm::DIBuilder::createNameSpace(), llvm::DIBuilder::createObjCIVar(), llvm::DIBuilder::createObjCProperty(), llvm::DIBuilder::createObjectPointerType(), llvm::DIBuilder::createPointerType(), createPrivateGlobalForSourceLoc(), CreatePrologue(), llvm::DIBuilder::createQualifiedType(), llvm::DIBuilder::createReferenceType(), llvm::DIBuilder::createReplaceableForwardDecl(), llvm::DIBuilder::createStaticMemberType(), createStaticVariableHelper(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createSubroutineType(), llvm::DIBuilder::createTemplateTypeParameter(), llvm::DIBuilder::createTypedef(), llvm::DIBuilder::createUnionType(), llvm::DIBuilder::createUnspecifiedType(), llvm::DIBuilder::createVariablePiece(), llvm::DIBuilder::createVectorType(), llvm::Thumb2RegisterInfo::emitLoadConstPool(), llvm::Thumb1RegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemset(), FoldBitCast(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getAISize(), llvm::ConstantExpr::getAlignOf(), llvm::DebugLoc::getAsMDNode(), llvm::DataLayout::getIndexedOffset(), getInt32PtrTy(), llvm::ConstantExpr::getOffsetOf(), getPromotedType(), llvm::ConstantExpr::getSizeOf(), GetTagConstant(), llvm::EVT::getTypeForEVT(), INITIALIZE_TM_PASS(), InstCombineStoreToCast(), llvm::isBytewiseValue(), LLVMBuildArrayMalloc(), LLVMBuildMalloc(), LLVMInt32TypeInContext(), llvm::XCoreInstrInfo::loadImmediate(), LowerBSWAP(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::MergeBasicBlockIntoOnlyPred(), ReadDataFromGlobal(), llvm::NVPTXLowerAggrCopies::runOnFunction(), SRAGlobal(), SubWithOverflow(), SymbolicallyEvaluateGEP(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitShuffleVectorInst(), and llvm::BasicBlock::~BasicBlock().
PointerType * Type::getInt64PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 294 of file Type.cpp.
References getInt64Ty(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
IntegerType * Type::getInt64Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 240 of file Type.cpp.
References llvm::LLVMContextImpl::Int64Ty, and llvm::LLVMContext::pImpl.
Referenced by AnalyzeLoadFromClobberingMemInst(), ConstantFoldGetElementPtrImpl(), llvm::DIBuilder::createArrayType(), llvm::DIBuilder::createBasicType(), llvm::DIBuilder::createClassType(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP1_64(), llvm::IRBuilder< true, TargetFolder >::CreateConstGEP2_64(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP1_64(), llvm::IRBuilder< true, TargetFolder >::CreateConstInBoundsGEP2_64(), llvm::DIBuilder::createEnumerationType(), llvm::DIBuilder::createEnumerator(), llvm::DIBuilder::createForwardDecl(), llvm::DIBuilder::createFriend(), llvm::DIBuilder::createInheritance(), llvm::DIBuilder::createMemberPointerType(), llvm::DIBuilder::createMemberType(), llvm::DIBuilder::createObjCIVar(), llvm::DIBuilder::createPointerType(), llvm::IRBuilder< true, TargetFolder >::CreatePtrDiff(), llvm::DIBuilder::createQualifiedType(), llvm::DIBuilder::createReferenceType(), llvm::DIBuilder::createReplaceableForwardDecl(), llvm::DIBuilder::createStaticMemberType(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createSubroutineType(), llvm::MDBuilder::createTBAANode(), llvm::MDBuilder::createTBAAScalarTypeNode(), llvm::MDBuilder::createTBAAStructNode(), llvm::MDBuilder::createTBAAStructTagNode(), llvm::MDBuilder::createTBAAStructTypeNode(), llvm::DIBuilder::createTypedef(), llvm::DIBuilder::createUnionType(), llvm::DIBuilder::createUnspecifiedType(), llvm::DIBuilder::createVectorType(), llvm::AArch64TargetLowering::emitStoreConditional(), foldConstantCastPair(), genLoopLimit(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), llvm::ConstantExpr::getAlignOf(), llvm::ScalarEvolution::getEffectiveSCEVType(), getInt64PtrTy(), GetMemInstValueForLoad(), llvm::ConstantExpr::getOffsetOf(), llvm::DIBuilder::getOrCreateSubrange(), llvm::ConstantExpr::getSizeOf(), llvm::EVT::getTypeForEVT(), IdxCompare(), llvm::InlineFunction(), llvm::DIBuilder::insertDbgValueIntrinsic(), InstCombineLoadCast(), llvm::isBytewiseValue(), llvm::CastInst::isNoopCast(), LLVMInt64TypeInContext(), LowerBSWAP(), llvm::IntrinsicLowering::LowerIntrinsicCall(), ReadDataFromGlobal(), llvm::replaceDbgDeclareForAlloca(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::UpgradeInstWithTBAATag(), llvm::UpgradeIntrinsicCall(), and llvm::InstCombiner::visitAllocaInst().
PointerType * Type::getInt8PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 282 of file Type.cpp.
References getInt8Ty(), and getPointerTo().
Referenced by llvm::IntrinsicLowering::AddPrototypes(), AnalyzeLoadFromClobberingMemInst(), BuildConstantFromSCEV(), convertTransferToLoop(), createFree(), createMalloc(), CreatePrologue(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::SimplifyFortifiedLibCalls::fold(), getAllocationData(), llvm::SCEVExpander::getIVIncOperand(), GetMemInstValueForLoad(), getNaturalGEPWithOffset(), hasLifetimeMarkers(), llvm::isAllocaPromotable(), llvm::isFreeCall(), llvm::ExecutionEngine::runFunctionAsMain(), and setUsedInitializer().
IntegerType * Type::getInt8Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 237 of file Type.cpp.
References llvm::LLVMContextImpl::Int8Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), llvm::SelectionDAG::getEVTAlignment(), getInt8PtrTy(), llvm::EVT::getTypeForEVT(), llvm::isBytewiseValue(), LLVMInt8TypeInContext(), upgradeGlobalArray(), and llvm::UpgradeIntrinsicCall().
unsigned Type::getIntegerBitWidth | ( | ) | const |
Definition at line 176 of file Type.cpp.
References getBitWidth().
Referenced by canBeCheaplyTransformed(), ConstantFoldConvertToInt(), DecomposeGEPExpression(), EliminateDeadSwitchCases(), EvaluateGEPOffsetExpression(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), generateSignedDivisionCode(), generateSignedRemainderCode(), getEdgeValueLocal(), llvm::DataLayout::getTypeSizeInBits(), llvm::ConstantInt::isValueValidForType(), isZero(), stripAndComputeConstantOffsets(), and llvm::InstCombiner::visitICmpInstWithCastAndCast().
PointerType * Type::getIntNPtrTy | ( | LLVMContext & | C, |
unsigned | N, | ||
unsigned | AS = 0 |
||
) | [static] |
Definition at line 274 of file Type.cpp.
References getIntNTy(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
IntegerType * Type::getIntNTy | ( | LLVMContext & | C, |
unsigned | N | ||
) | [static] |
Definition at line 242 of file Type.cpp.
References llvm::IntegerType::get().
Referenced by getIntNPtrTy(), llvm::DataLayout::getLargestLegalIntType(), and llvm::DataLayout::getSmallestLegalIntType().
Type * Type::getLabelTy | ( | LLVMContext & | C | ) | [static] |
Definition at line 226 of file Type.cpp.
References llvm::LLVMContextImpl::LabelTy, and llvm::LLVMContext::pImpl.
Referenced by getPrimitiveType(), and LLVMLabelTypeInContext().
Type * Type::getMetadataTy | ( | LLVMContext & | C | ) | [static] |
Definition at line 230 of file Type.cpp.
References llvm::LLVMContextImpl::MetadataTy, and llvm::LLVMContext::pImpl.
Referenced by DecodeFixedType(), getPrimitiveType(), and llvm::EVT::getTypeForEVT().
unsigned llvm::Type::getNumContainedTypes | ( | ) | const [inline] |
getNumContainedTypes - Return the number of types in the derived type.
Definition at line 336 of file Type.h.
References NumContainedTys.
Referenced by lookupFunction(), and llvm::InstCombiner::visitBitCast().
unsigned Type::getPointerAddressSpace | ( | ) | const |
Get the address space of this pointer or pointer vector type.
Definition at line 216 of file Type.cpp.
References getScalarType().
Referenced by BuildConstantFromSCEV(), llvm::CastToCStr(), llvm::ConstantFoldInstOperands(), llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), llvm::IntToPtrInst::getAddressSpace(), getAdjustedPtr(), llvm::CastInst::getCastOpcode(), 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(), llvm::TargetLoweringBase::getPointerTypeSizeInBits(), llvm::DataLayout::getTypeSizeInBits(), llvm::SelectionDAGBuilder::getValueImpl(), hasLifetimeMarkers(), InstCombineStoreToCast(), llvm::CastInst::isEliminableCastPair(), PerformHeapAllocSRoA(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), and llvm::InstCombiner::visitGetElementPtrInst().
Type* llvm::Type::getPointerElementType | ( | ) | const [inline] |
Definition at line 363 of file Type.h.
References getSequentialElementType().
Referenced by DecomposeGEPExpression(), getAdjustedPtr(), InstCombineStoreToCast(), llvm::Value::isDereferenceablePointer(), isDereferenceablePointer(), llvm::CastInst::isEliminableCastPair(), IsSmallObject(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), SymbolicallyEvaluateGEP(), and llvm::InstCombiner::visitGetElementPtrInst().
PointerType * Type::getPointerTo | ( | unsigned | AddrSpace = 0 | ) |
getPointerTo - Return a pointer to the current type. This is equivalent to PointerType::get(Foo, AddrSpace).
Definition at line 762 of file Type.cpp.
References llvm::PointerType::get().
Referenced by llvm::ConstantExpr::getAlignOf(), getDoublePtrTy(), getFloatPtrTy(), getFP128PtrTy(), llvm::ConstantExpr::getGetElementPtr(), getHalfPtrTy(), getInt16PtrTy(), getInt1PtrTy(), getInt32PtrTy(), getInt64PtrTy(), getInt8PtrTy(), getIntNPtrTy(), getPPC_FP128PtrTy(), getX86_FP80PtrTy(), getX86_MMXPtrTy(), StripPtrCastKeepAS(), tryPromoteAllocaToVector(), and llvm::UpgradeIntrinsicCall().
PointerType * Type::getPPC_FP128PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 266 of file Type.cpp.
References getPointerTo(), and getPPC_FP128Ty().
Type * Type::getPPC_FP128Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 233 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 |
getPrimitiveSizeInBits - 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 121 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::CastInst::castIsValid(), CollectBSwapParts(), CollectInsertionElements(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldLoadFromConstPtr(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), EvaluateGEPOffsetExpression(), FoldBitCast(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), llvm::InstCombiner::FoldGEPICmp(), llvm::InstCombiner::FoldICmpAddOpCst(), llvm::Constant::getAllOnesValue(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantDataSequential::getElementByteSize(), llvm::VectorType::getExtendedElementVectorType(), llvm::VectorType::getInteger(), GetLinearExpression(), llvm::MemoryDependenceAnalysis::getLoadLoadClobberFullWidthSize(), GetLoadValueForLoad(), getNoopInput(), llvm::NVPTXTargetLowering::getPrototype(), getScalarSizeInBits(), llvm::VectorType::getTruncatedElementVectorType(), llvm::ScalarEvolution::getTypeSizeInBits(), getTypeSizeIndex(), llvm::AArch64TargetLowering::hasPairedLoad(), llvm::CastInst::isBitCastable(), llvm::CastInst::isCastable(), isMultipleOfTypeSize(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::AMDGPUTargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isZExtFree(), LinearizeExprTree(), LowerBSWAP(), LowerCTLZ(), LowerCTPOP(), OptimizeIntToFloatBitCast(), OptimizeVectorResize(), ProcessUGT_ADDCST_ADD(), ProcessUMulZExtIdiom(), llvm::SCEVExpander::replaceCongruentIVs(), scalarConstantToHexString(), llvm::AArch64TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::ARMTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::PPCTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::AArch64TargetLowering::shouldExpandAtomicLoadInIR(), llvm::ARMTargetLowering::shouldExpandAtomicLoadInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicRMWInIR(), llvm::ARMTargetLowering::shouldExpandAtomicRMWInIR(), llvm::AArch64TargetLowering::shouldExpandAtomicStoreInIR(), llvm::ARMTargetLowering::shouldExpandAtomicStoreInIR(), SimplifyICmpInst(), SwitchToLookupTable(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitPHINode(), llvm::InstCombiner::visitReturnInst(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitSub(), and llvm::InstCombiner::visitTrunc().
Type * Type::getPrimitiveType | ( | LLVMContext & | C, |
TypeID | IDNumber | ||
) | [static] |
getPrimitiveType - 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(), getVoidTy(), getX86_FP80Ty(), getX86_MMXTy(), HalfTyID, LabelTyID, MetadataTyID, PPC_FP128TyID, VoidTyID, X86_FP80TyID, and X86_MMXTyID.
unsigned Type::getScalarSizeInBits | ( | ) | const |
getScalarSizeInBits - 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 139 of file Type.cpp.
References getPrimitiveSizeInBits(), and getScalarType().
Referenced by CanEvaluateSExtd(), CanEvaluateShifted(), CanEvaluateTruncated(), CanEvaluateZExtd(), llvm::CastInst::castIsValid(), computeKnownBits(), ComputeNumSignBits(), llvm::ConstantFoldInstOperands(), convertPointerToIntegerType(), llvm::CastInst::CreateFPCast(), llvm::CastInst::CreateIntegerCast(), llvm::CastInst::CreateSExtOrBitCast(), llvm::IRBuilder< true, TargetFolder >::CreateSExtOrTrunc(), llvm::CastInst::CreateTruncOrBitCast(), llvm::CastInst::CreateZExtOrBitCast(), llvm::IRBuilder< true, TargetFolder >::CreateZExtOrTrunc(), llvm::InstCombiner::FoldFCmp_IntToFP_Cst(), llvm::InstCombiner::FoldShiftByConstant(), getBitWidth(), llvm::ExecutionEngine::getConstantValue(), llvm::ConstantExpr::getFPCast(), llvm::ConstantExpr::getFPExtend(), llvm::ConstantExpr::getFPTrunc(), llvm::ConstantExpr::getIntegerCast(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSExtOrBitCast(), GetShiftedValue(), llvm::ConstantExpr::getTrunc(), llvm::ConstantExpr::getTruncOrBitCast(), getWiderType(), llvm::ConstantExpr::getZExt(), llvm::ConstantExpr::getZExtOrBitCast(), llvm::CastInst::isEliminableCastPair(), isKnownToBeAPowerOfTwo(), llvm::CastInst::isNoopCast(), SimplifyAShrInst(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAShr(), llvm::InstCombiner::visitFPToSI(), llvm::InstCombiner::visitFPToUI(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitIntToPtr(), llvm::InstCombiner::visitLShr(), llvm::InstCombiner::visitPtrToInt(), llvm::InstCombiner::visitSelectInstWithICmp(), llvm::InstCombiner::visitSExt(), llvm::InstCombiner::visitTrunc(), and llvm::InstCombiner::visitZExt().
const Type * Type::getScalarType | ( | ) | const |
getScalarType - If this is a vector type, return the element type, otherwise return 'this'.
Definition at line 51 of file Type.cpp.
Referenced by BuildNew(), canConvertValue(), llvm::CastInst::castIsValid(), CoerceAvailableValueToLoadType(), computeKnownBits(), ComputeNumSignBits(), ConstructSSAForLoadSet(), convertValue(), llvm::gep_type_begin(), llvm::ConstantInt::get(), llvm::ConstantFP::get(), llvm::ConstantExpr::getAddrSpaceCast(), getFalse(), getGEPInductionOperand(), getIndexedTypeInternal(), llvm::ConstantFP::getInfinity(), llvm::Constant::getIntegerValue(), llvm::ConstantExpr::getIntToPtr(), llvm::ConstantFP::getNegativeZero(), getPointerAddressSpace(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::ConstantExpr::getPtrToInt(), getScalarSizeInBits(), GetStoreValueForLoad(), getTrue(), llvm::CompositeType::indexValid(), isFPOrFPVectorTy(), isIntOrIntVectorTy(), isKnownNonZero(), isPtrOrPtrVectorTy(), llvm::Instruction::isSameOperationAs(), isVectorPromotionViable(), llvm::AMDGPUTargetLowering::isZExtFree(), LinearizeExprTree(), SimplifyICmpInst(), stripAndComputeConstantOffsets(), SymbolicallyEvaluateBinop(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAddrSpaceCast(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitSub(), and llvm::InstCombiner::visitZExt().
Type * Type::getScalarType | ( | ) |
Type * Type::getSequentialElementType | ( | ) | const |
Definition at line 204 of file Type.cpp.
Referenced by getArrayElementType(), llvm::ConstantDataSequential::getImpl(), getPointerElementType(), getVectorElementType(), and ReadDataFromGlobal().
Type * Type::getStructElementType | ( | unsigned | N | ) | const |
Definition at line 200 of file Type.cpp.
Referenced by createCast(), and isConstantUsingVectorTy().
StringRef Type::getStructName | ( | ) | const |
Definition at line 192 of file Type.cpp.
References llvm::Intrinsic::getName().
unsigned Type::getStructNumElements | ( | ) | const |
Definition at line 196 of file Type.cpp.
Referenced by createCast(), isConstantUsingVectorTy(), and whichFPReturnVariant().
unsigned llvm::Type::getSubclassData | ( | ) | const [inline, protected] |
Definition at line 101 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().
TypeID llvm::Type::getTypeID | ( | ) | const [inline] |
getTypeID - Return the type id for the type. This will return one of the TypeID enum elements defined above.
Definition at line 134 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::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(), llvm::ExecutionEngine::getConstantValue(), llvm::EVT::getEVT(), getFltSemantics(), llvm::ConstantExpr::getFPExtend(), getFPMantissaWidth(), llvm::ConstantExpr::getFPToSI(), llvm::ConstantExpr::getFPToUI(), llvm::ConstantExpr::getFPTrunc(), llvm::Constant::getNullValue(), getPrimitiveSizeInBits(), llvm::NVPTXTargetLowering::getPrototype(), llvm::ConstantExpr::getSExt(), llvm::ConstantExpr::getSIToFP(), llvm::ConstantExpr::getTrunc(), getTypeID(), getTypePrefix(), llvm::DataLayout::getTypeSizeInBits(), llvm::ConstantExpr::getUIToFP(), 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(), llvm::ConstantFP::isValueValidForType(), isVectorTy(), isVoidTy(), isX86_FP80Ty(), isX86_MMXTy(), llvm::ExecutionEngine::LoadValueFromMemory(), needsFPStubFromParams(), llvm::TypePrinting::print(), ReplaceFPIntrinsicWithCall(), llvm::Interpreter::run(), llvm::MCJIT::runFunction(), setTypeID(), llvm::ExecutionEngine::StoreValueToMemory(), llvm::Interpreter::visitExtractElementInst(), llvm::Interpreter::visitExtractValueInst(), llvm::Interpreter::visitInsertElementInst(), llvm::Interpreter::visitInsertValueInst(), llvm::Interpreter::visitShuffleVectorInst(), llvm::Interpreter::visitVAArgInst(), whichFPParamVariantNeeded(), whichFPReturnVariant(), and WriteTypeTable().
Type* llvm::Type::getVectorElementType | ( | ) | const [inline] |
Definition at line 361 of file Type.h.
References getSequentialElementType().
Referenced by llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), llvm::DecodePSHUFBMask(), FoldBitCast(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getShuffleVector(), llvm::UpgradeIntrinsicCall(), and llvm::WriteConstantInternal().
unsigned Type::getVectorNumElements | ( | ) | const |
Definition at line 212 of file Type.cpp.
Referenced by BitCastConstantVector(), CheapToScalarize(), CollectShuffleElements(), CollectSingleShuffleElements(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldInsertValueInstruction(), llvm::ConstantFoldSelectInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), llvm::CastInst::CreatePointerCast(), llvm::DecodePSHUFBMask(), llvm::X86AsmPrinter::EmitInstruction(), EvaluateStoreInto(), FindScalarElement(), FoldBitCast(), llvm::InstCombiner::FoldSelectOpOp(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getIntToPtr(), llvm::ConstantDataSequential::getNumElements(), llvm::ConstantExpr::getPtrToInt(), llvm::ShuffleVectorInst::getShuffleMask(), llvm::ConstantExpr::getShuffleVector(), INITIALIZE_PASS(), isFiniteNonZeroFp(), isNormalFp(), isUndefShift(), llvm::SITargetLowering::LowerFormalArguments(), matchPairwiseReduction(), matchPairwiseShuffleMask(), matchVectorSplittingReduction(), ReadDataFromGlobal(), stripAndComputeConstantOffsets(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitInsertElementInst(), llvm::InstCombiner::visitIntToPtr(), llvm::InstCombiner::visitPtrToInt(), llvm::InstCombiner::visitSRem(), and llvm::WriteConstantInternal().
Type * Type::getVoidTy | ( | LLVMContext & | C | ) | [static] |
Definition at line 225 of file Type.cpp.
References llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::VoidTy.
Referenced by llvm::IntrinsicLowering::AddPrototypes(), createFree(), DecodeFixedType(), llvm::XCoreSelectionDAGInfo::EmitTargetCodeForMemcpy(), llvm::AArch64SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemset(), llvm::TypeBuilder< void, cross >::get(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::SelectionDAG::getMemset(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMVoidTypeInContext(), llvm::SelectionDAGBuilder::LowerCallOperands(), llvm::TargetLowering::LowerCallTo(), llvm::SparcTargetLowering::LowerF128Op(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::Interpreter::visitReturnInst(), and WriteMDNode().
PointerType * Type::getX86_FP80PtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 258 of file Type.cpp.
References getPointerTo(), and getX86_FP80Ty().
Type * Type::getX86_FP80Ty | ( | LLVMContext & | C | ) | [static] |
Definition at line 231 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().
PointerType * Type::getX86_MMXPtrTy | ( | LLVMContext & | C, |
unsigned | AS = 0 |
||
) | [static] |
Definition at line 270 of file Type.cpp.
References getPointerTo(), and getX86_MMXTy().
Type * Type::getX86_MMXTy | ( | LLVMContext & | C | ) | [static] |
Definition at line 234 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().
bool llvm::Type::isAggregateType | ( | ) | const [inline] |
isAggregateType - 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 260 of file Type.h.
References ArrayTyID, getTypeID(), and StructTyID.
Referenced by advanceToNextLeafType(), llvm::CastInst::castIsValid(), ConstantFoldLoadThroughBitcast(), firstRealType(), llvm::ExecutionEngine::getConstantValue(), llvm::NVPTXTargetLowering::getPrototype(), getStrideFromPointer(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::NVPTXTargetLowering::LowerCall(), and llvm::NVPTXTargetLowering::LowerFormalArguments().
bool llvm::Type::isArrayTy | ( | ) | const [inline] |
isArrayTy - True if this is an instance of ArrayType.
Definition at line 213 of file Type.h.
References ArrayTyID, and getTypeID().
Referenced by AnalyzeLoadFromClobberingLoad(), AnalyzeLoadFromClobberingStore(), AnalyzeLoadFromClobberingWrite(), CanCoerceMustAliasedValueToLoad(), llvm::ConstantFoldCastInstruction(), EvaluateStoreInto(), llvm::FindInsertedValue(), llvm::PPCTargetLowering::functionArgumentNeedsConsecutiveRegisters(), llvm::ConstantAggregateZero::get(), InstCombineStoreToCast(), isArray(), isConstantUsingVectorTy(), llvm::SCEVUnknown::isOffsetOf(), tryPromoteAllocaToVector(), and llvm::InstCombiner::visitGetElementPtrInst().
bool llvm::Type::isDoubleTy | ( | ) | const [inline] |
isDoubleTy - Return true if this is 'double', a 64-bit IEEE fp type.
Definition at line 146 of file Type.h.
References DoubleTyID, and getTypeID().
Referenced by AppendTypeSuffix(), llvm::ConstantFoldCastInstruction(), ConstantFoldScalarCall(), emitDebugValueComment(), emitGlobalConstantDataSequential(), GetConstantFoldFPValue(), llvm::ExecutionEngine::getConstantValue(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), getValueAsDouble(), llvm::ConstantDataSequential::isElementTypeCompatible(), isHomogeneousAggregate(), isTrigLibCall(), scalarConstantToHexString(), TypeToFloatSemantics(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFPTrunc(), whichFPReturnVariant(), and WriteConstants().
bool Type::isEmptyTy | ( | ) | const |
isEmptyTy - Return true if this type is empty, that is, it has no elements or all its elements are empty.
Definition at line 102 of file Type.cpp.
References llvm::dyn_cast(), llvm::StructType::getElementType(), llvm::SequentialType::getElementType(), llvm::StructType::getNumElements(), llvm::ArrayType::getNumElements(), and isEmptyTy().
Referenced by llvm::SelectionDAGBuilder::CopyToExportRegsIfNeeded(), isEmptyTy(), llvm::FastISel::lowerCall(), llvm::SelectionDAGBuilder::LowerCallOperands(), llvm::FastISel::lowerCallTo(), llvm::SelectionDAGBuilder::LowerCallTo(), and llvm::FunctionLoweringInfo::set().
bool llvm::Type::isFirstClassType | ( | ) | const [inline] |
isFirstClassType - Return true if the type is "first class", meaning it is a valid type for a Value.
Definition at line 242 of file Type.h.
References FunctionTyID, getTypeID(), and VoidTyID.
Referenced by canLosslesslyBitCastTo(), canTrapImpl(), llvm::CastInst::castIsValid(), 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().
bool llvm::Type::isFloatingPointTy | ( | ) | const [inline] |
isFloatingPointTy - Return true if this is one of the six floating point types
Definition at line 159 of file Type.h.
References DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, PPC_FP128TyID, and X86_FP80TyID.
Referenced by llvm::checkBinaryFloatSignature(), llvm::checkUnaryFloatSignature(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldLoadFromConstPtr(), FoldBitCast(), llvm::Constant::getAllOnesValue(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), getFPMantissaWidth(), llvm::NVPTXTargetLowering::getPrototype(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::CastInst::isCastable(), llvm::CastInst::isEliminableCastPair(), isFPOrFPVectorTy(), isSingleValueType(), isSized(), llvm::VectorType::isValidElementType(), and TryToShrinkGlobalToBoolean().
bool llvm::Type::isFloatTy | ( | ) | const [inline] |
isFloatTy - Return true if this is 'float', a 32-bit IEEE fp type.
Definition at line 143 of file Type.h.
References FloatTyID, and getTypeID().
Referenced by AppendTypeSuffix(), llvm::ConstantFoldCastInstruction(), ConstantFoldScalarCall(), emitDebugValueComment(), emitGlobalConstantDataSequential(), executeFCMP_ORD(), executeFCMP_UNO(), GetConstantFoldFPValue(), llvm::ExecutionEngine::getConstantValue(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), getValueAsDouble(), llvm::AArch64TargetLowering::hasPairedLoad(), llvm::ConstantDataSequential::isElementTypeCompatible(), isHomogeneousAggregate(), isTrigLibCall(), scalarConstantToHexString(), TypeToFloatSemantics(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFPTrunc(), whichFPReturnVariant(), and WriteConstants().
bool llvm::Type::isFP128Ty | ( | ) | const [inline] |
isFP128Ty - Return true if this is 'fp128'.
Definition at line 152 of file Type.h.
References FP128TyID, and getTypeID().
Referenced by llvm::ConstantFoldCastInstruction(), llvm::SparcTargetLowering::LowerF128_LibCallArg(), llvm::SparcTargetLowering::LowerF128Op(), originalTypeIsF128(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and WriteConstants().
bool llvm::Type::isFPOrFPVectorTy | ( | ) | const [inline] |
isFPOrFPVectorTy - 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::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::InstCombiner::visitSelectInst().
bool llvm::Type::isFunctionTy | ( | ) | const [inline] |
isFunctionTy - True if this is an instance of FunctionType.
Definition at line 205 of file Type.h.
References FunctionTyID, and getTypeID().
Referenced by llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), and llvm::FunctionType::isValidReturnType().
bool Type::isFunctionVarArg | ( | ) | const |
bool llvm::Type::isHalfTy | ( | ) | const [inline] |
isHalfTy - Return true if this is 'half', a 16-bit IEEE fp type.
Definition at line 140 of file Type.h.
References getTypeID(), and HalfTyID.
Referenced by llvm::ConstantFoldCastInstruction(), ConstantFoldScalarCall(), GetConstantFoldFPValue(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and WriteConstants().
bool llvm::Type::isIntegerTy | ( | ) | const [inline] |
isIntegerTy - True if this is an instance of IntegerType.
Definition at line 193 of file Type.h.
References getTypeID(), and IntegerTyID.
Referenced by llvm::HexagonTargetLowering::allowTruncateForTailCall(), llvm::ARMTargetLowering::allowTruncateForTailCall(), buildMultiplyTree(), canConvertValue(), canFoldZeroCheckIntoBranch(), llvm::CastInst::castIsValid(), CoerceAvailableValueToLoadType(), llvm::InstCombiner::commonCastTransforms(), llvm::InstCombiner::commonIDivTransforms(), computeKnownBits(), llvm::ComputeMultiple(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCompareInstruction(), ConstantFoldGetElementPtrImpl(), ConstantFoldLoadThroughBitcast(), convertValue(), CreateAdd(), createCast(), CreateMul(), CreateNeg(), llvm::DecodePSHUFBMask(), evaluateICmpRelation(), ExtractConstantBytes(), FindCXAAtExit(), llvm::SimplifyFortifiedLibCalls::fold(), FoldBitCast(), llvm::FoldBranchToCommonDest(), FoldCondBranchOnPHI(), foldLogOpOfMaskedICmpsHelper(), foldSelectICmpAnd(), foldSelectICmpAndOr(), FoldTwoEntryPHINode(), getAdjustedPtr(), getAISize(), getAllocationData(), llvm::CastInst::getCastOpcode(), llvm::ExecutionEngine::getConstantValue(), llvm::ScalarEvolution::getEffectiveSCEVType(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantInt::getFalse(), getFalse(), llvm::objcarc::GetFunctionClass(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getIntToPtr(), GetLinearExpression(), GetLoadValueForLoad(), getNaturalGEPWithOffset(), llvm::ScalarEvolution::getNoopOrAnyExtend(), llvm::ScalarEvolution::getNoopOrSignExtend(), llvm::ScalarEvolution::getNoopOrZeroExtend(), llvm::SCEVExpander::getOrInsertCanonicalInductionVariable(), llvm::NVPTXTargetLowering::getPrototype(), llvm::ConstantExpr::getPtrToInt(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::TargetLowering::getSingleConstraintMatchWeight(), GetStoreValueForLoad(), llvm::ConstantInt::getTrue(), getTrue(), llvm::ScalarEvolution::getTruncateOrNoop(), llvm::ScalarEvolution::getTruncateOrSignExtend(), llvm::ScalarEvolution::getTruncateOrZeroExtend(), llvm::ScalarEvolution::getTypeSizeInBits(), getUnderlyingObjectFromInt(), llvm::AArch64TargetLowering::hasPairedLoad(), IdxCompare(), llvm::CompositeType::indexValid(), InstCombineLoadCast(), InstCombineStoreToCast(), llvm::isBytewiseValue(), llvm::CastInst::isCastable(), llvm::CastInst::isEliminableCastPair(), llvm::CastInst::isIntegerCast(), isIntegerTy(), isIntOrIntVectorTy(), llvm::ScalarEvolution::isSCEVable(), isSingleValueType(), llvm::ConstantDataSequential::isString(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::AArch64TargetLowering::isTruncateFree(), llvm::PPCTargetLowering::isTruncateFree(), llvm::VectorType::isValidElementType(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), llvm::ConstantInt::isValueValidForType(), isVectorPromotionViableForSlice(), llvm::MSP430TargetLowering::isZExtFree(), llvm::AArch64TargetLowering::isZExtFree(), LowerBSWAP(), llvm::NVPTXTargetLowering::LowerCall(), LowerCTPOP(), LowerNegateToMultiply(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::IntrinsicLowering::LowerToByteSwap(), MatchSelectFromAndOr(), originalTypeIsF128(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), scalarConstantToHexString(), llvm::AArch64TargetLowering::shouldConvertConstantLoadToIntImm(), llvm::ARMTargetLowering::shouldConvertConstantLoadToIntImm(), llvm::PPCTargetLowering::shouldConvertConstantLoadToIntImm(), SimplifyAddInst(), SimplifyDiv(), SimplifyICmpInst(), SimplifyMulInst(), SimplifyRem(), SimplifySubInst(), SymbolicallyEvaluateGEP(), llvm::AttributeFuncs::typeIncompatible(), llvm::UnrollRuntimeLoopProlog(), UpgradeX86IntrinsicsWith8BitMask(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitPHINode(), llvm::InstCombiner::visitReturnInst(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSelectInst(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitSub(), llvm::InstCombiner::visitXor(), and llvm::InstCombiner::visitZExt().
bool Type::isIntegerTy | ( | unsigned | Bitwidth | ) | const |
isIntegerTy - Return true if this is an IntegerType of the given width.
isIntegerTy - Return true if this is an IntegerType of the specified width.
Definition at line 58 of file Type.cpp.
References getBitWidth(), and isIntegerTy().
bool llvm::Type::isIntOrIntVectorTy | ( | ) | const [inline] |
isIntOrIntVectorTy - 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 llvm::CastInst::castIsValid(), computeKnownBits(), ComputeNumSignBits(), llvm::CastInst::CreateIntegerCast(), llvm::CastInst::CreatePointerCast(), llvm::IRBuilder< true, TargetFolder >::CreateSExtOrTrunc(), llvm::IRBuilder< true, TargetFolder >::CreateZExtOrTrunc(), llvm::ConstantExpr::get(), 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::CompositeType::indexValid(), llvm::CastInst::isEliminableCastPair(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitICmpInst(), and llvm::InstCombiner::visitOr().
bool llvm::Type::isLabelTy | ( | ) | const [inline] |
isLabelTy - 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().
bool llvm::Type::isMetadataTy | ( | ) | const [inline] |
isMetadataTy - Return true if this is 'metadata'.
Definition at line 189 of file Type.h.
References getTypeID(), and MetadataTyID.
Referenced by llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), and llvm::FunctionType::isValidReturnType().
bool llvm::Type::isPointerTy | ( | ) | const [inline] |
isPointerTy - True if this is an instance of PointerType.
Definition at line 217 of file Type.h.
References getTypeID(), and PointerTyID.
Referenced by BuildConstantFromSCEV(), canConvertValue(), llvm::CastInst::castIsValid(), CoerceAvailableValueToLoadType(), collectUsesWithPtrTypes(), computeKnownBits(), ConstantFoldLoadThroughBitcast(), ConstructSSAForLoadSet(), convertPointerToIntegerType(), convertValue(), createCast(), createFree(), llvm::EmitFPutC(), llvm::EmitFPutS(), llvm::EmitFWrite(), evaluateICmpRelation(), FindCXAAtExit(), FindLoopCounter(), llvm::SimplifyFortifiedLibCalls::fold(), FoldBitCast(), genLoopLimit(), getAdjustedPtr(), llvm::CastInst::getCastOpcode(), GetConstantInt(), llvm::ExecutionEngine::getConstantValue(), llvm::ScalarEvolution::getEffectiveSCEVType(), llvm::DataLayout::getIndexedOffset(), getIndexedTypeInternal(), llvm::ConstantExpr::getIntToPtr(), llvm::AliasAnalysis::getModRefInfo(), getNaturalGEPRecursively(), getNaturalGEPWithType(), llvm::MemoryDependenceAnalysis::getNonLocalPointerDependency(), llvm::ScalarEvolution::getNoopOrAnyExtend(), llvm::ScalarEvolution::getNoopOrSignExtend(), llvm::ScalarEvolution::getNoopOrZeroExtend(), llvm::getOrEnforceKnownAlignment(), llvm::ScalarEvolution::getPointerBase(), llvm::TargetLoweringBase::getPointerTypeSizeInBits(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::ConstantExpr::getPtrToInt(), llvm::SelectionDAG::getSrcValue(), GetStoreValueForLoad(), llvm::GetStringLength(), llvm::ScalarEvolution::getTruncateOrNoop(), llvm::ScalarEvolution::getTruncateOrSignExtend(), llvm::ScalarEvolution::getTruncateOrZeroExtend(), llvm::ScalarEvolution::getTypeSizeInBits(), llvm::GetUnderlyingObject(), getUnderlyingObjects(), InstCombineLoadCast(), InstCombineStoreToCast(), llvm::MemoryDependenceAnalysis::invalidateCachedPointerInfo(), llvm::CastInst::isCastable(), isCompatibleIVType(), isGEPKnownNonNull(), isInterestingPointer(), isKnownNonZero(), llvm::CastInst::isLosslessCast(), isNoopBitcast(), isPointerOperand(), isPtrOrPtrVectorTy(), llvm::ScalarEvolution::isSCEVable(), isSingleValueType(), isStridedPtr(), llvm::VectorType::isValidElementType(), OptimizeOnceStoredGlobal(), llvm::PointerMayBeCaptured(), promoteSingleBlockAlloca(), llvm::MemoryDependenceAnalysis::removeInstruction(), llvm::SCEVExpander::replaceCongruentIVs(), rewriteSingleStoreAlloca(), llvm::MCJIT::runFunction(), SimplifyBranchOnICmpChain(), SimplifyICmpInst(), llvm::Value::stripAndAccumulateInBoundsConstantOffsets(), stripAndComputeConstantOffsets(), StripPtrCastKeepAS(), swapMayExposeCSEOpportunities(), SymbolicallyEvaluateGEP(), TryToShrinkGlobalToBoolean(), llvm::AttributeFuncs::typeIncompatible(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitICmpInst(), and llvm::PtrUseVisitor< SliceBuilder >::visitPtr().
bool llvm::Type::isPPC_FP128Ty | ( | ) | const [inline] |
isPPC_FP128Ty - Return true if this is powerpc long double.
Definition at line 155 of file Type.h.
References getTypeID(), and PPC_FP128TyID.
Referenced by llvm::ConstantFoldCastInstruction(), emitGlobalConstantFP(), llvm::Constant::getAllOnesValue(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and WriteConstants().
bool llvm::Type::isPtrOrPtrVectorTy | ( | ) | const [inline] |
isPtrOrPtrVectorTy - Return true if this is a pointer type or a vector of pointer types.
Definition at line 222 of file Type.h.
References getScalarType(), and isPointerTy().
Referenced by llvm::CastInst::CreatePointerBitCastOrAddrSpaceCast(), llvm::CastInst::CreatePointerCast(), llvm::ConstantExpr::getGetElementPtr(), llvm::DataLayout::getIntPtrType(), llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast(), llvm::ConstantExpr::getPointerCast(), llvm::DataLayout::getPointerTypeSizeInBits(), InstCombineLoadCast(), isEliminableCastPair(), llvm::CastInst::isEliminableCastPair(), llvm::UpgradeBitCastExpr(), and llvm::UpgradeBitCastInst().
bool llvm::Type::isSingleValueType | ( | ) | const [inline] |
isSingleValueType - 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 250 of file Type.h.
References isFloatingPointTy(), isIntegerTy(), isPointerTy(), isVectorTy(), and isX86_MMXTy().
Referenced by canConvertValue(), getOpenCLAlignment(), llvm::NVPTXTargetLowering::LowerCall(), llvm::TargetLowering::ParseConstraints(), reduceToSingleValueType(), and stripAggregateTypeWrapping().
bool llvm::Type::isSized | ( | SmallPtrSetImpl< const Type * > * | Visited = nullptr | ) | const [inline] |
isSized - 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.
Reimplemented in llvm::StructType.
Definition at line 268 of file Type.h.
References ArrayTyID, getTypeID(), IntegerTyID, isFloatingPointTy(), PointerTyID, StructTyID, VectorTyID, and X86_MMXTyID.
Referenced by computeArraySize(), computeKnownBits(), DecomposeGEPExpression(), FoldReinterpretLoadFromConstPtr(), getIndexedTypeInternal(), getNaturalGEPWithOffset(), llvm::DataLayout::getTypeSizeInBits(), llvm::Value::isDereferenceablePointer(), isDereferenceablePointer(), llvm::AArch64TargetLowering::isLegalAddressingMode(), isSafeToEliminateVarargsCast(), llvm::isSafeToLoadUnconditionally(), IsSmallObject(), llvm::TargetLowering::ParseConstraints(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), SimplifyGEPInst(), SymbolicallyEvaluateGEP(), TryToOptimizeStoreOfMallocToGlobal(), llvm::ObjectSizeOffsetVisitor::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::ObjectSizeOffsetEvaluator::visitAllocaInst(), and llvm::InstCombiner::visitGetElementPtrInst().
bool llvm::Type::isStructTy | ( | ) | const [inline] |
isStructTy - True if this is an instance of StructType.
Definition at line 209 of file Type.h.
References getTypeID(), and StructTyID.
Referenced by AnalyzeLoadFromClobberingLoad(), AnalyzeLoadFromClobberingStore(), AnalyzeLoadFromClobberingWrite(), CanCoerceMustAliasedValueToLoad(), llvm::ConstantFoldCastInstruction(), createCast(), llvm::FindInsertedValue(), llvm::ConstantAggregateZero::get(), insertSinCosCall(), InstCombineStoreToCast(), isConstantUsingVectorTy(), llvm::SCEVUnknown::isOffsetOf(), llvm::Value::Value(), llvm::InlineAsm::Verify(), and llvm::InstCombiner::visitGetElementPtrInst().
bool llvm::Type::isVectorTy | ( | ) | const [inline] |
isVectorTy - True if this is an instance of VectorType.
Definition at line 226 of file Type.h.
References getTypeID(), and VectorTyID.
Referenced by llvm::CastInst::castIsValid(), CollectShuffleElements(), computeKnownBits(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), convertValue(), llvm::CastInst::CreatePointerCast(), llvm::DecodePSHUFBMask(), executeFCMP_BOOL(), executeFCMP_ONE(), executeFCMP_ORD(), executeFCMP_UNO(), executeSelectInst(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandDivisionUpTo64Bits(), llvm::expandRemainder(), llvm::expandRemainderUpTo32Bits(), llvm::expandRemainderUpTo64Bits(), FindLIVLoopCondition(), FindScalarElement(), foldLogOpOfMaskedICmpsHelper(), llvm::InstCombiner::FoldSelectOpOp(), llvm::ConstantAggregateZero::get(), llvm::CastInst::getCastOpcode(), llvm::ConstantExpr::getExtractElement(), llvm::GetElementPtrInst::getGEPReturnType(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getInsertElement(), llvm::GetPointerBaseWithConstantOffset(), llvm::NVPTXTargetLowering::getPrototype(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::AArch64TargetLowering::getTgtMemIntrinsic(), llvm::ARMTargetLowering::getTgtMemIntrinsic(), llvm::TargetLoweringBase::getValueType(), llvm::CompositeType::indexValid(), InstCombineLoadCast(), llvm::CastInst::isCastable(), isConstantUsingVectorTy(), llvm::CastInst::isEliminableCastPair(), isFiniteNonZeroFp(), isNormalFp(), isSingleValueType(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), llvm::NVPTXTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerFormalArguments(), llvm::PatternMatch::specific_intval::match(), matchPairwiseReductionAtLevel(), shouldConvert(), stripAndComputeConstantOffsets(), ThreadCmpOverSelect(), tryPromoteAllocaToVector(), TryToShrinkGlobalToBoolean(), llvm::Interpreter::visitAShr(), llvm::Interpreter::visitBinaryOperator(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitExtractElementInst(), llvm::Interpreter::visitInsertElementInst(), llvm::InstCombiner::visitIntToPtr(), llvm::Interpreter::visitLShr(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitPtrToInt(), llvm::Interpreter::visitShl(), llvm::Interpreter::visitShuffleVectorInst(), and llvm::InstCombiner::visitTrunc().
bool llvm::Type::isVoidTy | ( | ) | const [inline] |
isVoidTy - Return true if this is 'void'.
Definition at line 137 of file Type.h.
References getTypeID(), and VoidTyID.
Referenced by llvm::AllocaInst::AllocaInst(), llvm::ComputeValueVTs(), createMalloc(), determinePointerReadAttrs(), HoistThenElseCodeToIf(), llvm::isFreeCall(), llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), llvm::IntrinsicLowering::LowerIntrinsicCall(), NumRetVals(), llvm::TargetLowering::ParseConstraints(), llvm::PointerMayBeCaptured(), llvm::AssemblyWriter::printInstruction(), removeLifetimeIntrinsicUsers(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::UnifyFunctionExitNodes::runOnFunction(), llvm::FastISel::selectPatchpoint(), llvm::FastISel::selectStackmap(), llvm::Value::Value(), and llvm::InlineAsm::Verify().
bool llvm::Type::isX86_FP80Ty | ( | ) | const [inline] |
isX86_FP80Ty - Return true if this is x86 long double.
Definition at line 149 of file Type.h.
References getTypeID(), and X86_FP80TyID.
Referenced by llvm::ConstantFoldCastInstruction(), llvm::ExecutionEngine::getConstantValue(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and WriteConstants().
bool llvm::Type::isX86_MMXTy | ( | ) | const [inline] |
isX86_MMXTy - Return true if this is X86 MMX.
Definition at line 179 of file Type.h.
References getTypeID(), and X86_MMXTyID.
Referenced by llvm::ConstantFoldCastInstruction(), FoldBitCast(), llvm::CastInst::getCastOpcode(), llvm::CastInst::isBitCastable(), llvm::CastInst::isCastable(), and isSingleValueType().
void Type::print | ( | raw_ostream & | O | ) | const |
Definition at line 2481 of file AsmWriter.cpp.
References llvm::TypePrinting::print(), and llvm::TypePrinting::printStructBody().
Referenced by dump(), emitGlobalConstantFP(), and llvm::operator<<().
void llvm::Type::setSubclassData | ( | unsigned | val | ) | [inline, protected] |
Definition at line 103 of file Type.h.
References getSubclassData().
Referenced by llvm::StructType::get(), llvm::IntegerType::IntegerType(), llvm::StructType::isSized(), and llvm::StructType::setBody().
void llvm::Type::setTypeID | ( | TypeID | ID | ) | [inline, protected] |
subtype_iterator llvm::Type::subtype_begin | ( | ) | const [inline] |
Definition at line 314 of file Type.h.
References ContainedTys.
Referenced by llvm::GraphTraits< Type * >::child_begin(), llvm::GraphTraits< const Type * >::child_begin(), and subtype_rend().
subtype_iterator llvm::Type::subtype_end | ( | ) | const [inline] |
Definition at line 315 of file Type.h.
References ContainedTys, and NumContainedTys.
Referenced by llvm::GraphTraits< Type * >::child_end(), llvm::GraphTraits< const Type * >::child_end(), and subtype_rbegin().
subtype_reverse_iterator llvm::Type::subtype_rbegin | ( | ) | const [inline] |
Definition at line 318 of file Type.h.
References subtype_end().
subtype_reverse_iterator llvm::Type::subtype_rend | ( | ) | const [inline] |
Definition at line 321 of file Type.h.
References subtype_begin().
friend class LLVMContextImpl [friend] |
Reimplemented in llvm::IntegerType.
Type* const* llvm::Type::ContainedTys [protected] |
ContainedTys - 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 118 of file Type.h.
Referenced by llvm::StructType::element_begin(), llvm::StructType::element_end(), getContainedType(), llvm::StructType::getElementType(), llvm::SequentialType::getElementType(), llvm::FunctionType::getParamType(), llvm::FunctionType::getReturnType(), llvm::FunctionType::param_begin(), llvm::FunctionType::param_end(), llvm::SequentialType::SequentialType(), llvm::StructType::setBody(), subtype_begin(), and subtype_end().
unsigned llvm::Type::NumContainedTys [protected] |
NumContainedTys - Keeps track of how many Type*'s there are in the ContainedTys list.
Definition at line 111 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().