reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/TargetTransformInfoImpl.h
  912       DstTy = VectorTy->getElementType();
include/llvm/CodeGen/BasicTTIImpl.h
  817                                                     VecTy->getElementType());
  917     VectorType *SubVT = VectorType::get(VT->getElementType(), NumSubElts);
include/llvm/CodeGen/TargetLowering.h
 1244       Type *EltTy = VTy->getElementType();
 1263       Type *Elm = VTy->getElementType();
include/llvm/IR/DataLayout.h
  634            getTypeAllocSizeInBits(ATy->getElementType());
  660                         getTypeSizeInBits(VTy->getElementType()).getFixedSize();
include/llvm/IR/DerivedTypes.h
  469     unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
  479     auto *EltTy = cast<IntegerType>(VTy->getElementType());
  488     if (VTy->getElementType()->isFloatingPointTy()) {
  489       switch(VTy->getElementType()->getTypeID()) {
  500       unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
  525     return VectorType::get(VTy->getElementType(), EltCnt/2);
  534     return VectorType::get(VTy->getElementType(), EltCnt*2);
  557     return getNumElements() * getElementType()->getPrimitiveSizeInBits();
include/llvm/IR/GetElementPtrTypeIterator.h
   79         CurTy = STy->getElementType();
lib/Analysis/BasicAliasAnalysis.cpp
 1160         DL.getTypeStoreSize(cast<SequentialType>(Ty)->getElementType());
lib/Analysis/ConstantFolding.cpp
  110       Type *SrcEltTy = VTy->getElementType();
  158   Type *DstEltTy = DestVTy->getElementType();
  934         Ty = ATy->getElementType();
 2398   Type *Ty = VTy->getElementType();
lib/Analysis/ModuleSummaryAnalysis.cpp
  517     Type *EltTy = ATy->getElementType();
lib/Analysis/ScalarEvolution.cpp
 3519       CurTy = cast<SequentialType>(CurTy)->getElementType();
lib/Analysis/ScalarEvolutionExpander.cpp
  498       ElTy = ATy->getElementType();
lib/Analysis/TypeMetadataUtils.cpp
  151     uint64_t ElemSize = DL.getTypeAllocSize(VTableTy->getElementType());
lib/Analysis/ValueTracking.cpp
 3462   if (!AT || !AT->getElementType()->isIntegerTy(CharSize))
 3535   if (!ArrayTy->getElementType()->isIntegerTy(ElementSize))
lib/Analysis/VectorUtils.cpp
  266     return UndefValue::get(VTy->getElementType());
  291       return UndefValue::get(VTy->getElementType());
lib/Bitcode/Reader/BitcodeReader.cpp
 2442         Type *EltTy = ATy->getElementType();
 2447         Type *EltTy = VTy->getElementType();
 2470       Type *EltTy = cast<SequentialType>(CurTy)->getElementType();
 2672                                                   OpTy->getElementType());
 4108         if (vector_type->getElementType() != Type::getInt1Ty(Context))
 4148                    cast<VectorType>(Vec->getType())->getElementType(), Elt) ||
lib/Bitcode/Writer/BitcodeWriter.cpp
  944       TypeVals.push_back(VE.getTypeID(AT->getElementType()));
  954       TypeVals.push_back(VE.getTypeID(VT->getElementType()));
 2413       Type *EltTy = CDS->getType()->getElementType();
lib/CodeGen/Analysis.cpp
   58     Type *EltTy = ATy->getElementType();
  101     Type *EltTy = ATy->getElementType();
  141     Type *EltTy = ATy->getElementType();
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1995   StructType *ETy = dyn_cast<StructType>(InitList->getType()->getElementType());
 2407   unsigned EmittedSize = DL.getTypeAllocSize(CDS->getType()->getElementType()) *
 2439   unsigned EmittedSize = DL.getTypeAllocSize(CV->getType()->getElementType()) *
