| /freebsd-9-stable/contrib/llvm/lib/Transforms/ObjCARC/ |
| D | ObjCARCUtil.cpp | 98 Type *ETy = PTy->getElementType(); in GetFunctionClass() 121 if (Pte->getElementType()->isIntegerTy(8)) in GetFunctionClass() 133 if (PointerType *Pte = dyn_cast<PointerType>(PTy->getElementType())) in GetFunctionClass() 134 if (Pte->getElementType()->isIntegerTy(8)) in GetFunctionClass() 136 Type *ETy1 = PTy1->getElementType(); in GetFunctionClass() 146 if (Pte1->getElementType()->isIntegerTy(8)) in GetFunctionClass()
|
| /freebsd-9-stable/contrib/llvm/tools/clang/lib/AST/ |
| D | TypePrinter.cpp | 315 printBefore(T->getElementType(), OS); in printComplexBefore() 318 printAfter(T->getElementType(), OS); in printComplexAfter() 428 printBefore(T->getElementType(), OS); in printConstantArrayBefore() 433 printAfter(T->getElementType(), OS); in printConstantArrayAfter() 440 printBefore(T->getElementType(), OS); in printIncompleteArrayBefore() 445 printAfter(T->getElementType(), OS); in printIncompleteArrayAfter() 452 printBefore(T->getElementType(), OS); in printVariableArrayBefore() 471 printAfter(T->getElementType(), OS); in printVariableArrayAfter() 487 printBefore(T->getElementType(), OS); in printDependentSizedArrayBefore() 496 printAfter(T->getElementType(), OS); in printDependentSizedArrayAfter() [all …]
|
| D | Type.cpp | 59 getElementType().getBaseTypeIdentifier(); in getBaseTypeIdentifier() 71 return AT->getElementType().isConstant(Ctx); in isConstant() 201 return ATy->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual() 210 ->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual() 400 return CT->getElementType()->isFloatingType(); in isComplexType() 411 if (Complex->getElementType()->isIntegerType()) in getAsComplexIntegerType() 578 return Visit(T->getElementType()); in VisitArrayType() 582 return Visit(T->getElementType()); in VisitDependentSizedExtVectorType() 585 return Visit(T->getElementType()); in VisitVectorType() 605 return VT->getElementType()->isIntegerType(); in hasIntegerRepresentation() [all …]
|
| D | StmtIterator.cpp | 27 t = vt->getElementType().getTypePtr(); in FindVA() 37 p = FindVA(p->getElementType().getTypePtr()); in NextVA()
|
| /freebsd-9-stable/contrib/llvm/lib/IR/ |
| D | Type.cpp | 47 return VTy->getElementType(); in getScalarType() 53 return VTy->getElementType(); in getScalarType() 102 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy() 109 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy() 144 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth() 163 return ATy->getElementType()->isSized(); in isSizedDerivedType() 166 return VTy->getElementType()->isSized(); in isSizedDerivedType() 203 return cast<StructType>(this)->getElementType(N); in getStructElementType() 207 return cast<SequentialType>(this)->getElementType(); in getSequentialElementType() 632 return STy->getElementType(Idx); in getTypeAtIndex() [all …]
|
| D | ConstantFold.cpp | 56 Type *DstEltTy = DstTy->getElementType(); in BitCastConstantVector() 110 && DPTy->getElementType()->isSized()) { in FoldBitCast() 115 Type *ElTy = PTy->getElementType(); in FoldBitCast() 116 while (ElTy != DPTy->getElementType()) { in FoldBitCast() 119 ElTy = STy->getElementType(0); in FoldBitCast() 124 ElTy = STy->getElementType(); in FoldBitCast() 131 if (ElTy == DPTy->getElementType()) in FoldBitCast() 341 Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true); in getFoldedSizeOf() 353 getFoldedSizeOf(STy->getElementType(0), DestTy, true); in getFoldedSizeOf() 357 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) { in getFoldedSizeOf() [all …]
|
| D | Instructions.cpp | 68 if (VT->getElementType() != Type::getInt1Ty(Op0->getContext())) in areInvalidOperands() 272 cast<FunctionType>(cast<PointerType>(Func->getType())->getElementType()); in init() 294 cast<FunctionType>(cast<PointerType>(Func->getType())->getElementType()); in init() 305 ->getElementType())->getReturnType(), in CallInst() 315 ->getElementType())->getReturnType(), in CallInst() 540 cast<FunctionType>(cast<PointerType>(Fn->getType())->getElementType()); in init() 907 return getType()->getElementType(); in getAllocatedType() 934 : UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(), in LoadInst() 944 : UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(), in LoadInst() 955 : UnaryInstruction(cast<PointerType>(Ptr->getType())->getElementType(), in LoadInst() [all …]
|
| D | DataLayout.cpp | 52 Type *Ty = ST->getElementType(i); in StructLayout() 393 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo() 545 return getAlignment(cast<ArrayType>(Ty)->getElementType(), abi_or_pref); in getAlignment() 662 Ty = STy->getElementType(FieldNo); in getIndexedOffset() 665 Ty = cast<SequentialType>(Ty)->getElementType(); in getIndexedOffset() 680 Type *ElemType = GV->getType()->getElementType(); in getPreferredAlignment()
|
| D | Verifier.cpp | 440 Assert1(GVar && GVar->getType()->getElementType()->isArrayTy(), in visitGlobalValue() 447 Assert1(GV.getInitializer()->getType() == GV.getType()->getElementType(), in visitGlobalVariable() 472 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); in visitGlobalVariable() 486 Type *GVType = GV.getType()->getElementType(); in visitGlobalVariable() 488 PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType()); in visitGlobalVariable() 860 PTy->getElementType()->isSized(), in VerifyParameterAttrs() 1510 Assert1(FPTy->getElementType()->isFunctionTy(), in VerifyCallSite() 1512 FunctionType *FTy = cast<FunctionType>(FPTy->getElementType()); in VerifyCallSite() 1726 Assert1(cast<PointerType>(TargetTy)->getElementType()->isSized(), in visitGetElementPtrInst() 1738 cast<PointerType>(GEP.getType()->getScalarType())->getElementType() in visitGetElementPtrInst() [all …]
|
| /freebsd-9-stable/contrib/llvm/utils/TableGen/ |
| D | TGValueTypes.cpp | 73 return getNumElements() * getElementType().getSizeInBits(); in getSizeInBits() 75 EVT getElementType() const { in getElementType() function in __anoncd8ad5080111::ExtendedVectorType 117 return static_cast<const ExtendedVectorType *>(LLVMTy)->getElementType(); in getExtendedVectorElementType()
|
| /freebsd-9-stable/contrib/llvm/include/llvm/IR/ |
| D | DerivedTypes.h | 287 Type *getElementType(unsigned N) const { in getElementType() function 319 Type *getElementType() const { return ContainedTys[0]; } in getElementType() function 375 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 386 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType() 396 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType() 413 return NumElements * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
|
| /freebsd-9-stable/contrib/llvm/lib/Analysis/ |
| D | Loads.cpp | 75 BaseType = GV->getType()->getElementType(); in isSafeToLoadUnconditionally() 90 uint64_t LoadSize = TD->getTypeStoreSize(AddrTy->getElementType()); in isSafeToLoadUnconditionally() 149 Type *AccessTy = cast<PointerType>(Ptr->getType())->getElementType(); in FindAvailableLoadedValue()
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/Scalar/ |
| D | ScalarReplAggregates.cpp | 424 (!VectorTy || EltSize == VectorTy->getElementType() in MergeInTypeForLoadOrStore() 513 if (!isa<VectorType>(PtrTy->getElementType())) in CanConvertToScalar() 705 AIPTy = PointerType::get(AIPTy->getElementType(), in ConvertUsesToScalar() 722 AIPTy = PointerType::get(AIPTy->getElementType(), in ConvertUsesToScalar() 781 unsigned EltSize = TD.getTypeAllocSizeInBits(VTy->getElementType()); in ConvertScalar_ExtractValue() 810 Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i), in ConvertScalar_ExtractValue() 821 uint64_t EltSize = TD.getTypeAllocSizeInBits(AT->getElementType()); in ConvertScalar_ExtractValue() 824 Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(), in ConvertScalar_ExtractValue() 914 Type *EltTy = VTy->getElementType(); in ConvertScalar_InsertValue() 949 uint64_t EltSize = TD.getTypeAllocSizeInBits(AT->getElementType()); in ConvertScalar_InsertValue() [all …]
|
| D | GlobalMerge.cpp | 129 Type *Ty1 = cast<PointerType>(GV1->getType())->getElementType(); in operator ()() 130 Type *Ty2 = cast<PointerType>(GV2->getType())->getElementType(); in operator ()() 164 Type *Ty = Globals[j]->getType()->getElementType(); in doMerge() 256 Type *Ty = I->getType()->getElementType(); in doInitialization()
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineCalls.cpp | 43 T = STy->getElementType(0); in reduceToSingleValueType() 48 T = ATy->getElementType(); in reduceToSingleValueType() 105 ->getElementType(); in SimplifyMemTransfer() 669 unsigned NewWidth = NewVT->getElementType()->getIntegerBitWidth(); in visitCallInst() 682 ConstantInt::get(NewVT->getElementType(), CV0E * CV1E)); in visitCallInst() 777 cast<PointerType>(CI->getOperand(0)->getType())->getElementType(); in isSafeToEliminateVarargsCast() 778 Type* DstTy = cast<PointerType>(CI->getType())->getElementType(); in isSafeToEliminateVarargsCast() 944 FunctionType *FTy = cast<FunctionType>(PTy->getElementType()); in visitCallSite() 1057 if (ParamPTy == 0 || !ParamPTy->getElementType()->isSized() || TD == 0) in transformConstExprCastCall() 1062 TD->getTypeAllocSize(ParamPTy->getElementType())) in transformConstExprCastCall() [all …]
|
| D | InstCombineLoadStoreAlloca.cpp | 289 Type *DestPTy = DestTy->getElementType(); in InstCombineLoadCast() 296 Type *SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast() 313 SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast() 457 Type *DestPTy = cast<PointerType>(CI->getType())->getElementType(); in InstCombineStoreToCast() 461 Type *SrcPTy = SrcTy->getElementType(); in InstCombineStoreToCast() 485 SrcPTy = STy->getElementType(0); in InstCombineStoreToCast() 488 SrcPTy = ATy->getElementType(); in InstCombineStoreToCast()
|
| /freebsd-9-stable/contrib/llvm/lib/ExecutionEngine/ |
| D | ExecutionEngine.cpp | 90 Type *ElTy = GV->getType()->getElementType(); in Create() 559 Type *ElemTy = STy->getElementType(i); in getConstantValue() 574 const Type *ElemTy = VTy->getElementType(); in getConstantValue() 871 ElemTy = CDV->getElementType(); in getConstantValue() 875 ElemTy = VTy->getElementType(); in getConstantValue() 948 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue() 1022 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) in StoreValueToMemory() 1024 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) in StoreValueToMemory() 1026 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) { in StoreValueToMemory() 1099 const Type *ElemT = VT->getElementType(); in LoadValueFromMemory() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Linker/ |
| D | LinkModules.cpp | 222 Elements[i] = getImpl(SrcSTy->getElementType(i)); in linkDefinedTypeBodies() 620 ArrayType *DAT = cast<ArrayType>(DGV->getType()->getElementType()); in computeTypeMapping() 621 ArrayType *SAT = cast<ArrayType>(I->getType()->getElementType()); in computeTypeMapping() 622 TypeMap.addTypeMapping(DAT->getElementType(), SAT->getElementType()); in computeTypeMapping() 690 ArrayType *DstTy = cast<ArrayType>(DstGV->getType()->getElementType()); in linkAppendingVarProto() 692 cast<ArrayType>(TypeMap.get(SrcGV->getType()->getElementType())); in linkAppendingVarProto() 693 Type *EltTy = DstTy->getElementType(); in linkAppendingVarProto() 696 if (EltTy != SrcTy->getElementType()) in linkAppendingVarProto() 799 new GlobalVariable(*DstM, TypeMap.get(SGV->getType()->getElementType()), in linkGlobalProto() 943 ArrayType *NewType = cast<ArrayType>(AVI.NewGV->getType()->getElementType()); in linkAppendingVarInit()
|
| /freebsd-9-stable/contrib/llvm/tools/clang/lib/CodeGen/ |
| D | CodeGenTypes.cpp | 169 return isSafeToConvert(AT->getElementType(), CGT, AlreadyChecked); in isSafeToConvert() 403 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() 433 ResultType = ConvertTypeForMem(A->getElementType()); in ConvertType() 442 ResultType = ConvertTypeForMem(A->getElementType()); in ConvertType() 452 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() 467 ResultType = llvm::VectorType::get(ConvertType(VT->getElementType()), in ConvertType()
|
| D | CGCall.cpp | 508 GetExpandedTypes(AT->getElementType(), expandedTypes); in GetExpandedTypes() 541 llvm::Type *EltTy = ConvertType(CT->getElementType()); in GetExpandedTypes() 556 QualType EltTy = AT->getElementType(); in ExpandTypeFromArgs() 598 QualType EltTy = CT->getElementType(); in ExpandTypeFromArgs() 622 llvm::Type *FirstElt = SrcSTy->getElementType(0); in EnterStructPointerForCoercedAccess() 637 cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); in EnterStructPointerForCoercedAccess() 707 cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); in CreateCoercedLoad() 717 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); in CreateCoercedLoad() 795 cast<llvm::PointerType>(DstPtr->getType())->getElementType(); in CreateCoercedStore() 805 DstTy = cast<llvm::PointerType>(DstPtr->getType())->getElementType(); in CreateCoercedStore() [all …]
|
| D | CGExprComplex.cpp | 201 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitCXXScalarValueInitExpr() 207 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitImplicitValueInitExpr() 359 CGF.ConvertType(getComplexType(E->getType())->getElementType()); in VisitExpr() 391 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 392 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 406 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast() 611 if (Op.Ty->castAs<ComplexType>()->getElementType()->isUnsignedIntegerType()) { in EmitBinDiv() 806 QualType Ty = E->getType()->castAs<ComplexType>()->getElementType(); in VisitInitListExpr() 819 CGF.ConvertType(E->getType()->castAs<ComplexType>()->getElementType()); in VisitVAArgExpr()
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/IPO/ |
| D | ArgumentPromotion.cpp | 155 Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType(); in PromoteArguments() 171 if (!STy->getElementType(i)->isSingleValueType()) { in PromoteArguments() 193 if (STy->getElementType(i) == PtrArg->getType()) { in PromoteArguments() 528 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in DoPromotion() 531 Params.push_back(STy->getElementType(i)); in DoPromotion() 660 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in DoPromotion() 790 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in DoPromotion()
|
| D | GlobalOpt.cpp | 116 Types.push_back(cast<PointerType>(GV->getType())->getElementType()); in isLeakCheckerRoot() 127 Types.push_back(STy->getElementType()); in isLeakCheckerRoot() 325 SubInit = Constant::getNullValue(GEP->getType()->getElementType()); in CleanupConstantGlobalUsers() 492 GlobalVariable *NGV = new GlobalVariable(STy->getElementType(i), false, in SRAGlobal() 505 if (NewAlign > TD.getABITypeAlignment(STy->getElementType(i))) in SRAGlobal() 519 uint64_t EltSize = TD.getTypeAllocSize(STy->getElementType()); in SRAGlobal() 520 unsigned EltAlign = TD.getABITypeAlignment(STy->getElementType()); in SRAGlobal() 525 GlobalVariable *NGV = new GlobalVariable(STy->getElementType(), false, in SRAGlobal() 874 if (NewGV->getType() != GV->getType()->getElementType()) in OptimizeGlobalAddressOfMalloc() 876 GV->getType()->getElementType()); in OptimizeGlobalAddressOfMalloc() [all …]
|
| /freebsd-9-stable/contrib/llvm/lib/Target/NVPTX/ |
| D | NVPTXGenericToNVVM.cpp | 91 M, GV->getType()->getElementType(), GV->isConstant(), in runOnModule() 172 EVT ExtendedGVType = EVT::getEVT(GVType->getElementType(), true); in getOrInsertCVTA() 191 PointerType::get(GVType->getElementType(), llvm::ADDRESS_SPACE_GENERIC); in getOrInsertCVTA() 196 ParamTypes.push_back(PointerType::get(GVType->getElementType(), in getOrInsertCVTA()
|
| /freebsd-9-stable/contrib/llvm/lib/Transforms/Utils/ |
| D | CloneModule.cpp | 48 I->getType()->getElementType(), in CloneModule() 61 Function::Create(cast<FunctionType>(I->getType()->getElementType()), in CloneModule()
|