LLVM API Documentation
#include <Type.h>
Public Types | |
enum | TypeID { VoidTyID = 0, HalfTyID, FloatTyID, DoubleTyID, X86_FP80TyID, FP128TyID, PPC_FP128TyID, LabelTyID, MetadataTyID, X86_MMXTyID, IntegerTyID, FunctionTyID, StructTyID, ArrayTyID, PointerTyID, VectorTyID, NumTypeIDs, LastPrimitiveTyID = X86_MMXTyID, FirstDerivedTyID = IntegerTyID } |
typedef Type *const * | subtype_iterator |
typedef std::reverse_iterator < subtype_iterator > | subtype_reverse_iterator |
Public Member Functions | |
void | print (raw_ostream &O) const |
void | dump () const |
LLVMContext & | getContext () const |
getContext - Return the LLVMContext in which this type was uniqued. More... | |
TypeID | getTypeID () const |
bool | isVoidTy () const |
isVoidTy - Return true if this is 'void'. More... | |
bool | isHalfTy () const |
isHalfTy - Return true if this is 'half', a 16-bit IEEE fp type. More... | |
bool | isFloatTy () const |
isFloatTy - Return true if this is 'float', a 32-bit IEEE fp type. More... | |
bool | isDoubleTy () const |
isDoubleTy - Return true if this is 'double', a 64-bit IEEE fp type. More... | |
bool | isX86_FP80Ty () const |
isX86_FP80Ty - Return true if this is x86 long double. More... | |
bool | isFP128Ty () const |
isFP128Ty - Return true if this is 'fp128'. More... | |
bool | isPPC_FP128Ty () const |
isPPC_FP128Ty - Return true if this is powerpc long double. More... | |
bool | isFloatingPointTy () const |
const fltSemantics & | getFltSemantics () const |
bool | isX86_MMXTy () const |
isX86_MMXTy - Return true if this is X86 MMX. More... | |
bool | isFPOrFPVectorTy () const |
bool | isLabelTy () const |
isLabelTy - Return true if this is 'label'. More... | |
bool | isMetadataTy () const |
isMetadataTy - Return true if this is 'metadata'. More... | |
bool | isIntegerTy () const |
bool | isIntegerTy (unsigned Bitwidth) const |
isIntegerTy - Return true if this is an IntegerType of the given width. More... | |
bool | isIntOrIntVectorTy () const |
bool | isFunctionTy () const |
bool | isStructTy () const |
bool | isArrayTy () const |
bool | isPointerTy () const |
bool | isPtrOrPtrVectorTy () const |
bool | isVectorTy () const |
bool | canLosslesslyBitCastTo (Type *Ty) const |
Determine if this type could be losslessly bitcast to Ty. More... | |
bool | isEmptyTy () const |
bool | isPrimitiveType () const |
bool | isDerivedType () const |
bool | isFirstClassType () const |
bool | isSingleValueType () const |
bool | isAggregateType () const |
bool | isSized () const |
unsigned | getPrimitiveSizeInBits () const |
unsigned | getScalarSizeInBits () |
int | getFPMantissaWidth () const |
const Type * | getScalarType () const |
Type * | getScalarType () |
subtype_iterator | subtype_begin () const |
subtype_iterator | subtype_end () const |
subtype_reverse_iterator | subtype_rbegin () const |
subtype_reverse_iterator | subtype_rend () const |
Type * | getContainedType (unsigned i) const |
unsigned | getNumContainedTypes () const |
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) |
Protected Member Functions | |
Type (LLVMContext &C, TypeID tid) | |
~Type () | |
void | setTypeID (TypeID ID) |
unsigned | getSubclassData () const |
void | setSubclassData (unsigned val) |
Protected Attributes | |
unsigned | NumContainedTys |
Type *const * | ContainedTys |
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) |
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 |
NumTypeIDs | |
LastPrimitiveTyID | |
FirstDerivedTyID |
|
inlineexplicitprotected |
Definition at line 92 of file Type.h.
References setTypeID().
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(), isPointerTy(), and X86_MMXTyID.
void Type::dump | ( | ) | const |
Definition at line 2215 of file AsmWriter.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 368 of file Type.h.
References getSequentialElementType().
Referenced by llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), InstallGlobalCtors(), and llvm::InstCombiner::visitGetElementPtrInst().
uint64_t Type::getArrayNumElements | ( | ) | const |
Definition at line 210 of file Type.cpp.
Referenced by llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), and llvm::getConstantStringInfo().
getContainedType - This method is used to implement the type iterator (defined a the end of the file). For derived types, this returns the types 'contained' in the derived type.
Definition at line 339 of file Type.h.
References ContainedTys, and NumContainedTys.
Referenced by llvm::ComputeUsesVAFloatArgument(), lookupFunction(), llvm::Interpreter::visitInsertElementInst(), llvm::Interpreter::visitShuffleVectorInst(), and whichFPReturnVariant().
|
inline |
getContext - Return the LLVMContext in which this type was uniqued.
Definition at line 128 of file Type.h.
Referenced by CoerceAvailableValueToLoadType(), ConstantFoldBinaryFP(), ConstantFoldFP(), ConstantFoldGetElementPtrImpl(), 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(), dyn_castFoldableMul(), 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::PointerType::get(), llvm::ConstantPointerNull::get(), llvm::UndefValue::get(), llvm::ConstantExpr::getAlignOf(), getAllocationData(), llvm::Constant::getAllOnesValue(), llvm::BasicBlock::getContext(), llvm::Value::getContext(), llvm::Function::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(), 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::TargetLowering::LowerCallTo(), llvm::CmpInst::makeCmpResultType(), llvm::TargetLowering::ParseConstraints(), llvm::AssemblyWriter::printInstruction(), llvm::ConstantArray::replaceUsesOfWithOnConstant(), llvm::StructType::setBody(), llvm::StructType::setName(), SymbolicallyEvaluateGEP(), and llvm::AttributeFuncs::typeIncompatible().
|
static |
Definition at line 256 of file Type.cpp.
References getDoubleTy(), and getPointerTo().
|
static |
Definition at line 231 of file Type.cpp.
References llvm::LLVMContextImpl::DoubleTy, and llvm::LLVMContext::pImpl.
Referenced by 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(), getDoublePtrTy(), llvm::IRBuilderBase::getDoubleTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMDoubleTypeInContext(), and ReplaceFPIntrinsicWithCall().
|
static |
Definition at line 252 of file Type.cpp.
References getFloatTy(), and getPointerTo().
|
static |
Definition at line 230 of file Type.cpp.
References llvm::LLVMContextImpl::FloatTy, and llvm::LLVMContext::pImpl.
Referenced by 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(), getFloatPtrTy(), llvm::IRBuilderBase::getFloatTy(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), LLVMFloatTypeInContext(), ReplaceFPIntrinsicWithCall(), llvm::UpgradeIntrinsicCall(), and UpgradeSSE41Function().
|
inline |
Definition at line 169 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(), FoldBitCast(), and llvm::JIT::runFunction().
|
static |
Definition at line 264 of file Type.cpp.
References getFP128Ty(), and getPointerTo().
|
static |
Definition at line 234 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 142 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(), and llvm::InstCombiner::visitFPToUI().
|
static |
Definition at line 248 of file Type.cpp.
References getHalfTy(), and getPointerTo().
|
static |
Definition at line 229 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().
|
static |
Definition at line 288 of file Type.cpp.
References getInt16Ty(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
|
static |
Definition at line 240 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(), LLVMInt16TypeInContext(), and ReadDataFromGlobal().
|
static |
Definition at line 280 of file Type.cpp.
References getInt1Ty(), and getPointerTo().
Referenced by llvm::SCEVExpander::getIVIncOperand(), and llvm::InstCombiner::visitFree().
|
static |
Definition at line 238 of file Type.cpp.
References llvm::LLVMContextImpl::Int1Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::SelectInst::areInvalidOperands(), llvm::ConstantFoldCall(), llvm::ConstantFoldCompareInstruction(), llvm::DIBuilder::createCompileUnit(), llvm::DIBuilder::createFunction(), llvm::DIBuilder::createMethod(), llvm::IntegerType::get(), llvm::ConstantExpr::getAlignOf(), getEdgeValueLocal(), llvm::ConstantInt::getFalse(), llvm::ConstantExpr::getFCmp(), llvm::ConstantExpr::getICmp(), getInt1PtrTy(), llvm::IRBuilderBase::getInt1Ty(), llvm::ConstantInt::getTrue(), llvm::EVT::getTypeForEVT(), LLVMInt1TypeInContext(), llvm::CmpInst::makeCmpResultType(), OptimizeGlobalAddressOfMalloc(), SimplifyCondBranchToCondBranch(), TryToShrinkGlobalToBoolean(), UpgradeIntrinsicFunction1(), and llvm::InstCombiner::visitAllocSite().
|
static |
Definition at line 292 of file Type.cpp.
References getInt32Ty(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
|
static |
Definition at line 241 of file Type.cpp.
References llvm::LLVMContextImpl::Int32Ty, and llvm::LLVMContext::pImpl.
Referenced by llvm::Module::addModuleFlag(), llvm::IntrinsicLowering::AddPrototypes(), AddWithOverflow(), BuildConstantFromSCEV(), 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(), llvm::DIBuilder::createFunction(), llvm::IRBuilder< true, TargetFolder >::CreateGlobalStringPtr(), llvm::DIBuilder::createGlobalVariable(), llvm::DIBuilder::createImportedDeclaration(), createImportedModule(), llvm::DIBuilder::createInheritance(), llvm::DIBuilder::createLexicalBlock(), 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(), CreatePrologue(), llvm::DIBuilder::createQualifiedType(), llvm::DIBuilder::createReferenceType(), llvm::DIBuilder::createStaticMemberType(), llvm::DIBuilder::createStaticVariable(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createSubroutineType(), llvm::DIBuilder::createTemplateTypeParameter(), llvm::DIBuilder::createTypedef(), llvm::DIBuilder::createUnionType(), llvm::DIBuilder::createUnspecifiedType(), llvm::DIBuilder::createVectorType(), llvm::Thumb2RegisterInfo::emitLoadConstPool(), llvm::Thumb1RegisterInfo::emitLoadConstPool(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemset(), FoldBitCast(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getAISize(), llvm::ConstantExpr::getAlignOf(), llvm::DebugLoc::getAsMDNode(), llvm::DataLayout::getIndexedOffset(), getInt32PtrTy(), llvm::IRBuilderBase::getInt32Ty(), llvm::SelectionDAG::getMemset(), llvm::ConstantExpr::getOffsetOf(), llvm::DIBuilder::getOrCreateArray(), getPromotedType(), llvm::ConstantExpr::getSizeOf(), GetTagConstant(), llvm::EVT::getTypeForEVT(), HandleByValArgument(), InstallGlobalCtors(), InstCombineStoreToCast(), llvm::isBytewiseValue(), LLVMBuildArrayMalloc(), LLVMBuildMalloc(), LLVMInt32TypeInContext(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), LowerBSWAP(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::MergeBasicBlockIntoOnlyPred(), ReadDataFromGlobal(), llvm::JIT::runFunction(), llvm::NVPTXLowerAggrCopies::runOnFunction(), SRAGlobal(), SubWithOverflow(), SymbolicallyEvaluateGEP(), llvm::UpgradeIntrinsicCall(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitShuffleVectorInst(), and llvm::BasicBlock::~BasicBlock().
|
static |
Definition at line 296 of file Type.cpp.
References getInt64Ty(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
|
static |
Definition at line 242 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::createStaticMemberType(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createSubroutineType(), llvm::MDBuilder::createTBAANode(), llvm::DIBuilder::createTypedef(), llvm::DIBuilder::createUnionType(), llvm::DIBuilder::createUnspecifiedType(), llvm::DIBuilder::createVectorType(), foldConstantCastPair(), genLoopLimit(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), llvm::ConstantExpr::getAlignOf(), llvm::ScalarEvolution::getEffectiveSCEVType(), getInt64PtrTy(), llvm::IRBuilderBase::getInt64Ty(), GetMemInstValueForLoad(), llvm::ConstantExpr::getOffsetOf(), llvm::DIBuilder::getOrCreateSubrange(), llvm::ConstantExpr::getSizeOf(), llvm::EVT::getTypeForEVT(), HandleByValArgument(), IdxCompare(), llvm::InlineFunction(), llvm::DIBuilder::insertDbgValueIntrinsic(), InstCombineLoadCast(), llvm::isBytewiseValue(), LLVMInt64TypeInContext(), LowerBSWAP(), llvm::IntrinsicLowering::LowerIntrinsicCall(), ReadDataFromGlobal(), llvm::replaceDbgDeclareForAlloca(), llvm::JIT::runFunction(), llvm::UpgradeBitCastExpr(), llvm::UpgradeBitCastInst(), llvm::UpgradeInstWithTBAATag(), llvm::UpgradeIntrinsicCall(), and llvm::InstCombiner::visitAllocaInst().
|
static |
Definition at line 284 of file Type.cpp.
References getInt8Ty(), and getPointerTo().
Referenced by llvm::IntrinsicLowering::AddPrototypes(), AnalyzeLoadFromClobberingMemInst(), BuildConstantFromSCEV(), convertTransferToLoop(), createFree(), createMalloc(), CreatePrologue(), llvm::SimplifyFortifiedLibCalls::fold(), getAllocationData(), llvm::IRBuilderBase::getInt8PtrTy(), llvm::SCEVExpander::getIVIncOperand(), GetMemInstValueForLoad(), getNaturalGEPWithOffset(), HandleByValArgument(), hasLifetimeMarkers(), llvm::isAllocaPromotable(), llvm::isFreeCall(), LowerToTLSExecModel(), llvm::ExecutionEngine::runFunctionAsMain(), setUsedInitializer(), and llvm::InstCombiner::visitGetElementPtrInst().
|
static |
Definition at line 239 of file Type.cpp.
References llvm::LLVMContextImpl::Int8Ty, and llvm::LLVMContext::pImpl.
Referenced by GenerateARCBBEntranceAnnotation(), GenerateARCBBTerminatorAnnotation(), llvm::IntegerType::get(), llvm::ConstantDataArray::get(), llvm::ConstantDataVector::get(), getInt8PtrTy(), llvm::IRBuilderBase::getInt8Ty(), llvm::EVT::getTypeForEVT(), llvm::isBytewiseValue(), and LLVMInt8TypeInContext().
unsigned Type::getIntegerBitWidth | ( | ) | const |
Definition at line 178 of file Type.cpp.
References getBitWidth().
Referenced by ConstantFoldConvertToInt(), DecomposeGEPExpression(), EliminateDeadSwitchCases(), EvaluateGEPOffsetExpression(), llvm::expandDivisionUpTo32Bits(), llvm::expandRemainderUpTo32Bits(), llvm::InstCombiner::FoldCmpLoadFromIndexedGlobal(), getEdgeValueLocal(), llvm::DataLayout::getTypeSizeInBits(), llvm::ConstantInt::isValueValidForType(), isZero(), stripAndComputeConstantOffsets(), llvm::InstCombiner::visitCallInst(), and llvm::InstCombiner::visitICmpInstWithCastAndCast().
|
static |
Definition at line 276 of file Type.cpp.
References getIntNTy(), and getPointerTo().
Referenced by FoldReinterpretLoadFromConstPtr().
|
static |
Definition at line 244 of file Type.cpp.
References llvm::IntegerType::get().
Referenced by getIntNPtrTy(), llvm::DataLayout::getLargestLegalIntType(), and llvm::DataLayout::getSmallestLegalIntType().
|
static |
Definition at line 228 of file Type.cpp.
References llvm::LLVMContextImpl::LabelTy, and llvm::LLVMContext::pImpl.
Referenced by getPrimitiveType(), and LLVMLabelTypeInContext().
|
static |
Definition at line 232 of file Type.cpp.
References llvm::LLVMContextImpl::MetadataTy, and llvm::LLVMContext::pImpl.
Referenced by DecodeFixedType(), getPrimitiveType(), and llvm::EVT::getTypeForEVT().
|
inline |
getNumContainedTypes - Return the number of types in the derived type.
Definition at line 346 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 218 of file Type.cpp.
References getScalarType().
Referenced by BuildConstantFromSCEV(), llvm::CastInst::castIsValid(), llvm::ConstantFoldInstOperands(), llvm::CastInst::CreatePointerCast(), llvm::IntToPtrInst::getAddressSpace(), 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::getPointerCast(), llvm::TargetLoweringBase::getPointerTypeSizeInBits(), llvm::DataLayout::getTypeSizeInBits(), llvm::SelectionDAGBuilder::getValueImpl(), llvm::CastInst::isEliminableCastPair(), llvm::UpgradeBitCastExpr(), and llvm::UpgradeBitCastInst().
|
inline |
Definition at line 373 of file Type.h.
References getSequentialElementType().
Referenced by DecomposeGEPExpression(), getAdjustedPtr(), 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 756 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(), and StripPtrCastKeepAS().
|
static |
Definition at line 268 of file Type.cpp.
References getPointerTo(), and getPPC_FP128Ty().
|
static |
Definition at line 235 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 117 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(), CollectBSwapParts(), CollectInsertionElements(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldLoadFromConstPtr(), 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::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::VectorType::getTruncatedElementVectorType(), llvm::ScalarEvolution::getTypeSizeInBits(), getTypeSizeIndex(), llvm::CastInst::isBitCastable(), llvm::CastInst::isCastable(), isMultipleOfTypeSize(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), LinearizeExprTree(), LowerBSWAP(), LowerCTLZ(), LowerCTPOP(), OptimizeIntToFloatBitCast(), OptimizeVectorResize(), ProcessUGT_ADDCST_ADD(), SimplifyICmpInst(), SwitchToLookupTable(), llvm::InstCombiner::visitCallInst(), llvm::InstCombiner::visitGetElementPtrInst(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitICmpInstWithInstAndIntCst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitPHINode(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitSub(), llvm::InstCombiner::visitTrunc(), and width_descending().
|
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 | ( | ) |
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 135 of file Type.cpp.
References getPrimitiveSizeInBits(), and getScalarType().
Referenced by CanEvaluateSExtd(), CanEvaluateShifted(), CanEvaluateTruncated(), CanEvaluateZExtd(), llvm::CastInst::castIsValid(), llvm::ComputeMaskedBits(), llvm::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(), llvm::isKnownToBeAPowerOfTwo(), llvm::CastInst::isNoopCast(), SimplifyShift(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAShr(), llvm::InstCombiner::visitFPToSI(), llvm::InstCombiner::visitFPToUI(), llvm::InstCombiner::visitFPTrunc(), 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(), llvm::ComputeMaskedBits(), llvm::ComputeNumSignBits(), ConstructSSAForLoadSet(), convertValue(), llvm::gep_type_begin(), llvm::ConstantInt::get(), llvm::ConstantFP::get(), getFalse(), getGEPInductionOperand(), getIndexedTypeInternal(), llvm::Constant::getIntegerValue(), llvm::DataLayout::getIntPtrType(), llvm::ConstantExpr::getIntToPtr(), getPointerAddressSpace(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::ConstantExpr::getPtrToInt(), getScalarSizeInBits(), GetStoreValueForLoad(), getTrue(), llvm::ConstantFP::getZeroValueForNegation(), llvm::CompositeType::indexValid(), isFPOrFPVectorTy(), isIntOrIntVectorTy(), llvm::isKnownNonZero(), isPtrOrPtrVectorTy(), llvm::Instruction::isSameOperationAs(), isVectorPromotionViable(), LinearizeExprTree(), SimplifyICmpInst(), stripAndComputeConstantOffsets(), SymbolicallyEvaluateBinop(), llvm::InstCombiner::visitAnd(), and llvm::InstCombiner::visitICmpInst().
Type * Type::getScalarType | ( | ) |
Type * Type::getSequentialElementType | ( | ) | const |
Definition at line 206 of file Type.cpp.
Referenced by getArrayElementType(), llvm::ConstantDataSequential::getImpl(), getPointerElementType(), getVectorElementType(), and ReadDataFromGlobal().
StringRef Type::getStructName | ( | ) | const |
Definition at line 194 of file Type.cpp.
References llvm::Intrinsic::getName().
unsigned Type::getStructNumElements | ( | ) | const |
Definition at line 198 of file Type.cpp.
Referenced by whichFPReturnVariant().
|
inlineprotected |
Definition at line 104 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().
|
inline |
getTypeID - Return the type id for the type. This will return one of the TypeID enum elements defined above.
Definition at line 137 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(), getTypeIDForHash(), getTypePrefix(), llvm::DataLayout::getTypeSizeInBits(), llvm::ConstantExpr::getUIToFP(), llvm::MVT::getVT(), llvm::ConstantExpr::getZExt(), isAggregateType(), isArrayTy(), isDerivedType(), isDoubleTy(), isFirstClassType(), isFloatingPointTy(), isFloatTy(), isFP128Ty(), isFunctionTy(), isHalfTy(), isIntegerTy(), isLabelTy(), isLeakCheckerRoot(), llvm::XCoreTargetLowering::isLegalAddressingMode(), isMetadataTy(), isPointerTy(), isPPC_FP128Ty(), isPrimitiveType(), isSingleValueType(), isSized(), isStructTy(), llvm::ConstantFP::isValueValidForType(), isVectorTy(), isVoidTy(), isX86_FP80Ty(), isX86_MMXTy(), llvm::ExecutionEngine::LoadValueFromMemory(), needsFPStubFromParams(), llvm::TypePrinting::print(), ReplaceFPIntrinsicWithCall(), llvm::Interpreter::run(), llvm::JIT::runFunction(), 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().
|
inline |
Definition at line 371 of file Type.h.
References getSequentialElementType().
Referenced by llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), FoldBitCast(), llvm::ConstantExpr::getExtractElement(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getShuffleVector(), and llvm::WriteConstantInternal().
unsigned Type::getVectorNumElements | ( | ) | const |
Definition at line 214 of file Type.cpp.
Referenced by BitCastConstantVector(), llvm::CastInst::castIsValid(), CheapToScalarize(), CollectSingleShuffleElements(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), llvm::ConstantFoldExtractElementInstruction(), llvm::ConstantFoldInsertElementInstruction(), llvm::ConstantFoldInsertValueInstruction(), llvm::ConstantFoldSelectInstruction(), llvm::ConstantFoldShuffleVectorInstruction(), llvm::CastInst::CreatePointerCast(), EvaluateStoreInto(), FindScalarElement(), FoldBitCast(), llvm::InstCombiner::FoldSelectOpOp(), llvm::ConstantExpr::getGetElementPtr(), llvm::ConstantExpr::getIntToPtr(), llvm::ConstantDataSequential::getNumElements(), llvm::ConstantExpr::getPtrToInt(), llvm::ShuffleVectorInst::getShuffleMask(), llvm::ConstantExpr::getShuffleVector(), llvm::SITargetLowering::LowerFormalArguments(), matchPairwiseReduction(), matchPairwiseShuffleMask(), matchVectorSplittingReduction(), ReadDataFromGlobal(), stripAndComputeConstantOffsets(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitExtractElementInst(), llvm::InstCombiner::visitIntToPtr(), llvm::InstCombiner::visitPtrToInt(), llvm::InstCombiner::visitSRem(), and llvm::WriteConstantInternal().
|
static |
Definition at line 227 of file Type.cpp.
References llvm::LLVMContext::pImpl, and llvm::LLVMContextImpl::VoidTy.
Referenced by llvm::IntrinsicLowering::AddPrototypes(), createFree(), DecodeFixedType(), llvm::X86SelectionDAGInfo::EmitTargetCodeForMemset(), llvm::ARMSelectionDAGInfo::EmitTargetCodeForMemset(), GenerateARCBBEntranceAnnotation(), GenerateARCBBTerminatorAnnotation(), llvm::TypeBuilder< void, cross >::get(), llvm::SelectionDAG::getMemcpy(), llvm::SelectionDAG::getMemmove(), llvm::SelectionDAG::getMemset(), getPrimitiveType(), llvm::EVT::getTypeForEVT(), llvm::IRBuilderBase::getVoidTy(), InstallGlobalCtors(), LLVMVoidTypeInContext(), llvm::SelectionDAGBuilder::LowerCallOperands(), llvm::SelectionDAGBuilder::LowerCallTo(), llvm::SparcTargetLowering::LowerF128Op(), llvm::IntrinsicLowering::LowerIntrinsicCall(), llvm::Interpreter::visitReturnInst(), and WriteMDNode().
|
static |
Definition at line 260 of file Type.cpp.
References getPointerTo(), and getX86_FP80Ty().
|
static |
Definition at line 233 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 272 of file Type.cpp.
References getPointerTo(), and getX86_MMXTy().
|
static |
Definition at line 236 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 |
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 270 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(), and llvm::NVPTXTargetLowering::LowerFormalArguments().
|
inline |
isArrayTy - True if this is an instance of ArrayType.
Definition at line 216 of file Type.h.
References ArrayTyID, and getTypeID().
Referenced by AnalyzeLoadFromClobberingLoad(), AnalyzeLoadFromClobberingStore(), AnalyzeLoadFromClobberingWrite(), CanCoerceMustAliasedValueToLoad(), llvm::ConstantFoldCastInstruction(), EvaluateStoreInto(), llvm::FindInsertedValue(), llvm::ConstantAggregateZero::get(), InstCombineStoreToCast(), llvm::SCEVUnknown::isOffsetOf(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
Definition at line 246 of file Type.h.
References FirstDerivedTyID, and getTypeID().
|
inline |
isDoubleTy - Return true if this is 'double', a 64-bit IEEE fp type.
Definition at line 149 of file Type.h.
References DoubleTyID, and getTypeID().
Referenced by ConstantFoldBinaryFP(), llvm::ConstantFoldCall(), llvm::ConstantFoldCastInstruction(), ConstantFoldFP(), emitDebugValueComment(), emitGlobalConstantDataSequential(), llvm::EmitUnaryFloatFnCall(), llvm::ExecutionEngine::getConstantValue(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::ConstantDataSequential::isElementTypeCompatible(), 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 98 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::SelectionDAGBuilder::LowerCallOperands(), llvm::SelectionDAGBuilder::LowerCallTo(), and llvm::FunctionLoweringInfo::set().
|
inline |
isFirstClassType - Return true if the type is "first class", meaning it is a valid type for a Value.
Definition at line 251 of file Type.h.
References FunctionTyID, getTypeID(), and VoidTyID.
Referenced by canLosslesslyBitCastTo(), 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().
|
inline |
isFloatingPointTy - Return true if this is one of the six floating point types
Definition at line 162 of file Type.h.
References DoubleTyID, FloatTyID, FP128TyID, getTypeID(), HalfTyID, PPC_FP128TyID, and X86_FP80TyID.
Referenced by checkBinaryFloatSignature(), 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::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::ConstantFP::getZeroValueForNegation(), llvm::CastInst::isCastable(), llvm::CastInst::isEliminableCastPair(), isFPOrFPVectorTy(), isSized(), llvm::VectorType::isValidElementType(), and TryToShrinkGlobalToBoolean().
|
inline |
isFloatTy - Return true if this is 'float', a 32-bit IEEE fp type.
Definition at line 146 of file Type.h.
References FloatTyID, and getTypeID().
Referenced by ConstantFoldBinaryFP(), llvm::ConstantFoldCall(), llvm::ConstantFoldCastInstruction(), ConstantFoldFP(), emitDebugValueComment(), emitGlobalConstantDataSequential(), llvm::EmitUnaryFloatFnCall(), executeFCMP_ORD(), executeFCMP_UNO(), llvm::ExecutionEngine::getConstantValue(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::ConstantDataSequential::isElementTypeCompatible(), TypeToFloatSemantics(), llvm::InstCombiner::visitBitCast(), llvm::InstCombiner::visitFCmpInst(), llvm::InstCombiner::visitFPTrunc(), whichFPReturnVariant(), and WriteConstants().
|
inline |
isFP128Ty - Return true if this is 'fp128'.
Definition at line 155 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().
|
inline |
isFPOrFPVectorTy - Return true if this is a FP type or a vector of FP.
Definition at line 186 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::Constant::isNegativeZeroValue(), and llvm::InstCombiner::visitSelectInst().
|
inline |
isFunctionTy - True if this is an instance of FunctionType.
Definition at line 208 of file Type.h.
References FunctionTyID, and getTypeID().
Referenced by llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), and llvm::FunctionType::isValidReturnType().
|
inline |
isHalfTy - Return true if this is 'half', a 16-bit IEEE fp type.
Definition at line 143 of file Type.h.
References getTypeID(), and HalfTyID.
Referenced by ConstantFoldBinaryFP(), llvm::ConstantFoldCall(), llvm::ConstantFoldCastInstruction(), ConstantFoldFP(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and WriteConstants().
|
inline |
isIntegerTy - True if this is an instance of IntegerType.
Definition at line 196 of file Type.h.
References getTypeID(), and IntegerTyID.
Referenced by llvm::HexagonTargetLowering::allowTruncateForTailCall(), llvm::ARMTargetLowering::allowTruncateForTailCall(), llvm::X86TargetLowering::allowTruncateForTailCall(), canConvertValue(), llvm::CastInst::castIsValid(), CoerceAvailableValueToLoadType(), llvm::InstCombiner::commonCastTransforms(), llvm::ComputeMaskedBits(), llvm::ComputeMultiple(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::ConstantFoldBinaryInstruction(), llvm::ConstantFoldCompareInstruction(), ConstantFoldGetElementPtrImpl(), convertValue(), createCast(), dyn_castFoldableMul(), evaluateICmpRelation(), llvm::X86TargetLowering::ExpandInlineAsm(), 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(), getFalse(), llvm::ConstantInt::getFalse(), llvm::objcarc::GetFunctionClass(), llvm::ConstantExpr::getInsertElement(), llvm::ConstantExpr::getIntToPtr(), GetLinearExpression(), GetLoadValueForLoad(), getNaturalGEPWithOffset(), llvm::ScalarEvolution::getNoopOrAnyExtend(), llvm::ScalarEvolution::getNoopOrSignExtend(), llvm::ScalarEvolution::getNoopOrZeroExtend(), getOpenCLAlignment(), llvm::SCEVExpander::getOrInsertCanonicalInductionVariable(), llvm::NVPTXTargetLowering::getPrototype(), llvm::ConstantExpr::getPtrToInt(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::TargetLowering::getSingleConstraintMatchWeight(), GetStoreValueForLoad(), llvm::ConstantInt::getTrue(), getTrue(), llvm::ScalarEvolution::getTruncateOrNoop(), llvm::ScalarEvolution::getTruncateOrSignExtend(), llvm::ScalarEvolution::getTruncateOrZeroExtend(), llvm::ScalarEvolution::getTypeSizeInBits(), getUnderlyingObjectFromInt(), IdxCompare(), llvm::CompositeType::indexValid(), InstCombineLoadCast(), InstCombineStoreToCast(), llvm::isBytewiseValue(), llvm::CastInst::isCastable(), llvm::CastInst::isEliminableCastPair(), llvm::CastInst::isIntegerCast(), isIntegerTy(), isIntOrIntVectorTy(), llvm::ScalarEvolution::isSCEVable(), llvm::ConstantDataSequential::isString(), llvm::MSP430TargetLowering::isTruncateFree(), llvm::SystemZTargetLowering::isTruncateFree(), llvm::X86TargetLowering::isTruncateFree(), llvm::VectorType::isValidElementType(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), llvm::ConstantInt::isValueValidForType(), isVectorPromotionViableForSlice(), llvm::MSP430TargetLowering::isZExtFree(), llvm::X86TargetLowering::isZExtFree(), LowerBSWAP(), llvm::NVPTXTargetLowering::LowerCall(), LowerCTPOP(), llvm::NVPTXTargetLowering::LowerReturn(), llvm::IntrinsicLowering::LowerToByteSwap(), MatchSelectFromAndOr(), originalTypeIsF128(), llvm::SCEVExpander::replaceCongruentIVs(), llvm::JIT::runFunction(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), SimplifyAddInst(), SimplifyDiv(), SimplifyICmpInst(), SimplifyMulInst(), SimplifyRem(), SimplifySubInst(), SymbolicallyEvaluateGEP(), llvm::AttributeFuncs::typeIncompatible(), llvm::UnrollRuntimeLoopProlog(), llvm::InstCombiner::visitAdd(), llvm::InstCombiner::visitAnd(), llvm::InstCombiner::visitFMul(), llvm::InstCombiner::visitICmpInst(), llvm::InstCombiner::visitMul(), llvm::InstCombiner::visitOr(), llvm::InstCombiner::visitPHINode(), llvm::InstCombiner::visitSDiv(), llvm::InstCombiner::visitSelectInst(), llvm::InstCombiner::visitSRem(), llvm::InstCombiner::visitSub(), llvm::InstCombiner::visitXor(), llvm::InstCombiner::visitZExt(), and width_descending().
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().
|
inline |
isIntOrIntVectorTy - Return true if this is an integer type or a vector of integer types.
Definition at line 204 of file Type.h.
References getScalarType(), and isIntegerTy().
Referenced by llvm::CastInst::castIsValid(), llvm::ComputeMaskedBits(), llvm::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().
|
inline |
isLabelTy - Return true if this is 'label'.
Definition at line 189 of file Type.h.
References getTypeID(), and LabelTyID.
Referenced by llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), and llvm::FunctionType::isValidReturnType().
|
inline |
isMetadataTy - Return true if this is 'metadata'.
Definition at line 192 of file Type.h.
References getTypeID(), and MetadataTyID.
Referenced by llvm::StructType::isValidElementType(), llvm::ArrayType::isValidElementType(), llvm::PointerType::isValidElementType(), and llvm::FunctionType::isValidReturnType().
|
inline |
isPointerTy - True if this is an instance of PointerType.
Definition at line 220 of file Type.h.
References getTypeID(), and PointerTyID.
Referenced by BuildConstantFromSCEV(), canConvertValue(), canLosslesslyBitCastTo(), llvm::CastInst::castIsValid(), CoerceAvailableValueToLoadType(), llvm::ComputeMaskedBits(), 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(), getTypeIDForHash(), llvm::ScalarEvolution::getTypeSizeInBits(), llvm::GetUnderlyingObject(), getUnderlyingObjects(), InstCombineLoadCast(), InstCombineStoreToCast(), llvm::MemoryDependenceAnalysis::invalidateCachedPointerInfo(), llvm::CastInst::isCastable(), isCompatibleIVType(), isGEPKnownNonNull(), isInterestingPointer(), llvm::isKnownNonZero(), llvm::CastInst::isLosslessCast(), isNoopBitcast(), isPtrOrPtrVectorTy(), llvm::ScalarEvolution::isSCEVable(), isStridedPtr(), llvm::VectorType::isValidElementType(), llvm::NVPTXTargetLowering::LowerCall(), OptimizeOnceStoredGlobal(), llvm::PointerMayBeCaptured(), promoteSingleBlockAlloca(), llvm::MemoryDependenceAnalysis::removeInstruction(), llvm::SCEVExpander::replaceCongruentIVs(), rewriteSingleStoreAlloca(), llvm::JIT::runFunction(), 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().
|
inline |
isPPC_FP128Ty - Return true if this is powerpc long double.
Definition at line 158 of file Type.h.
References getTypeID(), and PPC_FP128TyID.
Referenced by llvm::ConstantFoldCastInstruction(), emitGlobalConstantFP(), llvm::Constant::getAllOnesValue(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and WriteConstants().
|
inline |
Here are some useful little methods to query what type derived types are Note that all other types can just compare to see if this == Type::xxxTy;
Definition at line 245 of file Type.h.
References getTypeID(), and LastPrimitiveTyID.
Referenced by getOpenCLAlignment(), llvm::NVPTXTargetLowering::getPrototype(), isSingleValueType(), and llvm::NVPTXTargetLowering::LowerCall().
|
inline |
isPtrOrPtrVectorTy - Return true if this is a pointer type or a vector of pointer types.
Definition at line 225 of file Type.h.
References getScalarType(), and isPointerTy().
Referenced by llvm::CastInst::castIsValid(), llvm::CastInst::CreatePointerCast(), llvm::ConstantExpr::getGetElementPtr(), llvm::DataLayout::getIntPtrType(), llvm::ConstantExpr::getPointerCast(), llvm::DataLayout::getPointerTypeSizeInBits(), InstCombineLoadCast(), isEliminableCastPair(), llvm::CastInst::isEliminableCastPair(), llvm::UpgradeBitCastExpr(), and llvm::UpgradeBitCastInst().
|
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 259 of file Type.h.
References getTypeID(), IntegerTyID, isPrimitiveType(), PointerTyID, VectorTyID, and VoidTyID.
Referenced by canConvertValue(), llvm::TargetLowering::ParseConstraints(), reduceToSingleValueType(), and stripAggregateTypeWrapping().
|
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.
Definition at line 278 of file Type.h.
References ArrayTyID, getTypeID(), IntegerTyID, isFloatingPointTy(), PointerTyID, StructTyID, VectorTyID, and X86_MMXTyID.
Referenced by computeArraySize(), llvm::ComputeMaskedBits(), DecomposeGEPExpression(), FoldReinterpretLoadFromConstPtr(), getIndexedTypeInternal(), getNaturalGEPWithOffset(), llvm::DataLayout::getTypeSizeInBits(), isSafeToEliminateVarargsCast(), llvm::isSafeToLoadUnconditionally(), llvm::AArch64TargetLowering::LowerGlobalAddressELFSmall(), llvm::TargetLowering::ParseConstraints(), SimplifyGEPInst(), SymbolicallyEvaluateGEP(), TryToOptimizeStoreOfMallocToGlobal(), llvm::ObjectSizeOffsetVisitor::visitAllocaInst(), llvm::InstCombiner::visitAllocaInst(), llvm::ObjectSizeOffsetEvaluator::visitAllocaInst(), and llvm::InstCombiner::visitGetElementPtrInst().
|
inline |
isStructTy - True if this is an instance of StructType.
Definition at line 212 of file Type.h.
References getTypeID(), and StructTyID.
Referenced by AnalyzeLoadFromClobberingLoad(), AnalyzeLoadFromClobberingStore(), AnalyzeLoadFromClobberingWrite(), CanCoerceMustAliasedValueToLoad(), llvm::ConstantFoldCastInstruction(), llvm::FindInsertedValue(), llvm::ConstantAggregateZero::get(), InstCombineStoreToCast(), llvm::SCEVUnknown::isOffsetOf(), llvm::Value::Value(), and llvm::InlineAsm::Verify().
|
inline |
isVectorTy - True if this is an instance of VectorType.
Definition at line 229 of file Type.h.
References getTypeID(), and VectorTyID.
Referenced by llvm::CastInst::castIsValid(), CollectShuffleElements(), llvm::ComputeMaskedBits(), llvm::FunctionLoweringInfo::ComputePHILiveOutRegInfo(), llvm::ConstantFoldCastInstruction(), llvm::ConstantFoldCompareInstruction(), convertValue(), llvm::CastInst::CreatePointerCast(), executeFCMP_BOOL(), executeFCMP_ONE(), executeFCMP_ORD(), executeFCMP_UNO(), executeSelectInst(), llvm::expandDivision(), llvm::expandDivisionUpTo32Bits(), llvm::expandRemainderUpTo32Bits(), 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(), llvm::CastInst::isEliminableCastPair(), llvm::ExtractElementInst::isValidOperands(), llvm::InsertElementInst::isValidOperands(), llvm::ShuffleVectorInst::isValidOperands(), llvm::NVPTXTargetLowering::LowerCall(), llvm::NVPTXTargetLowering::LowerFormalArguments(), matchPairwiseReductionAtLevel(), stripAndComputeConstantOffsets(), ThreadCmpOverSelect(), 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().
|
inline |
isVoidTy - Return true if this is 'void'.
Definition at line 140 of file Type.h.
References getTypeID(), and VoidTyID.
Referenced by llvm::AllocaInst::AllocaInst(), llvm::ComputeValueVTs(), createMalloc(), 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::JIT::runFunction(), llvm::MCJIT::runFunction(), llvm::ExecutionEngine::runFunctionAsMain(), llvm::UnifyFunctionExitNodes::runOnFunction(), llvm::Value::Value(), and llvm::InlineAsm::Verify().
|
inline |
isX86_FP80Ty - Return true if this is x86 long double.
Definition at line 152 of file Type.h.
References getTypeID(), and X86_FP80TyID.
Referenced by llvm::ConstantFoldCastInstruction(), llvm::ExecutionEngine::getConstantValue(), TypeToFloatSemantics(), llvm::InstCombiner::visitFCmpInst(), and WriteConstants().
|
inline |
isX86_MMXTy - Return true if this is X86 MMX.
Definition at line 182 of file Type.h.
References getTypeID(), and X86_MMXTyID.
Referenced by llvm::ConstantFoldCastInstruction(), FoldBitCast(), llvm::CastInst::getCastOpcode(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::CastInst::isBitCastable(), and llvm::CastInst::isCastable().
void Type::print | ( | raw_ostream & | O | ) | const |
Definition at line 2146 of file AsmWriter.cpp.
References llvm::TypePrinting::print(), and llvm::TypePrinting::printStructBody().
Referenced by dump(), emitGlobalConstantFP(), and llvm::operator<<().
|
inlineprotected |
Definition at line 106 of file Type.h.
References getSubclassData().
Referenced by llvm::StructType::get(), llvm::IntegerType::IntegerType(), llvm::StructType::isSized(), and llvm::StructType::setBody().
|
inlineprotected |
|
inline |
Definition at line 324 of file Type.h.
References ContainedTys.
Referenced by llvm::GraphTraits< Type * >::child_begin(), llvm::GraphTraits< const Type * >::child_begin(), and subtype_rend().
|
inline |
Definition at line 325 of file Type.h.
References ContainedTys, and NumContainedTys.
Referenced by llvm::GraphTraits< Type * >::child_end(), llvm::GraphTraits< const Type * >::child_end(), and subtype_rbegin().
|
inline |
Definition at line 328 of file Type.h.
References subtype_end().
|
inline |
Definition at line 331 of file Type.h.
References subtype_begin().
|
friend |
|
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 121 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(), subtype_end(), and llvm::StructType::~StructType().
|
protected |
NumContainedTys - Keeps track of how many Type*'s there are in the ContainedTys list.
Definition at line 114 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().