lib/CodeGen/InterleavedLoadCombinePass.cpp
  694     unsigned Size = DL.getTypeAllocSize(VTy->getElementType());
  746     unsigned NewSize = DL.getTypeAllocSize(Result.VTy->getElementType());
  747     unsigned OldSize = DL.getTypeAllocSize(VTy->getElementType());
 1058     unsigned Size = DL.getTypeAllocSize(C0->VTy->getElementType());
 1200   Type *ETy = InterleavedLoad.front().SVI->getType()->getElementType();
lib/CodeGen/LowLevelType.cpp
   23     LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL);
lib/CodeGen/MachineVerifier.cpp
 1413     if (!MaskVT || !MaskVT->getElementType()->isIntegerTy(32)) {
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  135   Type *EltTy = VecType->getElementType();
  273   Type *EltTy = VecType->getElementType();
  396   Type *EltTy = VecType->getElementType();
  605   Type *EltTy = VecType->getElementType();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1541           TLI.getValueType(DAG.getDataLayout(), VecTy->getElementType());
lib/CodeGen/StackProtector.cpp
  118     if (!AT->getElementType()->isIntegerTy(8)) {
lib/CodeGen/ValueTypes.cpp
   96   return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType());
  468       getVT(VTy->getElementType(), /*HandleUnknown=*/ false),
  486                        getEVT(VTy->getElementType(), /*HandleUnknown=*/ false),
lib/ExecutionEngine/ExecutionEngine.cpp
  630       Type *ElemTy = VTy->getElementType();
  930         ElemTy = VTy->getElementType();
 1051       if (cast<VectorType>(Ty)->getElementType()->isDoubleTy())
 1053       if (cast<VectorType>(Ty)->getElementType()->isFloatTy())
 1055       if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) {
 1101     Type *ElemT = VT->getElementType();
 1140         getDataLayout().getTypeAllocSize(CP->getType()->getElementType());
 1153         getDataLayout().getTypeAllocSize(CPA->getType()->getElementType());
lib/ExecutionEngine/Interpreter/Execution.cpp
   77       if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
   80       } else if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) {
  592     if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
  623     if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) {
  801       if (cast<VectorType>(Ty)->getElementType()->isFloatTy())
  806         if (cast<VectorType>(Ty)->getElementType()->isDoubleTy())
 1841   Type *TyContained = Ty->getElementType();
 1878   Type *TyContained = Ty->getElementType();
lib/FuzzMutate/Operations.cpp
  224       return V->getType() == ArrayT->getElementType();
  234       return makeConstantsWithType(ArrayT->getElementType());
lib/IR/AsmWriter.cpp
  619     print(ATy->getElementType(), OS);
  629     print(PTy->getElementType(), OS);
 1398     Type *ETy = CA->getType()->getElementType();
 1426     Type *ETy = CA->getType()->getElementType();
lib/IR/AutoUpgrade.cpp
  567       if (ArgTy && ArgTy->getElementType()->isFloatingPointTy()) {
  845   StructType *STy = dyn_cast<StructType>(ATy->getElementType());
 1680       Type *SrcEltTy = cast<VectorType>(Arg1->getType())->getElementType();
lib/IR/ConstantFold.cpp
   57   Type *DstEltTy = DstTy->getElementType();
  124             ElTy = STy->getElementType();
  356     Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true);
  412     Constant *C = ConstantExpr::getAlignOf(ATy->getElementType());
  478     Constant *E = getFoldedSizeOf(ATy->getElementType(), DestTy, true);
  577     Type *DstEltTy = DestVecTy->getElementType();
 1390     return isMaybeZeroSizedType(ATy->getElementType());
 2320             && SrcArrayTy->getElementType() == DstArrayTy->getElementType()
 2320             && SrcArrayTy->getElementType() == DstArrayTy->getElementType()
lib/IR/Constants.cpp
  356                                   getAllOnesValue(VTy->getElementType()));
 1026     assert(V[i]->getType() == Ty->getElementType() &&
 2434   return getType()->getElementType();
lib/IR/ConstantsContext.h
  107     : ConstantExpr(cast<VectorType>(C1->getType())->getElementType(),
  151                    cast<VectorType>(C1->getType())->getElementType(),
lib/IR/Core.cpp
  759   return wrap(cast<SequentialType>(Ty)->getElementType());
lib/IR/DataLayout.cpp
  561         getTypeAllocSize(cast<VectorType>(Ty)->getElementType());
  716     return getAlignment(cast<ArrayType>(Ty)->getElementType(), abi_or_pref);
lib/IR/Function.cpp
  595       getMangledTypeStr(ATyp->getElementType());
 1028       return VTy->getElementType();
 1149              matchIntrinsicType(VT->getElementType(), Infos, ArgTys,
 1268               ThisArgType->getElementType() != ReferenceType->getElementType());
 1307       return !ReferenceType || Ty != ReferenceType->getElementType();
lib/IR/IRBuilder.cpp
  526   auto PtrTy = cast<PointerType>(PtrsTy->getElementType());
  560   auto PtrTy = cast<PointerType>(PtrsTy->getElementType());
  562          PtrTy->getElementType() == DataTy->getElementType() &&
lib/IR/Instructions.cpp
   88     if (VT->getElementType() != Type::getInt1Ty(Op0->getContext()))
 1707   : Instruction(cast<VectorType>(Val->getType())->getElementType(),
 1721   : Instruction(cast<VectorType>(Val->getType())->getElementType(),
 1777   if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType())
 1792 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
 1809 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
 1851   if (!MaskTy || !MaskTy->getElementType()->isIntegerTy(32))
 2978         SrcTy = SrcVecTy->getElementType();
 2979         DestTy = DestVecTy->getElementType();
 3033         SrcTy = SrcVecTy->getElementType();
 3034         DestTy = DestVecTy->getElementType();
 3101         SrcTy = SrcVecTy->getElementType();
 3102         DestTy = DestVecTy->getElementType();
lib/IR/SafepointIRVerifier.cpp
  268     return containsGCPtrType(AT->getElementType());
lib/IR/Type.cpp
  101     return NumElements == 0 || ATy->getElementType()->isEmptyTy();
  140     return VTy->getElementType()->getFPMantissaWidth();
  153     return ATy->getElementType()->isSized(Visited);
  156     return VTy->getElementType()->isSized(Visited);
  544   return cast<SequentialType>(this)->getElementType();
  553   return cast<SequentialType>(this)->getElementType();
lib/IR/Verifier.cpp
  644       StructType *STy = dyn_cast<StructType>(ATy->getElementType());
  669       PointerType *PTy = dyn_cast<PointerType>(ATy->getElementType());
lib/Linker/IRMover.cpp
  757     TypeMap.addTypeMapping(DAT->getElementType(), SAT->getElementType());
  757     TypeMap.addTypeMapping(DAT->getElementType(), SAT->getElementType());
  843                     ->getElementType();
  878     if (EltTy != DstTy->getElementType())
lib/Target/AArch64/AArch64ISelLowering.cpp
 8757   unsigned ElSize = DL.getTypeSizeInBits(VecTy->getElementType());
lib/Target/AArch64/AArch64StackTagging.cpp
  255       Type *EltTy = VecTy->getElementType();
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  408   auto *Src = VecTy->getElementType();
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  207   return cast<VectorType>(T)->getElementType()->getIntegerBitWidth();
  239     return needsPromotionToI32(VT->getElementType());
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
  190     auto ElTy = VecTy->getElementType();
  631     auto ElTy = VecTy->getElementType();
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  892     eltType = VTy->getElementType();
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  299   return VectorType::get(ArrayTy->getElementType(),
  377       !VectorType::isValidElementType(AllocaTy->getElementType())) {
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  219   return DL->getTypeSizeInBits(VT0->getElementType()) ==
  220          DL->getTypeSizeInBits(VT1->getElementType());
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  498       = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
  653         DL.getTypeSizeInBits(VT->getElementType()) == 16) {
  810       = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
lib/Target/AMDGPU/SIISelLowering.cpp
  872     ElementType = VecComponent->getElementType();
lib/Target/ARM/ARMISelLowering.cpp
16700   unsigned ElSize = DL.getTypeSizeInBits(VecTy->getElementType());
16705   if (VecTy->getElementType()->isHalfTy())
17005     if (!isHomogeneousAggregate(AT->getElementType(), Base, SubMembers))
lib/Target/ARM/ARMTargetTransformInfo.cpp
  505     if (VecWidth != 128 && VecTy->getElementType()->isFloatingPointTy())
lib/Target/BPF/BPFISelDAGToDAG.cpp
  360       total_size = DL.getTypeAllocSize(CA->getType()->getElementType()) *
lib/Target/Hexagon/HexagonCommonGEP.cpp
  208       Type *NexTy = cast<SequentialType>(Ty)->getElementType();
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  309     return getSmallestAddressableSize(ATy->getElementType(), GV, TM);
  313     return getSmallestAddressableSize(PTy->getElementType(), GV, TM);
lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
   51   if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy())
  184         VecTy->getElementType()->isFloatingPointTy() ? FloatFactor : 1;
  267   Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType()
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1382     return getOpenCLAlignment(DL, ATy->getElementType());
lib/Target/PowerPC/PPCISelLowering.cpp
 1257     getMaxByValAlign(ATy->getElementType(), EltAlign, MaxMaxAlign);
lib/Target/TargetLoweringObjectFile.cpp
  194               dyn_cast<IntegerType>(ATy->getElementType())) {
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
   72   auto *ETy = dyn_cast<StructType>(InitList->getType()->getElementType());
lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
   66                 getArithmeticInstrCost(Opcode, VTy->getElementType()) +
lib/Target/X86/X86ISelLowering.cpp
 2036     getMaxByValAlign(ATy->getElementType(), EltAlign);
lib/Transforms/IPO/ArgumentPromotion.cpp
  792     return isDenselyPacked(seqTy->getElementType(), DL);
lib/Transforms/IPO/DeadArgumentElimination.cpp
  349     return ATy->getElementType();
lib/Transforms/IPO/GlobalOpt.cpp
  134         Types.push_back(STy->getElementType());
  514     auto ElTy = STy->getElementType();
  522       GlobalVariable *NGV = new GlobalVariable(STy->getElementType(), false,
 1525       AllocTy = AT->getElementType();
lib/Transforms/InstCombine/InstCombineCalls.cpp
  369     unsigned BitWidth = VT->getElementType()->getPrimitiveSizeInBits();
  386   auto SVT = VT->getElementType();
 1411   if (!VecTy->getElementType()->isIntegerTy(8) || NumElts != 8)
lib/Transforms/InstCombine/InstCombineCasts.cpp
  481   if (VecType->getElementType() != DestType) {
 1834   if (SrcTy->getElementType() != DestTy->getElementType()) {
 1834   if (SrcTy->getElementType() != DestTy->getElementType()) {
 1839     if (SrcTy->getElementType()->getPrimitiveSizeInBits() !=
 1840         DestTy->getElementType()->getPrimitiveSizeInBits())
 1843     SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements());
 2013                                 DestVecTy->getElementType(),
 2363       Value *Elem = Builder.CreateBitCast(Src, DestVTy->getElementType());
lib/Transforms/InstCombine/InstCombineCompares.cpp
  185       EltTy = ATy->getElementType();
 2801       auto *EltTy = cast<IntegerType>(VecTy->getElementType());
 4406       SrcTy = cast<VectorType>(SrcTy)->getElementType();
 4407       DestTy = cast<VectorType>(DestTy)->getElementType();
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  698     auto *ET = AT->getElementType();
  736           AT->getElementType(), Ptr, MinAlign(Align, Offset), Name + ".unpack");
 1110       if (EltT != UT->getElementType())
 1244     auto EltSize = DL.getTypeAllocSize(AT->getElementType());
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1116     Type *EltTy = cast<VectorType>(V->getType())->getElementType();
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  531   if (InsVecType->getElementType() != ExtVecType->getElementType() ||
  531   if (InsVecType->getElementType() != ExtVecType->getElementType() ||
 1013         Values[I] = UndefValue::get(InsElt.getType()->getElementType());
 2001     unsigned SrcElemBitWidth = DL.getTypeSizeInBits(SrcTy->getElementType());
lib/Transforms/InstCombine/InstructionCombining.cpp
  806     if (C->getType()->getElementType()->isIntegerTy())
 1136       uint64_t EltSize = DL.getTypeAllocSize(AT->getElementType());
 1140       Ty = AT->getElementType();
 1981         if (CATy->getElementType() == StrippedPtrEltTy) {
 2000           if (CATy->getElementType() == XATy->getElementType()) {
 2000           if (CATy->getElementType() == XATy->getElementType()) {
 2874           Constant::getNullValue(FilterType->getElementType());
 2939         FilterType = ArrayType::get(FilterType->getElementType(),
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1347       uint32_t EltSize = DL.getTypeSizeInBits(VT->getElementType());
 1352       return ArrayType::get(getShadowTy(AT->getElementType()),
 1548                                       getPoisonedShadow(AT->getElementType()));
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  332     if (isGCPointerType(VT->getElementType()))
  346     return containsGCPtrType(AT->getElementType());
lib/Transforms/Scalar/SROA.cpp
 1439       ElementTy = ArrayTy->getElementType();
 1442       ElementTy = VectorTy->getElementType();
 1492     return getNaturalGEPRecursively(IRB, DL, Ptr, VecTy->getElementType(),
 1497     Type *ElementTy = ArrTy->getElementType();
 1830                       ? Ty->getElementType()
 1831                       : VectorType::get(Ty->getElementType(), NumElements);
 1903         CommonEltTy = VTy->getElementType();
 1904       else if (CommonEltTy != VTy->getElementType())
 1930                           return !VTy->getElementType()->isIntegerTy();
 1944       assert(RHSTy->getElementType()->isIntegerTy() &&
 1946       assert(LHSTy->getElementType()->isIntegerTy() &&
 1959       assert(VTy->getElementType() == CommonEltTy &&
 1970     uint64_t ElementSize = DL.getTypeSizeInBits(VTy->getElementType());
 2337         ElementTy(VecTy ? VecTy->getElementType() : nullptr),
 3010         OtherTy = VecTy->getElementType();
 3012         OtherTy = VectorType::get(VecTy->getElementType(), NumElements);
 3322           emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx));
 3476     InnerTy = ArrTy->getElementType();
 3514     Type *ElementTy = SeqTy->getElementType();
lib/Transforms/Scalar/Scalarizer.cpp
  426   Layout.ElemTy = Layout.VecTy->getElementType();
  656     Res[I] = Builder.CreateCast(CI.getOpcode(), Op0[I], VT->getElementType(),
  677       Res[I] = Builder.CreateBitCast(Op0[I], DstVT->getElementType(),
  683     Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut);
  701     Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn);
  709       Res[ResI] = Builder.CreateBitCast(V, DstVT->getElementType(),
  731       Res[I] = UndefValue::get(VT->getElementType());
  753     Res[I] = Builder.CreatePHI(VT->getElementType(), NumOps,
  784     Res[I] = Builder.CreateAlignedLoad(Layout.VecTy->getElementType(), Ptr[I],
lib/Transforms/Utils/CtorUtils.cpp
   37       ArrayType::get(OldCA->getType()->getElementType(), CAList.size());
lib/Transforms/Utils/FunctionComparator.cpp
  485     return cmpTypes(STyL->getElementType(), STyR->getElementType());
  485     return cmpTypes(STyL->getElementType(), STyR->getElementType());
lib/Transforms/Utils/SimplifyCFG.cpp
 5140         cast<ArrayType>(Array->getValueType())->getElementType(), GEP,
lib/Transforms/Vectorize/LoopVectorize.cpp
 2653   Type *SrcElemTy = SrcVecTy->getElementType();
 2654   Type *DstElemTy = DstVTy->getElementType();
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2817     EltTy = cast<ArrayType>(T)->getElementType();
tools/bugpoint/CrashDebugger.cpp
  228   auto *NewValElemTy = OldUsedVal->getType()->getElementType();
tools/clang/lib/CodeGen/CGBuilder.h
  203         CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy->getElementType()));
tools/clang/lib/CodeGen/CGBuiltin.cpp
 4382       Shift = ConstantInt::get(VTy->getElementType(), ShiftAmt);
 5270     if (VTy->getElementType()->isFloatingPointTy() &&
 5276     if (VTy->getElementType()->isFloatingPointTy())
 5523     Ty = llvm::PointerType::getUnqual(VTy->getElementType());
 5570     unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
 5581     unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits();
 6674     if (VTy->getElementType()->isIntegerTy(64)) {
 6681       Ty = llvm::VectorType::get(VTy->getElementType(), 1);
 6694     PtrOp0 = Builder.CreateElementBitCast(PtrOp0, VTy->getElementType());
 6745     if (VTy->getElementType()->isIntegerTy(64)) {
 8361       llvm::VectorType::get(VTy->getElementType(), VTy->getNumElements() / 2) :
 8375     if (VTy && VTy->getElementType() == DoubleTy) {
 8390     llvm::Type *STy = llvm::VectorType::get(VTy->getElementType(),
 8456     llvm::IntegerType *EltTy = cast<IntegerType>(VTy->getElementType());
 9138     Ty = llvm::PointerType::getUnqual(VTy->getElementType());
 9143         Builder.CreateAlignedLoad(VTy->getElementType(), Ops[0], Alignment);
 9149     Ty = llvm::PointerType::getUnqual(VTy->getElementType());
 9154         Builder.CreateAlignedLoad(VTy->getElementType(), Ops[0], Alignment);
 9202       llvm::PointerType::getUnqual(VTy->getElementType());
 9214       llvm::PointerType::getUnqual(VTy->getElementType());
 9226       llvm::PointerType::getUnqual(VTy->getElementType());
tools/clang/lib/CodeGen/CGDecl.cpp
 1050     llvm::Type *ElemTy = STy->getElementType();
tools/clang/lib/CodeGen/CGExpr.cpp
 1652             llvm::VectorType::get(VTy->getElementType(), 4);
 1735         SrcTy = llvm::VectorType::get(VecTy->getElementType(), 4);
tools/clang/lib/CodeGen/CGExprConstant.cpp
  325       CharUnits ElemSize = getSize(Seq->getElementType());
  407     CharUnits ElemSize = Utils.getSize(ATy->getElementType());
  951         CommonElementType ? CommonElementType : DesiredType->getElementType();
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1615     llvm::VectorType *RTy = llvm::VectorType::get(LTy->getElementType(),
 1922   llvm::Type *EltTy = VType->getElementType();
 3024            cast<llvm::VectorType>(ValTy)->getElementType()->isFloatTy()))
 3584     Ty = cast<llvm::IntegerType>(VT->getElementType());
 4200     llvm::Type *elemType = vecTy->getElementType();
 4215     if (rhsVTy->getElementType()->isFloatingPointTy()) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1772       dyn_cast<llvm::ArrayType>(llvmArrayType->getElementType());
tools/clang/lib/CodeGen/CodeGenModule.cpp
 4860   llvm::Type *ElemTy = AType->getElementType();
tools/clang/lib/CodeGen/PatternInit.cpp
   70         initializationPatternFor(CGM, ArrTy->getElementType()));
tools/clang/lib/CodeGen/SwiftCallingConv.cpp
   45       if (auto commonTy = getCommonType(firstVecTy->getElementType(),
   46                                         secondVecTy->getElementType())) {
   47         return (commonTy == firstVecTy->getElementType() ? first : second);
  322     auto eltTy = vecTy->getElementType();
  677   return isLegalVectorType(CGM, vectorSize, vectorTy->getElementType(),
  692   auto eltTy = vectorTy->getElementType();
  714   auto eltTy = origVectorTy->getElementType();
tools/clang/lib/CodeGen/TargetInfo.cpp
  927     cast<llvm::VectorType>(IRType)->getElementType()->isIntegerTy() &&
 3134     llvm::Type *EltTy = ATy->getElementType();
 3223     llvm::Type *EltTy = ATy->getElementType();
 5313     BaseTy = ArrTy->getElementType();
tools/polly/lib/Analysis/ScopBuilder.cpp
 1366       dyn_cast<StructType>(DescriptorDimArrayTy->getElementType());
tools/polly/lib/Support/ScopHelper.cpp
  678         Ty = ArrayTy->getElementType();
  704     Ty = ArrayTy->getElementType();
unittests/AsmParser/AsmParserTest.cpp
  236   Ty = VT->getElementType();
  368   Ty = VT->getElementType();
unittests/CodeGen/ScalableVectorMVTsTest.cpp
   99   ASSERT_EQ(MVT::getVT(ScV8Int64Ty->getElementType()),
  106   ASSERT_EQ(EVT::getEVT(ScV8Int64Ty->getElementType()),
  120             ScV4Float64Ty->getElementType());
unittests/IR/VectorTypesTest.cpp
   28   EXPECT_EQ(V8Int32Ty->getElementType()->getScalarSizeInBits(), 32U);
   33   EXPECT_EQ(V8Int16Ty->getElementType()->getScalarSizeInBits(), 16U);
   39   EXPECT_EQ(V4Int64Ty->getElementType()->getScalarSizeInBits(), 64U);
   44   EXPECT_EQ(V2Int64Ty->getElementType()->getScalarSizeInBits(), 64U);
   49   EXPECT_EQ(V8Int64Ty->getElementType()->getScalarSizeInBits(), 64U);
   54   EXPECT_EQ(V4Float64Ty->getElementType()->getScalarSizeInBits(), 64U);
   60   EXPECT_EQ(ExtTy->getElementType()->getScalarSizeInBits(), 32U);
   66   EXPECT_EQ(TruncTy->getElementType()->getScalarSizeInBits(), 16U);
   72   EXPECT_EQ(HalvedTy->getElementType()->getScalarSizeInBits(), 64U);
   78   EXPECT_EQ(DoubledTy->getElementType()->getScalarSizeInBits(), 64U);
   84   EXPECT_EQ(ConvTy->getElementType()->getScalarSizeInBits(), 64U);
  102   EXPECT_EQ(ScV8Int32Ty->getElementType()->getScalarSizeInBits(), 32U);
  107   EXPECT_EQ(ScV8Int16Ty->getElementType()->getScalarSizeInBits(), 16U);
  113   EXPECT_EQ(ScV4Int64Ty->getElementType()->getScalarSizeInBits(), 64U);
  118   EXPECT_EQ(ScV2Int64Ty->getElementType()->getScalarSizeInBits(), 64U);
  123   EXPECT_EQ(ScV8Int64Ty->getElementType()->getScalarSizeInBits(), 64U);
  128   EXPECT_EQ(ScV4Float64Ty->getElementType()->getScalarSizeInBits(), 64U);
  134   EXPECT_EQ(ExtTy->getElementType()->getScalarSizeInBits(), 32U);
  140   EXPECT_EQ(TruncTy->getElementType()->getScalarSizeInBits(), 16U);
  146   EXPECT_EQ(HalvedTy->getElementType()->getScalarSizeInBits(), 64U);
  152   EXPECT_EQ(DoubledTy->getElementType()->getScalarSizeInBits(), 64U);
  158   EXPECT_EQ(ConvTy->getElementType()->getScalarSizeInBits(), 64U);
unittests/Linker/LinkModulesTest.cpp
   86   Value *Load = Builder.CreateLoad(AT->getElementType(), GEP, "switch.load");