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

References

examples/BrainF/BrainF.cpp
  148       msg_0->getType(),
include/llvm/Analysis/ObjCARCAnalysisUtils.h
  169   PointerType *Ty = dyn_cast<PointerType>(Op->getType());
include/llvm/Analysis/PtrUseVisitor.h
  224     assert(I.getType()->isPointerTy());
  225     IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType()));
include/llvm/Analysis/ScalarEvolutionExpressions.h
  501     Type *getType() const { return getValPtr()->getType(); }
include/llvm/Analysis/SparsePropagation.h
  320             std::move(BCValue), BI->getCondition()->getType()));
  358       std::move(SCValue), SI.getCondition()->getType()));
include/llvm/Analysis/TargetFolder.h
  172     if (C->getType() == DestTy)
  178     if (C->getType() == DestTy)
  183     if (C->getType() == DestTy)
  188     if (C->getType() == DestTy)
  202     if (C->getType() == DestTy)
  207     if (C->getType() == DestTy)
  212     if (C->getType() == DestTy)
  219     if (C->getType() == DestTy)
include/llvm/Analysis/TargetTransformInfoImpl.h
  612       auto *VT = cast<VectorType>(Val->getType());
  658     return Val->getType()->getScalarSizeInBits();
  735     assert(Ptr->getType()->getScalarType()->getPointerElementType() ==
  741     auto PtrSizeBits = DL.getPointerTypeSizeInBits(Ptr->getType());
  784             Ptr->getType()->getPointerAddressSpace()))
  841       ParamTys.push_back(Arguments[Idx]->getType());
  867         Type *FTy = CS.getCalledValue()->getType()->getPointerElementType();
  883         Operator::getOpcode(U), U->getType(),
  884         U->getNumOperands() == 1 ? U->getOperand(0)->getType() : nullptr);
  896     Type *DstTy = I->getType();
include/llvm/Analysis/Utils/Local.h
   31   Type *IntPtrTy = DL.getIntPtrType(GEP->getType());
   64       if (IntPtrTy->isVectorTy() && !OpC->getType()->isVectorTy())
   77     if (IntPtrTy->isVectorTy() && !Op->getType()->isVectorTy())
   81     if (Op->getType() != IntPtrTy)
include/llvm/Analysis/ValueTracking.h
  247     APInt OffsetAPInt(DL.getIndexTypeSizeInBits(Ptr->getType()), 0);
include/llvm/CodeGen/BasicTTIImpl.h
  586         if (A->getType()->isVectorTy()) {
  587           VecTy = A->getType();
  593           VecTy = VectorType::get(A->getType(), VF);
 1072         Type *OpTy = Op->getType();
 1100           Instruction::Store, Args[0]->getType(), Args[1], VarMask, Alignment);
 1123       return getIntrinsicInstrCost(IID, RetTy, Args[0]->getType(), FMF);
include/llvm/CodeGen/FunctionLoweringInfo.h
  210     if (V->getType()->isTokenTy())
include/llvm/CodeGen/GlobalISel/IRTranslator.h
   93       auto It = TypeToOffsets.find(V.getType());
  127       assert(TypeToOffsets.find(V.getType()) == TypeToOffsets.end() &&
  131       TypeToOffsets[V.getType()] = OffsetList;
include/llvm/CodeGen/MachineMemOperand.h
   52     AddrSpace = v ? v->getType()->getPointerAddressSpace() : 0;
   72         AddrSpace = ValPtr->getType()->getPointerAddressSpace();
include/llvm/CodeGen/TargetLowering.h
 2352       if (isFPExtFree(EVT::getEVT(I->getType()),
 2353                       EVT::getEVT(I->getOperand(0)->getType())))
 2357       if (isZExtFree(I->getOperand(0)->getType(), I->getType()))
 2357       if (isZExtFree(I->getOperand(0)->getType(), I->getType()))
 2376     EVT VT = getValueType(DL, Ext->getType());
 2377     EVT LoadVT = getValueType(DL, Load->getType());
 2382         !isTruncateFree(Ext->getType(), Load->getType()))
 2382         !isTruncateFree(Ext->getType(), Load->getType()))
include/llvm/FuzzMutate/OpDescriptor.h
   97     return V->getType() == Only;
  107     return !V->getType()->isVoidTy();
  115     return V->getType()->isIntegerTy();
  123     return V->getType()->isFloatingPointTy();
  131     return V->getType()->isPointerTy() && !V->isSwiftError();
  148     if (const auto *PtrT = dyn_cast<PointerType>(V->getType()))
  167     if (isa<ArrayType>(V->getType()))
  168       return V->getType()->getArrayNumElements() > 0;
  171     if (isa<StructType>(V->getType()))
  172       return V->getType()->getStructNumElements() > 0;
  174     return V->getType()->isAggregateType();
  184     return V->getType()->isVectorTy();
  197     return V->getType() == Cur[0]->getType();
  197     return V->getType() == Cur[0]->getType();
  201     return makeConstantsWithType(Cur[0]->getType());
  210     return V->getType() == Cur[0]->getType()->getScalarType();
  210     return V->getType() == Cur[0]->getType()->getScalarType();
  214     return makeConstantsWithType(Cur[0]->getType()->getScalarType());
include/llvm/IR/CallSite.h
  132     assert(cast<PointerType>(V->getType())->getElementType() ==
  272   Type *getType() const { return (*this)->getType(); }
include/llvm/IR/Constants.h
  172     return cast<IntegerType>(Value::getType());
  433     return cast<ArrayType>(Value::getType());
  487     return cast<StructType>(Value::getType());
  522     return cast<VectorType>(Value::getType());
  555     return cast<PointerType>(Value::getType());
  633     return cast<SequentialType>(Value::getType());
  746     return cast<ArrayType>(Value::getType());
  805     return cast<VectorType>(Value::getType());
 1230     return getWithOperands(Ops, getType());
include/llvm/IR/Function.h
  447     return Ty ? Ty : (arg_begin() + ArgNo)->getType()->getPointerElementType();
include/llvm/IR/GlobalValue.h
  277   PointerType *getType() const { return cast<PointerType>(User::getType()); }
include/llvm/IR/IRBuilder.h
  983             cast<PointerType>(Callee->getType())->getElementType()),
  994             cast<PointerType>(Callee->getType())->getElementType()),
 1233     return CreateShl(LHS, ConstantInt::get(LHS->getType(), RHS), Name,
 1239     return CreateShl(LHS, ConstantInt::get(LHS->getType(), RHS), Name,
 1255     return CreateLShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
 1260     return CreateLShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
 1275     return CreateAShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
 1280     return CreateAShr(LHS, ConstantInt::get(LHS->getType(), RHS), Name,isExact);
 1294     return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
 1298     return CreateAnd(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
 1320     return CreateOr(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
 1324     return CreateOr(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
 1341     return CreateXor(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
 1345     return CreateXor(LHS, ConstantInt::get(LHS->getType(), RHS), Name);
 1495     CallInst *C = CreateIntrinsic(ID, {L->getType()},
 1606     return CreateLoad(Ptr->getType()->getPointerElementType(), Ptr, Name);
 1611     return CreateLoad(Ptr->getType()->getPointerElementType(), Ptr, Name);
 1616     return CreateLoad(Ptr->getType()->getPointerElementType(), Ptr, isVolatile,
 1648     return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
 1654     return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
 1660     return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
 1905     assert(V->getType()->isIntOrIntVectorTy() &&
 1908     Type *VTy = V->getType();
 1920     assert(V->getType()->isIntOrIntVectorTy() &&
 1923     Type *VTy = V->getType();
 1991     if (V->getType() == DestTy)
 2000     if (V->getType() == DestTy)
 2009     if (V->getType() == DestTy)
 2018     if (V->getType() == DestTy)
 2027     if (V->getType() == DestTy)
 2036     if (V->getType() == DestTy)
 2050     if (V->getType() == DestTy)
 2059     if (V->getType() == DestTy)
 2061     if (V->getType()->isPtrOrPtrVectorTy() && DestTy->isIntOrIntVectorTy())
 2063     if (V->getType()->isIntOrIntVectorTy() && DestTy->isPtrOrPtrVectorTy())
 2070     if (V->getType() == DestTy)
 2093       C = CreateIntrinsic(ID, {DestTy, V->getType()}, {V, RoundingV, ExceptV},
 2099       C = CreateIntrinsic(ID, {DestTy, V->getType()}, {V, ExceptV}, nullptr,
 2296         cast<FunctionType>(Callee->getType()->getPointerElementType()), Callee,
 2305         cast<FunctionType>(Callee->getType()->getPointerElementType()), Callee,
 2401     return CreateICmpEQ(Arg, Constant::getNullValue(Arg->getType()),
 2407     return CreateICmpNE(Arg, Constant::getNullValue(Arg->getType()),
 2418     assert(LHS->getType() == RHS->getType() &&
 2418     assert(LHS->getType() == RHS->getType() &&
 2420     auto *ArgType = cast<PointerType>(LHS->getType());
 2433     assert(isa<PointerType>(Ptr->getType()) &&
 2436     auto *PtrType = Ptr->getType();
 2460     assert(isa<PointerType>(Ptr->getType()) &&
 2464     auto *PtrType = Ptr->getType();
 2491     Value *Undef = UndefValue::get(VectorType::get(V->getType(), NumElts));
 2504     auto *IntTy = cast<IntegerType>(From->getType());
 2526     assert(isa<PointerType>(Base->getType()) &&
 2528     auto *BaseType = Base->getType();
 2555     assert(isa<PointerType>(Base->getType()) &&
 2557     auto *BaseType = Base->getType();
 2574     assert(isa<PointerType>(Base->getType()) &&
 2576     auto *BaseType = Base->getType();
 2613         if (OffsetValue->getType() != IntPtrTy)
 2643     assert(isa<PointerType>(PtrValue->getType()) &&
 2646     auto *PtrTy = cast<PointerType>(PtrValue->getType());
 2670     assert(isa<PointerType>(PtrValue->getType()) &&
 2672     auto *PtrTy = cast<PointerType>(PtrValue->getType());
 2675     if (Alignment->getType() != IntPtrTy)
include/llvm/IR/InlineAsm.h
   73     return reinterpret_cast<PointerType*>(Value::getType());
include/llvm/IR/InstrTypes.h
  285     Value *Zero = ConstantFP::getNegativeZero(Op->getType());
  697   Type* getSrcTy() const { return getOperand(0)->getType(); }
  699   Type* getDestTy() const { return getType(); }
 1012         return Inputs[Idx]->getType()->isPointerTy();
 1342                       cast<PointerType>(Fn->getType())->getElementType()));
 1345     assert(getType() == FTy->getReturnType());
 1591     return Ty ? Ty : getArgOperand(ArgNo)->getType()->getPointerElementType();
include/llvm/IR/Instructions.h
   97     return cast<PointerType>(Instruction::getType());
  201       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  204       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  208       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  212       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  216       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  220       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  225       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  229       : LoadInst(Ptr->getType()->getPointerElementType(), Ptr, NameStr,
  292   Type *getPointerOperandType() const { return getPointerOperand()->getType(); }
  421   Type *getPointerOperandType() const { return getPointerOperand()->getType(); }
  637     return getPointerOperand()->getType()->getPointerAddressSpace();
  828     return getPointerOperand()->getType()->getPointerAddressSpace();
  914           cast<PointerType>(Ptr->getType()->getScalarType())->getElementType();
  918           cast<PointerType>(Ptr->getType()->getScalarType())->getElementType());
  930           cast<PointerType>(Ptr->getType()->getScalarType())->getElementType();
  934           cast<PointerType>(Ptr->getType()->getScalarType())->getElementType());
  985            cast<PointerType>(getType()->getScalarType())->getElementType());
 1032     return getPointerOperand()->getType();
 1044       cast<PointerType>(Ptr->getType()->getScalarType())->getElementType(),
 1050                                    Ptr->getType()->getPointerAddressSpace());
 1052     if (Ptr->getType()->isVectorTy()) {
 1053       unsigned NumElem = Ptr->getType()->getVectorNumElements();
 1057       if (Index->getType()->isVectorTy()) {
 1058         unsigned NumElem = Index->getType()->getVectorNumElements();
 1124          cast<PointerType>(getType()->getScalarType())->getElementType());
 1138          cast<PointerType>(getType()->getScalarType())->getElementType());
 1156     assert(getOperand(0)->getType() == getOperand(1)->getType() &&
 1156     assert(getOperand(0)->getType() == getOperand(1)->getType() &&
 1159     assert((getOperand(0)->getType()->isIntOrIntVectorTy() ||
 1160             getOperand(0)->getType()->isPtrOrPtrVectorTy()) &&
 1179   ) : CmpInst(makeCmpResultType(LHS->getType()),
 1194   ) : CmpInst(makeCmpResultType(LHS->getType()),
 1208   ) : CmpInst(makeCmpResultType(LHS->getType()),
 1297     assert(getOperand(0)->getType() == getOperand(1)->getType() &&
 1297     assert(getOperand(0)->getType() == getOperand(1)->getType() &&
 1300     assert(getOperand(0)->getType()->isFPOrFPVectorTy() &&
 1319   ) : CmpInst(makeCmpResultType(LHS->getType()),
 1332   ) : CmpInst(makeCmpResultType(LHS->getType()),
 1345   ) : CmpInst(makeCmpResultType(LHS->getType()), Instruction::FCmp, Pred, LHS,
 1533                       cast<PointerType>(Func->getType())->getElementType()),
 1542                       cast<PointerType>(Func->getType())->getElementType()),
 1552                       cast<PointerType>(Func->getType())->getElementType()),
 1560                       cast<PointerType>(Func->getType())->getElementType()),
 1568                       cast<PointerType>(Func->getType())->getElementType()),
 1577                       cast<PointerType>(Func->getType())->getElementType()),
 1718     : Instruction(S1->getType(), Instruction::Select,
 1726     : Instruction(S1->getType(), Instruction::Select,
 1885     return cast<VectorType>(getVectorOperand()->getType());
 1948     return cast<VectorType>(Instruction::getType());
 2008     return cast<VectorType>(Instruction::getType());
 2050     unsigned NumSourceElts = Op<0>()->getType()->getVectorNumElements();
 2051     unsigned NumMaskElts = getMask()->getType()->getVectorNumElements();
 2059     unsigned NumSourceElts = Op<0>()->getType()->getVectorNumElements();
 2060     unsigned NumMaskElts = getMask()->getType()->getVectorNumElements();
 2070     assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");
 2091     assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");
 2128     assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");
 2152     assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");
 2172     assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");
 2222     assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");
 2244     assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");
 2252     int NumSrcElts = Op<0>()->getType()->getVectorNumElements();
 2382   : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
 2391   : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
 2519   : Instruction(Agg->getType(), InsertValue,
 2530   : Instruction(Agg->getType(), InsertValue,
 2649     assert(getType() == V->getType() &&
 2649     assert(getType() == V->getType() &&
 2855     return !isa<ArrayType>(getOperandList()[Idx]->getType());
 2860     return isa<ArrayType>(getOperandList()[Idx]->getType());
 3784                       cast<PointerType>(Func->getType())->getElementType()),
 3796                       cast<PointerType>(Func->getType())->getElementType()),
 3806                       cast<PointerType>(Func->getType())->getElementType()),
 3816                       cast<PointerType>(Func->getType())->getElementType()),
 4147               cast<PointerType>(Func->getType())->getElementType())
 5089     return getType()->getPointerAddressSpace();
 5140     return getPointerOperand()->getType()->getPointerAddressSpace();
 5247     return getPointerOperand()->getType()->getPointerAddressSpace();
 5252     return getType()->getPointerAddressSpace();
include/llvm/IR/IntrinsicInst.h
  402       return cast<PointerType>(getRawDest()->getType())->getAddressSpace();
  409       assert(getRawDest()->getType() == Ptr->getType() &&
  409       assert(getRawDest()->getType() == Ptr->getType() &&
  422       assert(getLength()->getType() == L->getType() &&
  422       assert(getLength()->getType() == L->getType() &&
  450       return cast<PointerType>(getRawSource()->getType())->getAddressSpace();
  458       assert(getRawSource()->getType() == Ptr->getType() &&
  458       assert(getRawSource()->getType() == Ptr->getType() &&
  488       assert(getValue()->getType() == Val->getType() &&
  514       assert(V->getType() == Type::getInt8Ty(getContext()) &&
include/llvm/IR/Metadata.h
  379   Type *getType() const { return V->getType(); }
include/llvm/IR/Operator.h
  398       return V->getType()->isFPOrFPVectorTy();
  494     return getPointerOperand()->getType();
  573     return getPointerOperand()->getType();
  589     return getOperand(0)->getType();
  593     return getType();
include/llvm/IR/PatternMatch.h
  162     if (V->getType()->isVectorTy())
  182     if (V->getType()->isVectorTy())
  227     if (V->getType()->isVectorTy()) {
  233         unsigned NumElts = V->getType()->getVectorNumElements();
  267     if (V->getType()->isVectorTy())
  286     if (V->getType()->isVectorTy()) {
  292         unsigned NumElts = V->getType()->getVectorNumElements();
  615     if (V->getType()->isVectorTy())
  654     if (!CI && V->getType()->isVectorTy())
 1905     unsigned TypeSize = V->getType()->getScalarSizeInBits();
include/llvm/IR/Statepoint.h
  159         cast<PointerType>(getCalledValue()->getType())->getElementType());
include/llvm/IR/Value.h
  304     assert(New->getType() == getType() &&
  304     assert(New->getType() == getType() &&
include/llvm/Transforms/Scalar/GVNExpression.h
  573                         VariableValue->getType(), VariableValue);
  610                         ConstantValue->getType(), ConstantValue);
lib/Analysis/AliasAnalysis.cpp
  213         if (!Arg->getType()->isPointerTy())
  295       if (!Arg->getType()->isPointerTy())
  346       if (!Arg->getType()->isPointerTy())
  671     if (!(*CI)->getType()->isPointerTy() ||
lib/Analysis/AliasAnalysisEvaluator.cpp
   84   return V->getType()->isPointerTy()
  104     if (I.getType()->isPointerTy())    // Add all pointer arguments.
  108     if (I->getType()->isPointerTy()) // Add all pointer instructions.
  143     Type *I1ElTy = cast<PointerType>((*I1)->getType())->getElementType();
  149       Type *I2ElTy = cast<PointerType>((*I2)->getType())->getElementType();
  234       Type *ElTy = cast<PointerType>(Pointer->getType())->getElementType();
lib/Analysis/AliasAnalysisSummary.cpp
   59     if (!Arg->hasNoAliasAttr() && Arg->getType()->isPointerTy())
   79   if (V->getType()->isPointerTy())
lib/Analysis/AliasSetTracker.cpp
  500         if (!Arg->getType()->isPointerTy())
lib/Analysis/BasicAliasAnalysis.cpp
  281   assert(V->getType()->isIntegerTy() && "Not an integer value");
  378     unsigned NewWidth = V->getType()->getPrimitiveSizeInBits();
  379     unsigned SmallWidth = CastOp->getType()->getPrimitiveSizeInBits();
  572       unsigned Width = Index->getType()->getIntegerBitWidth();
  911       if (!(*CI)->getType()->isPointerTy() ||
 1189             GEP1LastIdx->getType() == GEP2LastIdx->getType()) {
 1189             GEP1LastIdx->getType() == GEP2LastIdx->getType()) {
 1760   if (!V1->getType()->isPointerTy() || !V2->getType()->isPointerTy())
 1760   if (!V1->getType()->isPointerTy() || !V2->getType()->isPointerTy())
 1994   unsigned Width = Var1.V->getType()->getIntegerBitWidth();
lib/Analysis/BranchProbabilityInfo.cpp
  412   if (!LHS->getType()->isPointerTy())
  415   assert(CI->getOperand(1)->getType()->isPointerTy());
lib/Analysis/CFLAndersAliasAnalysis.cpp
  852   if (!ValA->getType()->isPointerTy() || !ValB->getType()->isPointerTy())
  852   if (!ValA->getType()->isPointerTy() || !ValB->getType()->isPointerTy())
lib/Analysis/CFLGraph.h
  205       assert(Val != nullptr && Val->getType()->isPointerTy());
  221       if (!From->getType()->isPointerTy() || !To->getType()->isPointerTy())
  221       if (!From->getType()->isPointerTy() || !To->getType()->isPointerTy())
  238       if (!From->getType()->isPointerTy() || !To->getType()->isPointerTy())
  238       if (!From->getType()->isPointerTy() || !To->getType()->isPointerTy())
  265         if (RetVal->getType()->isPointerTy()) {
  367       if (Inst.getType()->isPointerTy())
  420         if (V->getType()->isPointerTy())
  422       if (Call.getType()->isPointerTy())
  446           if (V->getType()->isPointerTy()) {
  456       if (Call.getType()->isPointerTy()) {
  486       if (Inst.getType()->isPointerTy())
  611     if (Arg.getType()->isPointerTy()) {
lib/Analysis/CFLSteensAliasAnalysis.cpp
  165     assert(RetVal->getType()->isPointerTy());
  174     if (Param.getType()->isPointerTy()) {
  270   if (!ValA->getType()->isPointerTy() || !ValB->getType()->isPointerTy())
  270   if (!ValA->getType()->isPointerTy() || !ValB->getType()->isPointerTy())
lib/Analysis/CaptureTracking.cpp
  229   assert(V->getType()->isPointerTy() && "Capture is for pointers only!");
  262           Call->getType()->isVoidTy())
lib/Analysis/CmpInstAnalysis.cpp
  137     Mask = Mask.zext(X->getType()->getScalarSizeInBits());
lib/Analysis/CodeMetrics.cpp
  157     if (isa<ExtractElementInst>(I) || I.getType()->isVectorTy())
  160     if (I.getType()->isTokenTy() && I.isUsedOutsideOfBlock(BB))
lib/Analysis/ConstantFolding.cpp
  106   if (auto *VTy = dyn_cast<VectorType>(C->getType())) {
  153   unsigned NumSrcElt = C->getType()->getVectorNumElements();
  157   Type *SrcEltTy = C->getType()->getVectorElementType();
  216           Src = Constant::getNullValue(C->getType()->getVectorElementType());
  223         Src = ConstantExpr::getZExt(Src, Elt->getType());
  227                                    ConstantInt::get(Src->getType(), ShiftAmt));
  311   unsigned BitWidth = DL.getIndexTypeSizeInBits(GEP->getType());
  329     Type *SrcTy = C->getType();
  362       } while (ElemC && DL.getTypeSizeInBits(ElemC->getType()) == 0);
  380   assert(ByteOffset <= DL.getTypeAllocSize(C->getType()) &&
  407     if (CFP->getType()->isDoubleTy()) {
  411     if (CFP->getType()->isFloatTy()){
  415     if (CFP->getType()->isHalfTy()){
  431       uint64_t EltSize = DL.getTypeAllocSize(CS->getOperand(Index)->getType());
  461     Type *EltTy = C->getType()->getSequentialElementType();
  466     if (auto *AT = dyn_cast<ArrayType>(C->getType()))
  469       NumElts = C->getType()->getVectorNumElements();
  490         CE->getOperand(0)->getType() == DL.getIntPtrType(CE->getType())) {
  490         CE->getOperand(0)->getType() == DL.getIntPtrType(CE->getType())) {
  502   auto *PTy = cast<PointerType>(C->getType());
  558       !GV->getInitializer()->getType()->isSized())
  562   int64_t InitializerSize = DL.getTypeAllocSize(GV->getInitializer()->getType());
  607   auto *SrcPtrTy = dyn_cast<PointerType>(SrcPtr->getType());
  706     return ConstantFoldLoadFromConstPtr(C, LI->getType(), DL);
  738       return ConstantInt::get(Op0->getType(), Known0.getConstant());
  749         unsigned OpSize = DL.getTypeSizeInBits(Op0->getType());
  754         return ConstantInt::get(Op0->getType(), Offs1.zextOrTrunc(OpSize) -
  776         Ops[i]->getType()->getScalarType() != IntPtrScalarTy) {
  778       Type *NewType = Ops[i]->getType()->isVectorTy()
  803   assert(Ptr->getType()->isPointerTy() && "Not a pointer type");
  804   auto *OldPtrTy = cast<PointerType>(Ptr->getType());
  806   auto *NewPtrTy = cast<PointerType>(Ptr->getType());
  828   Type *ResTy = GEP->getType();
  837   if (!Ptr->getType()->isPointerTy())
  840   Type *IntPtrTy = DL.getIntPtrType(Ptr->getType());
  851           assert((!CE || CE->getType() == IntPtrTy) &&
  855             Constant *Res = ConstantExpr::getPtrToInt(Ptr, CE->getType());
  907   auto *PTy = cast<PointerType>(Ptr->getType());
  999   assert(C->getType()->getPointerElementType() == Ty &&
 1019   Type *DestTy = InstOrCE->getType();
 1147     return CommonValue ? CommonValue : UndefValue::get(PN->getType());
 1219         Type *IntPtrTy = DL.getIntPtrType(CE0->getType());
 1224         Constant *Null = Constant::getNullValue(C->getType());
 1231         Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType());
 1232         if (CE0->getType() == IntPtrTy) {
 1234           Constant *Null = Constant::getNullValue(C->getType());
 1243           Type *IntPtrTy = DL.getIntPtrType(CE0->getType());
 1257           Type *IntPtrTy = DL.getIntPtrType(CE0->getOperand(0)->getType());
 1258           if (CE0->getType() == IntPtrTy &&
 1259               CE0->getOperand(0)->getType() == CE1->getOperand(0)->getType()) {
 1259               CE0->getOperand(0)->getType() == CE1->getOperand(0)->getType()) {
 1319         unsigned InWidth = Input->getType()->getScalarSizeInBits();
 1320         unsigned PtrWidth = DL.getPointerTypeSizeInBits(CE->getType());
 1340         unsigned SrcPtrSize = DL.getPointerTypeSizeInBits(SrcPtr->getType());
 1341         unsigned MidIntSize = CE->getType()->getScalarSizeInBits();
 1344           unsigned SrcAS = SrcPtr->getType()->getPointerAddressSpace();
 1645   Type *Ty = Op->getType();
 1724               Caller, Operands[0]->getType()->getPointerAddressSpace())) {
 2037       if (Op2->getType() != Op1->getType())
 2037       if (Op2->getType() != Op1->getType())
 2123   if (Operands[0]->getType()->isIntegerTy() &&
 2124       Operands[1]->getType()->isIntegerTy()) {
 2520         if (OpC->getType()->isDoubleTy())
 2523         if (OpC->getType()->isFloatTy())
 2532         if (OpC->getType()->isDoubleTy())
 2535         if (OpC->getType()->isFloatTy())
 2553         Type *Ty = OpC->getType();
 2579         if (OpC->getType()->isDoubleTy())
 2582         if (OpC->getType()->isFloatTy())
 2613         Type *Ty = Op0C->getType();
 2615           if (Ty == Op1C->getType()) {
lib/Analysis/DemandedBits.cpp
  328     Type *T = I.getType();
  339         Type *T = J->getType();
  360     if (UserI->getType()->isIntOrIntVectorTy()) {
  383       Type *T = OI->getType();
  428       DL.getTypeSizeInBits(I->getType()->getScalarType()));
  440   if (!(*U)->getType()->isIntOrIntVectorTy())
  454   if (UserI->getType()->isIntOrIntVectorTy()) {
lib/Analysis/DomTreeUpdater.cpp
  223       I.replaceAllUsesWith(llvm::UndefValue::get(I.getType()));
lib/Analysis/GlobalsModRef.cpp
  347   if (!V->getType()->isPointerTy())
  738         Type *GVType = GVar->getInitializer()->getType();
  739         Type *InputGVType = InputGVar->getInitializer()->getType();
lib/Analysis/IVDescriptors.cpp
  118   uint64_t MaxBitWidth = DL.getTypeSizeInBits(Exit->getType());
  130   if (MaxBitWidth == DL.getTypeSizeInBits(Exit->getType()) && AC && DT) {
  135     auto NumTypeBits = DL.getTypeSizeInBits(Exit->getType());
  228   Type *RecurrenceType = Phi->getType();
  785   assert((IK != IK_PtrInduction || StartValue->getType()->isPointerTy()) &&
  787   assert((IK != IK_IntInduction || StartValue->getType()->isIntegerTy()) &&
  832   assert(Phi->getType()->isFloatingPointTy() && "Unexpected Phi type");
  988   Type *PhiTy = Phi->getType();
 1033   Type *PhiTy = Phi->getType();
lib/Analysis/IVUsers.cpp
  176   if (!SE->isSCEVable(I->getType()))
  188   uint64_t Width = SE->getTypeSizeInBits(I->getType());
lib/Analysis/InlineCost.cpp
  389   unsigned IntPtrWidth = DL.getIndexTypeSizeInBits(GEP.getType());
  476   bool CheckSROA = I.getType()->isPointerTy();
  634         return ConstantExpr::getBitCast(COps[0], I.getType());
  658         return ConstantExpr::getPtrToInt(COps[0], I.getType());
  664   unsigned IntegerSize = I.getType()->getScalarSizeInBits();
  665   unsigned AS = I.getOperand(0)->getType()->getPointerAddressSpace();
  691         return ConstantExpr::getIntToPtr(COps[0], I.getType());
  698   unsigned IntegerSize = Op->getType()->getScalarSizeInBits();
  699   if (IntegerSize <= DL.getPointerTypeSizeInBits(I.getType())) {
  717         return ConstantExpr::getCast(I.getOpcode(), COps[0], I.getType());
  734     if (TTI.getFPOpCost(I.getType()) == TargetTransformInfo::TCC_Expensive)
 1018     SimplifiedValues[&I] = IsNotEqual ? ConstantInt::getTrue(I.getType())
 1019                                       : ConstantInt::getFalse(I.getType());
 1095   if (I.getType()->isFloatingPointTy() &&
 1096       TTI.getFPOpCost(I.getType()) == TargetTransformInfo::TCC_Expensive &&
 1354   bool CheckSROA = SI.getType()->isPointerTy();
 1579     if (isa<ExtractElementInst>(I) || I->getType()->isVectorTy())
 1651   if (!V->getType()->isPointerTy())
 1654   unsigned AS = V->getType()->getPointerAddressSpace();
 1676     assert(V->getType()->isPointerTy() && "Unexpected operand type!");
 1976       PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType());
 2031       PointerType *PTy = cast<PointerType>(Call.getArgOperand(I)->getType());
lib/Analysis/InstructionSimplify.cpp
  425     TCmp = getTrue(Cond->getType());
  431     TCmp = getTrue(Cond->getType());
  439     FCmp = getFalse(Cond->getType());
  445     FCmp = getFalse(Cond->getType());
  455   if (Cond->getType()->isVectorTy() != RHS->getType()->isVectorTy())
  455   if (Cond->getType()->isVectorTy() != RHS->getType()->isVectorTy())
  472         SimplifyXorInst(Cond, Constant::getAllOnesValue(Cond->getType()),
  591     return Constant::getNullValue(Op0->getType());
  602   Type *Ty = Op0->getType();
  619   if (MaxRecurse && Op0->getType()->isIntOrIntVectorTy(1))
  657   assert(V->getType()->isPtrOrPtrVectorTy());
  659   Type *IntPtrTy = DL.getIntPtrType(V->getType())->getScalarType();
  665   IntPtrTy = DL.getIntPtrType(V->getType())->getScalarType();
  669   if (V->getType()->isVectorTy())
  670     return ConstantVector::getSplat(V->getType()->getVectorNumElements(),
  704     return UndefValue::get(Op0->getType());
  712     return Constant::getNullValue(Op0->getType());
  718       return Constant::getNullValue(Op0->getType());
  725         return Constant::getNullValue(Op0->getType());
  792     if (X->getType() == Y->getType())
  792     if (X->getType() == Y->getType())
  796         if (Value *W = SimplifyCastInst(Instruction::Trunc, V, Op0->getType(),
  805       return ConstantExpr::getIntegerCast(Result, Op0->getType(), true);
  808   if (MaxRecurse && Op0->getType()->isIntOrIntVectorTy(1))
  839     return Constant::getNullValue(Op0->getType());
  854   if (MaxRecurse && Op0->getType()->isIntOrIntVectorTy(1))
  892   Type *Ty = Op0->getType();
  925     return Constant::getNullValue(Op0->getType());
  939       (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)))
  971     Type *Ty = X->getType();
 1035     return Constant::getNullValue(Op0->getType());
 1044       return Constant::getNullValue(Op0->getType());
 1060     return Constant::getNullValue(Op0->getType());
 1087     return Constant::getNullValue(Op0->getType());
 1114     return Constant::getAllOnesValue(Op0->getType());
 1141   if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))
 1142     return ConstantInt::getNullValue(Op0->getType());
 1146     return ConstantInt::getNullValue(Op0->getType());
 1184     for (unsigned I = 0, E = C->getType()->getVectorNumElements(); I != E; ++I)
 1202     return Constant::getNullValue(Op0->getType());
 1209       (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)))
 1214     return UndefValue::get(Op0->getType());
 1232     return UndefValue::get(Op0->getType());
 1253     return Constant::getNullValue(Op0->getType());
 1258     return isExact ? Op0 : Constant::getNullValue(Op0->getType());
 1280     return isNSW || isNUW ? Op0 : Constant::getNullValue(Op0->getType());
 1326     const unsigned Width = Op0->getType()->getScalarSizeInBits();
 1351     return Constant::getAllOnesValue(Op0->getType());
 1360   if (NumSignBits == Op0->getType()->getScalarSizeInBits())
 1398         return ConstantInt::getTrue(UnsignedICmp->getType());
 1403         return ConstantInt::getFalse(UnsignedICmp->getType());
 1472     return getFalse(UnsignedICmp->getType());
 1477     return getTrue(UnsignedICmp->getType());
 1502     return getFalse(Op0->getType());
 1528     return getTrue(Op0->getType());
 1553     return getFalse(Cmp0->getType());
 1558     return getTrue(Cmp0->getType());
 1626   Type *ITy = Op0->getType();
 1699   Type *ITy = Op0->getType();
 1760   if (LHS0->getType() != RHS0->getType())
 1760   if (LHS0->getType() != RHS0->getType())
 1825     return ConstantExpr::getCast(Cast0->getOpcode(), C, Cast0->getType());
 1910     return Constant::getNullValue(Op0->getType());
 1918     return Constant::getNullValue(Op0->getType());
 1927     return Constant::getNullValue(Op0->getType());
 1979     return Constant::getNullValue(Op1->getType());
 1982     return Constant::getNullValue(Op0->getType());
 2031     const unsigned Width = Op0->getType()->getScalarSizeInBits();
 2068     return Constant::getAllOnesValue(Op0->getType());
 2078     return Constant::getAllOnesValue(Op0->getType());
 2090     return Constant::getAllOnesValue(Op1->getType());
 2094     return Constant::getAllOnesValue(Op0->getType());
 2218     return Constant::getNullValue(Op0->getType());
 2223     return Constant::getAllOnesValue(Op0->getType());
 2248   return CmpInst::makeCmpResultType(Op->getType());
 2407       if (!cast<PointerType>(LHS->getType())->isEmptyTy() &&
 2408           !cast<PointerType>(RHS->getType())->isEmptyTy() &&
 2490   Type *OpTy = LHS->getType();   // The operand type.
 2700                                       Constant::getNullValue(RHS->getType()), Q,
 2707               SimplifyICmpInst(Pred, Constant::getNullValue(LHS->getType()),
 3247     Type *SrcTy = SrcOp->getType();
 3248     Type *DstTy = LI->getType();
 3261         if (RI->getOperand(0)->getType() == SrcTy)
 3273         if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
 3333         if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
 3416   if (LHS->getType()->isPointerTy())
 3423               Q.DL.getTypeSizeInBits(CLHS->getType()) &&
 3425               Q.DL.getTypeSizeInBits(CRHS->getType()))
 3753           return ConstantFoldLoadFromConstPtr(ConstOps[0], LI->getType(), Q.DL);
 3992       cast<PointerType>(Ops[0]->getType()->getScalarType())->getAddressSpace();
 4001   if (VectorType *VT = dyn_cast<VectorType>(Ops[0]->getType()))
 4003   else if (VectorType *VT = dyn_cast<VectorType>(Ops[1]->getType()))
 4011     if (match(Ops[1], m_Zero()) && Ops[0]->getType() == GEPTy)
 4020       if (TyAllocSize == 0 && Ops[0]->getType() == GEPTy)
 4025       if (Ops[1]->getType()->getScalarSizeInBits() ==
 4032             if (Temp->getType() == GEPTy)
 4067         Q.DL.getIndexSizeInBits(Ops[0]->getType()->getPointerAddressSpace());
 4068     if (Q.DL.getTypeSizeInBits(Ops.back()->getType()) == IdxWidth) {
 4120     if (EV->getAggregateOperand()->getType() == Agg->getType() &&
 4120     if (EV->getAggregateOperand()->getType() == Agg->getType() &&
 4151     uint64_t NumElements = cast<VectorType>(Vec->getType())->getNumElements();
 4153       return UndefValue::get(Vec->getType());
 4158     return UndefValue::get(Vec->getType());
 4217       return UndefValue::get(Vec->getType()->getVectorElementType());
 4223     if (IdxC->getValue().uge(Vec->getType()->getVectorNumElements()))
 4225       return UndefValue::get(Vec->getType()->getVectorElementType());
 4233     return UndefValue::get(Vec->getType()->getVectorElementType());
 4265     return UndefValue::get(PN->getType());
 4283     Type *SrcTy = Src->getType();
 4284     Type *MidTy = CI->getType();
 4286     if (Src->getType() == Ty) {
 4304     if (Op->getType() == Ty)
 4330   int InVecNumElts = Op0->getType()->getVectorNumElements();
 4372   Type *InVecTy = Op0->getType();
 4373   unsigned MaskNumElts = Mask->getType()->getVectorNumElements();
 4436     if (!RootVec || RootVec->getType() != RetTy)
 4478     return ConstantFP::getNaN(In->getType());
 4490     return ConstantFP::getNaN(Ops[0]->getType());
 4528       return ConstantFP::getNullValue(Op0->getType());
 4532       return ConstantFP::getNullValue(Op0->getType());
 4581     return Constant::getNullValue(Op0->getType());
 4608     return ConstantFP::getNullValue(Op0->getType());
 4612     return ConstantFP::getNullValue(Op1->getType());
 4673     return ConstantFP::getNullValue(Op0->getType());
 4679       return ConstantFP::get(Op0->getType(), 1.0);
 4691       return ConstantFP::get(Op0->getType(), -1.0);
 4716       return ConstantFP::getNullValue(Op0->getType());
 4719       return ConstantFP::getNegativeZero(Op0->getType());
 5080         return ConstantFP::get(Op0->getType(), 1.0);
 5209     return UndefValue::get(Call->getType());
 5381         SimplifyCastInst(I->getOpcode(), I->getOperand(0), I->getType(), Q);
 5391   if (!Result && I->getType()->isIntOrIntVectorTy()) {
 5394       Result = ConstantInt::get(I->getType(), Known.getConstant());
 5400   return Result == I ? UndefValue::get(I->getType()) : Result;
lib/Analysis/LazyValueInfo.cpp
  584       if (isa<IntegerType>(BBI->getType())) {
  642   PointerType *PT = dyn_cast<PointerType>(BBI->getType());
  647   if (BBI->getType()->isIntegerTy()) {
  703   assert(Val->getType()->isPointerTy());
  726     PointerType *PTy = dyn_cast<PointerType>(Val->getType());
  763       PointerType *PTy = dyn_cast<PointerType>(Val->getType());
 1004     DL.getTypeSizeInBits(I->getOperand(Op)->getType());
 1018   if (!CI->getOperand(0)->getType()->isSized()) {
 1051   const unsigned ResultBitWidth = CI->getType()->getIntegerBitWidth();
 1085   assert(BO->getOperand(0)->getType()->isSized() &&
 1207   if (!Val->getType()->isIntegerTy())
 1230     ConstantRange RHSRange(RHS->getType()->getIntegerBitWidth(),
 1352   Constant* OpConst = Constant::getIntegerValue(Op->getType(), OpConstVal);
 1412         if (isa<IntegerType>(Usr->getType()) && isOperationFoldable(Usr)) {
 1453     if (!isa<IntegerType>(Val->getType()))
 1468     unsigned BitWidth = Val->getType()->getIntegerBitWidth();
 1716   assert(V->getType()->isIntegerTy());
 1717   unsigned Width = V->getType()->getIntegerBitWidth();
 1755   unsigned Width = V->getType()->getIntegerBitWidth();
 1857   if (V->getType()->isPointerTy() && C->isNullValue() &&
lib/Analysis/Lint.cpp
  246     Assert(FT->getReturnType() == I.getType(),
  259         Assert(Formal->getType() == Actual->getType(),
  259         Assert(Formal->getType() == Actual->getType(),
  267         if (Formal->hasNoAliasAttr() && Actual->getType()->isPointerTy()) {
  279             if (AI != BI && (*BI)->getType()->isPointerTy()) {
  288         if (Formal->hasStructRetAttr() && Actual->getType()->isPointerTy()) {
  290             cast<PointerType>(Formal->getType())->getElementType();
  507                        DL->getTypeStoreSize(I.getType()), I.getAlignment(),
  508                        I.getType(), MemRef::Read);
  513                        DL->getTypeStoreSize(I.getOperand(0)->getType()),
  515                        I.getOperand(0)->getType(), MemRef::Write);
  531     Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
  538     Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
  545     Assert(CI->getValue().ult(cast<IntegerType>(I.getType())->getBitWidth()),
  555   VectorType *VecTy = dyn_cast<VectorType>(V->getType());
  666     return UndefValue::get(V->getType());
  705                                CE->getOperand(0)->getType(), CE->getType(),
  705                                CE->getOperand(0)->getType(), CE->getType(),
lib/Analysis/Loads.cpp
   33   Type *const Ty = Base->getType()->getPointerElementType();
   76       Type *Ty = V->getType();
   86     APInt Offset(DL.getIndexTypeSizeInBits(GEP->getType()), 0);
  153   APInt AccessSize(DL.getIndexTypeSizeInBits(V->getType()),
  203   APInt EltSize(DL.getIndexTypeSizeInBits(Ptr->getType()),
  204                 DL.getTypeStoreSize(LI->getType()));
  206       MaybeAlign(LI->getAlignment()), LI->getType());
  268       DL.getValueOrABITypeAlignment(MA, V->getType()->getPointerElementType());
  322     Type *AccessedTy = AccessedPtr->getType()->getPointerElementType();
  345   APInt Size(DL.getIndexTypeSizeInBits(V->getType()), DL.getTypeStoreSize(Ty));
  372       Load->getPointerOperand(), Load->getType(), Load->isAtomic(), ScanBB,
  416           CastInst::isBitOrNoopPointerCastable(LI->getType(), AccessTy, DL)) {
  434           CastInst::isBitOrNoopPointerCastable(SI->getValueOperand()->getType(),
lib/Analysis/LoopAccessAnalysis.cpp
  139     if (CI->getOperand(0)->getType()->isIntegerTy())
  162         static_cast<const SCEVConstant *>(SE->getOne(StrideVal->getType()));
  225       Ptr->getType()->getPointerElementType()->getScalarSizeInBits() / 8;
  793       unsigned ASi = PtrI->getType()->getPointerAddressSpace();
  794       unsigned ASj = PtrJ->getType()->getPointerAddressSpace();
  918                     UnderlyingObj->getType()->getPointerAddressSpace()))
  993   Type *Ty = Ptr->getType();
 1104              VL, [](const Value *V) { return V->getType()->isPointerTy(); }) &&
 1119     if (Ptr->getType()->getPointerAddressSpace() !=
 1120         Ptr0->getType()->getPointerAddressSpace())
 1187   if (CheckType && PtrA->getType() != PtrB->getType())
 1187   if (CheckType && PtrA->getType() != PtrB->getType())
 1191   Type *Ty = cast<PointerType>(PtrA->getType())->getElementType();
 1199   ASA = cast<PointerType>(PtrA->getType())->getAddressSpace();
 1200   ASB = cast<PointerType>(PtrB->getType())->getAddressSpace();
 1457   if (APtr->getType()->getPointerAddressSpace() !=
 1458       BPtr->getType()->getPointerAddressSpace())
 1492   Type *ATy = APtr->getType()->getPointerElementType();
 1493   Type *BTy = BPtr->getType()->getPointerElementType();
 2113   if (!SE->isSCEVable(V->getType()))
 2151   unsigned AS = Ptr->getType()->getPointerAddressSpace();
 2223     unsigned AS0 = A.Start->getType()->getPointerAddressSpace();
 2224     unsigned AS1 = B.Start->getType()->getPointerAddressSpace();
 2226     assert((AS0 == B.End->getType()->getPointerAddressSpace()) &&
 2227            (AS1 == A.End->getType()->getPointerAddressSpace()) &&
lib/Analysis/LoopCacheAnalysis.cpp
  364   assert(SE.isSCEVable(Addr->getType()) && "Addr should be SCEVable");
lib/Analysis/LoopInfo.cpp
  427     if (I.getType()->isTokenTy())
lib/Analysis/LoopUnrollAnalyzer.cpp
   28   if (!SE.isSCEVable(I->getType()))
  116   if (CDS->getElementType() != I.getType())
  154   if (COp && CastInst::castIsValid(I.getOpcode(), COp, I.getType())) {
  156             ConstantExpr::getCast(I.getOpcode(), COp, I.getType())) {
  194       if (CLHS->getType() == CRHS->getType()) {
  194       if (CLHS->getType() == CRHS->getType()) {
lib/Analysis/MemDerefPrinter.cpp
   56       if (isDereferenceablePointer(PO, LI->getType(), DL))
   59               PO, LI->getType(), MaybeAlign(LI->getAlignment()), DL))
lib/Analysis/MemoryBuiltins.cpp
  377     return cast<PointerType>(CI->getType());
  522   auto *ResultType = cast<IntegerType>(ObjectSize->getType());
  579   IntTyBits = DL.getPointerTypeSizeInBits(V->getType());
  659   PointerType *PT = cast<PointerType>(A.getType());
  837   IntTy = cast<IntegerType>(DL.getIntPtrType(V->getType()));
  855       I->replaceAllUsesWith(UndefValue::get(I->getType()));
  923   Value *Size = ConstantInt::get(ArraySize->getType(),
lib/Analysis/MemoryDependenceAnalysis.cpp
  244   if (!isa<IntegerType>(LI->getType()) || !LI->isSimple())
  289   unsigned NewLoadByteSize = LI->getType()->getPrimitiveSizeInBits() / 8U;
  921   assert(Loc.Ptr->getType()->isPointerTy() &&
 1527   if (!Ptr->getType()->isPointerTy())
 1570   if (RemInst->getType()->isPointerTy()) {
lib/Analysis/MemoryLocation.cpp
   41       LocationSize::precise(DL.getTypeStoreSize(LI->getType())), AATags);
   51                             SI->getValueOperand()->getType())),
   70                             CXI->getCompareOperand()->getType())),
   81                             RMWI->getValOperand()->getType())),
  178           Arg, LocationSize::precise(DL.getTypeStoreSize(II->getType())),
  185                                 II->getArgOperand(1)->getType())),
lib/Analysis/ModuleSummaryAnalysis.cpp
  490   if (I->getType()->isPointerTy()) {
lib/Analysis/PHITransAddr.cpp
  199                                               C, Cast->getType()));
  206             CastI->getType() == Cast->getType() &&
  206             CastI->getType() == Cast->getType() &&
  241         if (GEPI->getType() == GEP->getType() &&
  241         if (GEPI->getType() == GEP->getType() &&
  387     CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(),
lib/Analysis/PtrUseVisitor.cpp
   37   APInt TmpOffset(DL.getIndexTypeSizeInBits(GEPI.getType()), 0);
lib/Analysis/ScalarEvolution.cpp
  496               AllocTy = cast<PointerType>(CE->getOperand(0)->getType())
  511             cast<PointerType>(CE->getOperand(0)->getType())->getElementType();
  538             cast<PointerType>(CE->getOperand(0)->getType())->getElementType();
  582   bool LIsPointer = LV->getType()->isPointerTy(),
  583        RIsPointer = RV->getType()->isPointerTy();
 3900   assert(isSCEVable(V->getType()) && "Value is not SCEVable!");
 3932   assert(isSCEVable(V->getType()) && "Value is not SCEVable!");
 4530       uint32_t BitWidth = cast<IntegerType>(Op->getType())->getBitWidth();
 4622   if (!PN->getType()->isIntegerTy())
 5352     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType())) {
 5352     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType())) {
 5353       const SCEV *LS = getNoopOrSignExtend(getSCEV(LHS), I->getType());
 5354       const SCEV *RS = getNoopOrSignExtend(getSCEV(RHS), I->getType());
 5375     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType())) {
 5375     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType())) {
 5376       const SCEV *LS = getNoopOrZeroExtend(getSCEV(LHS), I->getType());
 5377       const SCEV *RS = getNoopOrZeroExtend(getSCEV(RHS), I->getType());
 5392     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType()) &&
 5392     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType()) &&
 5394       const SCEV *One = getOne(I->getType());
 5395       const SCEV *LS = getNoopOrZeroExtend(getSCEV(LHS), I->getType());
 5406     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType()) &&
 5406     if (getTypeSizeInBits(LHS->getType()) <= getTypeSizeInBits(I->getType()) &&
 5408       const SCEV *One = getOne(I->getType());
 5409       const SCEV *LS = getNoopOrZeroExtend(getSCEV(LHS), I->getType());
 6015     if (!isSCEVable(I->getOperand(OpIndex)->getType()))
 6135   if (!isSCEVable(V->getType()))
 6144       return getUnknown(UndefValue::get(V->getType()));
 6148     return getZero(V->getType());
 6292                   BO->LHS->getType()),
 6340                 Type *UTy = BO->LHS->getType();
 6397       Type *OuterTy = BO->LHS->getType();
 6448     return getTruncateExpr(getSCEV(U->getOperand(0)), U->getType());
 6451     return getZeroExtendExpr(getSCEV(U->getOperand(0)), U->getType());
 6463         Type *Ty = U->getType();
 6469     return getSignExtendExpr(getSCEV(U->getOperand(0)), U->getType());
 6473     if (isSCEVable(U->getType()) && isSCEVable(U->getOperand(0)->getType()))
 6473     if (isSCEVable(U->getType()) && isSCEVable(U->getOperand(0)->getType()))
 7696   assert(Result->getType()->isIntegerTy(1) &&
 7841       return ConstantFoldLoadFromConstPtr(Operands[0], LI->getType(), DL);
 8078         if (PointerType *PTy = dyn_cast<PointerType>(C->getType())) {
 8088           if (!C->getType()->isPointerTy() && C2->getType()->isPointerTy()) {
 8088           if (!C->getType()->isPointerTy() && C2->getType()->isPointerTy()) {
 8089             unsigned AS = C2->getType()->getPointerAddressSpace();
 8099           if (C2->getType()->isPointerTy())
 8102           if (PointerType *PTy = dyn_cast<PointerType>(C->getType())) {
 8118         if (C->getType()->isPointerTy()) return nullptr;
 8121           if (!C2 || C2->getType()->isPointerTy()) return nullptr;
 8132           if (LHS->getType() == RHS->getType())
 8132           if (LHS->getType() == RHS->getType())
 8227           if (!isSCEVable(Op->getType()))
 8236           if (C->getType() != Op->getType())
 8236           if (C->getType() != Op->getType())
 8238                                                               Op->getType(),
 8240                                       C, Op->getType());
 8253               C = ConstantFoldLoadFromConstPtr(Operands[0], LI->getType(), DL);
11137     Ty = Store->getValueOperand()->getType();
11139     Ty = Load->getType();
11568     if (isSCEVable(I.getType()) && !isa<CmpInst>(I)) {
12490       if (!SE.isSCEVable(I.getType()))
lib/Analysis/ScalarEvolutionExpander.cpp
   55     if (U->getType() == Ty)
  115   assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) &&
  120     if (V->getType() == Ty)
  123       if (CI->getOperand(0)->getType() == Ty)
  129       SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(V->getType())) {
  133           SE.getTypeSizeInBits(CI->getType()) ==
  134           SE.getTypeSizeInBits(CI->getOperand(0)->getType()))
  139           SE.getTypeSizeInBits(CE->getType()) ==
  140           SE.getTypeSizeInBits(CE->getOperand(0)->getType()))
  586     if (V->getType() != PTy)
  714     } else if (PointerType *PTy = dyn_cast<PointerType>(Sum->getType())) {
  971       unsigned AS = cast<PointerType>(IncV->getType())->getAddressSpace();
  972       if (IncV->getType() != Type::getInt1PtrTy(SE.getContext(), AS)
  973           && IncV->getType() != Type::getInt8PtrTy(SE.getContext(), AS))
 1065     if (IncV->getType() != PN->getType()) {
 1065     if (IncV->getType() != PN->getType()) {
 1066       IncV = Builder.CreateBitCast(IncV, PN->getType());
 1182       if (!SE.isSCEVable(PN.getType()))
 1439     Type *ResTy = Result->getType();
 1444     if (TruncTy != Result->getType()) {
 1468       if (Result->getType()->isIntegerTy()) {
 1505     if (SE.getTypeSizeInBits(PN->getType()) >= SE.getTypeSizeInBits(Ty))
 1511       SE.getTypeSizeInBits(CanonicalIV->getType()) >
 1515       NewOps[i] = SE.getAnyExtendExpr(S->op_begin()[i], CanonicalIV->getType());
 1545         assert(StartV->getType() == PTy && "Pointer type mismatch for GEP!");
 1597     assert(Ty == SE.getEffectiveSCEVType(CanonicalIV->getType()) &&
 1611                                             CanonicalIV->getType())),
 1622   const SCEV *Ext = SE.getNoopOrAnyExtend(S, CanonicalIV->getType());
 1663   Type *Ty = LHS->getType();
 1681   if (LHS->getType() != S->getType())
 1688   Type *Ty = LHS->getType();
 1706   if (LHS->getType() != S->getType())
 1713   Type *Ty = LHS->getType();
 1731   if (LHS->getType() != S->getType())
 1738   Type *Ty = LHS->getType();
 1756   if (LHS->getType() != S->getType())
 1795             S->getType() == V->getType() &&
 1882     if (PointerType *Vty = dyn_cast<PointerType>(V->getType())) {
 1960       if (!LHS->getType()->isIntegerTy() || !RHS->getType()->isIntegerTy())
 1960       if (!LHS->getType()->isIntegerTy() || !RHS->getType()->isIntegerTy())
 1961         return RHS->getType()->isIntegerTy() && !LHS->getType()->isIntegerTy();
 1961         return RHS->getType()->isIntegerTy() && !LHS->getType()->isIntegerTy();
 1962       return RHS->getType()->getPrimitiveSizeInBits() <
 1963              LHS->getType()->getPrimitiveSizeInBits();
 1974       if (!SE.isSCEVable(PN->getType()))
 1985       if (V->getType() != Phi->getType())
 1985       if (V->getType() != Phi->getType())
 1995     if (!SE.isSCEVable(Phi->getType()))
 2001       if (Phi->getType()->isIntegerTy() && TTI &&
 2002           TTI->isTruncateFree(Phi->getType(), Phis.back()->getType())) {
 2002           TTI->isTruncateFree(Phi->getType(), Phis.back()->getType())) {
 2006           SE.getTruncateExpr(SE.getSCEV(Phi), Phis.back()->getType());
 2014     if (OrigPhiRef->getType()->isPointerTy() != Phi->getType()->isPointerTy())
 2014     if (OrigPhiRef->getType()->isPointerTy() != Phi->getType()->isPointerTy())
 2027         if (OrigPhiRef->getType() == Phi->getType() &&
 2027         if (OrigPhiRef->getType() == Phi->getType() &&
 2043             SE.getTruncateOrNoop(SE.getSCEV(OrigInc), IsomorphicInc->getType());
 2052           if (OrigInc->getType() != IsomorphicInc->getType()) {
 2052           if (OrigInc->getType() != IsomorphicInc->getType()) {
 2062                 OrigInc, IsomorphicInc->getType(), IVName);
 2073     if (OrigPhiRef->getType() != Phi->getType()) {
 2073     if (OrigPhiRef->getType() != Phi->getType()) {
 2076       NewIV = Builder.CreateTruncOrBitCast(OrigPhiRef, Phi->getType(), IVName);
lib/Analysis/StackSafetyAnalysis.cpp
  235   if (!SE.isSCEVable(Addr->getType()))
  248   if (!SE.isSCEVable(Addr->getType()))
  296             getAccessRange(UI, Ptr, DL.getTypeStoreSize(I->getType())));
  310             UI, Ptr, DL.getTypeStoreSize(I->getOperand(0)->getType())));
lib/Analysis/TargetTransformInfo.cpp
  929   assert(I->getType()->isVectorTy() && "Expecting a vector type");
 1020   Type *VecTy = RdxStart->getType();
 1085   Type *VecTy = ReduxRoot->getOperand(0)->getType();
 1177     return getArithmeticInstrCost(I->getOpcode(), I->getType(), Op1VK, Op2VK,
 1187     return getArithmeticInstrCost(I->getOpcode(), I->getType(), Op1VK, Op2VK,
 1192     Type *CondTy = SI->getCondition()->getType();
 1193     return getCmpSelInstrCost(I->getOpcode(), I->getType(), CondTy, I);
 1197     Type *ValTy = I->getOperand(0)->getType();
 1198     return getCmpSelInstrCost(I->getOpcode(), ValTy, I->getType(), I);
 1202     Type *ValTy = SI->getValueOperand()->getType();
 1209     return getMemoryOpCost(I->getOpcode(), I->getType(),
 1226     Type *SrcTy = I->getOperand(0)->getType();
 1227     return getCastInstrCost(I->getOpcode(), I->getType(), SrcTy, I);
 1274                                    EEI->getOperand(0)->getType(), Idx);
 1290     Type *SrcTy = Shuffle->getOperand(0)->getType();
 1328       return getIntrinsicInstrCost(II->getIntrinsicID(), II->getType(),
lib/Analysis/TypeMetadataUtils.cpp
  132   if (I->getType()->isPointerTy()) {
lib/Analysis/ValueTracking.cpp
  193   assert(LHS->getType() == RHS->getType() &&
  193   assert(LHS->getType() == RHS->getType() &&
  195   assert(LHS->getType()->isIntOrIntVectorTy() &&
  205   IntegerType *IT = cast<IntegerType>(LHS->getType()->getScalarType());
 1131     Type *SrcTy = I->getOperand(0)->getType();
 1148     Type *SrcTy = I->getOperand(0)->getType();
 1152         !I->getType()->isVectorTy()) {
 1160     unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits();
 1319         if (CIndex->getType()->isVectorTy())
 1334         unsigned GEPOpiBits = Index->getType()->getScalarSizeInBits();
 1614   KnownBits Known(getBitWidth(V->getType(), Q.DL));
 1640   assert((V->getType()->isIntOrIntVectorTy(BitWidth) ||
 1641           V->getType()->isPtrOrPtrVectorTy()) &&
 1644   Type *ScalarTy = V->getType()->getScalarType();
 1723   if (V->getType()->isPointerTy()) {
 1806       unsigned BitWidth = V->getType()->getScalarSizeInBits();
 1852   assert(GEP->getType()->isPointerTy() && "We only support plain pointer GEP");
 1905   assert(V->getType()->isPointerTy() && "V must be pointer type");
 2012         if (Q.DL.getTypeSizeInBits(CE->getOperand(0)->getType()) <=
 2013             Q.DL.getTypeSizeInBits(CE->getType()))
 2019     if (auto *VecTy = dyn_cast<VectorType>(C->getType())) {
 2045       if (auto *Ty = dyn_cast<IntegerType>(V->getType())) {
 2058   if (V->getType()->isPointerTy()) {
 2083   if (V->getType()->isPointerTy()) {
 2114   unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), Q.DL);
 2267   if (V1->getType() != V2->getType())
 2267   if (V1->getType() != V2->getType())
 2273   if (V1->getType()->isIntOrIntVectorTy()) {
 2340   if (!CV || !CV->getType()->isVectorTy())
 2344   unsigned NumElts = CV->getType()->getVectorNumElements();
 2381   Type *ScalarTy = V->getType()->getScalarType();
 2399       Tmp = TyBits - U->getOperand(0)->getType()->getScalarSizeInBits();
 2614       int NumElts = Shuf->getOperand(0)->getType()->getVectorNumElements();
 2615       int NumMaskElts = Shuf->getMask()->getType()->getVectorNumElements();
 2640       assert(Tmp <= V->getType()->getScalarSizeInBits() &&
 2671   assert(V->getType()->isIntegerTy() && "Not integer or pointer type!");
 2673   Type *T = V->getType();
 2732           if (Op1C->getType()->getPrimitiveSizeInBits() <
 2733               MulC->getType()->getPrimitiveSizeInBits())
 2734             Op1C = ConstantExpr::getZExt(Op1C, MulC->getType());
 2735           if (Op1C->getType()->getPrimitiveSizeInBits() >
 2736               MulC->getType()->getPrimitiveSizeInBits())
 2737             MulC = ConstantExpr::getZExt(MulC, Op1C->getType());
 2756           if (Op0C->getType()->getPrimitiveSizeInBits() <
 2757               MulC->getType()->getPrimitiveSizeInBits())
 2758             Op0C = ConstantExpr::getZExt(Op0C, MulC->getType());
 2759           if (Op0C->getType()->getPrimitiveSizeInBits() >
 2760               MulC->getType()->getPrimitiveSizeInBits())
 2761             MulC = ConstantExpr::getZExt(MulC, Op0C->getType());
 2958     if (CV->getType()->isVectorTy()) {
 2959       unsigned NumElts = CV->getType()->getVectorNumElements();
 3100   assert(V->getType()->isFPOrFPVectorTy() && "Querying for NaN on non-FP type");
 3167   if (!V->getType()->isVectorTy() || !isa<Constant>(V))
 3171   unsigned NumElts = V->getType()->getVectorNumElements();
 3189   if (V->getType()->isIntegerTy(8))
 3199   const uint64_t Size = DL.getTypeStoreSize(V->getType());
 3222     if (CFP->getType()->isHalfTy())
 3224     else if (CFP->getType()->isFloatTy())
 3226     else if (CFP->getType()->isDoubleTy())
 3246           cast<PointerType>(CE->getType())->getAddressSpace());
 3354   Type *IndexedType = ExtractValueInst::getIndexedType(From->getType(),
 3376   assert((V->getType()->isStructTy() || V->getType()->isArrayTy()) &&
 3376   assert((V->getType()->isStructTy() || V->getType()->isArrayTy()) &&
 3378   assert(ExtractValueInst::getIndexedType(V->getType(), idx_range) &&
 3653   if (!V->getType()->isPointerTy())
 3716   if (!V->getType()->isPointerTy())
 3758     assert(V->getType()->isPointerTy() && "Unexpected operand type!");
 3829     assert(V->getType()->isIntegerTy() && "Unexpected operand type!");
 3853         if (O->getType()->isPointerTy()) {
 3942         LI->getPointerOperand(), LI->getType(), MaybeAlign(LI->getAlignment()),
 4035   unsigned BitWidth = LHS->getType()->getScalarSizeInBits();
 4990         CmpConst->getType() == SrcTy) {
 5044       ConstantExpr::getCast(*CastOp, CastedTo, C->getType(), true);
 5085   if (CastOp && CmpLHS->getType() != TrueVal->getType()) {
 5085   if (CastOp && CmpLHS->getType() != TrueVal->getType()) {
 5137   assert(!LHS->getType()->isVectorTy() && "TODO: extend to handle vectors!");
 5353   if (LHS->getType() != RHS->getType())
 5353   if (LHS->getType() != RHS->getType())
 5356   Type *OpTy = LHS->getType();
 5389   assert(Cond->getType()->isIntOrIntVectorTy(1) && "Condition must be bool");
 5641   unsigned BitWidth = SI.getType()->getScalarSizeInBits();
 5688   assert(V->getType()->isIntOrIntVectorTy() && "Expected integer instruction");
 5695   unsigned BitWidth = V->getType()->getScalarSizeInBits();
lib/Analysis/VectorUtils.cpp
  173     if (CI && CI->getType() == Ty) {
  186   auto *PtrTy = dyn_cast<PointerType>(Ptr->getType());
  262   assert(V->getType()->isVectorTy() && "Not looking at a vector?");
  263   VectorType *VTy = cast<VectorType>(V->getType());
  288     unsigned LHSWidth = SVI->getOperand(0)->getType()->getVectorNumElements();
  314   if (isa<VectorType>(V->getType()))
  335   if (isa<VectorType>(V->getType())) {
  389           !TTI->isTypeLegal(I.getOperand(0)->getType()))
  394           !I.getType()->isVectorTy() &&
  395           I.getOperand(0)->getType()->getScalarSizeInBits() <= 64) {
  398         if (TTI && isa<TruncInst>(&I) && TTI->isTypeLegal(I.getType()))
  442         !I->getType()->isIntegerTy()) {
  468       if (U->getType()->isIntegerTy() && DBits.count(U) == 0)
  488       if (isa<PHINode>(*MI) && MinBW < (*MI)->getType()->getScalarSizeInBits()) {
  498       Type *Ty = (*MI)->getType();
  500         Ty = cast<Instruction>(*MI)->getOperand(0)->getType();
  704   VectorType *VecTy1 = dyn_cast<VectorType>(V1->getType());
  705   VectorType *VecTy2 = dyn_cast<VectorType>(V2->getType());
  735       assert((V0->getType() == V1->getType() || i == NumVecs - 2) &&
  735       assert((V0->getType() == V1->getType() || i == NumVecs - 2) &&
  758   for (unsigned I = 0, E = ConstMask->getType()->getVectorNumElements(); I != E;
  775   for (unsigned I = 0, E = ConstMask->getType()->getVectorNumElements(); I != E;
  789   const unsigned VWidth = cast<VectorType>(Mask->getType())->getNumElements();
  835       PointerType *PtrTy = cast<PointerType>(Ptr->getType());
lib/AsmParser/LLParser.cpp
  919   Type *AliaseeType = Aliasee->getType();
 1378   if (Val->getType() == Ty)
 1386     if (Val->getType() == TyInProgAS)
 1393                    getTypeString(Val->getType()) + "' but expected '" +
 2846         UndefValue::get(P.second.first->getType()));
 2854         UndefValue::get(P.second.first->getType()));
 2949   if (Inst->getType()->isVoidTy()) {
 2969       if (Sentinel->getType() != Inst->getType())
 2969       if (Sentinel->getType() != Inst->getType())
 2971                        getTypeString(FI->second.first->getType()) + "'");
 2986     if (Sentinel->getType() != Inst->getType())
 2986     if (Sentinel->getType() != Inst->getType())
 2988                      getTypeString(FI->second.first->getType()) + "'");
 3151     if (!Elts[0]->getType()->isIntegerTy() &&
 3152         !Elts[0]->getType()->isFloatingPointTy() &&
 3153         !Elts[0]->getType()->isPointerTy())
 3159       if (Elts[i]->getType() != Elts[0]->getType())
 3159       if (Elts[i]->getType() != Elts[0]->getType())
 3162                     " is not of type '" + getTypeString(Elts[0]->getType()));
 3184     if (!Elts[0]->getType()->isFirstClassType())
 3186                    getTypeString(Elts[0]->getType()));
 3188     ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size());
 3192       if (Elts[i]->getType() != Elts[0]->getType())
 3192       if (Elts[i]->getType() != Elts[0]->getType())
 3195                      " is not of type '" + getTypeString(Elts[0]->getType()));
 3331                    getTypeString(SrcVal->getType()) + "' to '" +
 3348     if (!Val->getType()->isAggregateType())
 3350     if (!ExtractValueInst::getIndexedType(Val->getType(), Indices))
 3367     if (!Val0->getType()->isAggregateType())
 3370         ExtractValueInst::getIndexedType(Val0->getType(), Indices);
 3373     if (IndexedType != Val1->getType())
 3375                                getTypeString(Val1->getType()) +
 3395     if (Val0->getType() != Val1->getType())
 3395     if (Val0->getType() != Val1->getType())
 3401       if (!Val0->getType()->isFPOrFPVectorTy())
 3406       if (!Val0->getType()->isIntOrIntVectorTy() &&
 3407           !Val0->getType()->isPtrOrPtrVectorTy())
 3428       if (!Val->getType()->isFPOrFPVectorTy())
 3481     if (Val0->getType() != Val1->getType())
 3481     if (Val0->getType() != Val1->getType())
 3495       if (!Val0->getType()->isIntOrIntVectorTy())
 3503       if (!Val0->getType()->isFPOrFPVectorTy())
 3531     if (Val0->getType() != Val1->getType())
 3531     if (Val0->getType() != Val1->getType())
 3533     if (!Val0->getType()->isIntOrIntVectorTy())
 3573           !Elts[0]->getType()->isPtrOrPtrVectorTy())
 3576       Type *BaseType = Elts[0]->getType();
 3588         Type *ValTy = Val->getType();
 5185     if (V->getType() != Ty)
 5218     if (ID.ConstantVal->getType() != Ty)
 5234         if (ID.ConstantStructElts[i]->getType() != ST->getElementType(i))
 5802       if (!Inst->getType()->isFPOrFPVectorTy())
 5819       if (!Inst->getType()->isFPOrFPVectorTy())
 5913   if (ResType != RV->getType())
 5935   if (Op0->getType() != Type::getInt1Ty(Context))
 5963   if (!Cond->getType()->isIntegerTy())
 6006   if (!Address->getType()->isPointerTy())
 6073       ParamTypes.push_back(ArgList[i].V->getType());
 6105     if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
 6335   bool Valid = IsFP ? LHS->getType()->isFPOrFPVectorTy()
 6336                     : LHS->getType()->isIntOrIntVectorTy();
 6400       ParamTypes.push_back(ArgList[i].V->getType());
 6435     if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
 6477       ParseValue(LHS->getType(), RHS, PFS))
 6480   bool Valid = IsFP ? LHS->getType()->isFPOrFPVectorTy()
 6481                     : LHS->getType()->isIntOrIntVectorTy();
 6497       ParseValue(LHS->getType(), RHS, PFS))
 6500   if (!LHS->getType()->isIntOrIntVectorTy())
 6519       ParseValue(LHS->getType(), RHS, PFS))
 6523     if (!LHS->getType()->isFPOrFPVectorTy())
 6528     if (!LHS->getType()->isIntOrIntVectorTy() &&
 6529         !LHS->getType()->isPtrOrPtrVectorTy())
 6556                  getTypeString(Op->getType()) + "' to '" +
 6733       if (isa<ArrayType>(V->getType()))
 6736       if (!isa<ArrayType>(V->getType()))
 6802       ParamTypes.push_back(ArgList[i].V->getType());
 6835     if (ExpectedTy && ExpectedTy != ArgList[i].V->getType())
 6919   if (Size && !Size->getType()->isIntegerTy())
 6961   if (!Val->getType()->isPointerTy() || !Ty->isFirstClassType())
 6969   if (Ty != cast<PointerType>(Val->getType())->getElementType())
 7008   if (!Ptr->getType()->isPointerTy())
 7010   if (!Val->getType()->isFirstClassType())
 7012   if (cast<PointerType>(Ptr->getType())->getElementType() != Val->getType())
 7012   if (cast<PointerType>(Ptr->getType())->getElementType() != Val->getType())
 7061   if (!Ptr->getType()->isPointerTy())
 7063   if (cast<PointerType>(Ptr->getType())->getElementType() != Cmp->getType())
 7063   if (cast<PointerType>(Ptr->getType())->getElementType() != Cmp->getType())
 7065   if (cast<PointerType>(Ptr->getType())->getElementType() != New->getType())
 7065   if (cast<PointerType>(Ptr->getType())->getElementType() != New->getType())
 7067   if (!New->getType()->isFirstClassType())
 7124   if (!Ptr->getType()->isPointerTy())
 7126   if (cast<PointerType>(Ptr->getType())->getElementType() != Val->getType())
 7126   if (cast<PointerType>(Ptr->getType())->getElementType() != Val->getType())
 7130     if (!Val->getType()->isIntegerTy() &&
 7131         !Val->getType()->isFloatingPointTy()) {
 7137     if (!Val->getType()->isFloatingPointTy()) {
 7143     if (!Val->getType()->isIntegerTy()) {
 7150   unsigned Size = Val->getType()->getPrimitiveSizeInBits();
 7195   Type *BaseType = Ptr->getType();
 7217     if (!Val->getType()->isIntOrIntVectorTy())
 7220     if (Val->getType()->isVectorTy()) {
 7221       unsigned ValNumEl = Val->getType()->getVectorNumElements();
 7252   if (!Val->getType()->isAggregateType())
 7255   if (!ExtractValueInst::getIndexedType(Val->getType(), Indices))
 7273   if (!Val0->getType()->isAggregateType())
 7276   Type *IndexedType = ExtractValueInst::getIndexedType(Val0->getType(), Indices);
 7279   if (IndexedType != Val1->getType())
 7281                            getTypeString(Val1->getType()) + "' instead of '" +
lib/Bitcode/Reader/BitcodeReader.cpp
 2266       if (isa<GlobalAlias>(GIS) && C->getType() != GIS->getType())
 2634           if (SelectorTy != V->getType())
 2822     assert(V->getType() == flattenPointerTypes(CurFullTy) &&
 3710     assert(I.getType() == flattenPointerTypes(FullFTy->getParamType(ArgNo)) &&
 3872       int Opc = getDecodedUnaryOpcode(Record[OpNum++], LHS->getType());
 3890           popValue(Record, OpNum, NextValueNo, LHS->getType(), RHS) ||
 3894       int Opc = getDecodedBinaryOpcode(Record[OpNum++], LHS->getType());
 4049       Type *CurTy = Agg->getType();
 4071       if (CurTy != Val->getType())
 4085           popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) ||
 4100           popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) ||
 4106           dyn_cast<VectorType>(Cond->getType())) {
 4112         if (Cond->getType() != Type::getInt1Ty(Context))
 4132       if (!Vec->getType()->isVectorTy())
 4145       if (!Vec->getType()->isVectorTy())
 4148                    cast<VectorType>(Vec->getType())->getElementType(), Elt) ||
 4160           popValue(Record, OpNum, NextValueNo, Vec1->getType(), Vec2))
 4165       if (!Vec1->getType()->isVectorTy() || !Vec2->getType()->isVectorTy())
 4165       if (!Vec1->getType()->isVectorTy() || !Vec2->getType()->isVectorTy())
 4169                                Mask->getType()->getVectorNumElements());
 4184           popValue(Record, OpNum, NextValueNo, LHS->getType(), RHS))
 4192       bool IsFP = LHS->getType()->isFPOrFPVectorTy();
 4200       if (LHS->getType()->isFPOrFPVectorTy())
 4490       PointerType *CalleeTy = dyn_cast<PointerType>(Callee->getType());
 4577       PointerType *OpTy = dyn_cast<PointerType>(Callee->getType());
 4719                 !isa<ArrayType>(Val->getType())) &&
 4722                 isa<ArrayType>(Val->getType())) &&
 4779       if (!isa<PointerType>(Op->getType()))
 4789       if (Error Err = typeCheckLoadStoreInst(Ty, Op->getType()))
 4807       if (!isa<PointerType>(Op->getType()))
 4817       if (Error Err = typeCheckLoadStoreInst(Ty, Op->getType()))
 4849       if (Error Err = typeCheckLoadStoreInst(Val->getType(), Ptr->getType()))
 4849       if (Error Err = typeCheckLoadStoreInst(Val->getType(), Ptr->getType()))
 4865           !isa<PointerType>(Ptr->getType()) ||
 4873       if (Error Err = typeCheckLoadStoreInst(Val->getType(), Ptr->getType()))
 4873       if (Error Err = typeCheckLoadStoreInst(Val->getType(), Ptr->getType()))
 4900       if (!isa<PointerType>(Ptr->getType()))
 4912       if (popValue(Record, OpNum, NextValueNo, Cmp->getType(), New) ||
 4922       if (Error Err = typeCheckLoadStoreInst(Cmp->getType(), Ptr->getType()))
 4922       if (Error Err = typeCheckLoadStoreInst(Cmp->getType(), Ptr->getType()))
 4955           !isa<PointerType>(Ptr->getType()) ||
 5018       PointerType *OpTy = dyn_cast<PointerType>(Callee->getType());
 5142     if (I && !I->getType()->isVoidTy()) {
 5144         FullTy = I->getType();
 5155       assert(I->getType() == flattenPointerTypes(FullTy) &&
 5172           A->replaceAllUsesWith(UndefValue::get(A->getType()));
lib/Bitcode/Reader/ValueList.cpp
  108     if (Ty != V->getType())
  130     if (Ty && Ty != V->getType())
lib/Bitcode/Writer/BitcodeWriter.cpp
 1424   Record.push_back(VE.getTypeID(V->getType()));
 2312     if (V->getType() != LastTy) {
 2313       LastTy = V->getType();
 2365       Type *Ty = CFP->getType();
 2433           Record.push_back(VE.getTypeID(C->getOperand(0)->getType()));
 2467           Record.push_back(VE.getTypeID(C->getOperand(i)->getType()));
 2480         Record.push_back(VE.getTypeID(C->getOperand(0)->getType()));
 2482         Record.push_back(VE.getTypeID(C->getOperand(1)->getType()));
 2489         Record.push_back(VE.getTypeID(C->getOperand(2)->getType()));
 2497         if (C->getType() == C->getOperand(0)->getType()) {
 2497         if (C->getType() == C->getOperand(0)->getType()) {
 2501           Record.push_back(VE.getTypeID(C->getOperand(0)->getType()));
 2510         Record.push_back(VE.getTypeID(C->getOperand(0)->getType()));
 2561     Vals.push_back(VE.getTypeID(V->getType()));
 2612       Vals.push_back(VE.getTypeID(I.getType()));
 2737       Vals.push_back(VE.getTypeID(SI.getCondition()->getType()));
 2748     Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
 2878     Vals64.push_back(VE.getTypeID(PN.getType()));
 2897     Vals.push_back(VE.getTypeID(LP.getType()));
 2914     Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
 2936     Vals.push_back(VE.getTypeID(I.getType()));
 3032     Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));   // valistty
 3034     Vals.push_back(VE.getTypeID(I.getType())); // restype.
 3204       if (!I->getType()->isVoidTy())
lib/Bitcode/Writer/ValueEnumerator.cpp
  317   return V.first->getType()->isIntOrIntVectorTy();
  393       EnumerateType(A.getType());
  416         EnumerateType(I.getType());
  529     if (LHS.first->getType() != RHS.first->getType())
  529     if (LHS.first->getType() != RHS.first->getType())
  530       return getTypeID(LHS.first->getType()) < getTypeID(RHS.first->getType());
  530       return getTypeID(LHS.first->getType()) < getTypeID(RHS.first->getType());
  805   assert(!V->getType()->isVoidTy() && "Can't insert void values!");
  821   EnumerateType(V->getType());
  893   EnumerateType(V->getType());
  990       if (!I.getType()->isVoidTy())
lib/CodeGen/Analysis.cpp
  288       if (isNoopBitcast(Op->getType(), I->getType(), TLI))
  288       if (isNoopBitcast(Op->getType(), I->getType(), TLI))
  298       if (!isa<VectorType>(I->getType()) &&
  300               cast<IntegerType>(Op->getType())->getBitWidth())
  306       if (!isa<VectorType>(I->getType()) &&
  308               cast<IntegerType>(I->getType())->getBitWidth())
  311                TLI.allowTruncateForTailCall(Op->getType(), I->getType())) {
  311                TLI.allowTruncateForTailCall(Op->getType(), I->getType())) {
  313                          I->getType()->getPrimitiveSizeInBits().getFixedSize());
  317       if (ReturnedOp && isNoopBitcast(ReturnedOp->getType(), I->getType(), TLI))
  317       if (ReturnedOp && isNoopBitcast(ReturnedOp->getType(), I->getType(), TLI))
  653   bool RetEmpty = !firstRealType(RetVal->getType(), RetSubTypes, RetPath);
  654   bool CallEmpty = !firstRealType(CallVal->getType(), CallSubTypes, CallPath);
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  861     if (MI->getOperand(0).getFPImm()->getType()->isFloatTy()) {
  863     } else if (MI->getOperand(0).getFPImm()->getType()->isDoubleTy()) {
 1320           CE->getOperand(0)->getType()->getPointerElementType()->isFunctionTy();
 2205     APInt OffsetAI(getDataLayout().getPointerTypeSizeInBits(CE->getType()), 0);
 2232     Op = ConstantExpr::getIntegerCast(Op, DL.getIntPtrType(CV->getType()),
 2243     Type *Ty = CE->getType();
 2252     if (DL.getTypeAllocSize(Ty) <= DL.getTypeAllocSize(Op->getType()))
 2258     unsigned InBits = DL.getTypeAllocSizeInBits(Op->getType());
 2342     uint64_t Size = DL.getTypeAllocSizeInBits(V->getType());
 2428       Offset += DL.getTypeAllocSize(CA->getOperand(i)->getType());
 2459     uint64_t FieldSize = DL.getTypeAllocSize(Field->getType());
 2518   emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP);
 2671   uint64_t Size = DL.getTypeAllocSize(CV->getType());
 2750   uint64_t Size = DL.getTypeAllocSize(CV->getType());
lib/CodeGen/AtomicExpandPass.cpp
  136   return DL.getTypeStoreSize(LI->getType());
  141   return DL.getTypeStoreSize(SI->getValueOperand()->getType());
  146   return DL.getTypeStoreSize(RMWI->getValOperand()->getType());
  151   return DL.getTypeStoreSize(CASI->getCompareOperand()->getType());
  178   return DL.getTypeStoreSize(RMWI->getValOperand()->getType());
  184   return DL.getTypeStoreSize(CASI->getCompareOperand()->getType());
  284       if (LI->getType()->isFloatingPointTy()) {
  288         assert(LI->getType()->isIntegerTy() && "invariant broken");
  294       if (SI->getValueOperand()->getType()->isFloatingPointTy()) {
  298         assert(SI->getValueOperand()->getType()->isIntegerTy() &&
  329       assert(!CASI->getCompareOperand()->getType()->isFloatingPointTy() &&
  331       if (CASI->getCompareOperand()->getType()->isPointerTy() ) {
  335         assert(CASI->getCompareOperand()->getType()->isIntegerTy() &&
  374   Type *NewTy = getCorrespondingIntegerType(LI->getType(),
  381                               Addr->getType()->getPointerAddressSpace());
  390   Value *NewVal = Builder.CreateBitCast(NewLI, LI->getType());
  402         LI, LI->getType(), LI->getPointerOperand(), LI->getOrdering(),
  437   Type *Ty = cast<PointerType>(Addr->getType())->getElementType();
  462   Type *NewTy = getCorrespondingIntegerType(SI->getValueOperand()->getType(),
  468                               Addr->getType()->getPointerAddressSpace());
  501   Type *OrigTy = NewVal->getType();
  507     unsigned AS = Addr->getType()->getPointerAddressSpace();
  579       expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(),
  589       if (AI->getType()->isFloatingPointTy())
  658       Ret.WordType->getPointerTo(Addr->getType()->getPointerAddressSpace());
  751       createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(),
  784       createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(),
  868       Builder, CI, CI->getCompareOperand()->getType(), Addr, WordSize);
  927   Value *Res = UndefValue::get(CI->getType());
  950       createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(),
  977       Builder, CI, CI->getCompareOperand()->getType(), CI->getPointerOperand(),
  992   Value *Res = UndefValue::get(CI->getType());
 1055   Type *NewTy = getCorrespondingIntegerType(CI->getCompareOperand()->getType(),
 1062                               Addr->getType()->getPointerAddressSpace());
 1080   OldVal = Builder.CreateIntToPtr(OldVal, CI->getCompareOperand()->getType());
 1082   Value *Res = UndefValue::get(CI->getType());
 1262     PHINode *TryStoreLoaded = Builder.CreatePHI(UnreleasedLoad->getType(), 2);
 1267     PHINode *NoStoreLoaded = Builder.CreatePHI(UnreleasedLoad->getType(), 2);
 1272     PHINode *ExitLoaded = Builder.CreatePHI(UnreleasedLoad->getType(), 2);
 1306     Res = Builder.CreateInsertValue(UndefValue::get(CI->getType()), Loaded, 0);
 1434       Builder, AI->getType(), AI->getPointerOperand(), AI->getOrdering(),
 1638   bool HasResult = I->getType() != Type::getVoidTy(Ctx);
 1705   auto PtrTypeAS = PointerOperand->getType()->getPointerAddressSpace();
 1713     AllocaCASExpected = AllocaBuilder.CreateAlloca(CASExpected->getType());
 1732       AllocaValue = AllocaBuilder.CreateAlloca(ValueOperand->getType());
 1744     AllocaResult = AllocaBuilder.CreateAlloca(I->getType());
 1772     ArgTys.push_back(Arg->getType());
 1787     Type *FinalResultTy = I->getType();
 1790         CASExpected->getType(), AllocaCASExpected, AllocaAlignment);
 1798       V = Builder.CreateBitOrPointerCast(Result, I->getType());
 1800       V = Builder.CreateAlignedLoad(I->getType(), AllocaResult,
lib/CodeGen/CodeGenPrepare.cpp
 1004     if (RelocatedBase->getType() != Base->getType()) {
 1004     if (RelocatedBase->getType() != Base->getType()) {
 1006           Builder.CreateBitCast(RelocatedBase, Base->getType());
 1014     if (Replacement->getType() != ToReplace->getType()) {
 1014     if (Replacement->getType() != ToReplace->getType()) {
 1016           Builder.CreateBitCast(Replacement, ToReplace->getType());
 1115                                       CI->getType(), "", &*InsertPt);
 1151   EVT SrcVT = TLI.getValueType(DL, CI->getOperand(0)->getType());
 1152   EVT DstVT = TLI.getValueType(DL, CI->getType());
 1239     B = ConstantInt::get(B->getType(), 1);
 1241     B = ConstantInt::get(B->getType(), -1);
 1267                                  TLI->getValueType(*DL, Add->getType())))
 1299     B = ConstantInt::get(B->getType(), 1);
 1334                                  TLI->getValueType(*DL, Sub->getType())))
 1550             ISDOpcode, TLI.getValueType(DL, TruncUser->getType(), true)))
 1583                                        TruncI->getType(), "", &*TruncInsertPt);
 1619   bool shiftIsLegal = TLI.isTypeLegal(TLI.getValueType(DL, ShiftI->getType()));
 1657           (!TLI.isTypeLegal(TLI.getValueType(DL, User->getType()))))
 1730   Type *Ty = CountZeros->getType();
 1803       if (!Arg->getType()->isPointerTy())
 1806                        cast<PointerType>(Arg->getType())->getAddressSpace()),
 1847       if (!Arg->getType()->isPointerTy())
 1849       unsigned AS = Arg->getType()->getPointerAddressSpace();
 1850       return optimizeMemoryInst(CI, Arg, Arg->getType(), AS);
 1918           unsigned AS = PtrVal->getType()->getPointerAddressSpace();
 2102         BaseReg->getType() != other.BaseReg->getType())
 2102         BaseReg->getType() != other.BaseReg->getType())
 2108         ScaledReg->getType() != other.ScaledReg->getType())
 2108         ScaledReg->getType() != other.ScaledReg->getType())
 2394         Inst->setOperand(It, UndefValue::get(Val->getType()));
 2491         : TypePromotionAction(Inst), OrigTy(Inst->getType()) {
 2557         LLVMContext &Ctx = Inst->getType()->getContext();
 3198     Type *IntPtrTy = SQ.DL.getIntPtrType(AddrModes[0].OriginalValue->getType());
 3202         auto *Type = DV->getType();
 3542     if (I->getType() == I->getOperand(0)->getType())
 3542     if (I->getType() == I->getOperand(0)->getType())
 3544     return I->getType()->isIntOrPtrTy();
 3579       ISDOpcode, TLI.getValueType(DL, PromotedInst->getType()));
 3604     PromotedInsts[ExtOpnd] = TypeIsSExt(ExtOpnd->getType(), ExtTy);
 3725   if (Inst->getType()->isVectorTy())
 3777             Cst->getValue().isIntN(Inst->getType()->getIntegerBitWidth()))
 3791   if (!OpndVal->getType()->isIntegerTy() ||
 3792       OpndVal->getType()->getIntegerBitWidth() >
 3811     OpndType = Opnd->getOperand(0)->getType();
 3816   return Inst->getType()->getIntegerBitWidth() >=
 3826   Type *ExtTy = Ext->getType();
 3848   if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType()))
 3868         TPT.createZExt(SExt, SExtOpnd->getOperand(0), SExt->getType());
 3885   if (!ExtInst || ExtInst->getType() != ExtInst->getOperand(0)->getType()) {
 3885   if (!ExtInst || ExtInst->getType() != ExtInst->getOperand(0)->getType()) {
 3916     Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType());
 3939   TPT.mutateType(ExtOpnd, Ext->getType());
 3949     if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() ||
 3949     if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() ||
 3958       unsigned BitWidth = Ext->getType()->getIntegerBitWidth();
 3961       TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal));
 3967       TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType()));
 3976       Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType())
 3977         : TPT.createZExt(Ext, Opnd, Ext->getType());
 4053     auto AS = AddrInst->getType()->getPointerAddressSpace();
 4056     if (TLI.getValueType(DL, AddrInst->getOperand(0)->getType()) == PtrTy)
 4063     if (AddrInst->getOperand(0)->getType()->isIntOrPtrTy() &&
 4067         AddrInst->getOperand(0)->getType() != AddrInst->getType())
 4067         AddrInst->getOperand(0)->getType() != AddrInst->getType())
 4072       = AddrInst->getOperand(0)->getType()->getPointerAddressSpace();
 4073     unsigned DestAS = AddrInst->getType()->getPointerAddressSpace();
 4595     PointerType *AddrTy = dyn_cast<PointerType>(Address->getType());
 4775     if (SunkAddr->getType() != Addr->getType())
 4775     if (SunkAddr->getType() != Addr->getType())
 4776       SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType());
 4783     Type *IntPtrTy = DL->getIntPtrType(Addr->getType());
 4787     if (AddrMode.BaseReg && AddrMode.BaseReg->getType()->isPointerTy()) {
 4792     if (AddrMode.Scale && AddrMode.ScaledReg->getType()->isPointerTy()) {
 4810       Type *ScaledRegTy = AddrMode.ScaledReg->getType();
 4826     if (!DL->isNonIntegralPointerType(Addr->getType())) {
 4828         ResultPtr = Builder.CreateIntToPtr(AddrMode.BaseReg, Addr->getType(),
 4832         ResultPtr = Builder.CreateIntToPtr(AddrMode.ScaledReg, Addr->getType(),
 4840       SunkAddr = Constant::getNullValue(Addr->getType());
 4845           Builder.getInt8PtrTy(Addr->getType()->getPointerAddressSpace());
 4855         if (V->getType() != IntPtrTy)
 4864         if (V->getType() == IntPtrTy) {
 4868                  cast<IntegerType>(V->getType())->getBitWidth() &&
 4888           if (ResultPtr->getType() != I8PtrTy)
 4903         if (ResultPtr->getType() != I8PtrTy)
 4912       if (SunkAddr->getType() != Addr->getType())
 4912       if (SunkAddr->getType() != Addr->getType())
 4913         SunkAddr = Builder.CreatePointerCast(SunkAddr, Addr->getType());
 4918     Type *BaseTy = AddrMode.BaseReg ? AddrMode.BaseReg->getType() : nullptr;
 4919     Type *ScaleTy = AddrMode.Scale ? AddrMode.ScaledReg->getType() : nullptr;
 4922     if (DL->isNonIntegralPointerType(Addr->getType()) ||
 4931     Type *IntPtrTy = DL->getIntPtrType(Addr->getType());
 4941       if (V->getType()->isPointerTy())
 4943       if (V->getType() != IntPtrTy)
 4951       if (V->getType() == IntPtrTy) {
 4953       } else if (V->getType()->isPointerTy()) {
 4956                  cast<IntegerType>(V->getType())->getBitWidth()) {
 4997       SunkAddr = Constant::getNullValue(Addr->getType());
 4999       SunkAddr = Builder.CreateIntToPtr(Result, Addr->getType(), "sunkaddr");
 5048       MadeChange |= optimizeMemoryInst(CS, OpVal, OpVal->getType(), ~0u);
 5062   Type *ExtTy = FirstUser->getType();
 5067     Type *CurTy = UI->getType();
 5331       Type *IntPtrTy = DL->getIntPtrType(GEP->getType());
 5333           Type::getInt8PtrTy(Ctx, GEP->getType()->getPointerAddressSpace());
 5363         if (NewBaseGEP->getType() != I8PtrTy)
 5373         if (GEP->getType() != I8PtrTy)
 5374           NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType());
 5380         if (GEP->getType() != I8PtrTy)
 5381           NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType());
 5588   if (TLI && !TLI->isTruncateFree(I->getType(), Src->getType()))
 5588   if (TLI && !TLI->isTruncateFree(I->getType(), Src->getType()))
 5637       InsertedTrunc = new TruncInst(I, Src->getType(), "", &*InsertPt);
 5702   if (!Load->isSimple() || !Load->getType()->isIntOrPtrTy())
 5718   EVT LoadResultVT = TLI->getValueType(*DL, Load->getType());
 5763       EVT TruncVT = TLI->getValueType(*DL, I->getType());
 5790   LLVMContext &Ctx = Load->getType()->getContext();
 5911   Type *Ty = Shift->getType();
 5956   bool VectorCond = !SI->getCondition()->getType()->isIntegerTy(1);
 5965   else if (SI->getType()->isVectorTy())
 6083     PHINode *PN = PHINode::Create(SI->getType(), 2, "", &EndBlock->front());
 6229   Type *OldType = Cond->getType();
 6340     return Transition->getOperand(getTransitionOriginalValueIdx())->getType();
 6366             TLI.getValueType(DL, ST->getValueOperand()->getType()), AS,
 6394           Inst->getOpcode(), Inst->getType(), Arg0OVK, Arg1OVK);
 6429     UndefValue *UndefVal = UndefValue::get(Val->getType());
 6554   assert(ToBePromoted->getType() == Transition->getType() &&
 6554   assert(ToBePromoted->getType() == Transition->getType() &&
 6593        !TLI->canCombineStoreAndExtract(Inst->getOperand(0)->getType(),
 6677   Type *StoreType = SI.getValueOperand()->getType();
 6707   if (!LValue->getType()->isIntegerTy() ||
 6708       DL.getTypeSizeInBits(LValue->getType()) > HalfValBitSize ||
 6709       !HValue->getType()->isIntegerTy() ||
 6710       DL.getTypeSizeInBits(HValue->getType()) > HalfValBitSize)
 6717   EVT LowTy = LBC ? EVT::getEVT(LBC->getOperand(0)->getType())
 6718                   : EVT::getEVT(LValue->getType());
 6719   EVT HighTy = HBC ? EVT::getEVT(HBC->getOperand(0)->getType())
 6720                    : EVT::getEVT(HValue->getType());
 6731     LValue = Builder.CreateBitCast(LBC->getOperand(0), LBC->getType());
 6733     HValue = Builder.CreateBitCast(HBC->getOperand(0), HBC->getType());
 6960                              TLI->getValueType(*DL, CI->getType())) ==
 6980       Modified |= optimizeMemoryInst(I, I->getOperand(0), LI->getType(), AS);
 6993                                 SI->getOperand(0)->getType(), AS);
 7001                                 RMW->getType(), AS);
 7007                                 CmpX->getCompareOperand()->getType(), AS);
 7028       Instruction *NC = new BitCastInst(GEPI->getOperand(0), GEPI->getType(),
 7070   if (!I.getType()->isIntegerTy() ||
 7072                                     TLI.getValueType(DL, I.getType(), true)))
lib/CodeGen/ExpandMemCmp.cpp
  300                                     ConstantInt::get(Diff->getType(), 0));
  398     Cmp = Builder.CreateICmpNE(OrList[0], ConstantInt::get(Diff->getType(), 0));
  571   if (Source1->getType() != LoadSizeType)
  573   if (Source2->getType() != LoadSizeType)
lib/CodeGen/GCRootLowering.cpp
  216         Value *Ld = new LoadInst(CI->getType(), CI->getArgOperand(1), "", CI);
lib/CodeGen/GlobalISel/CallLowering.cpp
   46     ArgInfo OrigArg{ArgRegs[i], Arg->getType(), ISD::ArgFlagsTy{},
lib/CodeGen/GlobalISel/IRTranslator.cpp
  166   computeValueLLTs(*DL, *Val.getType(), SplitTys,
  178   if (Val.getType()->isVoidTy())
  185   assert(Val.getType()->isSized() &&
  189   computeValueLLTs(*DL, *Val.getType(), SplitTys,
  198   if (Val.getType()->isAggregateType()) {
  214       R << "unable to translate constant: " << ore::NV("Type", Val.getType());
  248     ValTy = SI->getValueOperand()->getType();
  251     ValTy = LI->getType();
  257     Alignment = DL.getTypeStoreSize(AI->getCompareOperand()->getType());
  258     ValTy = AI->getCompareOperand()->getType();
  264     Alignment = DL.getTypeStoreSize(AI->getValOperand()->getType());
  265     ValTy = AI->getType();
  309       U.getOperand(0) == ConstantFP::getZeroValueForNegation(U.getType())) {
  349         Res, getOrCreateVReg(*Constant::getNullValue(U.getType())));
  352         Res, getOrCreateVReg(*Constant::getAllOnesValue(U.getType())));
  365   if (Ret && DL->getTypeStoreSize(Ret->getType()) == 0)
  531   const LLT SwitchTy = getLLTForType(*SValue.getType(), *DL);
  538   Type *PtrIRTy = SValue.getType()->getPointerTo();
  554       *ConstantInt::get(SValue.getType(), JTH.Last - JTH.First));
  866   if (DL->getTypeStoreSize(LI.getType()) == 0)
  908   if (DL->getTypeStoreSize(SI.getValueOperand()->getType()) == 0)
  963                  DL.getIndexedOffsetInType(Src->getType(), Indices));
 1024   if (getLLTForType(*U.getOperand(0)->getType(), *DL) ==
 1025       getLLTForType(*U.getType(), *DL)) {
 1052   if (U.getType()->isVectorTy())
 1057   Type *PtrIRTy = Op0.getType();
 1415         TLI.isFMAFasterThanFMulAndFAdd(TLI.getValueType(*DL, CI.getType()))) {
 1421       LLT Ty = getLLTForType(*CI.getType(), *DL);
 1450     LLT PtrTy = getLLTForType(*CI.getArgOperand(0)->getType(), *DL);
 1509     LLT PtrTy = getLLTForType(*CI.getArgOperand(0)->getType(), *DL);
 1555       LLT Ty = getLLTForType(*Arg->getType(), *DL);
 1616   if (!CI.getType()->isVoidTy())
 1746   if (LP.getType()->isTokenTy())
 1754   LLT Ty = getLLTForType(*LP.getType(), *DL);
 1759   for (Type *Ty : cast<StructType>(LP.getType())->elements())
 1852     .addImm(DL->getABITypeAlignment(U.getType()));
 1860   if (U.getType()->getVectorNumElements() == 1) {
 1884   if (U.getOperand(0)->getType()->getVectorNumElements() == 1) {
 1951   Type *ResType = I.getType();
 1979   Type *ResType = I.getType();
 2085   computeValueLLTs(*DL, *V.getType(), SplitTys, Offsets);
 2119     unsigned NullSize = DL->getTypeSizeInBits(C.getType());
 2127     if (!CAZ->getType()->isVectorTy())
 2299     if (DL->getTypeStoreSize(Arg.getType()) == 0)
lib/CodeGen/HardwareLoops.cpp
  372   Type *Ty = LoopCountInit->getType();
  397                               LoopDecrement->getType());
  419                                 { EltsRem->getType(), EltsRem->getType(),
  419                                 { EltsRem->getType(), EltsRem->getType(),
  420                                   LoopDecrement->getType()
  434   PHINode *Index = Builder.CreatePHI(NumElts->getType(), 2);
  444     CondBuilder.CreateICmpNE(EltsRem, ConstantInt::get(EltsRem->getType(), 0));
lib/CodeGen/IndirectBrExpandPass.cpp
  147     auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType()));
  154     BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(BBIndexC, BA->getType()));
  174         cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType()));
lib/CodeGen/InterleavedAccessPass.cpp
  310   unsigned NumLoadElements = LI->getType()->getVectorNumElements();
  428   unsigned OpNumElts = SVI->getOperand(0)->getType()->getVectorNumElements();
lib/CodeGen/InterleavedLoadCombinePass.cpp
  187     IntegerType *Ty = dyn_cast<IntegerType>(V->getType());
  737     VectorType *VTy = dyn_cast<VectorType>(Op->getType());
  787     VectorType *ArgTy = dyn_cast<VectorType>(SVI->getOperand(0)->getType());
  959     PointerType *PtrTy = dyn_cast<PointerType>(Ptr.getType());
 1237     auto SVI = Builder.CreateShuffleVector(LI, UndefValue::get(LI->getType()),
lib/CodeGen/IntrinsicLowering.cpp
   40     ParamTys.push_back((*I)->getType());
   63   assert(V->getType()->isIntOrIntVectorTy() && "Can't bswap a non-integer type!");
   65   unsigned BitSize = V->getType()->getScalarSizeInBits();
   72     Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
   74     Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
   80     Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
   82     Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
   84     Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
   86     Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24),
   89                          ConstantInt::get(V->getType(), 0xFF0000),
   92                            ConstantInt::get(V->getType(), 0xFF00),
  100     Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56),
  102     Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40),
  104     Value *Tmp6 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
  106     Value *Tmp5 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
  108     Value* Tmp4 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
  111                                      ConstantInt::get(V->getType(), 24),
  114                                      ConstantInt::get(V->getType(), 40),
  117                                      ConstantInt::get(V->getType(), 56),
  120                              ConstantInt::get(V->getType(),
  124                              ConstantInt::get(V->getType(),
  128                         ConstantInt::get(V->getType(),
  132                         ConstantInt::get(V->getType(),
  136                              ConstantInt::get(V->getType(),
  140                              ConstantInt::get(V->getType(),
  158   assert(V->getType()->isIntegerTy() && "Can't ctpop a non-integer type!");
  168   unsigned BitSize = V->getType()->getPrimitiveSizeInBits();
  170   Value *Count = ConstantInt::get(V->getType(), 0);
  176       Value *MaskCst = ConstantInt::get(V->getType(), MaskValues[ct]);
  179                                         ConstantInt::get(V->getType(), i),
  186       V = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 64),
  200   unsigned BitSize = V->getType()->getPrimitiveSizeInBits();
  202     Value *ShVal = ConstantInt::get(V->getType(), i);
  215   switch (CI->getArgOperand(0)->getType()->getTypeID()) {
  229                   CI->getArgOperand(0)->getType());
  264     if (!CI->getType()->isVoidTy())
  269      if (!CI->getType()->isVoidTy())
  270        CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
  302     Value *SrcM1 = ConstantInt::get(Src->getType(), 1);
  317       CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
  326     CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 0));
  334         ConstantPointerNull::get(cast<PointerType>(CI->getType())));
  340         ConstantPointerNull::get(cast<PointerType>(CI->getType())));
  361     CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
  382     ReplaceCallWith("memcpy", CI, Ops, Ops+3, CI->getArgOperand(0)->getType());
  393     ReplaceCallWith("memmove", CI, Ops, Ops+3, CI->getArgOperand(0)->getType());
  398     Type *IntPtr = DL.getIntPtrType(Op0->getType());
  408     ReplaceCallWith("memset", CI, Ops, Ops+3, CI->getArgOperand(0)->getType());
  469      if (!CI->getType()->isVoidTy())
  470        CI->replaceAllUsesWith(ConstantInt::get(CI->getType(), 1));
  475     CI->replaceAllUsesWith(UndefValue::get(CI->getType()));
  491       CI->getType() != CI->getArgOperand(0)->getType() ||
  491       CI->getType() != CI->getArgOperand(0)->getType() ||
  492       !CI->getType()->isIntegerTy())
  495   IntegerType *Ty = dyn_cast<IntegerType>(CI->getType());
lib/CodeGen/LowerEmuTLS.cpp
  116       PointerType::getUnqual(InitValue->getType()) : VoidPtrType;
lib/CodeGen/MIRParser/MIParser.cpp
 2780   if (!V->getType()->isPointerTy())
lib/CodeGen/MIRParser/MIRParser.cpp
  827             : M.getDataLayout().getPrefTypeAlignment(Value->getType());
lib/CodeGen/MachineFunction.cpp
  971   return Val.ConstVal->getType();
 1024   if (A->getType() == B->getType()) return false;
 1024   if (A->getType() == B->getType()) return false;
 1027   if (isa<StructType>(A->getType()) || isa<ArrayType>(A->getType()) ||
 1027   if (isa<StructType>(A->getType()) || isa<ArrayType>(A->getType()) ||
 1028       isa<StructType>(B->getType()) || isa<ArrayType>(B->getType()))
 1028       isa<StructType>(B->getType()) || isa<ArrayType>(B->getType()))
 1032   uint64_t StoreSize = DL.getTypeStoreSize(A->getType());
 1033   if (StoreSize != DL.getTypeStoreSize(B->getType()) || StoreSize > 128)
 1042   if (isa<PointerType>(A->getType()))
 1045   else if (A->getType() != IntTy)
 1048   if (isa<PointerType>(B->getType()))
 1051   else if (B->getType() != IntTy)
lib/CodeGen/MachineOperand.cpp
  944     const int NumElts = C->getType()->getVectorNumElements();
 1025           isa<PointerType>(PtrInfo.V.get<const Value *>()->getType())) &&
lib/CodeGen/MachineVerifier.cpp
 1412     auto *MaskVT = dyn_cast<VectorType>(Mask->getType());
lib/CodeGen/SafeStack.cpp
  296         if (!IsAccessSafe(UI, DL.getTypeStoreSize(I->getType()), AllocaPtr,
  313         if (!IsAccessSafe(UI, DL.getTypeStoreSize(I->getOperand(0)->getType()),
  417         DL.getTypeStoreSize(Arg.getType()->getPointerElementType());
  510     Type *Ty = Arg->getType()->getPointerElementType();
  566     Type *Ty = Arg->getType()->getPointerElementType();
  574     Value *NewArg = IRB.CreateBitCast(Off, Arg->getType(),
  648     if (ArraySize->getType() != IntPtrTy)
  789   assert(BasePointer->getType() == StackPtrTy);
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
   84   unsigned NumElts = Mask->getType()->getVectorNumElements();
  133   VectorType *VecType = cast<VectorType>(CI->getType());
  156       EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace());
  271   VectorType *VecType = cast<VectorType>(Src->getType());
  292       EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace());
  395   VectorType *VecType = cast<VectorType>(CI->getType());
  519   assert(isa<VectorType>(Src->getType()) &&
  521   assert(isa<VectorType>(Ptrs->getType()) &&
  522          isa<PointerType>(Ptrs->getType()->getVectorElementType()) &&
  532   unsigned VectorWidth = Src->getType()->getVectorNumElements();
  603   VectorType *VecType = cast<VectorType>(CI->getType());
  698       PHINode *PtrPhi = Builder.CreatePHI(Ptr->getType(), 2, "ptr.phi.else");
  716   VectorType *VecType = cast<VectorType>(Src->getType());
  798       PHINode *PtrPhi = Builder.CreatePHI(Ptr->getType(), 2, "ptr.phi.else");
  858       if (TTI->isLegalMaskedLoad(CI->getType(), MaybeAlign(Alignment)))
  866       if (TTI->isLegalMaskedStore(CI->getArgOperand(0)->getType(),
  873       if (TTI->isLegalMaskedGather(CI->getType()))
  878       if (TTI->isLegalMaskedScatter(CI->getArgOperand(0)->getType()))
  883       if (TTI->isLegalMaskedExpandLoad(CI->getType()))
  888       if (TTI->isLegalMaskedCompressStore(CI->getArgOperand(0)->getType()))
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
20001   Type *FPTy = Elts[0]->getType();
20013   unsigned EltSize = (unsigned)TD.getTypeAllocSize(Elts[0]->getType());
lib/CodeGen/SelectionDAG/FastISel.cpp
  363   EVT RealVT = TLI.getValueType(DL, V->getType(), /*AllowUnknown=*/true);
  517   EVT IdxVT = EVT::getEVT(Idx->getType(), /*HandleUnknown=*/false);
  585   EVT VT = EVT::getEVT(I->getType(), /*HandleUnknown=*/true);
  878     assert(!V->getType()->isEmptyTy() && "Empty type passed to intrinsic.");
  882     Entry.Ty = V->getType();
  887   Type *RetTy = ForceRetVoidTy ? Type::getVoidTy(CI->getType()->getContext())
  888                                : CI->getType();
  912   bool HasDef = !I->getType()->isVoidTy();
 1120     assert(!V->getType()->isEmptyTy() && "Empty type passed to intrinsic.");
 1124     Entry.Ty = V->getType();
 1263     if (V->getType()->isEmptyTy())
 1267     Entry.Ty = V->getType();
 1490   EVT SrcVT = TLI.getValueType(DL, I->getOperand(0)->getType());
 1491   EVT DstVT = TLI.getValueType(DL, I->getType());
 1524   if (I->getType() == I->getOperand(0)->getType()) {
 1524   if (I->getType() == I->getOperand(0)->getType()) {
 1533   EVT SrcEVT = TLI.getValueType(DL, I->getOperand(0)->getType());
 1534   EVT DstEVT = TLI.getValueType(DL, I->getType());
 1715   EVT VT = TLI.getValueType(DL, I->getType());
 1758   EVT RealVT = TLI.getValueType(DL, EVI->getType(), /*AllowUnknown=*/true);
 1766   Type *AggTy = Op0->getType();
 1896     EVT SrcVT = TLI.getValueType(DL, I->getOperand(0)->getType());
 1897     EVT DstVT = TLI.getValueType(DL, I->getType());
 2286       EVT VT = TLI.getValueType(DL, PN.getType(), /*AllowUnknown=*/true);
 2377   if (DL.getTypeSizeInBits(GEP->getType()) !=
 2378       DL.getTypeSizeInBits(Add->getType()))
 2401     ValTy = LI->getType();
 2407     ValTy = SI->getValueOperand()->getType();
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  274       if (PN.getType()->isEmptyTy())
  282       ComputeValueVTs(*TLI, MF->getDataLayout(), PN.getType(), ValueVTs);
  383   return CreateRegs(V->getType(), DA && !TLI->requiresUniformRegister(*MF, V) &&
  412   Type *Ty = PN->getType();
  536                       P.first->getType(), ValueVTs);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1431                     ? getDataLayout().getABITypeAlignment(C->getType())
 1432                     : getDataLayout().getPrefTypeAlignment(C->getType());
 1826   assert((!V || V->getType()->isPointerTy()) &&
 2924       Type *CstTy = Cst->getType();
 2931             CstTy = Cst->getType();
 3904           Type *CstTy = Cst->getType();
 9357   return Val.ConstVal->getType();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1204           UndefValue::get(DDI.getDI()->getVariableLocation()->getType());
 1258   auto Undef = UndefValue::get(DDI.getDI()->getVariableLocation()->getType());
 1324                        V->getType(), None);
 1399   if (SDValue copyFromReg = getCopyFromRegs(V, V->getType()))
 1444     EVT VT = TLI.getValueType(DAG.getDataLayout(), V->getType(), true);
 1453       unsigned AS = V->getType()->getPointerAddressSpace();
 1461     if (isa<UndefValue>(C) && !V->getType()->isAggregateType())
 1503     if (C->getType()->isStructTy() || C->getType()->isArrayTy()) {
 1503     if (C->getType()->isStructTy() || C->getType()->isArrayTy()) {
 1508       ComputeValueVTs(TLI, DAG.getDataLayout(), C->getType(), ValueVTs);
 1529     VectorType *VecTy = cast<VectorType>(V->getType());
 1570                      Inst->getType(), getABIRegCopyCC(V));
 1802     ComputeValueVTs(TLI, DL, I.getOperand(0)->getType(), ValueVTs, &MemVTs,
 1824     ComputeValueVTs(TLI, DL, I.getOperand(0)->getType(), ValueVTs);
 1832           I.getOperand(0)->getType(), F->getCallingConv(),
 1867         if (I.getOperand(0)->getType()->isPointerTy()) {
 1870               cast<PointerType>(I.getOperand(0)->getType())->getAddressSpace());
 1933   if (V->getType()->isEmptyTy())
 2328   EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), CB.CmpLHS->getType());
 2875   if (LP.getType()->isTokenTy())
 2880   ComputeValueVTs(TLI, DAG.getDataLayout(), LP.getType(), ValueVTs);
 2963   Type *Ty = I.getType();
 2980   if (!Inst || !Inst->getType()->isVectorTy())
 3001   unsigned ElemNum = Inst->getType()->getVectorNumElements();
 3140   if (!I.getType()->isVectorTy() && Op2.getValueType() != ShiftTy) {
 3208       TLI.getMemValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
 3219                                                         I.getType());
 3238                                                         I.getType());
 3252   ComputeValueVTs(DAG.getTargetLoweringInfo(), DAG.getDataLayout(), I.getType(),
 3382                                                         I.getType());
 3391                                                         I.getType());
 3400                                                         I.getType());
 3409   EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 3419                                                         I.getType());
 3427                                                         I.getType());
 3435                                                         I.getType());
 3443                                                         I.getType());
 3451                                                         I.getType());
 3461                                                         I.getType());
 3463       TLI.getMemValueType(DAG.getDataLayout(), I.getOperand(0)->getType());
 3474   EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 3475   EVT PtrMemVT = TLI.getMemValueType(DAG.getDataLayout(), I.getType());
 3485                                                         I.getType());
 3507   EVT DestVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 3509   unsigned SrcAS = SV->getType()->getPointerAddressSpace();
 3510   unsigned DestAS = I.getType()->getPointerAddressSpace();
 3525                            TLI.getValueType(DAG.getDataLayout(), I.getType()),
 3535                            TLI.getValueType(DAG.getDataLayout(), I.getType()),
 3545   EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 3749   Type *AggTy = I.getType();
 3750   Type *ValTy = Op1->getType();
 3802   Type *AggTy = Op0->getType();
 3803   Type *ValTy = I.getType();
 3838   unsigned AS = Op0->getType()->getScalarType()->getPointerAddressSpace();
 3847   unsigned VectorWidth = I.getType()->isVectorTy() ?
 3848     I.getType()->getVectorNumElements() : 0;
 3882       if (C && isa<VectorType>(C->getType()))
 4021   Type *Ty = I.getType();
 4027       isDereferenceablePointer(SV, I.getType(), DAG.getDataLayout());
 4134                   SrcV->getType(), ValueVTs, &Offsets);
 4159   Type *Ty = I.getType();
 4209                   SrcV->getType(), ValueVTs, &MemVTs, &Offsets);
 4337   assert(Ptr->getType()->isVectorTy() && "Uexpected pointer type");
 4343   if (!GEPPtr->getType()->isVectorTy())
 4356     if (isa<VectorType>(C->getType()))
 4377     unsigned GEPWidth = GEP->getType()->getVectorNumElements();
 4471                            DAG.getDataLayout().getTypeStoreSize(I.getType())),
 4499   EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 4521                              DAG.getDataLayout().getTypeStoreSize(I.getType())),
 4656   EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 4657   EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), I.getType());
 4668   if (isDereferenceablePointer(I.getPointerOperand(), I.getType(),
 4723       TLI.getMemValueType(DAG.getDataLayout(), I.getValueOperand()->getType());
 4802     EVT VT = TLI.getValueType(*DL, Arg->getType(), true);
 4814   ComputeValueVTs(TLI, DAG.getDataLayout(), I.getType(), ValueVTs);
 4833   } else if (!I.getType()->isVoidTy()) {
 4847   if (!I.getType()->isVoidTy()) {
 4848     if (VectorType *PTy = dyn_cast<VectorType>(I.getType())) {
 5555                        V->getType(), getABIRegCopyCC(V));
 5677     EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 5761     Type *LengthTy = MI.getLength()->getType();
 5779     Type *LengthTy = MI.getLength()->getType();
 5796     Type *LengthTy = MI.getLength()->getType();
 6067     EVT RetVT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 6144     EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 6175                              TLI.getValueType(DAG.getDataLayout(), I.getType()),
 6354     EVT ResTy = TLI.getValueType(DAG.getDataLayout(), I.getType());
 6375       unsigned Align = DL->getPrefTypeAlignment(Global->getType());
 6504         CallingConv::C, I.getType(),
 6986   ComputeValueVTs(TLI, DAG.getDataLayout(), FPI.getType(), ValueVTs);
 7123     if (V->getType()->isEmptyTy())
 7127     Entry.Node = ArgNode; Entry.Ty = V->getType();
 7156     Entry.Ty = V->getType();
 7247                                                     I.getType(), true);
 7266                                                           I.getType(), true);
 7297       unsigned DstAS = LHS->getType()->getPointerAddressSpace();
 7298       unsigned SrcAS = RHS->getType()->getPointerAddressSpace();
 7761     llvm::Type *OpTy = CallOperandVal->getType();
 7858   Type *Ty = OpVal->getType();
 8074         EVT VT = TLI.getValueType(DAG.getDataLayout(), BA->getType(), true);
 8526   ComputeValueVTs(TLI, DAG.getDataLayout(), CS->getType(), ValueVTs);
 8549       TLI.getMemValueType(DAG.getDataLayout(), I.getType()), getCurSDLoc(),
 8551       DL.getABITypeAlignment(I.getType()));
 8554   if (I.getType()->isPointerTy())
 8556         V, getCurSDLoc(), TLI.getValueType(DAG.getDataLayout(), I.getType()));
 8633     assert(!V->getType()->isEmptyTy() && "Empty type passed to intrinsic.");
 8637     Entry.Ty = V->getType();
 8690   assert(CI.getType()->isVoidTy() && "Stackmap cannot return a value.");
 8760   bool HasDef = !CS->getType()->isVoidTy();
 8786     IsAnyRegCC ? Type::getVoidTy(*DAG.getContext()) : CS->getType();
 8861     ComputeValueVTs(TLI, DAG.getDataLayout(), CS->getType(), ValueVTs);
 8907   EVT VT = TLI.getValueType(DAG.getDataLayout(), I.getType());
 9380   RegsForValue RFV(V->getContext(), TLI, DAG.getDataLayout(), Reg, V->getType(),
 9485         Arg->getType()->isEmptyTy() ||
 9486         DL.getTypeStoreSize(Arg->getType()) !=
 9614     ComputeValueVTs(*TLI, DAG.getDataLayout(), Arg.getType(), ValueVTs);
 9617     Type *FinalType = Arg.getType();
 9634       if (Arg.getType()->isPointerTy()) {
 9637             cast<PointerType>(Arg.getType())->getAddressSpace());
 9647             isa<StructType>(Arg.getType())) {
 9783     ComputeValueVTs(*TLI, DAG.getDataLayout(), Arg.getType(), ValueVTs);
 9955       if (PN.getType()->isEmptyTy())
 9986       ComputeValueVTs(TLI, DAG.getDataLayout(), PN.getType(), ValueVTs);
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  398     if (I.getType()->isFPOrFPVectorTy()) {
  403       if (Op->getType()->isFPOrFPVectorTy()) {
 1310       APInt Offset(DL.getTypeSizeInBits(Address->getType()), 0);
 1514           if (!Inst->getType()->isVoidTy() && !Inst->getType()->isTokenTy() &&
 1514           if (!Inst->getType()->isVoidTy() && !Inst->getType()->isTokenTy() &&
lib/CodeGen/SelectionDAG/StatepointLowering.cpp
  491       auto Opt = S.isGCManagedPointer(V->getType()->getScalarType());
  498       auto Opt = S.isGCManagedPointer(V->getType()->getScalarType());
  708       if (V->getType()->isPointerTy())
  799       if (V->getType()->isPointerTy())
  860     unsigned AS = ISP.getCalledValue()->getType()->getPointerAddressSpace();
  932       ForceVoidReturnTy ? Type::getVoidTy(*DAG.getContext()) : Call->getType(),
  978         ImmutableStatepoint(I).getCalledValue()->getType());
  999   auto *Ty = Relocate.getType()->getScalarType();
 1036                                                          Relocate.getType());
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4233       llvm::Type *OpTy = OpInfo.CallOperandVal->getType();
 4442       if (CallOperandVal->getType()->isIntegerTy())
lib/CodeGen/ShadowStackGCLowering.cpp
  127   Type *EltTys[] = {DescriptorElts[0]->getType(), DescriptorElts[1]->getType()};
  127   Type *EltTys[] = {DescriptorElts[0]->getType(), DescriptorElts[1]->getType()};
  145   Constant *GV = new GlobalVariable(*F.getParent(), FrameMap->getType(), true,
  152   return ConstantExpr::getGetElementPtr(FrameMap->getType(), GV, GEPIndices);
lib/CodeGen/SjLjEHPrepare.cpp
  158   Type *LPadType = LPI->getType();
  243     Type *Ty = AI.getType();
lib/CodeGen/StackColoring.cpp
  952           ValueAsMetadata::handleRAUW(BCI, UndefValue::get(BCI->getType()));
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1611   Type *Ty = C->getType();
lib/CodeGen/WinEHPrepare.cpp
  717     PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
  921       SSAUpdate.Initialize(OldI->getType(), OldI->getName());
 1079     SpillSlot = new AllocaInst(PN->getType(), DL->getAllocaAddrSpace(), nullptr,
 1082     Value *V = new LoadInst(PN->getType(), SpillSlot,
 1166     SpillSlot = new AllocaInst(V->getType(), DL->getAllocaAddrSpace(), nullptr,
 1225       Load = new LoadInst(V->getType(), SpillSlot,
 1232     auto *Load = new LoadInst(V->getType(), SpillSlot,
lib/ExecutionEngine/ExecutionEngine.cpp
  598     switch (C->getType()->getTypeID()) {
  607       Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0);
  611       if(StructType *STy = dyn_cast<StructType>(C->getType())) {
  629       auto* VTy = cast<VectorType>(C->getType());
  658       uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
  664       uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
  670       uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
  688       if (CE->getType()->isFloatTy())
  690       else if (CE->getType()->isDoubleTy())
  692       else if (CE->getType()->isX86_FP80Ty()) {
  703       if (CE->getType()->isFloatTy())
  705       else if (CE->getType()->isDoubleTy())
  707       else if (CE->getType()->isX86_FP80Ty()) {
  719       uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth();
  720       if (Op0->getType()->isFloatTy())
  722       else if (Op0->getType()->isDoubleTy())
  724       else if (Op0->getType()->isX86_FP80Ty()) {
  737       uint32_t PtrWidth = DL.getTypeSizeInBits(Op0->getType());
  740       uint32_t IntWidth = DL.getTypeSizeInBits(CE->getType());
  746       uint32_t PtrWidth = DL.getTypeSizeInBits(CE->getType());
  754       Type* DestTy = CE->getType();
  755       switch (Op0->getType()->getTypeID()) {
  794       switch (CE->getOperand(0)->getType()->getTypeID()) {
  844         const fltSemantics &Sem = CE->getOperand(0)->getType()->getFltSemantics();
  889   switch (C->getType()->getTypeID()) {
  928         auto* VTy = cast<VectorType>(C->getType());
  996               APInt(CV->getOperand(i)->getType()->getPrimitiveSizeInBits(), 0);
 1015     OS << "ERROR: Constant unimplemented for type: " << *C->getType();
 1147     memset(Addr, 0, (size_t)getDataLayout().getTypeAllocSize(Init->getType()));
 1175   if (Init->getType()->isFirstClassType()) {
 1177     StoreValueToMemory(Val, (GenericValue*)Addr, Init->getType());
 1181   LLVM_DEBUG(dbgs() << "Bad Type: " << *Init->getType() << "\n");
lib/ExecutionEngine/Interpreter/Execution.cpp
   64   Type *Ty = I.getOperand(0)->getType();
  333   Type *Ty    = I.getOperand(0)->getType();
  665   Type *Ty    = I.getOperand(0)->getType();
  736   Type *Ty    = I.getOperand(0)->getType();
  861   Type * Ty = I.getOperand(0)->getType();
  923     RetTy  = I.getReturnValue()->getType();
  950   Type *ElTy = Cond->getType();
 1049   assert(Ptr->getType()->isPointerTy() &&
 1068         cast<IntegerType>(I.getOperand()->getType())->getBitWidth();
 1096   LoadValueFromMemory(Result, Ptr, I.getType());
 1107                      I.getOperand(0)->getType());
 1194   Type *Ty = I.getType();
 1221   Type *Ty = I.getType();
 1248   Type *Ty = I.getType();
 1273   Type *SrcTy = SrcVal->getType();
 1292   Type *SrcTy = SrcVal->getType();
 1312   Type *SrcTy = SrcVal->getType();
 1335   if (SrcVal->getType()->getTypeID() == Type::VectorTyID) {
 1336     assert(SrcVal->getType()->getScalarType()->isDoubleTy() &&
 1346     assert(SrcVal->getType()->isDoubleTy() && DstTy->isFloatTy() &&
 1358   if (SrcVal->getType()->getTypeID() == Type::VectorTyID) {
 1359     assert(SrcVal->getType()->getScalarType()->isFloatTy() &&
 1368     assert(SrcVal->getType()->isFloatTy() && DstTy->isDoubleTy() &&
 1378   Type *SrcTy = SrcVal->getType();
 1416   Type *SrcTy = SrcVal->getType();
 1455   if (SrcVal->getType()->getTypeID() == Type::VectorTyID) {
 1487   if (SrcVal->getType()->getTypeID() == Type::VectorTyID) {
 1521   assert(SrcVal->getType()->isPointerTy() && "Invalid PtrToInt instruction");
 1545   Type *SrcTy = SrcVal->getType();
 1709   SetValue(&I, executeTruncInst(I.getOperand(0), I.getType(), SF), SF);
 1714   SetValue(&I, executeSExtInst(I.getOperand(0), I.getType(), SF), SF);
 1719   SetValue(&I, executeZExtInst(I.getOperand(0), I.getType(), SF), SF);
 1724   SetValue(&I, executeFPTruncInst(I.getOperand(0), I.getType(), SF), SF);
 1729   SetValue(&I, executeFPExtInst(I.getOperand(0), I.getType(), SF), SF);
 1734   SetValue(&I, executeUIToFPInst(I.getOperand(0), I.getType(), SF), SF);
 1739   SetValue(&I, executeSIToFPInst(I.getOperand(0), I.getType(), SF), SF);
 1744   SetValue(&I, executeFPToUIInst(I.getOperand(0), I.getType(), SF), SF);
 1749   SetValue(&I, executeFPToSIInst(I.getOperand(0), I.getType(), SF), SF);
 1754   SetValue(&I, executePtrToIntInst(I.getOperand(0), I.getType(), SF), SF);
 1759   SetValue(&I, executeIntToPtrInst(I.getOperand(0), I.getType(), SF), SF);
 1764   SetValue(&I, executeBitCastInst(I.getOperand(0), I.getType(), SF), SF);
 1779   Type *Ty = I.getType();
 1805   Type *Ty = I.getType();
 1947   Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices());
 1993   Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices());
 2025       return executeTruncInst(CE->getOperand(0), CE->getType(), SF);
 2027       return executeZExtInst(CE->getOperand(0), CE->getType(), SF);
 2029       return executeSExtInst(CE->getOperand(0), CE->getType(), SF);
 2031       return executeFPTruncInst(CE->getOperand(0), CE->getType(), SF);
 2033       return executeFPExtInst(CE->getOperand(0), CE->getType(), SF);
 2035       return executeUIToFPInst(CE->getOperand(0), CE->getType(), SF);
 2037       return executeSIToFPInst(CE->getOperand(0), CE->getType(), SF);
 2039       return executeFPToUIInst(CE->getOperand(0), CE->getType(), SF);
 2041       return executeFPToSIInst(CE->getOperand(0), CE->getType(), SF);
 2043       return executePtrToIntInst(CE->getOperand(0), CE->getType(), SF);
 2045       return executeIntToPtrInst(CE->getOperand(0), CE->getType(), SF);
 2047       return executeBitCastInst(CE->getOperand(0), CE->getType(), SF);
 2056                           CE->getOperand(0)->getType());
 2061                              CE->getOperand(0)->getType());
 2071   Type * Ty = CE->getOperand(0)->getType();
lib/FuzzMutate/IRMutator.cpp
  175   if (Inst.getType()->isVoidTy()) {
  184   auto Pred = fuzzerop::onlyType(Inst.getType());
lib/FuzzMutate/Operations.cpp
  159         PHI.addIncoming(UndefValue::get(PHI.getType()), Block);
  164                         return V->getType()->isIntegerTy(1);
  172     Type *Ty = cast<PointerType>(Srcs[0]->getType())->getElementType();
  192       if (!CI->uge(getAggregateNumElements(Cur[0]->getType())))
  199     uint64_t N = getAggregateNumElements(Cur[0]->getType());
  223     if (auto *ArrayT = dyn_cast<ArrayType>(Cur[0]->getType()))
  224       return V->getType() == ArrayT->getElementType();
  226     auto *STy = cast<StructType>(Cur[0]->getType());
  228       if (STy->getTypeAtIndex(I) == V->getType())
  233     if (auto *ArrayT = dyn_cast<ArrayType>(Cur[0]->getType()))
  237     auto *STy = cast<StructType>(Cur[0]->getType());
  247     auto *CTy = cast<CompositeType>(Cur[0]->getType());
  250           CTy->getTypeAtIndex(CI->getZExtValue()) == Cur[1]->getType())
  257     auto *CTy = cast<CompositeType>(Cur[0]->getType());
  259       if (CTy->getTypeAtIndex(I) == Cur[1]->getType())
  301     auto *FirstTy = cast<VectorType>(Cur[0]->getType());
lib/FuzzMutate/RandomIRBuilder.cpp
   57         cast<PointerType>(Ptr->getType())->getElementType(), Ptr, "L", &*IP);
   72   if (Operand->getType() != Replacement->getType())
   72   if (Operand->getType() != Replacement->getType())
  125       Ptr = new AllocaInst(V->getType(), 0, "A", &*BB.getFirstInsertionPt());
  127       Ptr = UndefValue::get(PointerType::get(V->getType(), 0));
  142     if (auto PtrTy = dyn_cast<PointerType>(Inst->getType())) {
lib/IR/AsmWriter.cpp
  999       if (!I.getType()->isVoidTy() && !I.hasName())
 1181   assert(!V->getType()->isVoidTy() && !V->hasName() && "Doesn't need a slot!");
 1451       TypePrinter.print(CS->getOperand(0)->getType(), Out);
 1459         TypePrinter.print(CS->getOperand(i)->getType(), Out);
 1475     Type *ETy = CV->getType()->getVectorElementType();
 1481     for (unsigned i = 1, e = CV->getType()->getVectorNumElements(); i != e;++i){
 1527       TypePrinter.print((*OI)->getType(), Out);
 1542       TypePrinter.print(CE->getType(), Out);
 1562       TypePrinter->print(V->getType(), Out);
 2346   TypePrinter->print(V->getValue()->getType(), Out);
 2475     TypePrinter.print(Operand->getType(), Out);
 2529   TypePrinter.print(Operand->getType(), Out);
 2564       TypePrinter.print(Input->getType(), Out);
 3548   TypePrinter.print(Arg->getType(), Out);
 3643   unsigned CallAddrSpace = Operand->getType()->getPointerAddressSpace();
 3668   } else if (!I.getType()->isVoidTy()) {
 3757     TypePrinter.print(I.getType(), Out);
 3779     TypePrinter.print(I.getType(), Out);
 3985         !AI->getArraySize()->getType()->isIntegerTy(32)) {
 4003     TypePrinter.print(I.getType(), Out);
 4010     TypePrinter.print(I.getType(), Out);
 4018       TypePrinter.print(LI->getType(), Out);
 4026     Type *TheType = Operand->getType();
 4037         if (Operand && Operand->getType() != TheType) {
 4322     TypePrinter.print(C->getType(), OS);
 4349     TypePrinter.print(V.getType(), O);
lib/IR/AutoUpgrade.cpp
  504                                         F->arg_begin()->getType());
  509         F->arg_begin()->getType(),
  522                                         F->arg_begin()->getType());
  580                                         F->arg_begin()->getType());
  586                                         F->arg_begin()->getType());
  662       Type *Tys[] = { F->getReturnType(), F->arg_begin()->getType() };
  685       Type *Tys[] = {F->getReturnType(), F->arg_begin()->getType()};
  775       Type *Tys[2] = { F->getReturnType(), F->arg_begin()->getType() };
  789       Type *Tys[] = {F->arg_begin()->getType()};
  864   return new GlobalVariable(NewInit->getType(), false, GV->getLinkage(),
  872   Type *ResultTy = Op->getType();
  906   Type *ResultTy = Op->getType();
  939                              cast<IntegerType>(Mask->getType())->getBitWidth());
  963   Mask = getX86MaskVec(Builder, Mask, Op0->getType()->getVectorNumElements());
  976                           Mask->getType()->getIntegerBitWidth());
  991   unsigned NumElts = Op0->getType()->getVectorNumElements();
 1003     return llvm::Constant::getNullValue(Op0->getType());
 1010     Op0 = llvm::Constant::getNullValue(Op0->getType());
 1033   Type *Ty = CI.getType();
 1094   Type *Ty = CI.getType();
 1114   Type *Ty = CI.getType();
 1121   if (Amt->getType() != Ty) {
 1141   Type *Ty = CI.getType();
 1180   Type *Ty = CI.getType();
 1191   if (Amt->getType() != Ty) {
 1204                     ZeroMask     ? ConstantAggregateZero::get(CI.getType()) :
 1217                               llvm::PointerType::getUnqual(Data->getType()));
 1219     Aligned ? cast<VectorType>(Data->getType())->getBitWidth() / 8 : 1;
 1227   unsigned NumElts = Data->getType()->getVectorNumElements();
 1235   Type *ValTy = Passthru->getType();
 1239     Aligned ? cast<VectorType>(Passthru->getType())->getBitWidth() / 8 : 1;
 1247   unsigned NumElts = Passthru->getType()->getVectorNumElements();
 1254   llvm::Type *Ty = Op0->getType();
 1280   Type *Ty = CI.getType();
 1311   unsigned NumElts = Vec->getType()->getVectorNumElements();
 1325                                       Constant::getNullValue(Vec->getType()),
 1334   unsigned NumElts = Op0->getType()->getVectorNumElements();
 1386   Type* ReturnOp = CI.getType();
 1387   unsigned NumElts = CI.getType()->getVectorNumElements();
 1397   unsigned VecWidth = CI.getType()->getPrimitiveSizeInBits();
 1398   unsigned EltWidth = CI.getType()->getScalarSizeInBits();
 1538     bool IsFloat = CI.getType()->isFPOrFPVectorTy();
 1680       Type *SrcEltTy = cast<VectorType>(Arg1->getType())->getElementType();
 1707                                         PointerType::getUnqual(Arg1->getType()),
 1709       VectorType *VTy = cast<VectorType>(Arg1->getType());
 1727                                         PointerType::getUnqual(Elt->getType()),
 1743                                    PointerType::getUnqual(Arg1->getType()),
 1781       Rep = Builder.CreateSExt(Rep, CI->getType(), "");
 1784       if (CI->getOperand(0)->getType()->isIntegerTy(8))
 1786       unsigned NumElts = CI->getType()->getPrimitiveSizeInBits() /
 1795                                                  Intrinsic::sqrt, Elt0->getType());
 1803                                                          CI->getType()),
 1818                                                            CI->getType()),
 1829       llvm::Type *Ty = Op0->getType();
 1837           CI->getArgOperand(1)->getType()->getVectorNumElements();
 1842       unsigned NumElts = CI->getType()->getScalarSizeInBits();
 1859       Rep = Builder.CreateBitCast(Rep, CI->getType());
 1864       Rep = Builder.CreateBitCast(Rep, CI->getType());
 1870       Rep = Builder.CreateBitCast(Rep, CI->getType());
 1875       Rep = Builder.CreateBitCast(Rep, CI->getType());
 1880       Rep = Builder.CreateBitCast(Rep, CI->getType());
 1886       Rep = Builder.CreateBitCast(Rep, CI->getType());
 1890       Rep = Builder.CreateBitCast(Rep, CI->getType());
 1929       Type *OpTy = CI->getArgOperand(0)->getType();
 1943       Type *OpTy = CI->getArgOperand(0)->getType();
 1966       Type *OpTy = CI->getArgOperand(0)->getType();
 2008       Value *Zero = llvm::Constant::getNullValue(Op->getType());
 2056                                  CI->getType()->getVectorElementType());
 2060                                  CI->getType()->getVectorElementType());
 2064       Rep = Builder.CreateFPExt(Rep, CI->getType()->getVectorElementType());
 2084       Type *DstTy = CI->getType();
 2086       Type *SrcTy = Rep->getType();
 2124       Type *ResultTy = CI->getType();
 2139       Type *ResultTy = CI->getArgOperand(1)->getType();
 2155       Type *ResultTy = CI->getType();
 2231       Rep = Builder.CreateZExt(Rep, CI->getType(), "");
 2235       Type *VecTy = CI->getType();
 2252       VectorType *SrcTy = cast<VectorType>(CI->getArgOperand(0)->getType());
 2253       VectorType *DstTy = cast<VectorType>(CI->getType());
 2275       Type *Ty = CI->getArgOperand(1)->getType();
 2282       Type *EltTy = CI->getType()->getVectorElementType();
 2289         Rep = Builder.CreateShuffleVector(Load, UndefValue::get(Load->getType()),
 2292         Rep = Builder.CreateShuffleVector(Load, UndefValue::get(Load->getType()),
 2297       Type *VT = CI->getType();
 2319                         CI->getArgOperand(0)->getType()->getVectorNumElements();
 2320       unsigned NumDstElts = CI->getType()->getVectorNumElements();
 2337       unsigned NumElts = CI->getType()->getVectorNumElements();
 2339       Rep = Builder.CreateShuffleVector(Op, UndefValue::get(Op->getType()),
 2409       VectorType *VecTy = cast<VectorType>(CI->getType());
 2423       unsigned DstNumElts = CI->getType()->getVectorNumElements();
 2424       unsigned SrcNumElts = Op1->getType()->getVectorNumElements();
 2431       Value *UndefV = UndefValue::get(Op1->getType());
 2467       unsigned DstNumElts = CI->getType()->getVectorNumElements();
 2468       unsigned SrcNumElts = Op0->getType()->getVectorNumElements();
 2491       VectorType *VecTy = cast<VectorType>(CI->getType());
 2515       unsigned NumElts = CI->getType()->getVectorNumElements();
 2524       V0 = (Imm & 0x08) ? ConstantAggregateZero::get(CI->getType()) : V0;
 2525       V1 = (Imm & 0x80) ? ConstantAggregateZero::get(CI->getType()) : V1;
 2545       VectorType *VecTy = cast<VectorType>(CI->getType());
 2567       unsigned NumElts = CI->getType()->getVectorNumElements();
 2586       unsigned NumElts = CI->getType()->getVectorNumElements();
 2605       unsigned NumElts = CI->getType()->getVectorNumElements();
 2607       unsigned NumLaneElts = 128/CI->getType()->getScalarSizeInBits();
 2630       unsigned NumElts = CI->getType()->getVectorNumElements();
 2631       unsigned NumLaneElts = 128/CI->getType()->getScalarSizeInBits();
 2652       int NumElts = CI->getType()->getVectorNumElements();
 2653       int NumLaneElts = 128/CI->getType()->getScalarSizeInBits();
 2668       int NumElts = CI->getType()->getVectorNumElements();
 2669       int NumLaneElts = 128/CI->getType()->getScalarSizeInBits();
 2682       VectorType *FTy = cast<VectorType>(CI->getType());
 2691       VectorType *FTy = cast<VectorType>(CI->getType());
 2701       VectorType *FTy = cast<VectorType>(CI->getType());
 2710       VectorType *FTy = cast<VectorType>(CI->getType());
 2812                                                          CI->getType()),
 3028       VectorType *VTy = cast<VectorType>(CI->getType());
 3062                                                          Ops[0]->getType()),
 3078                                                          Ops[0]->getType()),
 3081       Rep = Builder.CreateInsertElement(Constant::getNullValue(CI->getType()),
 3124                                                   A->getType());
 3128       Value *PassThru = IsMaskZ ? Constant::getNullValue(Rep->getType()) :
 3181                                                   A->getType());
 3185       Value *PassThru = IsMaskZ ? llvm::Constant::getNullValue(CI->getType()) :
 3193       int NumElts = CI->getType()->getVectorNumElements();
 3199                                                 Ops[0]->getType());
 3240         int NumElts = CI->getType()->getVectorNumElements();
 3246                                                   Ops[0]->getType());
 3261       Value *PassThru = IsMaskZ ? llvm::Constant::getNullValue(CI->getType()) :
 3269       unsigned VecWidth = CI->getType()->getPrimitiveSizeInBits();
 3270       unsigned EltWidth = CI->getType()->getScalarSizeInBits();
 3291       Value *PassThru = ZeroMask ? ConstantAggregateZero::get(CI->getType())
 3298       unsigned VecWidth = CI->getType()->getPrimitiveSizeInBits();
 3319       Value *PassThru = ZeroMask ? ConstantAggregateZero::get(CI->getType())
 3334       unsigned VecWidth = CI->getType()->getPrimitiveSizeInBits();
 3355       Value *PassThru = ZeroMask ? ConstantAggregateZero::get(CI->getType())
 3364       unsigned VecWidth = CI->getType()->getPrimitiveSizeInBits();
 3385       Value *PassThru = ZeroMask ? ConstantAggregateZero::get(CI->getType())
 3414                                  llvm::PointerType::getUnqual(Data->getType()));
 3428           Arg, llvm::Constant::getNullValue(Arg->getType()), "abs.cond");
 3457                                     {Arg->getType()}),
 3466                                     {Arg->getType()}),
 3500       Args.push_back(ConstantFP::get(CI->getOperand(0)->getType(), 1.0));
 3511       Args.push_back(Constant::getNullValue(CI->getOperand(0)->getType()));
 3595     VectorType *FltIdxTy = cast<VectorType>(Args[2]->getType());
 3610     if (Arg0->getType() != VectorType::get(Type::getFloatTy(C), 4))
 3636                                  llvm::PointerType::getUnqual(Data->getType()));
 3771   Type *SrcTy = V->getType();
 3791   Type *SrcTy = C->getType();
 3882       if (NewFuncTy->getReturnType() != CI->getType() &&
 3916       Value *NewRetVal = Builder.CreateBitCast(NewCall, CI->getType());
lib/IR/BasicBlock.cpp
   33   return getType()->getContext();
   77                                                        BA->getType()));
  352           PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/IR/ConstantFold.cpp
   54   if (NumElts != CV->getType()->getVectorNumElements())
   86   Type *SrcTy = Op->getOperand(0)->getType();
   87   Type *MidTy = Op->getType();
  102   Type *SrcTy = V->getType();
  108   if (PointerType *PTy = dyn_cast<PointerType>(V->getType()))
  140     if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) {
  189     if (FP->getType()->isPPC_FP128Ty())
  214   assert(C->getType()->isIntegerTy() &&
  215          (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 &&
  217   unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8;
  315       cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth();
  338                                  ConstantInt::get(Res->getType(), ByteStart*8));
  554                !CE->getType()->isVectorTy()) {
  574       DestTy->getVectorNumElements() == V->getType()->getVectorNumElements()) {
  579     for (unsigned i = 0, e = V->getType()->getVectorNumElements(); i != e; ++i) {
  707     if (V->getType()->isVectorTy())
  720         (cast<IntegerType>(V->getType())->getBitWidth() & 7) == 0)
  743     for (unsigned i = 0, e = V1->getType()->getVectorNumElements(); i != e;++i){
  762     if (Result.size() == V1->getType()->getVectorNumElements())
  793     return UndefValue::get(Val->getType()->getVectorElementType());
  800   if (CIdx->uge(Val->getType()->getVectorNumElements()))
  801     return UndefValue::get(Val->getType()->getVectorElementType());
  810         if (Op->getType()->isVectorTy()) {
  818       return CE->getWithOperands(Ops, CE->getType()->getVectorElementType(),
  820                                  Ops[0]->getType()->getPointerElementType());
  831     return UndefValue::get(Val->getType());
  836   unsigned NumElts = Val->getType()->getVectorNumElements();
  838     return UndefValue::get(Val->getType());
  860   unsigned MaskNumElts = Mask->getType()->getVectorNumElements();
  861   Type *EltTy = V1->getType()->getVectorElementType();
  870   unsigned SrcNumElts = V1->getType()->getVectorNumElements();
  918   if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
  921     NumElts = cast<SequentialType>(Agg->getType())->getNumElements();
  934   if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
  936   if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType()))
  945   bool HasScalarUndef = !C->getType()->isVectorTy() && isa<UndefValue>(C);
  969   } else if (VectorType *VTy = dyn_cast<VectorType>(C->getType())) {
  992   bool HasScalarUndef = !C1->getType()->isVectorTy() &&
 1000         return Constant::getNullValue(C1->getType());
 1004       return UndefValue::get(C1->getType());
 1008       return Constant::getNullValue(C1->getType());   // undef & X -> 0
 1017           return UndefValue::get(C1->getType());
 1020       return Constant::getNullValue(C1->getType());
 1032       return Constant::getNullValue(C1->getType());
 1042       return Constant::getNullValue(C1->getType());
 1046       return Constant::getAllOnesValue(C1->getType()); // undef | X -> ~0
 1055       return Constant::getNullValue(C1->getType());
 1065       return Constant::getNullValue(C1->getType());
 1074       return Constant::getNullValue(C1->getType());
 1090       return ConstantFP::getNaN(C1->getType());
 1137             CE1->getOperand(0)->getType()->getPrimitiveSizeInBits();
 1257         return UndefValue::get(C1->getType()); // too big shift is undef
 1261         return UndefValue::get(C1->getType()); // too big shift is undef
 1265         return UndefValue::get(C1->getType()); // too big shift is undef
 1307   } else if (VectorType *VTy = dyn_cast<VectorType>(C1->getType())) {
 1346   if (C1->getType()->isIntegerTy(1)) {
 1447   assert(V1->getType() == V2->getType() &&
 1447   assert(V1->getType() == V2->getType() &&
 1537   assert(V1->getType() == V2->getType() &&
 1537   assert(V1->getType() == V2->getType() &&
 1643       if (CE1Op0->getType()->isFPOrFPVectorTy())
 1648       if (V2->isNullValue() && CE1->getType()->isIntOrPtrTy()) {
 1652                                     Constant::getNullValue(CE1Op0->getType()),
 1788   if (VectorType *VT = dyn_cast<VectorType>(C1->getType()))
 1848   if (C1->getType()->isIntegerTy(1)) {
 1920   } else if (C1->getType()->isVectorTy()) {
 1926     for (unsigned i = 0, e = C1->getType()->getVectorNumElements(); i != e;++i){
 1938   if (C1->getType()->isFloatingPointTy() &&
 2083           CE2->getType()->isVectorTy() == CE2Op0->getType()->isVectorTy() &&
 2083           CE2->getType()->isVectorTy() == CE2Op0->getType()->isVectorTy() &&
 2084           !CE2Op0->getType()->isFPOrFPVectorTy()) {
 2085         Constant *Inverse = ConstantExpr::getBitCast(C1, CE2Op0->getType());
 2097         Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType());
 2100           Constant *C2Inverse = ConstantExpr::getTrunc(C2, CE1Op0->getType());
 2102                                     C2->getType()) == C2)
 2178     return GEPTy->isVectorTy() && !C->getType()->isVectorTy()
 2192       PointerType *PtrTy = cast<PointerType>(C->getType()->getScalarType());
 2198       if (VectorType *VT = dyn_cast<VectorType>(C->getType()))
 2204         if (auto *VT = dyn_cast<VectorType>(Idxs[i]->getType())) {
 2253                              ->getType()
 2266           Type *IdxTy = Combined->getType();
 2267           if (IdxTy != Idx0->getType()) {
 2270                          Idx0->getType()->getIntegerBitWidth());
 2312         dyn_cast<PointerType>(CE->getOperand(0)->getType());
 2313       PointerType *DstPtrTy = dyn_cast<PointerType>(CE->getType());
 2334   Type *Prev = C->getType();
 2405     bool IsCurrIdxVector = CurrIdx->getType()->isVectorTy();
 2406     bool IsPrevIdxVector = PrevIdx->getType()->isVectorTy();
 2411           PrevIdx->getType()->getVectorNumElements(), CurrIdx);
 2415           CurrIdx->getType()->getVectorNumElements(), PrevIdx);
 2418         ConstantInt::get(CurrIdx->getType()->getScalarType(), NumElements);
 2421           IsPrevIdxVector ? PrevIdx->getType()->getVectorNumElements()
 2422                           : CurrIdx->getType()->getVectorNumElements(),
 2430         std::max(PrevIdx->getType()->getScalarSizeInBits(),
 2431                  Div->getType()->getScalarSizeInBits());
 2440                           ? PrevIdx->getType()->getVectorNumElements()
 2441                           : CurrIdx->getType()->getVectorNumElements());
 2443     if (!PrevIdx->getType()->isIntOrIntVectorTy(CommonExtendedWidth))
 2446     if (!Div->getType()->isIntOrIntVectorTy(CommonExtendedWidth))
lib/IR/Constants.cpp
   56   if (getType()->isFPOrFPVectorTy())
  188   if (this->getType()->isVectorTy()) {
  189     unsigned NumElts = this->getType()->getVectorNumElements();
  205   if (!getType()->isVectorTy())
  207   for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i) {
  218   if (!getType()->isVectorTy())
  220   for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i) {
  231   if (!getType()->isVectorTy())
  233   for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i) {
  244   if (!getType()->isVectorTy())
  246   for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i) {
  269   if (!getType()->isVectorTy())
  271   for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i)
  279   if (!getType()->isVectorTy())
  281   for (unsigned i = 0, e = getType()->getVectorNumElements(); i != e; ++i)
  376   assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer");
  428   assert(C->getType()->isFirstClassType() && "Cannot evaluate aggregate vals!");
  734   assert(C->getType() == Ty->getScalarType() &&
  869   return Constant::getNullValue(getType()->getSequentialElementType());
  873   return Constant::getNullValue(getType()->getStructElementType(Elt));
  877   if (isa<SequentialType>(getType()))
  883   if (isa<SequentialType>(getType()))
  889   Type *Ty = getType();
  902   return UndefValue::get(getType()->getSequentialElementType());
  906   return UndefValue::get(getType()->getStructElementType(Elt));
  910   if (isa<SequentialType>(getType()))
  916   if (isa<SequentialType>(getType()))
  922   Type *Ty = getType();
  982     if (CFP->getType()->isHalfTy())
  984     else if (CFP->getType()->isFloatTy())
  986     else if (CFP->getType()->isDoubleTy())
 1004     assert(V[I]->getType() == T->getTypeAtIndex(I) &&
 1026     assert(V[i]->getType() == Ty->getElementType() &&
 1042   if (ConstantDataSequential::isElementTypeCompatible(C->getType()))
 1055     EltTypes[i] = V[i]->getType();
 1113   VectorType *Ty = VectorType::get(V.front()->getType(), V.size());
 1119   VectorType *T = VectorType::get(V.front()->getType(), V.size());
 1142   if (ConstantDataSequential::isElementTypeCompatible(C->getType()))
 1154       ConstantDataSequential::isElementTypeCompatible(V->getType()))
 1225   assert(Op->getType() == getOperand(OpNo)->getType() &&
 1225   assert(Op->getType() == getOperand(OpNo)->getType() &&
 1242   if (Ty == getType() && std::equal(Ops.begin(), Ops.end(), op_begin()))
 1278     assert(SrcTy || (Ops[0]->getType() == getOperand(0)->getType()));
 1278     assert(SrcTy || (Ops[0]->getType() == getOperand(0)->getType()));
 1377   getContext().pImpl->CAZConstants.erase(getType());
 1400   assert(this->getType()->isVectorTy() && "Only valid for vectors!");
 1402     return getNullValue(this->getType()->getVectorElementType());
 1457   getContext().pImpl->UVConstants.erase(getType());
 1601   if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 1607   if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 1613   if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 1619   assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
 1626   unsigned SrcAS = S->getType()->getPointerAddressSpace();
 1635   assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
 1638   if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace())
 1645   assert(C->getType()->isIntOrIntVectorTy() &&
 1647   unsigned SrcBits = C->getType()->getScalarSizeInBits();
 1657   assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
 1659   unsigned SrcBits = C->getType()->getScalarSizeInBits();
 1670   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1674   assert(C->getType()->isIntOrIntVectorTy() && "Trunc operand must be integer");
 1676   assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&&
 1684   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1688   assert(C->getType()->isIntOrIntVectorTy() && "SExt operand must be integral");
 1690   assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&&
 1698   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1702   assert(C->getType()->isIntOrIntVectorTy() && "ZEXt operand must be integral");
 1704   assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&&
 1712   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1716   assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
 1717          C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&&
 1724   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1728   assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
 1729          C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&&
 1736   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1740   assert(C->getType()->isIntOrIntVectorTy() && Ty->isFPOrFPVectorTy() &&
 1747   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1751   assert(C->getType()->isIntOrIntVectorTy() && Ty->isFPOrFPVectorTy() &&
 1758   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1762   assert(C->getType()->isFPOrFPVectorTy() && Ty->isIntOrIntVectorTy() &&
 1769   bool fromVec = C->getType()->getTypeID() == Type::VectorTyID;
 1773   assert(C->getType()->isFPOrFPVectorTy() && Ty->isIntOrIntVectorTy() &&
 1780   assert(C->getType()->isPtrOrPtrVectorTy() &&
 1784   assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
 1785   if (isa<VectorType>(C->getType()))
 1786     assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
 1793   assert(C->getType()->isIntOrIntVectorTy() &&
 1797   assert(isa<VectorType>(C->getType()) == isa<VectorType>(DstTy));
 1798   if (isa<VectorType>(C->getType()))
 1799     assert(C->getType()->getVectorNumElements()==DstTy->getVectorNumElements()&&
 1811   if (C->getType() == DstTy) return C;
 1823   PointerType *SrcScalarTy = cast<PointerType>(C->getType()->getScalarType());
 1846     assert(C->getType()->isFPOrFPVectorTy() &&
 1858   if (OnlyIfReducedTy == C->getType())
 1865   return pImpl->ExprConstants.getOrCreate(C->getType(), Key);
 1873   assert(C1->getType() == C2->getType() &&
 1873   assert(C1->getType() == C2->getType() &&
 1885     assert(C1->getType()->isIntOrIntVectorTy() &&
 1893     assert(C1->getType()->isFPOrFPVectorTy() &&
 1900     assert(C1->getType()->isIntOrIntVectorTy() &&
 1906     assert(C1->getType()->isIntOrIntVectorTy() &&
 1917   if (OnlyIfReducedTy == C1->getType())
 1924   return pImpl->ExprConstants.getOrCreate(C1->getType(), Key);
 1970   assert(C1->getType() == C2->getType() && "Op types should be identical!");
 1970   assert(C1->getType() == C2->getType() && "Op types should be identical!");
 1997   if (OnlyIfReducedTy == V1->getType())
 2004   return pImpl->ExprConstants.getOrCreate(V1->getType(), Key);
 2012     Ty = cast<PointerType>(C->getType()->getScalarType())->getElementType();
 2015            cast<PointerType>(C->getType()->getScalarType())->getElementType());
 2024   unsigned AS = C->getType()->getPointerAddressSpace();
 2028   if (C->getType()->isVectorTy())
 2029     NumVecElts = C->getType()->getVectorNumElements();
 2031     if (Idx->getType()->isVectorTy())
 2032       NumVecElts = Idx->getType()->getVectorNumElements();
 2045     assert((!Idxs[i]->getType()->isVectorTy() ||
 2046             Idxs[i]->getType()->getVectorNumElements() == NumVecElts) &&
 2050     if (NumVecElts && !Idxs[i]->getType()->isVectorTy())
 2067   assert(LHS->getType() == RHS->getType());
 2067   assert(LHS->getType() == RHS->getType());
 2083   if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
 2086   LLVMContextImpl *pImpl = LHS->getType()->getContext().pImpl;
 2092   assert(LHS->getType() == RHS->getType());
 2092   assert(LHS->getType() == RHS->getType());
 2108   if (VectorType *VT = dyn_cast<VectorType>(LHS->getType()))
 2111   LLVMContextImpl *pImpl = LHS->getType()->getContext().pImpl;
 2117   assert(Val->getType()->isVectorTy() &&
 2119   assert(Idx->getType()->isIntegerTy() &&
 2125   Type *ReqTy = Val->getType()->getVectorElementType();
 2139   assert(Val->getType()->isVectorTy() &&
 2141   assert(Elt->getType() == Val->getType()->getVectorElementType() &&
 2141   assert(Elt->getType() == Val->getType()->getVectorElementType() &&
 2143   assert(Idx->getType()->isIntegerTy() &&
 2149   if (OnlyIfReducedTy == Val->getType())
 2157   return pImpl->ExprConstants.getOrCreate(Val->getType(), Key);
 2168   unsigned NElts = Mask->getType()->getVectorNumElements();
 2169   Type *EltTy = V1->getType()->getVectorElementType();
 2186   assert(Agg->getType()->isFirstClassType() &&
 2189   assert(ExtractValueInst::getIndexedType(Agg->getType(),
 2190                                           Idxs) == Val->getType() &&
 2192   Type *ReqTy = Val->getType();
 2209   assert(Agg->getType()->isFirstClassType() &&
 2212   Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs);
 2216   assert(Agg->getType()->isFirstClassType() &&
 2232   assert(C->getType()->isIntOrIntVectorTy() &&
 2234   return getSub(ConstantFP::getZeroValueForNegation(C->getType()),
 2239   assert(C->getType()->isFPOrFPVectorTy() &&
 2245   assert(C->getType()->isIntOrIntVectorTy() &&
 2247   return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType()));
 2401   getType()->getContext().pImpl->ExprConstants.remove(this);
 2651   assert(isElementTypeCompatible(V->getType()) &&
 2672     if (CFP->getType()->isHalfTy()) {
 2677     if (CFP->getType()->isFloatTy()) {
 2682     if (CFP->getType()->isDoubleTy()) {
 2977   if (Constant *C = getWithOperands(NewOps, getType(), true))
 3004                             Ops[0], getType());
lib/IR/ConstantsContext.h
   66     : ConstantExpr(C1->getType(), Opcode, &Op<0>(), 2) {
   86     : ConstantExpr(C2->getType(), Instruction::Select, &Op<0>(), 3) {
  107     : ConstantExpr(cast<VectorType>(C1->getType())->getElementType(),
  128     : ConstantExpr(C1->getType(), Instruction::InsertElement,
  151                    cast<VectorType>(C1->getType())->getElementType(),
  152                    cast<VectorType>(C3->getType())->getNumElements()),
  557                      : cast<PointerType>(Ops[0]->getType()->getScalarType())
  593       return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
  611       if (LHS.first != RHS->getType())
  640     assert(Result->getType() == Ty && "Type specified is not correct!");
  677     LookupKey Key(CP->getType(), ValType(Operands, CP));
lib/IR/Core.cpp
  805   return wrap(unwrap(Val)->getType());
 1347   Type *Ty = cFP->getType();
 1646       cast<PointerType>(Val->getType()->getScalarType())->getElementType();
 1657       cast<PointerType>(Val->getType()->getScalarType())->getElementType();
 3114       cast<FunctionType>(cast<PointerType>(V->getType())->getElementType());
 3484   PointerType *Ty = cast<PointerType>(V->getType());
 3589       cast<PointerType>(Val->getType()->getScalarType())->getElementType();
 3606       cast<PointerType>(Val->getType()->getScalarType())->getElementType();
 3622       cast<PointerType>(Val->getType()->getScalarType())->getElementType();
 3843       cast<FunctionType>(cast<PointerType>(V->getType())->getElementType());
lib/IR/DataLayout.cpp
  816       assert(Idx->getType()->isIntegerTy(32) && "Illegal struct idx");
lib/IR/Function.cpp
   76   if (!getType()->isPointerTy()) return false;
   81                                  getType()->getPointerAddressSpace()))
   87   if (!getType()->isPointerTy()) return false;
  100   if (!getType()->isPointerTy()) return false;
  105   if (!getType()->isPointerTy()) return false;
  112   assert(getType()->isPointerTy() && "Only pointers have alignments");
  117   assert(getType()->isPointerTy() && "Only pointers have byval types");
  122   assert(getType()->isPointerTy() &&
  128   assert(getType()->isPointerTy() &&
  134   if (!getType()->isPointerTy()) return false;
  139   if (!getType()->isPointerTy()) return false;
  144   if (!getType()->isPointerTy()) return false;
  149   if (!getType()->isPointerTy()) return false;
lib/IR/Globals.cpp
  349     assert(InitVal->getType() == Ty &&
  369     assert(InitVal->getType() == Ty &&
  398     assert(InitVal->getType() == getValueType() &&
  523   assert((!Aliasee || Aliasee->getType() == getType()) &&
lib/IR/IRBuilder.cpp
   47   auto *GV = new GlobalVariable(M, StrConstant->getType(), true,
   62   auto *PT = cast<PointerType>(Ptr->getType());
  105   Type *Tys[] = { Ptr->getType(), Size->getType() };
  105   Type *Tys[] = { Ptr->getType(), Size->getType() };
  135   Type *Tys[] = {Ptr->getType(), Size->getType()};
  135   Type *Tys[] = {Ptr->getType(), Size->getType()};
  167   Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
  167   Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
  167   Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
  208   Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()};
  208   Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()};
  208   Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()};
  247   Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
  247   Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
  247   Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
  284   Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()};
  284   Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()};
  284   Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()};
  318   Type *Tys[] = { Src->getType() };
  326   Type *Tys[] = {Acc->getType(), Src->getType()};
  326   Type *Tys[] = {Acc->getType(), Src->getType()};
  335   Type *Tys[] = {Acc->getType(), Src->getType()};
  335   Type *Tys[] = {Acc->getType(), Src->getType()};
  401   assert(isa<PointerType>(Ptr->getType()) &&
  412       Intrinsic::getDeclaration(M, Intrinsic::lifetime_start, {Ptr->getType()});
  417   assert(isa<PointerType>(Ptr->getType()) &&
  428       Intrinsic::getDeclaration(M, Intrinsic::lifetime_end, {Ptr->getType()});
  434   assert(isa<PointerType>(Ptr->getType()) &&
  445   Type *ObjectPtr[1] = {Ptr->getType()};
  453   assert(Cond->getType() == getInt1Ty() &&
  473   auto *PtrTy = cast<PointerType>(Ptr->getType());
  493   auto *PtrTy = cast<PointerType>(Ptr->getType());
  525   auto PtrsTy = cast<VectorType>(Ptrs->getType());
  555   auto PtrsTy = cast<VectorType>(Ptrs->getType());
  556   auto DataTy = cast<VectorType>(Data->getType());
  607   auto *FuncPtrType = cast<PointerType>(ActualCallee->getType());
  658   auto *FuncPtrType = cast<PointerType>(ActualInvokee->getType());
  737   Function *Fn = Intrinsic::getDeclaration(M, ID, {V->getType()});
  746   Function *Fn = Intrinsic::getDeclaration(M, ID, { LHS->getType() });
lib/IR/Instruction.cpp
  448       getType() != I->getType())
  448       getType() != I->getType())
  479        getType()->getScalarType() != I->getType()->getScalarType() :
  479        getType()->getScalarType() != I->getType()->getScalarType() :
  480        getType() != I->getType()))
  480        getType() != I->getType()))
  487         getOperand(i)->getType()->getScalarType() !=
  488           I->getOperand(i)->getType()->getScalarType() :
  489         getOperand(i)->getType() != I->getOperand(i)->getType())
  489         getOperand(i)->getType() != I->getOperand(i)->getType())
lib/IR/Instructions.cpp
   80   if (Op1->getType() != Op2->getType())
   80   if (Op1->getType() != Op2->getType())
   83   if (Op1->getType()->isTokenTy())
   86   if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) {
   90     VectorType *ET = dyn_cast<VectorType>(Op1->getType());
   96   } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) {
  107     : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()),
  135     replaceAllUsesWith(UndefValue::get(getType()));
  167     return UndefValue::get(getType());
  206     : Instruction(LP.getType(), Instruction::LandingPad, nullptr,
  303                                  getType()->getPointerAddressSpace()))
  399             FTy->getParamType(i) == Args[i]->getType()) &&
  437     : CallBase(CI.Attrs, CI.FTy, CI.getType(), Instruction::Call,
  537   else if (ArraySize->getType() != IntPtrTy) {
  565   assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
  581     if (Result->getType() != AllocPtrType)
  587     if (Result->getType() != AllocPtrType) {
  599   assert(!MCall->getType()->isVoidTy() && "Malloc has void return type");
  658   assert(Source->getType()->isPointerTy() &&
  671     if (Source->getType() != IntPtrTy)
  675     if (Source->getType() != IntPtrTy)
  736             FTy->getParamType(i) == Args[i]->getType()) &&
  750     : CallBase(II.Attrs, II.FTy, II.getType(), Instruction::Invoke,
  807             FTy->getParamType(i) == Args[i]->getType()) &&
  832     : CallBase(CBI.Attrs, CBI.FTy, CBI.getType(), Instruction::CallBr,
  920     : Instruction(CRI.getType(), Instruction::CleanupRet,
  996     : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
 1007     : Instruction(ParentPad->getType(), Instruction::CatchSwitch, nullptr, 0,
 1016     : Instruction(CSI.getType(), Instruction::CatchSwitch, nullptr,
 1083     : Instruction(FPI.getType(), FPI.getOpcode(),
 1094     : Instruction(ParentPad->getType(), Op,
 1103     : Instruction(ParentPad->getType(), Op,
 1127     assert(getCondition()->getType()->isIntegerTy(1) &&
 1204     assert(Amt->getType()->isIntegerTy() &&
 1284   assert(getOperand(0)->getType()->isPointerTy() &&
 1320   assert(Ty == cast<PointerType>(Ptr->getType())->getElementType());
 1332   assert(Ty == cast<PointerType>(Ptr->getType())->getElementType());
 1358   assert(getOperand(1)->getType()->isPointerTy() &&
 1360   assert(getOperand(0)->getType() ==
 1361                  cast<PointerType>(getOperand(1)->getType())->getElementType()
 1448   assert(getOperand(0)->getType()->isPointerTy() &&
 1450   assert(getOperand(1)->getType() ==
 1451                  cast<PointerType>(getOperand(0)->getType())->getElementType()
 1453   assert(getOperand(2)->getType() ==
 1454                  cast<PointerType>(getOperand(0)->getType())->getElementType()
 1474           StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext())),
 1486           StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext())),
 1507   assert(getOperand(0)->getType()->isPointerTy() &&
 1509   assert(getOperand(1)->getType() ==
 1510          cast<PointerType>(getOperand(0)->getType())->getElementType()
 1520   : Instruction(Val->getType(), AtomicRMW,
 1531   : Instruction(Val->getType(), AtomicRMW,
 1607     : Instruction(GEPI.getType(), GetElementPtr,
 1707   : Instruction(cast<VectorType>(Val->getType())->getElementType(),
 1721   : Instruction(cast<VectorType>(Val->getType())->getElementType(),
 1734   if (!Val->getType()->isVectorTy() || !Index->getType()->isIntegerTy())
 1734   if (!Val->getType()->isVectorTy() || !Index->getType()->isIntegerTy())
 1746   : Instruction(Vec->getType(), InsertElement,
 1760   : Instruction(Vec->getType(), InsertElement,
 1774   if (!Vec->getType()->isVectorTy())
 1777   if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType())
 1777   if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType())
 1780   if (!Index->getType()->isIntegerTy())
 1792 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
 1793                 cast<VectorType>(Mask->getType())->getElementCount()),
 1809 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
 1810                 cast<VectorType>(Mask->getType())->getElementCount()),
 1825   int NumOpElts = Op<0>()->getType()->getVectorNumElements();
 1826   int NumMaskElts = getMask()->getType()->getVectorNumElements();
 1846   if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType())
 1846   if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType())
 1846   if (!V1->getType()->isVectorTy() || V1->getType() != V2->getType())
 1850   auto *MaskTy = dyn_cast<VectorType>(Mask->getType());
 1859     unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
 1872     unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements();
 1891   assert(i < Mask->getType()->getVectorNumElements() && "Index out of range");
 1902   unsigned NumElts = Mask->getType()->getVectorNumElements();
 2059   int NumOpElts = Op<0>()->getType()->getVectorNumElements();
 2078   int NumOpElts = Op<0>()->getType()->getVectorNumElements();
 2091   int NumOpElts = Op<0>()->getType()->getVectorNumElements();
 2117   assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
 2118          Val->getType() && "Inserted value must match indexed type!");
 2127   : Instruction(IVI.getType(), InsertValue,
 2151   : UnaryInstruction(EVI.getType(), ExtractValue, EVI.getOperand(0)),
 2212   return new UnaryOperator(Op, S, S->getType(), Name, InsertBefore);
 2229     assert(getType() == LHS->getType() &&
 2229     assert(getType() == LHS->getType() &&
 2231     assert(getType()->isFPOrFPVectorTy() &&
 2273   assert(LHS->getType() == RHS->getType() &&
 2273   assert(LHS->getType() == RHS->getType() &&
 2279     assert(getType() == LHS->getType() &&
 2279     assert(getType() == LHS->getType() &&
 2281     assert(getType()->isIntOrIntVectorTy() &&
 2286     assert(getType() == LHS->getType() &&
 2286     assert(getType() == LHS->getType() &&
 2288     assert(getType()->isFPOrFPVectorTy() &&
 2294     assert(getType() == LHS->getType() &&
 2294     assert(getType() == LHS->getType() &&
 2296     assert(getType()->isIntOrIntVectorTy() &&
 2300     assert(getType() == LHS->getType() &&
 2300     assert(getType() == LHS->getType() &&
 2302     assert(getType()->isFPOrFPVectorTy() &&
 2307     assert(getType() == LHS->getType() &&
 2307     assert(getType() == LHS->getType() &&
 2309     assert(getType()->isIntOrIntVectorTy() &&
 2313     assert(getType() == LHS->getType() &&
 2313     assert(getType() == LHS->getType() &&
 2315     assert(getType()->isFPOrFPVectorTy() &&
 2321     assert(getType() == LHS->getType() &&
 2321     assert(getType() == LHS->getType() &&
 2323     assert(getType()->isIntOrIntVectorTy() &&
 2328     assert(getType() == LHS->getType() &&
 2328     assert(getType() == LHS->getType() &&
 2330     assert(getType()->isIntOrIntVectorTy() &&
 2341   assert(S1->getType() == S2->getType() &&
 2341   assert(S1->getType() == S2->getType() &&
 2343   return new BinaryOperator(Op, S1, S2, S1->getType(), Name, InsertBefore);
 2356   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2359                             Op->getType(), Name, InsertBefore);
 2364   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2367                             Op->getType(), Name, InsertAtEnd);
 2372   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2378   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2384   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2390   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2396   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2398                             Op->getType(), Name, InsertBefore);
 2403   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2405                             Op->getType(), Name, InsertAtEnd);
 2410   Constant *C = Constant::getAllOnesValue(Op->getType());
 2412                             Op->getType(), Name, InsertBefore);
 2417   Constant *AllOnes = Constant::getAllOnesValue(Op->getType());
 2419                             Op->getType(), Name, InsertAtEnd);
 2459       return getOperand(0)->getType()->isIntegerTy() &&
 2460         getType()->isIntegerTy();
 2470   Type *SrcTy = getOperand(0)->getType();
 2471   Type *DstTy = getType();
 2519   return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), DL);
 2519   return isNoopCast(getOpcode(), getOperand(0)->getType(), getType(), DL);
 2794   if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 2802   if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 2810   if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 2818   if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 2826   if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 2834   if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits())
 2842   assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
 2845   assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast");
 2847           Ty->getVectorNumElements() == S->getType()->getVectorNumElements()) &&
 2860   assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
 2863   assert(Ty->isVectorTy() == S->getType()->isVectorTy() && "Invalid cast");
 2865           Ty->getVectorNumElements() == S->getType()->getVectorNumElements()) &&
 2878   assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
 2881   if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace())
 2891   assert(S->getType()->isPtrOrPtrVectorTy() && "Invalid cast");
 2894   if (S->getType()->getPointerAddressSpace() != Ty->getPointerAddressSpace())
 2903   if (S->getType()->isPointerTy() && Ty->isIntegerTy())
 2905   if (S->getType()->isIntegerTy() && Ty->isPointerTy())
 2914   assert(C->getType()->isIntOrIntVectorTy() && Ty->isIntOrIntVectorTy() &&
 2916   unsigned SrcBits = C->getType()->getScalarSizeInBits();
 2928   assert(C->getType()->isIntOrIntVectorTy() && Ty->isIntOrIntVectorTy() &&
 2930   unsigned SrcBits = C->getType()->getScalarSizeInBits();
 2942   assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
 2944   unsigned SrcBits = C->getType()->getScalarSizeInBits();
 2955   assert(C->getType()->isFPOrFPVectorTy() && Ty->isFPOrFPVectorTy() &&
 2957   unsigned SrcBits = C->getType()->getScalarSizeInBits();
 3087   Type *SrcTy = Src->getType();
 3190   Type *SrcTy = S->getType();
 3829     : Instruction(SI.getType(), Instruction::Switch, nullptr, 0) {
 4020   assert(Address && Address->getType()->isPointerTy() &&
 4139   return new LoadInst(getType(), getOperand(0), Twine(), isVolatile(),
 4173   return new TruncInst(getOperand(0), getType());
 4177   return new ZExtInst(getOperand(0), getType());
 4181   return new SExtInst(getOperand(0), getType());
 4185   return new FPTruncInst(getOperand(0), getType());
 4189   return new FPExtInst(getOperand(0), getType());
 4193   return new UIToFPInst(getOperand(0), getType());
 4197   return new SIToFPInst(getOperand(0), getType());
 4201   return new FPToUIInst(getOperand(0), getType());
 4205   return new FPToSIInst(getOperand(0), getType());
 4209   return new PtrToIntInst(getOperand(0), getType());
 4213   return new IntToPtrInst(getOperand(0), getType());
 4217   return new BitCastInst(getOperand(0), getType());
 4221   return new AddrSpaceCastInst(getOperand(0), getType());
 4237   return new VAArgInst(getOperand(0), getType());
lib/IR/Mangler.cpp
   99     Type *Ty = AI->getType();
lib/IR/Metadata.cpp
   68   getType()->getContext().pImpl->MetadataAsValues.erase(MD);
  375   auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata;
  395   assert(From->getType() == To->getType() && "Unexpected type change");
  395   assert(From->getType() == To->getType() && "Unexpected type change");
  397   LLVMContext &Context = From->getType()->getContext();
lib/IR/SafepointIRVerifier.cpp
  364       if (V != Constant::getNullValue(V->getType()))
  659       if (containsGCPtrType(PN->getType())) {
  692                containsGCPtrType(I.getType())) {
  696         if (containsGCPtrType(V->getType()) &&
  754     if (containsGCPtrType(A.getType()))
  787   } else if (containsGCPtrType(I.getType()))
  795     if (containsGCPtrType(PN->getType()))
  810              containsGCPtrType(I.getOperand(0)->getType())) {
  867       if (containsGCPtrType(V->getType()) &&
lib/IR/Type.cpp
  560     if (!V->getType()->isIntOrIntVectorTy(32))
  563     if (C && V->getType()->isVectorTy())
  570   return V->getType()->isIntOrIntVectorTy();
lib/IR/TypeFinder.cpp
   63         incorporateType(I.getType());
  136   incorporateType(V->getType());
lib/IR/Value.cpp
  246   assert(!getType()->isVoidTy() && "Cannot assign a name to void values!");
  402   assert(New->getType() == getType() &&
  402   assert(New->getType() == getType() &&
  443   assert(New->getType() == getType() &&
  443   assert(New->getType() == getType() &&
  467   if (!V->getType()->isPointerTy())
  522     assert(V->getType()->isPointerTy() && "Unexpected operand type!");
  552   if (!getType()->isPtrOrPtrVectorTy())
  556   assert(BitWidth == DL.getIndexTypeSizeInBits(getType()) &&
  576       APInt GEPOffset(DL.getIndexTypeSizeInBits(V->getType()), 0);
  598     assert(V->getType()->isPtrOrPtrVectorTy() && "Unexpected operand type!");
  610   assert(getType()->isPointerTy() && "must be pointer");
  617       Type *PT = cast<PointerType>(A->getType())->getElementType();
  675   assert(getType()->isPointerTy() && "must be pointer");
  707       Type *EltTy = cast<PointerType>(A->getType())->getElementType();
  912     dbgs() << "While deleting: " << *V->getType() << " %" << V->getName()
  926   assert(Old->getType() == New->getType() &&
  926   assert(Old->getType() == New->getType() &&
  968         dbgs() << "After RAUW from " << *Old->getType() << " %"
  969                << Old->getName() << " to " << *New->getType() << " %"
lib/IR/ValueSymbolTable.cpp
   37            << *VI.getValue()->getType() << "' Name = '" << VI.getKeyData()
lib/IR/Verifier.cpp
  622     Assert(GV.getInitializer()->getType() == GV.getValueType(),
  759   Assert(GA.getType() == Aliasee->getType(),
  828   Assert(!MD.getValue()->getType()->isMetadataTy(),
 1914                                  CE->getType()),
 1920                       ? CE->getType()
 1921                       : CE->getOperand(0)->getType();
 1958   auto *PT = dyn_cast<PointerType>(Target->getType());
 1992     Type *ArgType = Call.getArgOperand(5 + i)->getType();
 2206     Assert(Arg.getType() == FT->getParamType(i),
 2209     Assert(Arg.getType()->isFirstClassType(),
 2212       Assert(!Arg.getType()->isMetadataTy(),
 2214       Assert(!Arg.getType()->isTokenTy(),
 2442     Assert(BI.getCondition()->getType()->isIntegerTy(1),
 2457     Assert(N == 1 && F->getReturnType() == RI.getOperand(0)->getType(),
 2470   Type *SwitchTy = SI.getCondition()->getType();
 2483   Assert(BI.getAddress()->getType()->isPointerTy(),
 2486     Assert(BI.getDestination(i)->getType()->isLabelTy(),
 2495   Assert(CBI.getType()->isVoidTy(), "Callbr return value is not supported!",
 2498     Assert(CBI.getSuccessor(i)->getType()->isLabelTy(),
 2526   Assert(SI.getTrueValue()->getType() == SI.getType(),
 2526   Assert(SI.getTrueValue()->getType() == SI.getType(),
 2540   Type *SrcTy = I.getOperand(0)->getType();
 2541   Type *DestTy = I.getType();
 2558   Type *SrcTy = I.getOperand(0)->getType();
 2559   Type *DestTy = I.getType();
 2576   Type *SrcTy = I.getOperand(0)->getType();
 2577   Type *DestTy = I.getType();
 2594   Type *SrcTy = I.getOperand(0)->getType();
 2595   Type *DestTy = I.getType();
 2611   Type *SrcTy = I.getOperand(0)->getType();
 2612   Type *DestTy = I.getType();
 2629   Type *SrcTy = I.getOperand(0)->getType();
 2630   Type *DestTy = I.getType();
 2652   Type *SrcTy = I.getOperand(0)->getType();
 2653   Type *DestTy = I.getType();
 2675   Type *SrcTy = I.getOperand(0)->getType();
 2676   Type *DestTy = I.getType();
 2698   Type *SrcTy = I.getOperand(0)->getType();
 2699   Type *DestTy = I.getType();
 2721   Type *SrcTy = I.getOperand(0)->getType();
 2722   Type *DestTy = I.getType();
 2746   Type *SrcTy = I.getOperand(0)->getType();
 2747   Type *DestTy = I.getType();
 2770       CastInst::castIsValid(Instruction::BitCast, I.getOperand(0), I.getType()),
 2776   Type *SrcTy = I.getOperand(0)->getType();
 2777   Type *DestTy = I.getType();
 2803   Assert(!PN.getType()->isTokenTy(), "PHI nodes cannot have token type!");
 2808     Assert(PN.getType() == IncValue->getType(),
 2808     Assert(PN.getType() == IncValue->getType(),
 2818   Assert(Call.getCalledValue()->getType()->isPointerTy(),
 2820   PointerType *FPTy = cast<PointerType>(Call.getCalledValue()->getType());
 2841     Assert(Call.getArgOperand(i)->getType() == FTy->getParamType(i),
 2925       Type *Ty = Call.getArgOperand(Idx)->getType();
 3136   Assert(U.getType() == U.getOperand(0)->getType(), 
 3136   Assert(U.getType() == U.getOperand(0)->getType(), 
 3145     Assert(U.getType()->isFPOrFPVectorTy(),
 3159   Assert(B.getOperand(0)->getType() == B.getOperand(1)->getType(),
 3159   Assert(B.getOperand(0)->getType() == B.getOperand(1)->getType(),
 3172     Assert(B.getType()->isIntOrIntVectorTy(),
 3174     Assert(B.getType() == B.getOperand(0)->getType(),
 3174     Assert(B.getType() == B.getOperand(0)->getType(),
 3186     Assert(B.getType()->isFPOrFPVectorTy(),
 3190     Assert(B.getType() == B.getOperand(0)->getType(),
 3190     Assert(B.getType() == B.getOperand(0)->getType(),
 3199     Assert(B.getType()->isIntOrIntVectorTy(),
 3201     Assert(B.getType() == B.getOperand(0)->getType(),
 3201     Assert(B.getType() == B.getOperand(0)->getType(),
 3208     Assert(B.getType()->isIntOrIntVectorTy(),
 3210     Assert(B.getType() == B.getOperand(0)->getType(),
 3210     Assert(B.getType() == B.getOperand(0)->getType(),
 3222   Type *Op0Ty = IC.getOperand(0)->getType();
 3223   Type *Op1Ty = IC.getOperand(1)->getType();
 3238   Type *Op0Ty = FC.getOperand(0)->getType();
 3239   Type *Op1Ty = FC.getOperand(1)->getType();
 3282       Idxs, [](Value* V) { return V->getType()->isIntOrIntVectorTy(); }),
 3288   Assert(GEP.getType()->isPtrOrPtrVectorTy() &&
 3292   if (GEP.getType()->isVectorTy()) {
 3294     unsigned GEPWidth = GEP.getType()->getVectorNumElements();
 3299       Type *IndexTy = Idx->getType();
 3309   if (auto *PTy = dyn_cast<PointerType>(GEP.getType())) {
 3377   PointerType *PTy = dyn_cast<PointerType>(LI.getOperand(0)->getType());
 3379   Type *ElTy = LI.getType();
 3403   PointerType *PTy = dyn_cast<PointerType>(SI.getOperand(1)->getType());
 3406   Assert(ElTy == SI.getOperand(0)->getType(),
 3471   Assert(AI.getArraySize()->getType()->isIntegerTy(),
 3502   PointerType *PTy = dyn_cast<PointerType>(CXI.getOperand(0)->getType());
 3508   Assert(ElTy == CXI.getOperand(1)->getType(),
 3511   Assert(ElTy == CXI.getOperand(2)->getType(),
 3522   PointerType *PTy = dyn_cast<PointerType>(RMWI.getOperand(0)->getType());
 3542   Assert(ElTy == RMWI.getOperand(1)->getType(),
 3563   Assert(ExtractValueInst::getIndexedType(EVI.getAggregateOperand()->getType(),
 3564                                           EVI.getIndices()) == EVI.getType(),
 3571   Assert(ExtractValueInst::getIndexedType(IVI.getAggregateOperand()->getType(),
 3573              IVI.getOperand(1)->getType(),
 3668     LandingPadResultTy = LPI.getType();
 3670     Assert(LandingPadResultTy == LPI.getType(),
 3688       Assert(isa<PointerType>(Clause->getType()),
 3705     LandingPadResultTy = RI.getValue()->getType();
 3707     Assert(LandingPadResultTy == RI.getValue()->getType(),
 4007   Assert(I.getType()->isPointerTy(), "dereferenceable, dereferenceable_or_null "
 4072   Assert(!I.getType()->isVoidTy() || !I.hasName(),
 4077   Assert(I.getType()->isVoidTy() || I.getType()->isFirstClassType(),
 4077   Assert(I.getType()->isVoidTy() || I.getType()->isFirstClassType(),
 4082   Assert(!I.getType()->isMetadataTy() || isa<CallInst>(I) || isa<InvokeInst>(I),
 4109     if (!I.getOperand(i)->getType()->isFirstClassType()) {
 4148       if (CE->getType()->isPtrOrPtrVectorTy() ||
 4160     Assert(I.getType()->isFPOrFPVectorTy(),
 4178     visitRangeMetadata(I, Range, I.getType());
 4182     Assert(I.getType()->isPointerTy(), "nonnull applies only to pointer types",
 4200     Assert(I.getType()->isPointerTy(), "align applies only to pointer types",
 4490     auto *PT = cast<PointerType>(Target->getType());
 4492     Assert(Call.getType() == TargetFuncType->getReturnType(),
 4499     Assert(isa<PointerType>(Call.getType()->getScalarType()),
 4588     Assert(Relocate.getDerivedPtr()->getType()->isPtrOrPtrVectorTy(),
 4591     auto ResultType = Call.getType();
 4592     auto DerivedType = Relocate.getDerivedPtr()->getType();
 4610     Assert(Call.getType()->isVectorTy(), "masked_load: must return a vector",
 4617     Assert(Mask->getType()->isVectorTy(), "masked_load: mask must be vector",
 4623     Type *DataTy = cast<PointerType>(Ptr->getType())->getElementType();
 4624     Assert(DataTy == Call.getType(),
 4626     Assert(PassThru->getType() == DataTy,
 4628     Assert(Mask->getType()->getVectorNumElements() ==
 4638     Assert(Mask->getType()->isVectorTy(), "masked_store: mask must be vector",
 4644     Type *DataTy = cast<PointerType>(Ptr->getType())->getElementType();
 4645     Assert(DataTy == Val->getType(),
 4647     Assert(Mask->getType()->getVectorNumElements() ==
 4667     Assert(Call.getType() == Call.getFunction()->getReturnType(),
 4675       if (!Call.getType()->isVoidTy() && RI)
 4689     Assert(Op1->getType()->isIntOrIntVectorTy(),
 4692     Assert(Op2->getType()->isIntOrIntVectorTy(),
 4703     Assert(Op1->getType()->isIntOrIntVectorTy(),
 4706     Assert(Op2->getType()->isIntOrIntVectorTy(),
 4716           Op3->getZExtValue() < Op1->getType()->getScalarSizeInBits(),
 4719       Assert(Op3->getZExtValue() <= Op1->getType()->getScalarSizeInBits(),
 4729     Type *ValTy = Call.getArgOperand(0)->getType();
 4730     Type *ResultTy = Call.getType();
 4786     Type *ValTy = FPI.getArgOperand(0)->getType();
 4787     Type *ResultTy = FPI.getType();
 4799     Type *ValTy = FPI.getArgOperand(0)->getType();
 4800     Type *ResultTy = FPI.getType();
 4837     Assert(Operand->getType()->isFPOrFPVectorTy(),
 4839     if (auto *OperandT = dyn_cast<VectorType>(Operand->getType())) {
 4844     Assert((NumSrcElem > 0) == Operand->getType()->isVectorTy(),
 4846     Assert(Operand->getType()->isIntOrIntVectorTy(),
 4848     if (auto *OperandT = dyn_cast<VectorType>(Operand->getType())) {
 4869     Type *OperandTy = Operand->getType();
 4871     Type *ResultTy = Result->getType();
lib/Linker/IRMover.cpp
  832   unsigned NumElements = cast<ArrayType>(C->getType())->getNumElements();
lib/ProfileData/InstrProf.cpp
  322       new GlobalVariable(M, Value->getType(), true, Linkage, Value,
 1157       M, ProfileNameConst->getType(), true, GlobalValue::WeakAnyLinkage,
lib/Target/AArch64/AArch64CallLowering.cpp
  273     LLVMContext &Ctx = Val->getType()->getContext();
  276     ComputeValueVTs(TLI, DL, Val->getType(), SplitEVTs);
  427     if (DL.getTypeStoreSize(Arg.getType()) == 0)
  430     ArgInfo OrigArg{VRegs[i], Arg.getType()};
lib/Target/AArch64/AArch64FastISel.cpp
  311   assert(!I->getType()->isVectorTy() && I->getType()->isIntegerTy() &&
  311   assert(!I->getType()->isVectorTy() && I->getType()->isIntegerTy() &&
  437   unsigned Align = DL.getPrefTypeAlignment(CFP->getType());
  439     Align = DL.getTypeAllocSize(CFP->getType());
  523   EVT CEVT = TLI.getValueType(DL, C->getType(), true);
  553   if (!isTypeLegal(CFP->getType(), VT))
  596   if (auto *Ty = dyn_cast<PointerType>(Obj->getType()))
  611     if (TLI.getValueType(DL, U->getOperand(0)->getType()) ==
  618     if (TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
  743               ZE->getOperand(0)->getType()->isIntegerTy(32)) {
  749               SE->getOperand(0)->getType()->isIntegerTy(32)) {
  827               ZE->getOperand(0)->getType()->isIntegerTy(32)) {
  833               SE->getOperand(0)->getType()->isIntegerTy(32)) {
  886       if (!isIntExtFree(ZE) && ZE->getOperand(0)->getType()->isIntegerTy(32)) {
  891       if (!isIntExtFree(SE) && SE->getOperand(0)->getType()->isIntegerTy(32)) {
  952         TLI.getValueType(DL, U->getOperand(0)->getType()) ==
  958     if (InMBB && TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
 1486   Type *Ty = LHS->getType();
 1924   if (!isTypeSupported(I->getType(), VT, /*IsVectorAllowed=*/true))
 1950   if (!isTypeSupported(I->getType(), VT, /*IsVectorAllowed=*/true))
 1982   if (!isTypeSupported(I->getType(), VT, /*IsVectorAllowed=*/true) ||
 2003   if (!computeAddress(I->getOperand(0), Addr, I->getType()))
 2012       if (isTypeSupported(ZE->getType(), RetVT))
 2017       if (isTypeSupported(SE->getType(), RetVT))
 2185   if (!isTypeSupported(Op0->getType(), VT, /*IsVectorAllowed=*/true))
 2238   if (!computeAddress(PtrV, Addr, Op0->getType()))
 2309   if (!isTypeSupported(LHS->getType(), VT))
 2572   if (CI->getType()->isVectorTy())
 2655   if (!SI->getType()->isIntegerTy(1))
 2712   if (!isTypeSupported(I->getType(), VT))
 2841   if (!I->getType()->isDoubleTy() || !V->getType()->isFloatTy())
 2841   if (!I->getType()->isDoubleTy() || !V->getType()->isFloatTy())
 2857   if (!I->getType()->isFloatTy() || !V->getType()->isDoubleTy())
 2857   if (!I->getType()->isFloatTy() || !V->getType()->isDoubleTy())
 2874   if (!isTypeLegal(I->getType(), DestVT) || DestVT.isVector())
 2881   EVT SrcVT = TLI.getValueType(DL, I->getOperand(0)->getType(), true);
 2907   if (!isTypeLegal(I->getType(), DestVT) || DestVT.isVector())
 2921   EVT SrcVT = TLI.getValueType(DL, I->getOperand(0)->getType(), true);
 2978     Type *ArgTy = Arg.getType();
 3024     MVT VT = TLI.getSimpleValueType(DL, Arg.getType());
 3140       unsigned Alignment = DL.getABITypeAlignment(ArgVal->getType());
 3241     if (!isTypeLegal(Val->getType(), VT) &&
 3541     if (!MTI->getLength()->getType()->isIntegerTy(64))
 3558     if (!MSI->getLength()->getType()->isIntegerTy(64))
 3572     if (!isTypeLegal(II->getType(), RetVT))
 3606       Entry.Ty = Arg->getType();
 3612     CLI.setCallee(DL, Ctx, TLI.getLibcallCallingConv(LC), II->getType(),
 3621     if (!isTypeLegal(II->getType(), VT))
 3897     EVT RVEVT = TLI.getValueType(DL, RV->getType());
 3941   Type *DestTy = I->getType();
 3943   Type *SrcTy = Op->getType();
 4583   if (!isTypeSupported(I->getType(), RetVT))
 4586   if (!isTypeSupported(I->getOperand(0)->getType(), SrcVT))
 4633   EVT DestEVT = TLI.getValueType(DL, I->getType(), true);
 4680   if (!isTypeSupported(I->getType(), VT, /*IsVectorAllowed=*/true))
 4753   if (!isTypeSupported(I->getType(), RetVT, /*IsVectorAllowed=*/true))
 4843   if (!isTypeLegal(I->getOperand(0)->getType(), SrcVT))
 4845   if (!isTypeLegal(I->getType(), RetVT))
 4883   if (!isTypeLegal(I->getType(), RetVT))
 4905     Entry.Ty = Arg->getType();
 4911   CLI.setCallee(DL, Ctx, TLI.getLibcallCallingConv(LC), I->getType(),
 4921   if (!isTypeLegal(I->getType(), VT))
 5000   EVT IdxVT = EVT::getEVT(Idx->getType(), /*HandleUnknown=*/false);
 5086   auto *RetPairTy = cast<StructType>(I->getType());
lib/Target/AArch64/AArch64ISelLowering.cpp
 3164       EVT ActualVT = getValueType(DAG.getDataLayout(), CurOrigArg->getType(),
 5951   Type *type = CallOperandVal->getType();
 8380     uint64_t NumElts = DL.getTypeSizeInBits(I.getType()) / 64;
 8381     Info.memVT = EVT::getVectorVT(I.getType()->getContext(), MVT::i64, NumElts);
 8402       Type *ArgTy = I.getArgOperand(ArgI)->getType();
 8407     Info.memVT = EVT::getVectorVT(I.getType()->getContext(), MVT::i64, NumElts);
 8417     PointerType *PtrTy = cast<PointerType>(I.getArgOperand(0)->getType());
 8428     PointerType *PtrTy = cast<PointerType>(I.getArgOperand(1)->getType());
 8528   EVT VT = getValueType(DL, User->getOperand(0)->getType());
 8573   if (Ext->getType()->isVectorTy())
 8609       if (Instr->getType() == Ext->getOperand(0)->getType())
 8609       if (Instr->getType() == Ext->getOperand(0)->getType())
 8626     auto *FullVT = cast<VectorType>(FullV->getType());
 8627     auto *HalfVT = cast<VectorType>(HalfV->getType());
 8632     auto *FullVT = cast<VectorType>(FullV->getType());
 8633     auto *HalfVT = cast<VectorType>(HalfV->getType());
 8653   int NumElements = cast<VectorType>(Op1->getType())->getNumElements() * 2;
 8666     return Ext->getType()->getScalarSizeInBits() ==
 8667            2 * Ext->getOperand(0)->getType()->getScalarSizeInBits();
 8684   if (!I->getType()->isVectorTy())
 8943     unsigned NumOpElts = Op0->getType()->getVectorNumElements();
12126   unsigned Size = SI->getValueOperand()->getType()->getPrimitiveSizeInBits();
12135   unsigned Size = LI->getType()->getPrimitiveSizeInBits();
12145   unsigned Size = AI->getType()->getPrimitiveSizeInBits();
12172   Type *ValTy = cast<PointerType>(Addr->getType())->getElementType();
12194   Type *Tys[] = { Addr->getType() };
12199   Type *EltTy = cast<PointerType>(Addr->getType())->getElementType();
12223   if (Val->getType()->getPrimitiveSizeInBits() == 128) {
12237   Type *Tys[] = { Addr->getType() };
12241   IntegerType *IntValTy = Builder.getIntNTy(DL.getTypeSizeInBits(Val->getType()));
lib/Target/AArch64/AArch64InstructionSelector.cpp
 3067   Type *CPTy = CPVal->getType();
 3085   switch (MIRBuilder.getDataLayout().getTypeStoreSize(CPVal->getType())) {
 3101                       << *CPVal->getType());
lib/Target/AArch64/AArch64PromoteConstant.cpp
  341   if (Cst->getType()->isVectorTy())
  343   return isConstantUsingVectorTy(Cst->getType());
  475       *F.getParent(), C.getType(), true, GlobalValue::InternalLinkage, nullptr,
lib/Target/AArch64/AArch64StackTagging.cpp
  108     int64_t StoreSize = DL->getTypeStoreSize(SI->getOperand(0)->getType());
  250     if (V->getType()->isIntegerTy())
  253     if (VectorType *VecTy = dyn_cast<VectorType>(V->getType())) {
  264         V, IRB.getIntNTy(DL->getTypeStoreSize(V->getType()) * 8));
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  803       if (Inst->getArgOperand(i)->getType() != ST->getElementType(i))
  817     if (Inst->getType() == ExpectedType)
  876   if (I.getType() != ConsideredSExtType)
lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
   81   unsigned asA = LocA.Ptr->getType()->getPointerAddressSpace();
   82   unsigned asB = LocB.Ptr->getType()->getPointerAddressSpace();
   95   unsigned AS = Base->getType()->getPointerAddressSpace();
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
   98     unsigned SrcAS = CE->getOperand(0)->getType()->getPointerAddressSpace();
lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
  147           Ptr->getType()->getPointerElementType(), Ptr,
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  969     unsigned NumRegs = (Arg.getType()->getPrimitiveSizeInBits() + 31) / 32;
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  149       (!ST->hasDPP() || DL->getTypeSizeInBits(I.getType()) != 32)) {
  223       (!ST->hasDPP() || DL->getTypeSizeInBits(I.getType()) != 32)) {
  284   Type *const Ty = V->getType();
  343   Type *const Ty = V->getType();
  438   Type *const Ty = I.getType();
lib/Target/AMDGPU/AMDGPUCallLowering.cpp
  275   ArgInfo OrigRetInfo(VRegs, Val->getType());
  461     Type *ArgTy = Arg.getType();
  596     if (DL.getTypeStoreSize(Arg.getType()) == 0)
  631     ArgInfo OrigArg(VRegs[Idx], Arg.getType());
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  274   Type *Ty = I.getType();
  284   assert(needsPromotionToI32(I.getType()) &&
  296   Type *I32Ty = getI32Ty(Builder, I.getType());
  322   TruncRes = Builder.CreateTrunc(ExtRes, I.getType());
  331   assert(needsPromotionToI32(I.getOperand(0)->getType()) &&
  337   Type *I32Ty = getI32Ty(Builder, I.getOperand(0)->getType());
  358   assert(needsPromotionToI32(I.getType()) &&
  364   Type *I32Ty = getI32Ty(Builder, I.getType());
  378   TruncRes = Builder.CreateTrunc(ExtRes, I.getType());
  390   assert(needsPromotionToI32(I.getType()) &&
  396   Type *I32Ty = getI32Ty(Builder, I.getType());
  402       Builder.CreateLShr(ExtRes, 32 - getBaseElementBitWidth(I.getType()));
  404       Builder.CreateTrunc(LShrOp, I.getType());
  437   VectorType *VT = dyn_cast<VectorType>(V->getType());
  464   Type *Ty = I.getType();
  511                                                      LHSVals[I]->getType()));
  514                                                      LHSVals[I]->getType()));
  544   Type *Ty = FDiv.getType();
  639   assert(Num->getType()->isIntegerTy(32));
  656   Type *Ty = Num->getType();
  699                                       {FQNeg->getType()}, {FQNeg, FB, FA}, FQ);
  756   Type *Ty = Num->getType();
  886   if (ST->has16BitInsts() && needsPromotionToI32(I.getType()) &&
  895   Type *Ty = I.getType();
  966     int TySize = Mod->getDataLayout().getTypeSizeInBits(I.getType());
  969     Value *ValOrig = Builder.CreateBitCast(ValTrunc, I.getType());
  981   if (ST->has16BitInsts() && needsPromotionToI32(I.getOperand(0)->getType()) &&
  991   if (ST->has16BitInsts() && needsPromotionToI32(I.getType()) &&
 1010   if (ST->has16BitInsts() && needsPromotionToI32(I.getType()) &&
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
  331   if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() &&
  345   Type *Ty = Arg.getType();
  357   emitKernelArg(DL, Ty, getValueKind(Arg.getType(), TypeQual, BaseTypeName),
  748   if (Arg.getType()->isPointerTy() && Arg.onlyReadsMemory() &&
  762   Type *Ty = Arg.getType();
  774   emitKernelArg(Func->getParent()->getDataLayout(), Arg.getType(),
  775                 getValueKind(Arg.getType(), TypeQual, BaseTypeName), Offset,
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  925     Type *BaseArgTy = Arg.getType();
lib/Target/AMDGPU/AMDGPUInline.cpp
  133     PointerType *Ty = dyn_cast<PointerType>(PtrArg->getType());
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  607   unsigned PtrArgAS = PtrArg->getType()->getPointerAddressSpace();
  612     ArgTys.push_back(CI->getArgOperand(I)->getType());
  787           Value *nval = ConstantFP::get(CF->getType(), ftbl[i].result);
  828     Value *nval = B.CreateFDiv(ConstantFP::get(CF->getType(), 1.0),
  850     Value *nval1 = B.CreateFDiv(ConstantFP::get(opr1->getType(), 1.0),
  886     eltType = opr0->getType();
  890     VectorType *VTy = dyn_cast<VectorType>(opr0->getType());
 1122     opr1 = B.CreateSIToFP(opr1, nval->getType(), "pownI2F");
 1129     Type* rTy = opr0->getType();
 1136     if (opr_n->getType()->isIntegerTy())
 1144     nval = B.CreateBitCast(nval, opr0->getType());
 1189     Value *nval = B.CreateFDiv(ConstantFP::get(opr0->getType(), 1.0),
 1675     nval0 = ConstantFP::get(CI->getType(), DVal0[0]);
 1677       nval1 = ConstantFP::get(CI->getType(), DVal1[0]);
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
   92   unsigned AS = KernArgSegment->getType()->getPointerAddressSpace();
   96     Type *ArgTy = Arg.getType();
lib/Target/AMDGPU/AMDGPULowerKernelAttributes.cpp
  112     unsigned LoadSize = DL.getTypeStoreSize(Load->getType());
  204                                                                 SI->getType(),
  228                                    GroupSize->getType(),
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  241     auto SrcAddr = Op->getType()->getPointerAddressSpace();
  243       auto DstAddr = CE->getType()->getPointerAddressSpace();
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
  135         auto *NewPtr = ConstantExpr::getPointerCast(GV, BitCast->getType());
lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
  302   if (auto PT = dyn_cast<PointerType>(V->getType())) {
  311   if (auto PT = dyn_cast<PointerType>(V->getType()))
  343   if (auto PT = dyn_cast<PointerType>(V->getType())) {
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  211         Type *ArgType = Arg->getType();
  233           ArgType = Arg->getType();
  244             if (FpExt && FpExt->getType()->isDoubleTy() &&
  245                 FpExt->getOperand(0)->getType()->isFloatTy())
  408         Type *ArgType = Arg->getType();
  424               if (FpExt && FpExt->getType()->isDoubleTy() &&
  425                   FpExt->getOperand(0)->getType()->isFloatTy()) {
  494             ArgType = Arg->getType();
  535               TD->getTypeAllocSizeInBits(TheBtCast->getType()) / 8;
  539           Type *ArgPointer = PointerType::get(TheBtCast->getType(), 1);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  335         LI->getPointerOperandType() == User->getType() &&
  336         isa<VectorType>(LI->getType()))
  348         SI->getPointerOperandType() == User->getType() &&
  349         isa<VectorType>(SI->getValueOperand()->getType()))
  425       if (Inst->getType() == AT)
  441       if (SI->getValueOperand()->getType() == AT)
  583     if (!User->getType()->isPointerTy())
  825   I.mutateType(Offset->getType());
  834         Type *EltTy = Src0->getType()->getPointerElementType();
  851       Type *EltTy = V->getType()->getPointerElementType();
  918       Type *SrcTy = Src->getType()->getPointerElementType();
  921         { Intr->getType(), PointerType::get(SrcTy, AMDGPUAS::LOCAL_ADDRESS) }
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  151       Type *DestEltTy = BCI->getType()->getPointerElementType();
  157       Type *SrcEltTy = Arg.getType()->getPointerElementType();
  190   PointerType *ArgTy = dyn_cast<PointerType>(Arg.getType());
  289       Type *ArgTy = OutArg->getType()->getPointerElementType();
  399       Type *EltTy = Arg->getType()->getPointerElementType();
  400       if (Val->getType() != EltTy) {
  408             DL->getTypeSizeInBits(Val->getType())) {
  409           assert(isVec3ToVec4Shuffle(EffectiveEltTy, Val->getType()));
  410           Val = B.CreateShuffleVector(Val, UndefValue::get(Val->getType()),
  437       StubCallArgs.push_back(UndefValue::get(Arg.getType()));
  452     PointerType *ArgType = cast<PointerType>(Arg.getType());
  460     Type *PtrTy = Val->getType()->getPointerTo(ArgType->getAddressSpace());
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  504     Type *ArgTy = Arg.getType();
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  623     Type *DestTy = II->getType();
  624     Type *SrcTy = NewV->getType();
  635     unsigned NewAS = NewV->getType()->getPointerAddressSpace();
  636     LLVMContext &Ctx = NewV->getType()->getContext();
  704     return getVectorInstrCost(EE->getOpcode(), EE->getOperand(0)->getType(),
  723     return getIntrinsicInstrCost(II->getIntrinsicID(), II->getType(), Args,
lib/Target/AMDGPU/SIISelLowering.cpp
  931       Info.memVT = MVT::getVT(CI.getType(), true);
  935         Info.memVT = memVTFromAggregate(CI.getType());
  940       Info.memVT = MVT::getVT(CI.getArgOperand(0)->getType());
  945       Info.memVT = MVT::getVT(CI.getType());
  965     Info.memVT = MVT::getVT(CI.getType());
  980     Info.memVT = MVT::getVT(CI.getOperand(0)->getType());
  995     Info.memVT = MVT::getVT(CI.getOperand(0)->getType()
 1006     Info.memVT = MVT::getVT(CI.getType());
 1056     AccessTy = II->getType();
10914     Type *Ty = RMW->getType();
lib/Target/ARM/ARMAsmPrinter.cpp
   80   uint64_t Size = getDataLayout().getTypeAllocSize(CV->getType());
lib/Target/ARM/ARMCallLowering.cpp
  249   if (!isSupportedType(DL, TLI, Val->getType()))
  252   ArgInfo OrigRetInfo(VRegs, Val->getType());
  437     if (!isSupportedType(DL, TLI, Arg.getType()))
  452     ArgInfo OrigArgInfo(VRegs[Idx], Arg.getType());
lib/Target/ARM/ARMCodeGenPrepare.cpp
  191   return V->getType()->getScalarSizeInBits() == ARMCodeGenPrepare::TypeSize;
  195   return V->getType()->getScalarSizeInBits() <= ARMCodeGenPrepare::TypeSize;
  199   return V->getType()->getScalarSizeInBits() > ARMCodeGenPrepare::TypeSize;
  203   return V->getType()->getScalarSizeInBits() < ARMCodeGenPrepare::TypeSize;
  211   Type *Ty = V->getType();
  221       cast<IntegerType>(V->getType())->getBitWidth() == 1)
  235   if (!isa<IntegerType>(V->getType()))
  394   if (!isa<IntegerType>(V->getType()) || isSink(V))
  507     assert(V->getType() != ExtTy && "zext already extends to i32");
  558       if ((Op->getType() == ExtTy) || !isa<IntegerType>(Op->getType()))
  558       if ((Op->getType() == ExtTy) || !isa<IntegerType>(Op->getType()))
  609     if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType()))
  687         Src->getType() == OrigTy) {
  689       assert(Trunc->getOperand(0)->getType() == ExtTy &&
  719     IntegerType *SrcTy = cast<IntegerType>(Trunc->getOperand(0)->getType());
  759         TruncTysMap[Call].push_back(Arg->getType());
  762       TruncTysMap[I].push_back(Switch->getCondition()->getType());
  765         TruncTysMap[I].push_back(I->getOperand(i)->getType());
  829       if (isa<PointerType>(I->getOperand(0)->getType()))
  893   OrigTy = V->getType();
 1032         if (CI.isSigned() || !isa<IntegerType>(CI.getOperand(0)->getType()))
lib/Target/ARM/ARMConstantPoolValue.cpp
  136   : ARMConstantPoolValue((Type*)C->getType(), ID, Kind, PCAdj, Modifier,
  142     : ARMConstantPoolValue((Type *)C->getType(), 0, ARMCP::CPPromotedGlobal, 0,
lib/Target/ARM/ARMFastISel.cpp
  447   unsigned Align = DL.getPrefTypeAlignment(CFP->getType());
  450     Align = DL.getTypeAllocSize(CFP->getType());
  511   unsigned Align = DL.getPrefTypeAlignment(C->getType());
  514     Align = DL.getTypeAllocSize(C->getType());
  643   EVT CEVT = TLI.getValueType(DL, C->getType(), true);
  730   if (PointerType *Ty = dyn_cast<PointerType>(Obj->getType()))
  744       if (TLI.getValueType(DL, U->getOperand(0)->getType()) ==
  750       if (TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
 1041   if (!isLoadTypeLegal(I->getType(), VT))
 1173   if (!isLoadTypeLegal(I->getOperand(0)->getType(), VT))
 1274         (isLoadTypeLegal(TI->getOperand(0)->getType(), SourceVT))) {
 1352   Type *Ty = Src1Value->getType();
 1504   if (!I->getType()->isDoubleTy() ||
 1505       !V->getType()->isFloatTy()) return false;
 1523   if (!(I->getType()->isFloatTy() &&
 1524         V->getType()->isDoubleTy())) return false;
 1542   Type *Ty = I->getType();
 1547   EVT SrcEVT = TLI.getValueType(DL, Src->getType(), true);
 1587   Type *RetTy = I->getType();
 1595   Type *OpTy = I->getOperand(0)->getType();
 1617   if (!isTypeLegal(I->getType(), VT))
 1693   Type *Ty = I->getType();
 1722   Type *Ty = I->getType();
 1750   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
 1790   EVT FPVT = TLI.getValueType(DL, I->getType(), true);
 1802   Type *Ty = I->getType();
 2137     EVT RVEVT = TLI.getValueType(DL, RV->getType());
 2208   Type *RetTy = I->getType();
 2237     Type *ArgTy = Op->getType();
 2314   Type *RetTy = I->getType();
 2365     Type *ArgTy = (*i)->getType();
 2545     if (!MTI.getLength()->getType()->isIntegerTy(32))
 2560     if (!MSI.getLength()->getType()->isIntegerTy(32))
 2582   SrcVT = TLI.getValueType(DL, Op->getType(), true);
 2583   DestVT = TLI.getValueType(DL, I->getType(), true);
 2741   Type *DestTy = I->getType();
 2743   Type *SrcTy = Src->getType();
 2771   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
 2913   if (!isLoadTypeLegal(LI->getType(), VT))
 3035     Type *ArgTy = Arg.getType();
lib/Target/ARM/ARMISelLowering.cpp
 3359   unsigned Size = DAG.getDataLayout().getTypeAllocSize(Init->getType());
 9648         Align = MF->getDataLayout().getTypeAllocSize(C->getType());
 9749         Align = MF->getDataLayout().getTypeAllocSize(C->getType());
10151       Align = MF->getDataLayout().getTypeAllocSize(C->getType());
14735     return Ext->getType()->getScalarSizeInBits() ==
14736            2 * Ext->getOperand(0)->getType()->getScalarSizeInBits();
14753   if (!I->getType()->isVectorTy())
15580       IntegerType *Ty = dyn_cast<IntegerType>(CI->getType());
15651   Type *type = CallOperandVal->getType();
16258     uint64_t NumElts = DL.getTypeSizeInBits(I.getType()) / 64;
16259     Info.memVT = EVT::getVectorVT(I.getType()->getContext(), MVT::i64, NumElts);
16274     uint64_t NumElts = DL.getTypeSizeInBits(I.getType()) / 64;
16275     Info.memVT = EVT::getVectorVT(I.getType()->getContext(), MVT::i64, NumElts);
16295       Type *ArgTy = I.getArgOperand(ArgI)->getType();
16300     Info.memVT = EVT::getVectorVT(I.getType()->getContext(), MVT::i64, NumElts);
16317       Type *ArgTy = I.getArgOperand(ArgI)->getType();
16322     Info.memVT = EVT::getVectorVT(I.getType()->getContext(), MVT::i64, NumElts);
16333     PointerType *PtrTy = cast<PointerType>(I.getArgOperand(0)->getType());
16345     PointerType *PtrTy = cast<PointerType>(I.getArgOperand(1)->getType());
16479   unsigned Size = SI->getValueOperand()->getType()->getPrimitiveSizeInBits();
16492   unsigned Size = LI->getType()->getPrimitiveSizeInBits();
16504   unsigned Size = AI->getType()->getPrimitiveSizeInBits();
16609   Type *ValTy = cast<PointerType>(Addr->getType())->getElementType();
16633   Type *Tys[] = { Addr->getType() };
16639       cast<PointerType>(Addr->getType())->getElementType());
16659   if (Val->getType()->getPrimitiveSizeInBits() == 64) {
16674   Type *Tys[] = { Addr->getType() };
16907         VectorType::get(IntTy, Op0->getType()->getVectorNumElements());
lib/Target/ARM/ARMParallelDSP.cpp
  160     bool is64Bit() const { return Root->getType()->isIntegerTy(64); }
  162     Type *getType() const { return Root->getType(); }
  528       const auto *Ty = I.getType();
  635       SMLAD = Acc->getType()->isIntegerTy(32) ?
  639       SMLAD = Acc->getType()->isIntegerTy(32) ?
  679     if (R.getType() != Mul->getType()) {
  682       Mul = cast<Instruction>(Builder.CreateSExt(Mul, R.getRoot()->getType()));
  701   } else if (Acc->getType() != R.getType()) {
  784   Value *Bottom = IRB.CreateTrunc(WideLoad, Base->getType());
  785   Value *NewBaseSExt = IRB.CreateSExt(Bottom, BaseSExt->getType());
  788   IntegerType *OffsetTy = cast<IntegerType>(Offset->getType());
  792   Value *NewOffsetSExt = IRB.CreateSExt(Trunc, OffsetSExt->getType());
lib/Target/ARM/ARMTargetTransformInfo.cpp
  877     EVT VT = TLI->getValueType(DL, I.getType(), true);
  945     if (I.getType()->isDoubleTy() && !ST->hasFP64())
  949     if (I.getType()->isHalfTy() && !ST->hasFullFP16())
 1050       if (I.getType()->isVectorTy())
lib/Target/ARM/MVETailPredication.cpp
  274   unsigned Lanes = cast<VectorType>(Insert->getType())->getNumElements();
  285   auto *PtrTy = cast<PointerType>(I->getOperand(TypeOp)->getType());
  307           if (isa<VectorType>(U->getType()))
  320   ConstantInt *VF = ConstantInt::get(cast<IntegerType>(TripCount->getType()),
lib/Target/AVR/AVR.h
   44   return cast<PointerType>(V->getType())->getAddressSpace() == ProgramMemory;
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  901   auto *BCInst2 = new BitCastInst(GEP, Call->getType());
lib/Target/BPF/BPFISelDAGToDAG.cpp
  393   uint64_t Size = DL.getTypeAllocSize(CV->getType());
  434     Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType());
  446     Offset += DL.getTypeAllocSize(CA->getOperand(i)->getType());
lib/Target/Hexagon/HexagonBitTracker.cpp
   64     Type *ATy = Arg.getType();
lib/Target/Hexagon/HexagonCommonGEP.cpp
  335   if (!GepI->getType()->isPointerTy())
  359   N->PTy = PtrOp->getType();
  382   Type *PtrTy = cast<PointerType>(PtrOp->getType())->getElementType();
 1126     Type *InpTy = Input->getType();
lib/Target/Hexagon/HexagonGenExtract.cpp
  156   Type *Ty = BF->getType();
lib/Target/Hexagon/HexagonISelLowering.cpp
  923     Type *CValTy = ConstVal->getType();
 1819     Type *VecTy = I.getArgOperand(1)->getType();
 3243   auto PT = cast<PointerType>(Addr->getType());
 3266   Type *Ty = Val->getType();
 3275   unsigned AS = Addr->getType()->getPointerAddressSpace();
 3288   return LI->getType()->getPrimitiveSizeInBits() > 64
 3295   return SI->getValueOperand()->getType()->getPrimitiveSizeInBits() > 64;
 3302   unsigned Size = DL.getTypeStoreSize(AI->getCompareOperand()->getType());
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  964   IntegerType *T = dyn_cast<IntegerType>(Val->getType());
 1002   Type *OrigTy = In->getType();
 1006   if (!In->getType()->isIntegerTy(1))
 1018       IntegerType *Ty = cast<IntegerType>(InV->getType());
 1020       if (Ty != P->getType()) {
 1030     if (Op->getType() == Z->getType())
 1030     if (Op->getType() == Z->getType())
 1069     IntegerType *T = dyn_cast<IntegerType>(P.getType());
 1094     Type *Ty0 = P->getIncomingValue(0)->getType();
 1095     Type *PTy = P->getType();
 1252   auto *T = dyn_cast<IntegerType>(V->getType());
 1297   auto *CIVTy = dyn_cast<IntegerType>(CIV->getType());
 1327     if (!isa<IntegerType>(V->getType()))
 1423         auto *VTy = cast<IntegerType>(ShVal->getType());
 1424         auto *ATy = cast<IntegerType>(ShAmt->getType());
 1456     Value *S = IRB.CreateLShr(PN, ConstantInt::get(PN->getType(), IterCount));
 1535   auto *BMI = ConstantInt::get(P->getType(), APInt::getLowBitsSet(32, IC));
 1558     R = B.CreateXor(R, B.CreateIntCast(P0, R->getType(), false));
 1604                            B.CreateZExt(T->getOperand(0), I->getType()),
 1605                            B.CreateZExt(T->getOperand(1), I->getType()));
 1899   if (PM->getType() != PV.Res->getType())
 1899   if (PM->getType() != PV.Res->getType())
 1900     PM = IRBuilder<>(&*At).CreateIntCast(PM, PV.Res->getType(), false);
 1922   uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType());
 1938   unsigned StoreSize = DL->getTypeStoreSize(SI->getValueOperand()->getType());
 2016   unsigned StoreSize = DL->getTypeStoreSize(SI->getValueOperand()->getType());
 2213       Type *Ty = NumBytes->getType();
 2268       Value *Op0 = (StoreBasePtr->getType() == Int32PtrTy)
 2271       Value *Op1 = (LoadBasePtr->getType() == Int32PtrTy)
lib/Target/Hexagon/HexagonOptimizeSZextends.cpp
   75       if (!isa<PointerType>(Arg.getType())) {
   79             SExtInst* SI = new SExtInst(&Arg, Use->getType());
   80             assert (EVT::getEVT(SI->getType()) ==
   81                     (EVT::getEVT(Use->getType())));
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  417   if (I1->getType()->isVectorTy() && I2->getType()->isVectorTy()) {
  417   if (I1->getType()->isVectorTy() && I2->getType()->isVectorTy()) {
  640     NewPhi = IRB.CreatePHI(InstInPreheader->getType(), 2);
  731     if (!isa<VectorType>(PN->getType()))
lib/Target/Lanai/LanaiTargetObjectFile.cpp
  117   return isInSmallSection(DL.getTypeAllocSize(CN->getType()));
lib/Target/Mips/Mips16HardFloat.cpp
  394         Type *T = RVal->getType();
lib/Target/Mips/MipsCCState.cpp
  167         originalTypeIsF128(FuncArg->getType(), nullptr));
  168     OriginalArgWasFloat.push_back(FuncArg->getType()->isFloatingPointTy());
  173     OriginalArgWasFloatVector.push_back(FuncArg->getType()->isVectorTy());
lib/Target/Mips/MipsCallLowering.cpp
  419   if (Val != nullptr && !isSupportedReturnType(Val->getType()))
  431     ArgInfo ArgRetInfo(VRegs, Val->getType());
  462     if (!isSupportedArgumentType(Arg.getType()))
  474     ArgInfo AInfo(VRegs[i], Arg.getType());
lib/Target/Mips/MipsFastISel.cpp
  448   EVT CEVT = TLI.getValueType(DL, C->getType(), true);
  571     if (TLI.getValueType(DL, U->getOperand(0)->getType()) ==
  577     if (TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
  708     bool IsFloat = Left->getType()->isFloatTy();
  709     bool IsDouble = Left->getType()->isDoubleTy();
  867   if (!isTypeSupported(I->getType(), VT))
  899   if (!isLoadTypeLegal(I->getType(), VT))
  924   if (!isLoadTypeLegal(I->getOperand(0)->getType(), VT))
 1000   EVT SrcVT = TLI.getValueType(DL, Src->getType(), true);
 1001   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
 1024   if (!isTypeSupported(I->getType(), VT) || UnsupportedFPMode) {
 1079   EVT SrcVT = TLI.getValueType(DL, Src->getType(), true);
 1080   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
 1106   Type *DstTy = I->getType();
 1114   Type *SrcTy = Src->getType();
 1266       unsigned Alignment = DL.getABITypeAlignment(ArgVal->getType());
 1360     Type *ArgTy = FormalArg.getType();
 1531     if (!isTypeLegal(Val->getType(), VT) &&
 1663     if (!MTI->getLength()->getType()->isIntegerTy(32))
 1673     if (!MSI->getLength()->getType()->isIntegerTy(32))
 1736     EVT RVEVT = TLI.getValueType(DL, RV->getType());
 1786   SrcVT = TLI.getValueType(DL, Op->getType(), true);
 1787   DestVT = TLI.getValueType(DL, I->getType(), true);
 1805   Type *DestTy = I->getType();
 1807   Type *SrcTy = Src->getType();
 1919   EVT DestEVT = TLI.getValueType(DL, I->getType(), true);
 1965   if (!isTypeSupported(I->getType(), RetVT))
 1984     MVT Op0MVT = TLI.getValueType(DL, Op0->getType(), true).getSimpleVT();
 2100   MVT VMVT = TLI.getValueType(DL, V->getType(), true).getSimpleVT();
lib/Target/Mips/MipsISelLowering.cpp
 3803   Type *type = CallOperandVal->getType();
lib/Target/Mips/MipsOs16.cpp
   60     switch (Arg.getType()->getTypeID()) {
lib/Target/Mips/MipsTargetObjectFile.cpp
  173           LocalSData && IsInSmallSection(DL.getTypeAllocSize(CN->getType())));
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  263     switch (Cnt->getType()->getTypeID()) {
 1431     Type *Ty = I->getType();
 1696   if (Fp->getType()->getTypeID() == Type::FloatTyID) {
 1700   } else if (Fp->getType()->getTypeID() == Type::DoubleTyID) {
 1740     PointerType *PTy = dyn_cast<PointerType>(Cexpr->getType());
 1791     int s = DL.getTypeAllocSize(CPV->getType());
 1799   switch (CPV->getType()->getTypeID()) {
 1802     Type *ETy = CPV->getType();
 1863     Type *Ty = CFP->getType();
 1889     unsigned int s = DL.getTypeAllocSize(CPV->getType());
 1898       int ElementSize = DL.getTypeAllocSize(CPV->getType());
 1922     for (unsigned I = 0, E = DL.getTypeAllocSize(CPV->getType()); I < E; ++I) {
 1949       StructType *ST = cast<StructType>(CPV->getType());
 2016     PointerType *DstTy = cast<PointerType>(CE->getType());
 2032     APInt OffsetAI(DL.getPointerTypeSizeInBits(CE->getType()), 0);
 2060     Op = ConstantExpr::getIntegerCast(Op, DL.getIntPtrType(CV->getType()),
 2071     Type *Ty = CE->getType();
 2077     if (DL.getTypeAllocSize(Ty) == DL.getTypeAllocSize(Op->getType()))
 2083     unsigned InBits = DL.getTypeAllocSizeInBits(Op->getType());
lib/Target/NVPTX/NVPTXAsmPrinter.h
  163               PointerType *PTy = dyn_cast<PointerType>(v0->getType());
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  218   Value *NewValue = UndefValue::get(C->getType());
  307                                 NewOperands[0], C->getType());
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
  661   if (auto *PT = dyn_cast<PointerType>(Src->getType())) {
 3684   if (auto *PT = dyn_cast<PointerType>(Src->getType()))
lib/Target/NVPTX/NVPTXISelLowering.cpp
 2445   Type *Ty = arg->getType();
 2486     argTypes.push_back(I.getType());
 3779     Info.memVT = getValueType(DL, I.getType());
 3793       Info.memVT = getValueType(DL, I.getType());
 3797       Info.memVT = getValueType(DL, I.getType());
 3813       Info.memVT = getValueType(DL, I.getType());
 3817       Info.memVT = getValueType(DL, I.getType());
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp
   76         if (DL.getTypeStoreSize(LI->getType()) < MaxAggrCopySize)
  109     unsigned NumLoads = DL.getTypeStoreSize(LI->getType());
lib/Target/NVPTX/NVPTXLowerArgs.cpp
  157   PointerType *PType = dyn_cast<PointerType>(Arg->getType());
  179   if (Ptr->getType()->getPointerAddressSpace() == ADDRESS_SPACE_GLOBAL)
  195       Ptr, PointerType::get(Ptr->getType()->getPointerElementType(),
  198   Value *PtrInGeneric = new AddrSpaceCastInst(PtrInGlobal, Ptr->getType(),
  214           if (LI->getType()->isPointerTy()) {
  230     if (Arg.getType()->isPointerTy()) {
  243     if (Arg.getType()->isPointerTy() && Arg.hasByValAttr())
lib/Target/NVPTX/NVVMReflect.cpp
  172     Call->replaceAllUsesWith(ConstantInt::get(Call->getType(), ReflectVal));
lib/Target/PowerPC/PPCBoolRetToInt.cpp
  134           if (P->getType()->isIntegerTy(1))
  210             if (U->getType()->isIntegerTy(1))
lib/Target/PowerPC/PPCFastISel.cpp
  334       if (TLI.getValueType(DL, U->getOperand(0)->getType()) ==
  340       if (TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
  600   if (!isLoadTypeLegal(I->getType(), VT))
  749   if (!isLoadTypeLegal(Op0->getType(), VT))
  824   Type *Ty = SrcValue1->getType();
  960   EVT SrcVT = TLI.getValueType(DL, Src->getType(), true);
  961   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
  978   EVT SrcVT = TLI.getValueType(DL, Src->getType(), true);
  979   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
 1066   Type *DstTy = I->getType();
 1074   EVT SrcEVT = TLI.getValueType(DL, Src->getType(), true);
 1191   Type *DstTy = I->getType();
 1204   Type *SrcTy = Src->getType();
 1270   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
 1617     Type *ArgTy = ArgValue->getType();
 1747         EVT RVEVT = TLI.getValueType(DL, RV->getType());
 1875   EVT SrcVT = TLI.getValueType(DL, Src->getType(), true);
 1876   EVT DestVT = TLI.getValueType(DL, I->getType(), true);
 1898   Type *DestTy = I->getType();
 1900   Type *SrcTy = Src->getType();
 1999   unsigned Align = DL.getPrefTypeAlignment(CFP->getType());
 2242   EVT CEVT = TLI.getValueType(DL, C->getType(), true);
 2297   if (!isLoadTypeLegal(LI->getType(), VT))
lib/Target/PowerPC/PPCISelLowering.cpp
 4599     if (CalleeArg->getType() == CallerArg->getType() &&
 4599     if (CalleeArg->getType() == CallerArg->getType() &&
10289               Intrinsic::ppc_cfence, {Inst->getType()}),
14258   Type *type = CallOperandVal->getType();
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  262       unsigned PtrAddrSpace = PtrValue->getType()->getPointerAddressSpace();
  346     BasePtr->getType()->getPointerAddressSpace());
  400   if (PtrInc->getType() != BasePtr->getType())
  400   if (PtrInc->getType() != BasePtr->getType())
  401     NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(),
  449     if (Ptr->getType() != RealNewPtr->getType()) {
  449     if (Ptr->getType() != RealNewPtr->getType()) {
  450       ReplNewPtr = new BitCastInst(RealNewPtr, Ptr->getType(),
  510     if (!SE->isSCEVable(CurrentPHINode->getType()))
  556       !LoopPredecessor->getTerminator()->getType()->isVoidTy()) {
  573         PtrValue->getType()->getPointerElementType()->isVectorTy())
  580     if (PtrValue->getType()->getPointerElementType()->isIntegerTy(64)) {
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  207   if (U->getType()->isVectorTy()) {
  209     std::pair<int, MVT> LT = TLI->getTypeLegalizationCost(DL, U->getType());
  324             if (CI->getArgOperand(0)->getType()->getScalarType()->
  361           if (!CI->getArgOperand(0)->getType()->isFloatingPointTy())
  416               TLI->getValueType(DL, CI->getArgOperand(0)->getType(), true);
  433                J->getType()->getScalarType()->isPPC_FP128Ty()) {
  445                                 J->getType()->getScalarType()) &&
  452                isLargeIntegerTy(false, J->getType()->getScalarType()) &&
lib/Target/RISCV/RISCVISelLowering.cpp
  240     PointerType *PtrTy = cast<PointerType>(I.getArgOperand(0)->getType());
 2747   unsigned Size = AI->getType()->getPrimitiveSizeInBits();
 2810   Type *Tys[] = {AlignedAddr->getType()};
 2832         DL.getTypeStoreSizeInBits(AI->getValOperand()->getType());
 2850   unsigned Size = CI->getCompareOperand()->getType()->getPrimitiveSizeInBits();
 2868   Type *Tys[] = {AlignedAddr->getType()};
lib/Target/RISCV/RISCVTargetObjectFile.cpp
  103   return isInSmallSection(DL.getTypeAllocSize(CN->getType()));
lib/Target/Sparc/SparcISelLowering.cpp
 1356       AI->getType()->getPrimitiveSizeInBits() == 32)
lib/Target/SystemZ/SystemZISelLowering.cpp
  860         return getLoadStoreAddrMode(HasVector, I->getType());
  866         return getLoadStoreAddrMode(HasVector, LoadI->getType());
  877     Type *MemAccessTy = (isa<LoadInst>(I) ? I->getType() :
  878                          I->getOperand(0)->getType());
  993   Type *type = CallOperandVal->getType();
 1004     if (CallOperandVal->getType()->isIntegerTy())
lib/Target/SystemZ/SystemZTDC.cpp
  101       if (LI && LI->getType() == Type::getInt1Ty(Ctx) &&
  129   auto &Sem = Op0->getType()->getFltSemantics();
  359           Intrinsic::getDeclaration(&M, Intrinsic::s390_tdc, V->getType());
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  261         Type *MemAccessTy = I.getOperand(0)->getType();
  384           (C->getType()->isVectorTy()
  631     OpTy = CI->getOperand(0)->getType();
  636           OpTy = CI0->getOperand(0)->getType();
  915   unsigned LoadedBits = getScalarSizeInBits(Ld->getType());
  920     unsigned UserBits = UserI->getType()->getScalarSizeInBits();
lib/Target/TargetLoweringObjectFile.cpp
  111     return cast<ArrayType>(C->getType())->getNumElements() == 1;
  192       if (ArrayType *ATy = dyn_cast<ArrayType>(C->getType())) {
  213           GVar->getParent()->getDataLayout().getTypeAllocSize(C->getType())) {
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  225   if (auto *Ty = dyn_cast<PointerType>(Obj->getType()))
  251     if (TLI.getValueType(DL, U->getOperand(0)->getType()) ==
  258     if (TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
  428   if (match(V, m_Not(m_Value(NotV))) && V->getType()->isIntegerTy(32)) {
  557   MVT::SimpleValueType From = getSimpleType(V->getType());
  566   MVT::SimpleValueType From = getSimpleType(V->getType());
  653     Type *ArgTy = Arg.getType();
  724     MVT::SimpleValueType ArgTy = getLegalType(getSimpleType(Arg.getType()));
  768     if (!Subtarget->hasSIMD128() && Call->getType()->isVectorTy())
  771     MVT::SimpleValueType RetTy = getSimpleType(Call->getType());
  835     MVT::SimpleValueType ArgTy = getSimpleType(V->getType());
  908   switch (getSimpleType(Select->getType())) {
  953   if (Trunc->getOperand(0)->getType()->isIntegerTy(64)) {
  969   MVT::SimpleValueType From = getSimpleType(Op->getType());
  970   MVT::SimpleValueType To = getLegalType(getSimpleType(ZExt->getType()));
  986   MVT::SimpleValueType From = getSimpleType(Op->getType());
  987   MVT::SimpleValueType To = getLegalType(getSimpleType(SExt->getType()));
 1002   bool I32 = getSimpleType(ICmp->getOperand(0)->getType()) != MVT::i64;
 1071   bool F32 = getSimpleType(FCmp->getOperand(0)->getType()) != MVT::f64;
 1129   EVT VT = TLI.getValueType(DL, I->getOperand(0)->getType());
 1130   EVT RetVT = TLI.getValueType(DL, I->getType());
 1160   if (!Subtarget->hasSIMD128() && Load->getType()->isVectorTy())
 1171   switch (getSimpleType(Load->getType())) {
 1218       Store->getValueOperand()->getType()->isVectorTy())
 1227   switch (getSimpleType(Store->getValueOperand()->getType())) {
 1314   if (!Subtarget->hasSIMD128() && RV->getType()->isVectorTy())
 1317   switch (getSimpleType(RV->getType())) {
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
   75     else if (U.get()->getType() != F.getType()) {
  144     Type *ArgType = AI->getType();
  279     auto *PTy = cast<PointerType>(U->get()->getType());
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  454     auto *CalleeTy = cast<PointerType>(Callee->getType())->getElementType();
  606       SSA.Initialize(I.getType(), I.getName());
  845         auto *ATy = cast<ArrayType>(Clause->getType());
  857     Value *Undef = UndefValue::get(LPI->getType());
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
  169                                 Constant::getNullValue(Res->getType()));
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  277       if (Imm->getType()->isFloatTy())
  279       else if (Imm->getType()->isDoubleTy())
lib/Target/X86/X86CallLowering.cpp
  199     LLVMContext &Ctx = Val->getType()->getContext();
  203     ComputeValueVTs(TLI, DL, Val->getType(), SplitEVTs);
  354     ArgInfo OrigArg(VRegs[Idx], Arg.getType());
lib/Target/X86/X86FastISel.cpp
  847   if (PointerType *Ty = dyn_cast<PointerType>(V->getType()))
  861     if (TLI.getValueType(DL, U->getOperand(0)->getType()) ==
  868     if (TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
 1037         TLI.getValueType(DL, U->getOperand(0)->getType()) ==
 1044     if (InMBB && TLI.getValueType(DL, U->getType()) == TLI.getPointerTy(DL))
 1127   if (!isTypeLegal(Val->getType(), VT, /*AllowI1=*/true))
 1131   unsigned ABIAlignment = DL.getABITypeAlignment(Val->getType());
 1221     EVT SrcVT = TLI.getValueType(DL, RV->getType());
 1315   if (!isTypeLegal(LI->getType(), VT, /*AllowI1=*/true))
 1325   unsigned ABIAlignment = DL.getABITypeAlignment(LI->getType());
 1429   if (!isTypeLegal(I->getOperand(0)->getType(), VT))
 1520   EVT DstVT = TLI.getValueType(DL, I->getType());
 1529   MVT SrcVT = TLI.getSimpleValueType(DL, I->getOperand(0)->getType());
 1579   EVT DstVT = TLI.getValueType(DL, I->getType());
 1588   MVT SrcVT = TLI.getSimpleValueType(DL, I->getOperand(0)->getType());
 1637       EVT VT = TLI.getValueType(DL, CI->getOperand(0)->getType());
 1712         isTypeLegal(TI->getOperand(0)->getType(), SourceVT)) {
 1782   if (I->getType()->isIntegerTy(8)) {
 1791   } else if (I->getType()->isIntegerTy(16)) {
 1800   } else if (I->getType()->isIntegerTy(32)) {
 1809   } else if (I->getType()->isIntegerTy(64)) {
 1823   if (!isTypeLegal(I->getType(), VT))
 1910   if (!isTypeLegal(I->getType(), VT))
 2062     EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType());
 2154   if (I->getType() != CI->getOperand(0)->getType() ||
 2154   if (I->getType() != CI->getOperand(0)->getType() ||
 2315     EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType());
 2361   if (!isTypeLegal(I->getType(), RetVT))
 2416   MVT SrcVT = TLI.getSimpleValueType(DL, I->getOperand(0)->getType());
 2439   if (I->getType()->isDoubleTy()) {
 2442   } else if (I->getType()->isFloatTy()) {
 2448   MVT DstVT = TLI.getValueType(DL, I->getType()).getSimpleVT();
 2502   if (X86ScalarSSEf64 && I->getType()->isDoubleTy() &&
 2503       I->getOperand(0)->getType()->isFloatTy()) {
 2516   if (X86ScalarSSEf64 && I->getType()->isFloatTy() &&
 2517       I->getOperand(0)->getType()->isDoubleTy()) {
 2530   EVT SrcVT = TLI.getValueType(DL, I->getOperand(0)->getType());
 2531   EVT DstVT = TLI.getValueType(DL, I->getType());
 2617       if (!Op->getType()->isFloatTy())
 2620       if (!II->getType()->isFloatTy())
 2646       assert(Op->getType()->isIntegerTy(16) && "Expected a 16-bit integer!");
 2744     if (!MCI->getLength()->getType()->isIntegerTy(SizeWidth))
 2759     if (!MSI->getLength()->getType()->isIntegerTy(SizeWidth))
 3090     Type *ArgTy = Arg.getType();
 3131     MVT VT = TLI.getSimpleValueType(DL, Arg.getType());
 3271     if (TI && TI->getType()->isIntegerTy(1) && CLI.CS &&
 3280       if (!isTypeLegal(PrevVal->getType(), VT))
 3286       if (!isTypeLegal(Val->getType(), VT))
 3419       unsigned Alignment = DL.getABITypeAlignment(ArgVal->getType());
 3643     EVT SrcVT = TLI.getValueType(DL, I->getOperand(0)->getType());
 3644     EVT DstVT = TLI.getValueType(DL, I->getType());
 3660     if (!isTypeLegal(I->getOperand(0)->getType(), SrcVT) ||
 3661         !isTypeLegal(I->getType(), DstVT))
 3771   unsigned Align = DL.getPrefTypeAlignment(CFP->getType());
 3774     Align = DL.getTypeAllocSize(CFP->getType());
 3848   EVT CEVT = TLI.getValueType(DL, C->getType(), true);
 3893   if (!isTypeLegal(CF->getType(), VT))
 3933   unsigned Size = DL.getTypeAllocSize(LI->getType());
 3937     Alignment = DL.getABITypeAlignment(LI->getType());
lib/Target/X86/X86ISelLowering.cpp
 4801     MVT VT  = MVT::getVT(I.getArgOperand(1)->getType());
 4819     MVT DataVT = MVT::getVT(I.getType());
 4820     MVT IndexVT = MVT::getVT(I.getArgOperand(2)->getType());
 4831     MVT DataVT = MVT::getVT(I.getArgOperand(3)->getType());
 4832     MVT IndexVT = MVT::getVT(I.getArgOperand(2)->getType());
 6103     Type *CstTy = Cst->getType();
 6125       unsigned SrcEltSizeInBits = Broadcast->getType()->getScalarSizeInBits();
 6156       unsigned SrcEltSizeInBits = C->getType()->getScalarSizeInBits();
26450   Type *MemType = SI->getValueOperand()->getType();
26465   Type *MemType = LI->getType();
26484   Type *MemType = AI->getType();
26525   Type *MemType = AI->getType();
26581       Builder.CreateAlignedLoad(AI->getType(), AI->getPointerOperand(),
26582                                 AI->getType()->getPrimitiveSizeInBits());
38987           Type *Ty = Init->getType();
38997           uint64_t ArrayElementCount = Init->getType()->getArrayNumElements();
45247   IntegerType *Ty = dyn_cast<IntegerType>(CI->getType());
45275     if (CI->getType()->isIntegerTy(16) &&
45288     if (CI->getType()->isIntegerTy(32) &&
45301     if (CI->getType()->isIntegerTy(64)) {
45430   Type *type = CallOperandVal->getType();
45446     if (CallOperandVal->getType()->isIntegerTy())
lib/Target/X86/X86InterleavedAccess.cpp
  144     WideInstSize = DL.getTypeSizeInBits(Inst->getType());
  173   Type *VecWidth = VecInst->getType();
  292         Vec[i], UndefValue::get(Vec[i]->getType()), VPShuf);
  575         Vec[i], UndefValue::get(Vec[0]->getType()), VPShuf);
  598       Vec[1], UndefValue::get(Vec[1]->getType()), VPAlign3);
  600       Vec[0], UndefValue::get(Vec[1]->getType()), VPAlign2);
  658       InVec[0], UndefValue::get(InVec[0]->getType()), VPAlign2);
  660       InVec[1], UndefValue::get(InVec[1]->getType()), VPAlign3);
  730     Type *ShuffleEltTy = Inst->getType();
lib/Target/X86/X86MCInstLower.cpp
 1619   assert((!C || ConstantEntry.getType() == C->getType()) &&
lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
   37   Type *CstTy = C->getType();
  117          C->getType()->getPrimitiveSizeInBits() >= Width &&
  155          C->getType()->getPrimitiveSizeInBits() >= Width &&
  190   Type *MaskTy = C->getType();
  245   Type *MaskTy = C->getType();
  298          C->getType()->getPrimitiveSizeInBits() >= Width &&
  324          C->getType()->getPrimitiveSizeInBits() >= Width &&
lib/Target/X86/X86TargetTransformInfo.cpp
 3127     if (Ptrs->getType()->isVectorTy() && !getSplatValue(Ptrs))
 3132       Type *IndxTy = GEP->getOperand(i)->getType();
 3221   PointerType *PtrTy = dyn_cast<PointerType>(Ptr->getType());
 3222   if (!PtrTy && Ptr->getType()->isVectorTy())
 3223     PtrTy = dyn_cast<PointerType>(Ptr->getType()->getVectorElementType());
lib/Target/XCore/XCoreAsmPrinter.cpp
  118   const Align Alignment(DL.getPrefTypeAlignment(C->getType()));
  151   unsigned Size = DL.getTypeAllocSize(C->getType());
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  121                                      CE->getOperand(0), CE->getType(),
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
   72   if (!isPowerOf2_32(I.getType()->getScalarSizeInBits()))
   79     unsigned Width = V->getType()->getScalarSizeInBits();
  148   Function *F = Intrinsic::getDeclaration(Phi.getModule(), IID, Phi.getType());
  232   MaskOps MOps(I.getType()->getScalarSizeInBits(), MatchAllBitsSet);
  244   Constant *Mask = ConstantInt::get(I.getType(), MOps.Mask);
  248   Value *Zext = Builder.CreateZExt(Cmp, I.getType());
  268   Type *Ty = I.getType();
  308               I.getModule(), Intrinsic::ctpop, I.getType());
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
  142   Type *DstTy = CurrentTruncInst->getType();
  145       CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits();
  251               I->getOperand(0)->getType()->getScalarSizeInBits();
  259       CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits();
  279   if (auto *VTy = dyn_cast<VectorType>(V->getType()))
  318       if (I->getOperand(0)->getType() == Ty) {
  364   Type *DstTy = CurrentTruncInst->getType();
  365   if (Res->getType() != DstTy) {
lib/Transforms/CFGuard/CFGuard.cpp
  191   Type *CalledOperandType = CalledOperand->getType();
  195   if (GuardFnGlobal->getType() != PTy)
lib/Transforms/Coroutines/CoroEarly.cpp
  132     NoopCoro = new GlobalVariable(M, NoopCoroConst->getType(), /*isConstant=*/true,
lib/Transforms/Coroutines/CoroElide.cpp
   53   Type *IntrTy = Users.front()->getType();
   54   Type *ValueTy = Value->getType();
   94   auto *ArgType = Resume->arg_begin()->getType();
lib/Transforms/Coroutines/CoroFrame.cpp
  458       Ty = CurrentDef->getType();
  895     ReplPHI = PHINode::Create(LandingPad->getType(), 1, "", LandingPad);
  911           V->getType(), 1, V->getName() + Twine(".") + BB.getName(),
 1181   auto FnTy = FunctionType::get(V->getType()->getPointerTo(),
 1182                                 {V->getType()}, false);
 1262   auto ArgTy = cast<PointerType>(Arg.getType());
 1427         if (I.getType()->isTokenTy())
lib/Transforms/Coroutines/CoroSplit.cpp
  306           cast<PointerType>(GepIndex->getType())->getElementType()));
  429   if (!isa<StructType>(NewS->getType())) {
  449   Value *Agg = UndefValue::get(NewS->getType());
  502       assert(CachedSlot->getType()->getPointerElementType() == ValueTy &&
  511         assert(Arg.getType()->getPointerElementType() == ValueTy &&
  533       auto ValueTy = Op->getType();
  539       auto ValueTy = Value->getType();
  650     VMap[&A] = UndefValue::get(A.getType());
  799   auto *SizeConstant = ConstantInt::get(SizeIntrin->getType(), Size);
  831   auto *GV = new GlobalVariable(*M, ConstVal->getType(), /*isConstant=*/true,
  996     CoroBegin->replaceAllUsesWith(UndefValue::get(CoroBegin->getType()));
 1216       Builder.CreateBitCast(RawFramePtr, Shape.CoroBegin->getType());
 1220                                       RawFramePtr->getType()->getPointerTo());
 1457     if (!Cast || Cast->getType() != Fn->getType()) continue;
 1457     if (!Cast || Cast->getType() != Fn->getType()) continue;
lib/Transforms/Coroutines/Coroutines.cpp
  337       CS->replaceAllUsesWith(UndefValue::get(CS->getType()));
  408         auto SrcTy = (*SI)->getType();
  436       Type *SResultTy = Suspend->getType();
lib/Transforms/IPO/ArgumentPromotion.cpp
  143       Type *AgTy = cast<PointerType>(I->getType())->getElementType();
  151       Params.push_back(I->getType());
  159       I->replaceAllUsesWith(UndefValue::get(I->getType()));
  171           SrcTy = L->getType();
  199             cast<PointerType>(I->getType()->getScalarType())->getElementType(),
  260         Type *AgTy = cast<PointerType>(I->getType())->getElementType();
  285             Type *ElTy = V->getType();
  306               IRB.CreateLoad(OrigLoad->getType(), V, V->getName() + ".val");
  388       Type *AgTy = cast<PointerType>(I->getType())->getElementType();
  655         if (BaseTy && LI->getType() != BaseTy)
  658         BaseTy = LI->getType();
  677       if (!UpdateBaseTy(LI->getType()))
  897     if (I.getType()->isPointerTy())
  935     Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType();
  992           if (EltTy == PtrArg->getType()) {
lib/Transforms/IPO/Attributor.cpp
  191     if (V->getType()->isPointerTy()) {
 1000                 ConstantExpr::getTruncOrBitCast(RVC, CB->getType());
 1007           ConstantExpr::getTruncOrBitCast(RVC, AnchorValue.getType());
 1529   if (!UseV->getType()->isPointerTy())
 1532   Type *PtrTy = UseV->getType();
 1582             getAssociatedValue().getType()->getPointerAddressSpace())) {}
 1925         Val.getType()->getPointerAddressSpace() == 0)
 2003       if (!ArgOp->getType()->isPointerTy())
 2534           DL.getIndexSizeInBits(V.getType()->getPointerAddressSpace());
 2918         getAssociatedValue().getType()->getPointerAddressSpace() == 0) {
 3035     if (V->getType()->isPointerTy()) {
 3376       if (!V.user_empty() && &V != C && V.getType() == C->getType()) {
 3376       if (!V.user_empty() && &V != C && V.getType() == C->getType()) {
 3578             ConstantInt::get(MallocCall->getOperand(0)->getType(), TotalSize);
 3583       unsigned AS = cast<PointerType>(MallocCall->getType())->getAddressSpace();
 3587       if (AI->getType() != MallocCall->getType())
 3587       if (AI->getType() != MallocCall->getType())
 3588         AI = new BitCastInst(AI, MallocCall->getType(), "malloc_bc",
 3602         auto *BI = new BitCastInst(AI, MallocCall->getType(), "calloc_bc",
 3608         Type *Tys[] = {BI->getType(), MallocCall->getOperand(0)->getType()};
 3608         Type *Tys[] = {BI->getType(), MallocCall->getOperand(0)->getType()};
 4605         I->replaceAllUsesWith(UndefValue::get(I->getType()));
 4783     if (Arg.getType()->isPointerTy()) {
 4815         if (!CS.getArgument(i)->getType()->isPointerTy())
lib/Transforms/IPO/CalledValuePropagation.cpp
  272       if (I->getType()->isVoidTy())
  292     if (I->getType()->isVoidTy())
lib/Transforms/IPO/DeadArgumentElimination.cpp
  295         Arg.replaceAllUsesWith(UndefValue::get(Arg.getType()));
  315       CS.setArgument(ArgNo, UndefValue::get(Arg->getType()));
  520       if (RI->getNumOperands() != 0 && RI->getOperand(0)->getType()
  756       Params.push_back(I->getType());
  956       if (New->getType() == Call->getType()) {
  956       if (New->getType() == Call->getType()) {
  960       } else if (New->getType()->isVoidTy()) {
  963         if (!Call->getType()->isX86_MMXTy())
  964           Call->replaceAllUsesWith(UndefValue::get(Call->getType()));
 1026       if (!I->getType()->isX86_MMXTy())
 1027         I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/IPO/FunctionAttrs.cpp
  165         if (!Arg->getType()->isPtrOrPtrVectorTy())
  482       if (I->getType()->isVoidTy())
  598           if (!isa<Argument>(RetVal) || RetVal->getType() != F->getReturnType())
  706         if (A->getType()->isPointerTy() && !A->hasNoCaptureAttr()) {
  717       if (!A->getType()->isPointerTy())
lib/Transforms/IPO/GlobalOpt.cpp
  309                   CE->getType()->isPointerTy()) ||
  469   Type *Ty = Init->getType();
  717                                                       NewV, CI->getType()));
  864       if (BCI->getType() == NewGV->getType()) {
  872         TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI);
 1173     Result = new LoadInst(V->getType()->getPointerElementType(), V,
 1180     PointerType *PTy = cast<PointerType>(PN->getType());
 1209                               Constant::getNullValue(NPtr->getType()),
 1313     Type *IntPtrTy = DL.getIntPtrType(CI->getType());
 1335   Constant *ConstantZero = ConstantInt::get(CI->getArgOperand(0)->getType(), 0);
 1340                              Constant::getNullValue(FieldMallocs[i]->getType()),
 1368                               Constant::getNullValue(GVVal->getType()));
 1378     new StoreInst(Constant::getNullValue(GVVal->getType()), FieldGlobals[i],
 1523   if (NElems == ConstantInt::get(CI->getArgOperand(0)->getType(), 1))
 1539       Type *IntPtrTy = DL.getIntPtrType(CI->getType());
 1548       Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI);
 1578   if (GV->getInitializer()->getType()->isPointerTy() &&
 1582           GV->getInitializer()->getType()->getPointerAddressSpace())) {
 1584       if (GV->getInitializer()->getType() != SOVC->getType())
 1584       if (GV->getInitializer()->getType() != SOVC->getType())
 1585         SOVC = ConstantExpr::getBitCast(SOVC, GV->getInitializer()->getType());
 1639   assert(InitVal->getType() != Type::getInt1Ty(GV->getContext()) &&
 1740         NSI = new ZExtInst(NLI, LI->getType(), "", LI);
 1847     auto *LTy = L->getType();
 1849           auto *STy = S->getValueOperand()->getType();
 2013   if (!GV->getInitializer()->getType()->isSingleValueType()) {
 2392     assert(Val->getType() == Init->getType() && "Type mismatch!");
 2392     assert(Val->getType() == Init->getType() && "Type mismatch!");
 2397   if (StructType *STy = dyn_cast<StructType>(Init->getType())) {
 2413   SequentialType *InitTy = cast<SequentialType>(Init->getType());
 2424   if (Init->getType()->isArrayTy())
 2526     Type *Ty = Init->getType();
 2530         Type *CurrentInitTy = CurrentGV->getInitializer()->getType();
 2900     CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
lib/Transforms/IPO/GlobalSplit.cpp
   79         new GlobalVariable(*GV.getParent(), Init->getOperand(I)->getType(),
  127         SplitGlobals[I]->getInitializer()->getType(), SplitGlobals[I], Ops,
lib/Transforms/IPO/IPConstantPropagation.cpp
   90       if (C && Arg->getType() != C->getType())
   90       if (C && Arg->getType() != C->getType())
  135     if (!V) V = UndefValue::get(AI->getType());
lib/Transforms/IPO/LowerTypeTests.cpp
  578   auto BitsType = cast<IntegerType>(Bits->getType());
  632       new GlobalVariable(M, ByteArrayConst->getType(), /*isConstant=*/true,
  641         ByteArrayConst->getType(), ByteArray, Idxs);
  859       new GlobalVariable(M, NewInit->getType(), /*isConstant=*/true,
  863   StructType *NewTy = cast<StructType>(NewInit->getType());
  876         NewInit->getType(), CombinedGlobal, CombinedGlobalIdxs);
 1390     ArgTypes.push_back(Arg->getType());
lib/Transforms/IPO/MergeFunctions.cpp
  484   Type *SrcTy = V->getType();
lib/Transforms/IPO/PartialInlining.cpp
 1074         PHINode::Create(OldPhi->getType(), NumPredsFromEntries + 1, "", Ins);
lib/Transforms/IPO/PruneEH.cpp
  240     if (I->getType()->isTokenTy()) {
  254       I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/IPO/StripSymbols.cpp
  151     if (isa<CompositeType>(C->getType()))
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  263           auto *ArgT = dyn_cast<IntegerType>(Arg.getType());
lib/Transforms/IPO/WholeProgramDevirt.cpp
  795           M.getDataLayout().getTypeAllocSize(GV.getInitializer()->getType());
  876           TheFn, VCallSite.CS.getCalledValue()->getType()));
 1306     Cmp = B.CreateZExt(Cmp, Call.CS->getType());
 1513       new GlobalVariable(M, NewInit->getType(), B.GV->isConstant(),
 1526       B.GV->getInitializer()->getType(), 0, B.GV->getLinkage(), "",
 1528           NewInit->getType(), NewGV,
 1653       Value *Pair = UndefValue::get(CI->getType());
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  431   if (I->getType()->isVectorTy())
  594     Result = ConstantFP::get(Instr->getType(), 0.0);
  666   Value *Zero = cast<Value>(ConstantFP::getZeroValueForNegation(V->getType()));
  745     return Coeff.getValue(Instr->getType());
  761   return createFMul(OpndVal, Coeff.getValue(Instr->getType()));
  829   Type *Ty = Add.getType();
  842         ConstantInt::get(X->getType(), *C2 + C1->trunc(C2->getBitWidth()));
  891       X->getType()->getScalarSizeInBits() == 1)
  905     return BinaryOperator::CreateXor(Op0, ConstantInt::get(Add.getType(), *C2));
  920   Type *Ty = Add.getType();
  932         X->getType()->getScalarSizeInBits() == 1)
 1044             ConstantInt::get(X->getType()->getContext(), C0 * C1);
 1066   Constant *MinusOne = Constant::getAllOnesValue(NBits->getType());
 1080   Type *Ty = I.getType();
 1122   Type *XTy = X->getType();
 1123   bool HadTrunc = I.getType() != XTy;
 1140                                    APInt(C->getType()->getScalarSizeInBits(),
 1141                                          X->getType()->getScalarSizeInBits()))))
 1198   return TruncInst::CreateTruncOrBitCast(NewAShr, I.getType());
 1226   Type *Ty = I.getType();
 1294       B->getType()->isIntOrIntVectorTy(1))
 1518     Type *FPType = LHSConv->getType();
 1540       if (IsValidPromotion(FPType, LHSIntVal->getType())) {
 1542           ConstantExpr::getFPToSI(CFP, LHSIntVal->getType());
 1544             ConstantExpr::getSIToFP(CI, I.getType()) == CFP &&
 1548           return new SIToFPInst(NewAdd, I.getType());
 1557       if (IsValidPromotion(FPType, LHSIntVal->getType())) {
 1561         if (LHSIntVal->getType() == RHSIntVal->getType() &&
 1561         if (LHSIntVal->getType() == RHSIntVal->getType() &&
 1566           return new SIToFPInst(NewAdd, I.getType());
 1703   if (I.getType()->isIntOrIntVectorTy(1))
 1726         Builder.CreateAdd(Op0, ConstantInt::get(I.getType(), 1)), X);
 1732     if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) {
 1736         return CastInst::CreateSExtOrBitCast(X, I.getType());
 1739     if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) {
 1743         return CastInst::CreateZExtOrBitCast(X, I.getType());
 1780       unsigned BitWidth = Op1Wide->getType()->getScalarSizeInBits();
 1794         return TruncInst::CreateTruncOrBitCast(NewShift, Op1->getType());
 1806         return TruncInst::CreateTruncOrBitCast(NewShift, Op1->getType());
 1903       Constant *NegDivC = ConstantInt::get(I.getType(), -(*DivC));
 1918         Y->getType()->getScalarSizeInBits() == 1) {
 1919       Value *Zext = Builder.CreateZExt(Y, I.getType());
 1978     if (Value *Res = OptimizePointerDifference(LHSOp, RHSOp, I.getType()))
 1984     if (Value *Res = OptimizePointerDifference(LHSOp, RHSOp, I.getType()))
 1994   Type *Ty = I.getType();
 2144   Type *Ty = I.getType();
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
   58   if (Constant *TorF = getPredForICmpCode(Code, Sign, LHS->getType(), NewPred))
   71     return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0);
   73     return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1);
  105     NewRHS = ConstantInt::get(I.getType(), C->byteSwap());
  111                                           I.getType());
  170   Type *Ty = V->getType();
  299   Y = ConstantInt::get(X->getType(), Mask);
  300   Z = ConstantInt::get(X->getType(), 0);
  317   if (!LHS->getOperand(0)->getType()->isIntegerTy() ||
  318       !RHS->getOperand(0)->getType()->isIntegerTy())
  339       L12 = Constant::getAllOnesValue(L1->getType());
  344       L22 = Constant::getAllOnesValue(L2->getType());
  374       R12 = Constant::getAllOnesValue(R1->getType());
  398       R12 = Constant::getAllOnesValue(R2->getType());
  543       return ConstantInt::get(LHS->getType(), !IsAnd);
  565   return ConstantInt::get(LHS->getType(), !IsAnd);
  656     Value *Zero = Constant::getNullValue(A->getType());
  737       return ConstantInt::get(LHS->getType(), !IsAnd);
  837     Value *Or = Builder.CreateOr(X, ConstantInt::get(X->getType(), Xor));
  838     return Builder.CreateICmp(Pred, Or, ConstantInt::get(X->getType(), *C2));
  850     Value *Add = Builder.CreateAdd(X, ConstantInt::get(X->getType(), -(*C1)));
  852     return Builder.CreateICmp(NewPred, Add, ConstantInt::get(X->getType(), 1));
  995     UnsetBitsMask = UnsetBitsMask.zext(X1->getType()->getScalarSizeInBits());
 1018   return Builder.CreateICmpULT(X, ConstantInt::get(X->getType(), HighestBit),
 1039     return Builder.CreateICmpEQ(CtPop, ConstantInt::get(CtPop->getType(), 1));
 1047     return Builder.CreateICmpNE(CtPop, ConstantInt::get(CtPop->getType(), 1));
 1394     if (LHS0->getType() != RHS0->getType())
 1394     if (LHS0->getType() != RHS0->getType())
 1437       Pred != NanPred || X->getType() != Y->getType())
 1437       Pred != NanPred || X->getType() != Y->getType())
 1441       Pred != NanPred || X->getType() != Y->getType())
 1441       Pred != NanPred || X->getType() != Y->getType())
 1503   Type *DestTy = Logic.getType();
 1546   Type *DestTy = I.getType();
 1659   if (C->getType()->isVectorTy()) {
 1661     unsigned NumElts = C->getType()->getVectorNumElements();
 1700   Type *Ty = And.getType();
 1701   if (!isa<VectorType>(Ty) && !shouldChangeType(Ty, X->getType()))
 1709     if (!canNarrowShiftAmt(C, X->getType()->getScalarSizeInBits()))
 1714   Value *NewC = ConstantExpr::getTrunc(C, X->getType());
 1758       Value *IsZero = Builder.CreateICmpEQ(X, ConstantInt::get(I.getType(), 0));
 1759       return new ZExtInst(IsZero, I.getType());
 1765       Constant *NewC = ConstantInt::get(I.getType(), *C & *XorC);
 1780       Value *And = Builder.CreateAnd(X, ConstantInt::get(I.getType(),
 1783       return BinaryOperator::CreateOr(And, ConstantInt::get(I.getType(),
 1830           if (AndRHSMask.isIntN(X->getType()->getScalarSizeInBits())) {
 1831             auto *TruncC1 = ConstantExpr::getTrunc(C1, X->getType());
 1838             auto *TruncC2 = ConstantExpr::getTrunc(AndRHS, X->getType());
 1840             return new ZExtInst(And, I.getType());
 1859         Value *NewCast = Builder.CreateTrunc(X, I.getType(), "and.shrunk");
 1860         Constant *C3 = ConstantExpr::getTrunc(YC, I.getType());
 1956       A->getType()->isIntOrIntVectorTy(1))
 1957     return SelectInst::Create(A, Op1, Constant::getNullValue(I.getType()));
 1959       A->getType()->isIntOrIntVectorTy(1))
 1960     return SelectInst::Create(A, Op0, Constant::getNullValue(I.getType()));
 1966     Type *Ty = I.getType();
 2031   unsigned Width = Or.getType()->getScalarSizeInBits();
 2085   Function *F = Intrinsic::getDeclaration(Or.getModule(), IID, Or.getType());
 2091   unsigned NumElts = C1->getType()->getVectorNumElements();
 2112   Type *Ty = A->getType();
 2113   if (!Ty->isIntOrIntVectorTy() || !B->getType()->isIntOrIntVectorTy())
 2139       Cond->getType()->isIntOrIntVectorTy(1) &&
 2156       Cond->getType()->isIntOrIntVectorTy(1) &&
 2170   Type *OrigType = A->getType();
 2177     Value *BitcastC = Builder.CreateBitCast(C, A->getType());
 2178     Value *BitcastD = Builder.CreateBitCast(D, A->getType());
 2299           Builder.CreateAdd(B, ConstantInt::getSigned(B->getType(), -1)), A);
 2491     return BinaryOperator::CreateXor(Or, ConstantInt::get(I.getType(), *CV));
 2680       A->getType()->isIntOrIntVectorTy(1))
 2681     return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op1);
 2683       A->getType()->isIntOrIntVectorTy(1))
 2684     return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op0);
 2717     Type *Ty = I.getType();
 2823       LHS0->getType() == RHS0->getType() &&
 2823       LHS0->getType() == RHS0->getType() &&
 2824       LHS0->getType()->isIntOrIntVectorTy()) {
 2831       Value *Zero = ConstantInt::getNullValue(LHS0->getType());
 2840       Value *MinusOne = ConstantInt::getAllOnesValue(LHS0->getType());
 3104         Constant *NewC = ConstantInt::get(I.getType(), *C + *RHSC);
 3109         Constant *NewC = ConstantInt::get(I.getType(), *C + *RHSC);
 3116         Constant *NewC = ConstantInt::get(I.getType(), *C ^ *RHSC);
 3145             Value *FoldVal = ConstantInt::get(Opnd0->getType(), FoldConst);
 3224   Type *Ty = I.getType();
lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp
  127     SI->setAlignment(MaybeAlign(DL.getABITypeAlignment(RMWI.getType())));
  138   if (RMWI.getType()->isIntegerTy() &&
  141     RMWI.setOperand(1, ConstantInt::get(RMWI.getType(), 0));
  143   } else if (RMWI.getType()->isFloatingPointTy() &&
  146     RMWI.setOperand(1, ConstantFP::getNegativeZero(RMWI.getType()));
  155   LoadInst *Load = new LoadInst(RMWI.getType(), RMWI.getPointerOperand());
  157   Load->setAlignment(MaybeAlign(DL.getABITypeAlignment(RMWI.getType())));
lib/Transforms/InstCombine/InstCombineCalls.cpp
  130     MI->setLength(Constant::getNullValue(MI->getLength()->getType()));
  159     cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace();
  161     cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace();
  240     MI->setLength(Constant::getNullValue(MI->getLength()->getType()));
  266     unsigned DstAddrSp = cast<PointerType>(Dest->getType())->getAddressSpace();
  385   auto VT = cast<VectorType>(Vec->getType());
  472   auto VT = cast<VectorType>(II.getType());
  548   Type *ResTy = II.getType();
  554   Type *ArgTy = Arg0->getType();
  613   Type *ResTy = II.getType();
  614   Type *ArgTy = Arg->getType();
  645   Type *RetTy = II.getType();
  646   Type *OpTy = Op1->getType();
  648          RetTy->getStructElementType(1) == OpTy && OpTy == Op2->getType() &&
  673   VectorType *VecTy = cast<VectorType>(II.getType());
  764       return UndefValue::get(II.getType());
  790       return Builder.CreateBitCast(SV, II.getType());
  844     return UndefValue::get(II.getType());
  871     return Builder.CreateBitCast(SV, II.getType());
  921   auto *VecTy = cast<VectorType>(II.getType());
  968   auto *VecTy = cast<VectorType>(II.getType());
 1007   auto V2 = UndefValue::get(V1->getType());
 1018   auto *VecTy = cast<VectorType>(II.getType());
 1057     return Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment,
 1063           LoadPtr, II.getType(), MaybeAlign(Alignment),
 1065     Value *LI = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment,
 1173   if (Result->getType()->getPointerAddressSpace() !=
 1174       II.getType()->getPointerAddressSpace())
 1175     Result = IC.Builder.CreateAddrSpaceCast(Result, II.getType());
 1176   if (Result->getType() != II.getType())
 1176   if (Result->getType() != II.getType())
 1177     Result = IC.Builder.CreateBitCast(Result, II.getType());
 1193     Function *F = Intrinsic::getDeclaration(II.getModule(), ID, II.getType());
 1227     auto *C = ConstantInt::get(Op0->getType(), DefiniteZeros);
 1245   auto *IT = dyn_cast<IntegerType>(Op0->getType());
 1271   auto *IT = dyn_cast<IntegerType>(Op0->getType());
 1301   Constant *ZeroVec = Constant::getNullValue(II.getType());
 1317   unsigned AddrSpace = cast<PointerType>(Ptr->getType())->getAddressSpace();
 1318   PointerType *VecPtrTy = PointerType::get(II.getType(), AddrSpace);
 1360   unsigned AddrSpace = cast<PointerType>(Ptr->getType())->getAddressSpace();
 1361   PointerType *VecPtrTy = PointerType::get(Vec->getType(), AddrSpace);
 1407   auto *VecTy = cast<VectorType>(II.getType());
 1432   auto *V2 = Constant::getNullValue(V1->getType());
 1454                                           PointerType::get(II.getType(), 0));
 1455   return Builder.CreateAlignedLoad(II.getType(), BCastInst, Alignment);
 1719     Type *Tys[] = {II->getArgOperand(0)->getType()};
 1731     return CastInst::Create(*Action.CastOp, II->getArgOperand(0), II->getType(),
 1742         Instruction::FDiv, ConstantFP::get(II->getArgOperand(0)->getType(), 1),
 1833           Type *Tys[3] = { CI.getArgOperand(0)->getType(),
 1834                            CI.getArgOperand(1)->getType(),
 1835                            CI.getArgOperand(2)->getType() };
 1861   if (II->getType()->isVectorTy()) {
 1862     auto VWidth = II->getType()->getVectorNumElements();
 1895       unsigned C = X->getType()->getPrimitiveSizeInBits() -
 1896         IIOperand->getType()->getPrimitiveSizeInBits();
 1897       Value *CV = ConstantInt::get(X->getType(), C);
 1899       return new TruncInst(V, IIOperand->getType());
 1924         return BinaryOperator::CreateFDiv(ConstantFP::get(CI.getType(), 1.0),
 1947     Type *Ty = II->getType();
 2034                      IID, X, ConstantInt::get(Arg1->getType(), NewC)));
 2081     Type *Ty = SI->getType();
 2148                      IID, X, ConstantInt::get(II->getType(), NewVal)));
 2217             IID, X, ConstantFP::get(Arg0->getType(), Res));
 2304       return new FPExtInst(NarrowII, II->getType());
 2337                                          PointerType::getUnqual(II->getType()));
 2338       return new LoadInst(II->getType(), Ptr);
 2345                                        PointerType::getUnqual(II->getType()));
 2346     return new LoadInst(II->getType(), Ptr, Twine(""), false, Align::None());
 2354         PointerType::getUnqual(II->getArgOperand(0)->getType());
 2362     Type *OpPtrTy = PointerType::getUnqual(II->getArgOperand(0)->getType());
 2371                                   II->getType()->getVectorNumElements());
 2375       return new FPExtInst(Load, II->getType());
 2383                                          PointerType::getUnqual(II->getType()));
 2384       return new LoadInst(II->getType(), Ptr);
 2392           II->getArgOperand(0)->getType()->getVectorNumElements());
 2404         PointerType::getUnqual(II->getArgOperand(0)->getType());
 2419       unsigned BitWidth = II->getType()->getIntegerBitWidth();
 2422         return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), 0));
 2429         return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), Result));
 2441       unsigned BitWidth = II->getType()->getIntegerBitWidth();
 2445         return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), 0));
 2450         return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), Result));
 2459     auto ArgType = cast<VectorType>(Arg->getType());
 2460     auto RetType = cast<VectorType>(II->getType());
 2527     unsigned VWidth = Arg->getType()->getVectorNumElements();
 2579     unsigned VWidth = Arg0->getType()->getVectorNumElements();
 2711                              cast<IntegerType>(Mask->getType())->getBitWidth());
 2795     assert(Arg1->getType()->getPrimitiveSizeInBits() == 128 &&
 2797     unsigned VWidth = Arg1->getType()->getVectorNumElements();
 2866       unsigned VWidth = Arg0->getType()->getVectorNumElements();
 2890                                    ConstantAggregateZero::get(II->getType()));
 2906     unsigned VWidth0 = Op0->getType()->getVectorNumElements();
 2907     unsigned VWidth1 = Op1->getType()->getVectorNumElements();
 2908     assert(Op0->getType()->getPrimitiveSizeInBits() == 128 &&
 2909            Op1->getType()->getPrimitiveSizeInBits() == 128 && VWidth0 == 2 &&
 2945     unsigned VWidth = Op0->getType()->getVectorNumElements();
 2946     assert(Op0->getType()->getPrimitiveSizeInBits() == 128 && VWidth == 2 &&
 2969     unsigned VWidth = Op0->getType()->getVectorNumElements();
 2970     assert(Op0->getType()->getPrimitiveSizeInBits() == 128 &&
 2971            Op1->getType()->getPrimitiveSizeInBits() == 128 && VWidth == 2 &&
 2972            Op1->getType()->getVectorNumElements() == 2 &&
 3005     unsigned VWidth0 = Op0->getType()->getVectorNumElements();
 3006     unsigned VWidth1 = Op1->getType()->getVectorNumElements();
 3007     assert(Op0->getType()->getPrimitiveSizeInBits() == 128 &&
 3008            Op1->getType()->getPrimitiveSizeInBits() == 128 && VWidth0 == 2 &&
 3067         BoolVec->getType()->isVectorTy() &&
 3068         BoolVec->getType()->getScalarSizeInBits() == 1) {
 3069       assert(Mask->getType()->getPrimitiveSizeInBits() ==
 3070              II->getType()->getPrimitiveSizeInBits() &&
 3073       unsigned NumMaskElts = Mask->getType()->getVectorNumElements();
 3074       unsigned NumOperandElts = II->getType()->getVectorNumElements();
 3081         Value *CastOp0 = Builder.CreateBitCast(Op0, Mask->getType());
 3082         Value *CastOp1 = Builder.CreateBitCast(Op1, Mask->getType());
 3084         return new BitCastInst(Sel, II->getType());
 3165       assert(Mask->getType()->getVectorNumElements() == 16 &&
 3181                                            Mask->getType());
 3183                                            Mask->getType());
 3184         Value *Result = UndefValue::get(Op0->getType());
 3211         return CastInst::Create(Instruction::BitCast, Result, CI.getType());
 3265       return replaceInstUsesWith(CI, ConstantAggregateZero::get(II->getType()));
 3271     VectorType *NewVT = cast<VectorType>(II->getType());
 3289           return CastInst::CreateIntegerCast(Arg0, II->getType(),
 3315     assert(II->getArgOperand(CarryOp)->getType()->getScalarSizeInBits() == 32 &&
 3369       return replaceInstUsesWith(CI, ConstantInt::get(II->getType(), Exp));
 3373       return replaceInstUsesWith(CI, UndefValue::get(II->getType()));
 3399         return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3402         return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), false));
 3410       return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), true));
 3413       return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), false));
 3425         Src0, ConstantFP::get(Src0->getType(), 0.0));
 3433       II->setArgOperand(1, ConstantInt::get(Src1->getType(),
 3441         return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3446           { Src0, ConstantInt::get(Src1->getType(), Mask & FullMask) }
 3470     return replaceInstUsesWith(*II, ConstantInt::get(II->getType(), Result));
 3478           = II->getType()->getScalarType()->getFltSemantics();
 3493       return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3505       return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 3517     Type *Ty = II->getType();
 3585           II->setArgOperand(I + 2, UndefValue::get(Src->getType()));
 3681               *II, ConstantExpr::getSExt(CCmp, II->getType()));
 3690             II->getModule(), Intrinsic::read_register, II->getType());
 3723         ExtSrc->getType()->isIntegerTy(1)) {
 3724       II->setArgOperand(1, ConstantInt::getNullValue(Src1->getType()));
 3752       Type *Ty = SrcLHS->getType();
 3786                                     { II->getType(),
 3787                                       SrcLHS->getType() });
 3825     II->setOperand(0, UndefValue::get(Old->getType()));
 3956         LHS->getType()->isPointerTy() &&
 3985       auto *OpIntTy = GCR.getOperand(2)->getType();
 4006       return replaceInstUsesWith(*II, UndefValue::get(II->getType()));
 4008     if (auto *PT = dyn_cast<PointerType>(II->getType())) {
 4111             cast<PointerType>(CI->getOperand(0)->getType())->getElementType();
 4114                     : cast<PointerType>(CI->getType())->getElementType();
 4279     if (V->getType()->isPointerTy() &&
 4324       if (!OldCall->getType()->isVoidTy())
 4325         replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType()));
 4343     if (!Call.getType()->isVoidTy())
 4344       replaceInstUsesWith(Call, UndefValue::get(Call.getType()));
 4359   PointerType *PTy = cast<PointerType>(Callee->getType());
 4377                       CI->getOperand(0)->getType()->getPointerElementType()));
 4433   Type *OldRetTy = Caller->getType();
 4493     Type *ActTy = (*AI)->getType();
 4527     PointerType *APTy = cast<PointerType>(Call.getCalledValue()->getType());
 4572     if ((*AI)->getType() != ParamTy)
 4579       AB.addByValAttr(NewArg->getType()->getPointerElementType());
 4598         Type *PTy = getPromotedType((*AI)->getType());
 4600         if (PTy != (*AI)->getType()) {
 4652   if (OldRetTy != NV->getType() && !Caller->use_empty()) {
 4653     if (!NV->getType()->isVoidTy()) {
 4671       NV = UndefValue::get(Caller->getType());
 4678     if (OldRetTy == NV->getType())
 4696   Type *CalleeTy = Callee->getType();
 4743             if (NestVal->getType() != NestTy)
lib/Transforms/InstCombine/InstCombineCasts.cpp
   35     return ConstantInt::get(Val->getType(), 0);
   85   PointerType *PTy = cast<PointerType>(CI.getType());
  131     Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale);
  137     Value *Off = ConstantInt::get(AI.getArraySize()->getType(),
  198     if (I->getOperand(0)->getType() == Ty)
  268       auto *Ty = CI.getType();
  283     if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType())
  283     if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType())
  294     if (!Src->getType()->isIntegerTy() || !CI.getType()->isIntegerTy() ||
  294     if (!Src->getType()->isIntegerTy() || !CI.getType()->isIntegerTy() ||
  295         shouldChangeType(CI.getType(), Src->getType()))
  295         shouldChangeType(CI.getType(), Src->getType()))
  310       X->getType() == Ty)
  349   Type *OrigTy = V->getType();
  458   Type *DestType = Trunc.getType();
  467       !isa<VectorType>(VecInput->getType()))
  470   VectorType *VecType = cast<VectorType>(VecInput->getType());
  497           shouldChangeType(Trunc.getSrcTy(), Trunc.getType())) &&
  502   Type *DestTy = Trunc.getType();
  581   Type *DestTy = Trunc.getType();
  612     if (match(BinOp0, m_ZExtOrSExt(m_Value(X))) && X->getType() == DestTy) {
  617     if (match(BinOp1, m_ZExtOrSExt(m_Value(X))) && X->getType() == DestTy) {
  642       Shuf->getType() == Shuf->getOperand(0)->getType()) {
  644     Constant *NarrowUndef = UndefValue::get(Trunc.getType());
  645     Value *NarrowOp = Builder.CreateTrunc(Shuf->getOperand(0), Trunc.getType());
  667   Type *DestTy = Trunc.getType();
  689   Type *DestTy = CI.getType(), *SrcTy = Src->getType();
  689   Type *DestTy = CI.getType(), *SrcTy = Src->getType();
  705     assert(Res->getType() == DestTy);
  724     Value *Zero = Constant::getNullValue(Src->getType());
  765     unsigned ASize = A->getType()->getPrimitiveSizeInBits();
  789     const unsigned SExtSize = SExt->getType()->getPrimitiveSizeInBits();
  790     const unsigned ASize = A->getType()->getPrimitiveSizeInBits();
  791     const unsigned CISize = CI.getType()->getPrimitiveSizeInBits();
  802         return BinaryOperator::CreateAShr(A, ConstantInt::get(CI.getType(),
  807         return CastInst::CreateIntegerCast(Shift, CI.getType(), true);
  861       Value *Sh = ConstantInt::get(In->getType(),
  862                                    In->getType()->getScalarSizeInBits() - 1);
  864       if (In->getType() != CI.getType())
  864       if (In->getType() != CI.getType())
  865         In = Builder.CreateIntCast(In, CI.getType(), false /*ZExt*/);
  868         Constant *One = ConstantInt::get(In->getType(), 1);
  897           Constant *Res = ConstantInt::get(CI.getType(), isNE);
  906           In = Builder.CreateLShr(In, ConstantInt::get(In->getType(), ShAmt),
  911           Constant *One = ConstantInt::get(In->getType(), 1);
  915         if (CI.getType() == In->getType())
  915         if (CI.getType() == In->getType())
  918         Value *IntCast = Builder.CreateIntCast(In, CI.getType(), false);
  927   if (ICI->isEquality() && CI.getType() == ICI->getOperand(0)->getType()) {
  927   if (ICI->isEquality() && CI.getType() == ICI->getOperand(0)->getType()) {
  928     if (IntegerType *ITy = dyn_cast<IntegerType>(CI.getType())) {
 1015       unsigned VSize = V->getType()->getScalarSizeInBits();
 1051       if (BitsToClear > V->getType()->getScalarSizeInBits())
 1052         BitsToClear = V->getType()->getScalarSizeInBits();
 1099   Type *SrcTy = Src->getType(), *DestTy = CI.getType();
 1099   Type *SrcTy = Src->getType(), *DestTy = CI.getType();
 1114     assert(Res->getType() == DestTy);
 1133     Constant *C = ConstantInt::get(Res->getType(),
 1147     unsigned SrcSize = A->getType()->getScalarSizeInBits();
 1148     unsigned MidSize = CSrc->getType()->getScalarSizeInBits();
 1149     unsigned DstSize = CI.getType()->getScalarSizeInBits();
 1156       Constant *AndConst = ConstantInt::get(A->getType(), AndValue);
 1158       return new ZExtInst(And, CI.getType());
 1163       return BinaryOperator::CreateAnd(A, ConstantInt::get(A->getType(),
 1167       Value *Trunc = Builder.CreateTrunc(A, CI.getType());
 1170                                        ConstantInt::get(Trunc->getType(),
 1189       Value *LCast = Builder.CreateZExt(LHS, CI.getType(), LHS->getName());
 1190       Value *RCast = Builder.CreateZExt(RHS, CI.getType(), RHS->getName());
 1208       X->getType() == CI.getType())
 1208       X->getType() == CI.getType())
 1209     return BinaryOperator::CreateAnd(X, ConstantExpr::getZExt(C, CI.getType()));
 1215       X->getType() == CI.getType()) {
 1215       X->getType() == CI.getType()) {
 1216     Constant *ZC = ConstantExpr::getZExt(C, CI.getType());
 1229   if (!Op1->getType()->isIntOrIntVectorTy())
 1236     Value *Sh = ConstantInt::get(Op0->getType(),
 1237                                  Op0->getType()->getScalarSizeInBits() - 1);
 1239     if (In->getType() != CI.getType())
 1239     if (In->getType() != CI.getType())
 1240       In = Builder.CreateIntCast(In, CI.getType(), true /*SExt*/);
 1262                        ConstantInt::getAllOnesValue(CI.getType()) :
 1263                        ConstantInt::getNullValue(CI.getType());
 1274                                     ConstantInt::get(In->getType(), ShiftAmt));
 1279                                  ConstantInt::getAllOnesValue(In->getType()),
 1288                                    ConstantInt::get(In->getType(), ShiftAmt));
 1291           In = Builder.CreateAShr(In, ConstantInt::get(In->getType(),
 1295         if (CI.getType() == In->getType())
 1295         if (CI.getType() == In->getType())
 1297         return CastInst::CreateIntegerCast(In, CI.getType(), true/*SExt*/);
 1313   assert(V->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits() &&
 1370   Type *SrcTy = Src->getType(), *DestTy = CI.getType();
 1370   Type *SrcTy = Src->getType(), *DestTy = CI.getType();
 1386     assert(Res->getType() == DestTy);
 1405   if (match(Src, m_OneUse(m_Trunc(m_Value(X)))) && X->getType() == DestTy) {
 1434       BA == CA && A->getType() == CI.getType()) {
 1434       BA == CA && A->getType() == CI.getType()) {
 1435     unsigned MidSize = Src->getType()->getScalarSizeInBits();
 1436     unsigned SrcDstSize = CI.getType()->getScalarSizeInBits();
 1438     Constant *ShAmtV = ConstantInt::get(CI.getType(), ShAmt);
 1457   if (CFP->getType() == Type::getPPC_FP128Ty(CFP->getContext()))
 1465   if (CFP->getType()->isDoubleTy())
 1478   if (!CV || !CV->getType()->isVectorTy())
 1483   unsigned NumElts = CV->getType()->getVectorNumElements();
 1506     return FPExt->getOperand(0)->getType();
 1519   return V->getType();
 1533   Type *Ty = FPT.getType();
 1538     unsigned OpWidth = BO->getType()->getFPMantissaWidth();
 1693   Type *FITy = FI.getType();
 1694   Type *OpITy = OpI->getType();
 1695   Type *SrcTy = SrcI->getType();
 1762   if (CI.getOperand(0)->getType()->getScalarSizeInBits() !=
 1765     if (CI.getType()->isVectorTy()) // Handle vectors of pointers.
 1766       Ty = VectorType::get(Ty, CI.getType()->getVectorNumElements());
 1769     return new IntToPtrInst(P, CI.getType());
 1790          GEP->getType() == GEP->getPointerOperandType())) {
 1808   Type *Ty = CI.getType();
 1832   VectorType *SrcTy = cast<VectorType>(InVal->getType());
 1908   if (V->getType() == VecEltTy) {
 1929     unsigned NumElts = getTypeSizeIndex(C->getType()->getPrimitiveSizeInBits(),
 1939     if (!isa<IntegerType>(C->getType()))
 1941                                        C->getType()->getPrimitiveSizeInBits()));
 1947       Constant *Piece = ConstantExpr::getLShr(C, ConstantInt::get(C->getType(),
 1968                           I->getOperand(0)->getType()->getPrimitiveSizeInBits(),
 2008   VectorType *DestVecTy = cast<VectorType>(CI.getType());
 2020   Value *Result = Constant::getNullValue(CI.getType());
 2044   Type *DestType = BitCast.getType();
 2058   Type *DestTy = BitCast.getType();
 2068   if (!DestTy->isVectorTy() || !BO->getType()->isVectorTy())
 2073       X->getType() == DestTy && !isa<Constant>(X)) {
 2080       X->getType() == DestTy && !isa<Constant>(X)) {
 2110   Type *CondTy = Cond->getType();
 2111   Type *DestTy = BitCast.getType();
 2123   if (DestTy->isVectorTy() != TVal->getType()->isVectorTy())
 2128   if (match(TVal, m_OneUse(m_BitCast(m_Value(X)))) && X->getType() == DestTy &&
 2135   if (match(FVal, m_OneUse(m_BitCast(m_Value(X)))) && X->getType() == DestTy &&
 2168   Type *SrcTy = Src->getType();         // Type B
 2169   Type *DestTy = CI.getType();          // Type A
 2213       Type *TyA = BCI->getOperand(0)->getType();
 2214       Type *TyB = BCI->getType();
 2275         Type *TyB = BCI->getOperand(0)->getType();
 2276         Type *TyA = BCI->getType();
 2293   Type *SrcTy = Src->getType();
 2294   Type *DestTy = CI.getType();
 2298   if (DestTy == Src->getType())
 2323         cast<PointerType>(Src->getType()->getScalarType())->getElementType();
 2376           if (isa<VectorType>(BCIn->getOperand(0)->getType()))
 2415     unsigned NumSrcVecElts = ShufOp0->getType()->getVectorNumElements();
 2424            Tmp->getOperand(0)->getType() == DestTy) ||
 2426            Tmp->getOperand(0)->getType() == DestTy)) {
 2443       assert(ShufOp0->getType() == SrcTy && "Unexpected shuffle mask");
 2476   PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType());
 2477   PointerType *DestTy = cast<PointerType>(CI.getType()->getScalarType());
 2482     if (VectorType *VT = dyn_cast<VectorType>(CI.getType())) {
 2488     return new AddrSpaceCastInst(NewBitCast, CI.getType());
lib/Transforms/InstCombine/InstCombineCompares.cpp
  153   uint64_t ArrayElementCount = Init->getType()->getArrayNumElements();
  173   Type *EltTy = Init->getType()->getArrayElementType();
  314     Type *IntPtrTy = DL.getIntPtrType(GEP->getType());
  316     if (Idx->getType()->getPrimitiveSizeInBits() > PtrSize)
  327     Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement);
  335     Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement);
  347     Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement);
  355     Value *SecondFalseIdx = ConstantInt::get(Idx->getType(),SecondFalseElement);
  367       Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement);
  371     Value *End = ConstantInt::get(Idx->getType(),
  381       Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement);
  385     Value *End = ConstantInt::get(Idx->getType(),
  399     if (ArrayElementCount <= Idx->getType()->getIntegerBitWidth())
  400       Ty = Idx->getType();
  483   Type *IntPtrTy = DL.getIntPtrType(GEP->getOperand(0)->getType());
  489     if (VariableIdx->getType()->getPrimitiveSizeInBits() > IntPtrWidth) {
  509   if (VariableIdx->getType() != IntPtrTy)
  567             GEP->getType() != Start->getType())
  567             GEP->getType() != Start->getType())
  654       Base->getContext(), DL.getIndexTypeSizeInBits(Start->getType()));
  690       if (Index->getType()->getScalarSizeInBits() !=
  691           NewInsts[GEP->getOperand(0)]->getType()->getScalarSizeInBits()) {
  693             Index, NewInsts[GEP->getOperand(0)]->getType(),
  740     if (!Base->getType()->isPointerTy())
  741       NewBase = Builder.CreateBitOrPointerCast(Base, Start->getType(),
  745         Start->getType()->getPointerElementType(), NewBase,
  748     if (!Val->getType()->isPointerTy()) {
  749       Value *Cast = Builder.CreatePointerCast(GEP, Val->getType(),
  765                                      DL.getIndexTypeSizeInBits(V->getType()));
  775           GEP->getType() == V->getType()) {
  775           GEP->getType() == V->getType()) {
  808   if (GEPLHS->getType()->isVectorTy())
  815   if (GEPLHS->getType() != RHS->getType())
  815   if (GEPLHS->getType() != RHS->getType())
  863       !GEPLHS->getType()->isVectorTy()) {
  874                         Constant::getNullValue(Offset->getType()));
  880                             RHS->getType()->getPointerAddressSpace())) {
  899     if (GEPLHS->getType()->isVectorTy() && Base->getType()->isPointerTy()) {
  899     if (GEPLHS->getType()->isVectorTy() && Base->getType()->isPointerTy()) {
  900       int NumElts = GEPLHS->getType()->getVectorNumElements();
  905                             cast<Constant>(RHS), Base->getType()));
  911       IndicesTheSame &= GEPLHS->getOperand(0)->getType() ==
  912                         GEPRHS->getOperand(0)->getType();
  921       Type *BaseType = GEPLHS->getOperand(0)->getType();
  922       if (IndicesTheSame && CmpInst::makeCmpResultType(BaseType) == I.getType())
  934           !GEPLHS->getType()->isVectorTy()) {
  941         Type *LHSIndexTy = LOffset->getType();
  942         Type *RHSIndexTy = ROffset->getType();
  964     if (!GEPLHS->getType()->isVectorTy() && GEPLHS->hasAllZeroIndices())
  970     if (!GEPRHS->getType()->isVectorTy() && GEPRHS->hasAllZeroIndices())
  980           Type *LHSType = GEPLHS->getOperand(i)->getType();
  981           Type *RHSType = GEPRHS->getOperand(i)->getType();
  985               (GEPLHS->getType()->isVectorTy() &&
  998           ConstantInt::get(I.getType(), ICmpInst::isTrueWhenEqual(Cond)));
 1095   Type *CmpTy = CmpInst::makeCmpResultType(Other->getType());
 1113     Constant *R = ConstantInt::get(X->getType(),
 1123                         ConstantInt::get(X->getType(), -C));
 1135                         ConstantInt::get(X->getType(), SMax - C));
 1146                       ConstantInt::get(X->getType(), SMax - (C - 1)));
 1180                    ConstantInt::get(A->getType(), AP2.logBase2()));
 1183     return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType()));
 1196         return getICmp(I.ICMP_UGE, A, ConstantInt::get(A->getType(), Shift));
 1197       return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
 1199       return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
 1205   auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE);
 1231         ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros));
 1234     return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType()));
 1240     return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
 1244   auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE);
 1307     if (!TI || TI->getType()->getPrimitiveSizeInBits() > NewWidth)
 1328   Value *ZExt = Builder.CreateZExt(Add, OrigAdd->getType());
 1354   Value *Mask = Builder.CreateAdd(Y, Constant::getAllOnesValue(Y->getType()));
 1372     XTy = X->getType();
 1381     XTy = X->getType();
 1481     return replaceInstUsesWith(Cmp, ConstantInt::get(Cmp.getType(), *Imp));
 1538                           ConstantInt::get(V->getType(), 1));
 1544     unsigned DstBits = Trunc->getType()->getScalarSizeInBits(),
 1545              SrcBits = X->getType()->getScalarSizeInBits();
 1553       return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), NewRHS));
 1587                           ConstantInt::getAllOnesValue(X->getType()));
 1590                           ConstantInt::getNullValue(X->getType()));
 1598       return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), C ^ *XorC));
 1606       return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), C ^ *XorC));
 1623                           ConstantInt::get(X->getType(), ~C));
 1627                           ConstantInt::get(X->getType(), ~C));
 1682           return replaceInstUsesWith(Cmp, ConstantInt::getFalse(Cmp.getType()));
 1684           return replaceInstUsesWith(Cmp, ConstantInt::getTrue(Cmp.getType()));
 1686         Cmp.setOperand(1, ConstantInt::get(And->getType(), NewCst));
 1688         And->setOperand(1, ConstantInt::get(And->getType(), NewAndCst));
 1724   if (isICMP_NE && Cmp.getType()->isVectorTy() && C1.isNullValue() &&
 1726     return new TruncInst(And->getOperand(0), Cmp.getType());
 1741       Constant *Zero = Constant::getNullValue(X->getType());
 1770     if (!Cmp.getType()->isVectorTy()) {
 1771       Type *WideType = W->getType();
 1866       if (And->getType()->isVectorTy())
 1867         NTy = VectorType::get(NTy, And->getType()->getVectorNumElements());
 1887                           ConstantInt::get(V->getType(), 1));
 1904       return new ICmpInst(Pred, A, ConstantInt::getNullValue(OrOp0->getType()));
 1916         Builder.CreateICmp(Pred, P, ConstantInt::getNullValue(P->getType()));
 1918         Builder.CreateICmp(Pred, Q, ConstantInt::getNullValue(Q->getType()));
 1954                         Constant::getNullValue(Mul->getType()));
 1967   Type *ShiftType = Shl->getType();
 2042   Type *ShType = Shl->getType();
 2191   Type *ShrTy = Shr->getType();
 2277   Type *Ty = SRem->getType();
 2310                         ConstantInt::get(Y->getType(), C2->udiv(C + 1)));
 2317                         ConstantInt::get(Y->getType(), C2->udiv(C)));
 2449                             ConstantInt::get(Div->getType(), LoBound));
 2453                             ConstantInt::get(Div->getType(), HiBound));
 2462                             ConstantInt::get(Div->getType(), LoBound));
 2466                             ConstantInt::get(Div->getType(), HiBound));
 2476       return new ICmpInst(Pred, X, ConstantInt::get(Div->getType(), LoBound));
 2485                             ConstantInt::get(Div->getType(), HiBound));
 2487                           ConstantInt::get(Div->getType(), HiBound));
 2505                         ConstantInt::get(Y->getType(), 0));
 2513                         ConstantInt::get(Y->getType(), SubResult));
 2566   Type *Ty = Add->getType();
 2748         return new ICmpInst(Pred, X, ConstantInt::getNullValue(X->getType()));
 2752         return new ICmpInst(Pred, X, ConstantInt::get(X->getType(), 1));
 2757                             ConstantInt::getAllOnesValue(X->getType()));
 2765         return new ICmpInst(Pred, X, ConstantInt::getNullValue(X->getType()));
 2770   if (Bitcast->getType()->isPointerTy() &&
 2777     Op1 = Builder.CreateBitCast(Op1, BCSrcOp->getType());
 2790       !Bitcast->getType()->isIntegerTy() ||
 2800       auto *VecTy = cast<VectorType>(BCSrcOp->getType());
 2925                             Constant::getNullValue(BO->getType()));
 2995                             BO, Constant::getNullValue(RHS->getType()));
 3006         return new ICmpInst(Pred, BOp0, Constant::getNullValue(RHS->getType()));
 3027   Type *Ty = II->getType();
 3115   Type *Ty = II->getType();
 3182           Constant::getNullValue(LHSI->getOperand(0)->getType()));
 3243         DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType())
 3243         DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType())
 3246           Constant::getNullValue(LHSI->getOperand(0)->getType()));
 3422   auto *XType = X->getType();
 3479   Type *WidestTy = WidestShift->getType();
 3480   assert(NarrowestShift->getType() == I.getOperand(0)->getType() &&
 3480   assert(NarrowestShift->getType() == I.getOperand(0)->getType() &&
 3482   bool HadTrunc = WidestTy != I.getOperand(0)->getType();
 3516   if (XShAmt->getType() != YShAmt->getType())
 3516   if (XShAmt->getType() != YShAmt->getType())
 3542       Constant *NewShAmtSplat = NewShAmt->getType()->isVectorTy()
 3647       I.getModule(), Intrinsic::umul_with_overflow, X->getType());
 3718                         Constant::getNullValue(Op1->getType()));
 3723     return new ICmpInst(Pred, Constant::getNullValue(Op0->getType()),
 3858     return new ICmpInst(Pred, Constant::getNullValue(Op1->getType()), B);
 3861     return new ICmpInst(Pred, D, Constant::getNullValue(Op0->getType()));
 3912       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 3914       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 3918                           Constant::getAllOnesValue(SRem->getType()));
 3922                           Constant::getNullValue(SRem->getType()));
 3967               BO0->getType(),
 4014       auto *Zero = Constant::getNullValue(BO0->getType());
 4131       return new ICmpInst(Pred, OtherVal, Constant::getNullValue(A->getType()));
 4159     return new ICmpInst(Pred, OtherVal, Constant::getNullValue(A->getType()));
 4189       I.setOperand(1, Constant::getNullValue(Op1->getType()));
 4202     if (Pow2.isPowerOf2() && isa<IntegerType>(A->getType()) &&
 4203         Pow2.logBase2() == cast<IntegerType>(A->getType())->getBitWidth())
 4204       return new ICmpInst(Pred, A, Builder.CreateTrunc(B, A->getType()));
 4247     unsigned ASize = cast<IntegerType>(A->getType())->getPrimitiveSizeInBits();
 4251           APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits());
 4288     Type *Ty = A->getType();
 4317     Type *XTy = X->getType(), *YTy = Y->getType();
 4317     Type *XTy = X->getType(), *YTy = Y->getType();
 4416       if (PtrSrc->getType()->getPointerAddressSpace() ==
 4417           Op0Src->getType()->getPointerAddressSpace()) {
 4420         if (Op0Src->getType() != NewOp1->getType())
 4420         if (Op0Src->getType() != NewOp1->getType())
 4421           NewOp1 = Builder.CreateBitCast(NewOp1, Op0Src->getType());
 4531   if (!isa<IntegerType>(MulVal->getType()))
 4548   Type *TyA = A->getType(), *TyB = B->getType();
 4548   Type *TyA = A->getType(), *TyB = B->getType();
 4570         unsigned TruncWidth = TI->getType()->getPrimitiveSizeInBits();
 4604           if (Trunc->getType()->getPrimitiveSizeInBits() == MulWidth)
 4699         if (TI->getType()->getPrimitiveSizeInBits() == MulWidth)
 4710             cast<Instruction>(Builder.CreateZExt(ShortAnd, BO->getType()));
 4797   if (Op0->getType()->isPointerTy())
 4927   Type *Ty = Op0->getType();
 4980                  ? replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()))
 4981                  : replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 4999         Type *XTy = X->getType();
 5024         return new ICmpInst(NewPred, X, ConstantInt::get(X->getType(), CmpVal));
 5031       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5033       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5042                             ConstantInt::get(Op1->getType(), *CmpC - 1));
 5047                             Constant::getNullValue(Op1->getType()));
 5053       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5055       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5064                             ConstantInt::get(Op1->getType(), *CmpC + 1));
 5069                             Constant::getNullValue(Op1->getType()));
 5075       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5077       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5084                             ConstantInt::get(Op1->getType(), *CmpC - 1));
 5090       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5092       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5099                             ConstantInt::get(Op1->getType(), *CmpC + 1));
 5106       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5108       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5115       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5117       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5124       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5126       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5133       return replaceInstUsesWith(I, ConstantInt::getTrue(I.getType()));
 5135       return replaceInstUsesWith(I, ConstantInt::getFalse(I.getType()));
 5157   Type *Type = C->getType();
 5230   assert(A->getType()->isIntOrIntVectorTy(1) && "Bools only");
 5353   Constant *Zero = Constant::getNullValue(NewX->getType());
 5366       V1->getType() == V2->getType() &&
 5366       V1->getType() == V2->getType() &&
 5372     return new ShuffleVectorInst(NewCmp, UndefValue::get(NewCmp->getType()), M);
 5414   if (Op0->getType()->isIntOrIntVectorTy(1))
 5464       Constant *Zero = Constant::getNullValue(Op0->getType());
 5470       Constant *AllOnes = Constant::getAllOnesValue(Op0->getType());
 5496   if (Op0->getType()->isPointerTy() && I.isEquality()) {
 5497     assert(Op1->getType()->isPointerTy() && "Comparing pointer with non-pointer?");
 5535                             ConstantInt::get(Op1->getType(), ~(*C)));
 5541         isa<IntegerType>(A->getType())) {
 5596   if (I.getType()->isVectorTy())
 5611   int MantissaWidth = LHSI->getType()->getFPMantissaWidth();
 5614   IntegerType *IntTy = cast<IntegerType>(LHSI->getOperand(0)->getType());
 5771       ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC
 5772       : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC;
 5971   Type *OpType = Op0->getType();
 5972   assert(OpType == Op1->getType() && "fcmp with different-typed operands?");
 6083     if (match(Op1, m_FPExt(m_Value(Y))) && X->getType() == Y->getType())
 6083     if (match(Op1, m_FPExt(m_Value(Y))) && X->getType() == Y->getType())
 6090           X->getType()->getScalarType()->getFltSemantics();
 6102         Constant *NewC = ConstantFP::get(X->getType(), TruncC);
 6108   if (I.getType()->isVectorTy())
lib/Transforms/InstCombine/InstCombineInternal.h
  172   return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1));
  177   return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1));
  247   assert(In->getType()->isVectorTy() && "Not expecting scalars here");
  249   Type *EltTy = In->getType()->getVectorElementType();
  287   unsigned NumElts = In->getType()->getVectorNumElements();
  671       V = UndefValue::get(I.getType());
  684     Constant *V[] = {UndefValue::get(Result->getType()), Overflow};
  685     StructType *ST = cast<StructType>(II->getType());
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  186     if (AI.getArraySize()->getType()->isIntegerTy(32))
  231   if (AI.getArraySize()->getType() != IntPtrTy) {
  301     auto *NewI = new LoadInst(I->getType(), V);
  312         V->getType()->getPointerElementType(), V, Indices);
  319     auto *NewT = PointerType::get(BC->getType()->getPointerElementType(),
  320                                   V->getType()->getPointerAddressSpace());
  332   auto *PT = cast<PointerType>(I.getType());
  333   auto *NT = cast<PointerType>(V->getType());
  359         AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1));
  413         auto *SrcTy = TheSrc->getType();
  461         NewPtr->getType()->getPointerElementType() == NewTy &&
  462         NewPtr->getType()->getPointerAddressSpace() == AS))
  476   assert((!SI.isAtomic() || isSupportedAtomicType(V->getType())) &&
  485       V, IC.Builder.CreateBitCast(Ptr, V->getType()->getPointerTo(AS)),
  530   assert(V->getType()->isPointerTy() && "Expected pointer type.");
  579   Type *Ty = LI.getType();
  640   Type *T = LI.getType();
  914         ConstantInt::get(GEPI->getOperand(Idx)->getType(), 0));
  958       Op, DL.getPrefTypeAlignment(LI.getType()), DL, &LI, &AC, &DT);
  961       LoadAlign != 0 ? LoadAlign : DL.getABITypeAlignment(LI.getType());
  988         LI, Builder.CreateBitOrPointerCast(AvailableVal, LI.getType(),
 1004     StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()),
 1005                                   Constant::getNullValue(Op->getType()), &LI);
 1007     return replaceInstUsesWith(LI, UndefValue::get(LI.getType()));
 1024       if (isSafeToLoadUnconditionally(SI->getOperand(1), LI.getType(),
 1026           isSafeToLoadUnconditionally(SI->getOperand(2), LI.getType(),
 1029             Builder.CreateLoad(LI.getType(), SI->getOperand(1),
 1032             Builder.CreateLoad(LI.getType(), SI->getOperand(2),
 1095   auto *UT = cast<VectorType>(U->getType());
 1096   auto *VT = V->getType();
 1152     if (!SI.isAtomic() || isSupportedAtomicType(V->getType())) {
 1159     if (!SI.isAtomic() || isSupportedAtomicType(U->getType())) {
 1176   Type *T = V->getType();
 1323   if (!LI->getType()->isIntegerTy())
 1338       IC, *LI, LoadAddr->getType()->getPointerElementType());
 1345   IC.replaceInstUsesWith(*LI, UndefValue::get(LI->getType()));
 1360       Ptr, DL.getPrefTypeAlignment(Val->getType()), DL, &SI, &AC, &DT));
 1363       StoreAlign ? *StoreAlign : Align(DL.getABITypeAlignment(Val->getType()));
 1416         (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) {
 1456       SI.setOperand(0, UndefValue::get(Val->getType()));
 1474            (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy()));
 1522            (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) {
 1573     PHINode *PN = PHINode::Create(MergedVal->getType(), 2, "storemerge");
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  216       if (Constant *NewCst = getLogBase2(NewOp->getType(), C1)) {
  251                                         ConstantInt::get(Y->getType(), PosVal));
  332   if (I.getType()->isIntOrIntVectorTy(1))
  359   if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))
  360     return SelectInst::Create(X, Op1, ConstantInt::get(I.getType(), 0));
  361   if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))
  362     return SelectInst::Create(X, Op0, ConstantInt::get(I.getType(), 0));
  611   Type *CondTy = SelectCond->getType();
  683   Type *Ty = I.getType();
  848   Constant *C1 = getLogBase2(Op0->getType(), cast<Constant>(Op1));
  869   Constant *Log2Base = getLogBase2(N->getType(), CI);
  874     N = IC.Builder.CreateZExt(N, Op1->getType());
  924   Type *Ty = I.getType();
  927       X->getType() == Y->getType() && (N->hasOneUse() || D->hasOneUse())) {
  927       X->getType() == Y->getType() && (N->hasOneUse() || D->hasOneUse())) {
  938     Constant *TruncC = ConstantExpr::getTrunc(C, X->getType());
  976           X, ConstantInt::get(X->getType(), C2ShlC1));
  985   Type *Ty = I.getType();
  991   if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) {
 1065       (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)))
 1070     return new ZExtInst(Builder.CreateICmpEQ(Op0, Op1), I.getType());
 1076       Value *ShAmt = ConstantInt::get(Op1->getType(), Op1C->exactLogBase2());
 1085         Op0Src->getType()->getScalarSizeInBits() >= Op1C->getMinSignedBits()) {
 1092           ConstantExpr::getTrunc(cast<Constant>(Op1), Op0Src->getType());
 1094       return new SExtInst(NarrowOp, Op0->getType());
 1102       Constant *NegC = ConstantInt::get(I.getType(), -(*Op1C));
 1117   APInt Mask(APInt::getSignMask(I.getType()->getScalarSizeInBits()));
 1161   auto *RecipC = ConstantExpr::getFDiv(ConstantFP::get(I.getType(), 1.0), C);
 1255         hasFloatFn(&TLI, I.getType(), LibFunc_tan, LibFunc_tanf, LibFunc_tanl)) {
 1264         Res = B.CreateFDiv(ConstantFP::get(I.getType(), 1.0), Res);
 1282     I.setOperand(0, ConstantFP::get(I.getType(), 1.0));
 1295         Intrinsic::copysign, ConstantFP::get(I.getType(), 1.0), X, &I);
 1361   Type *Ty = I.getType();
 1386   if (match(Op1, m_SExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) {
 1412       I.setOperand(1, ConstantInt::get(I.getType(), -*Y));
 1424   APInt Mask(APInt::getSignMask(I.getType()->getScalarSizeInBits()));
 1434     unsigned VWidth = C->getType()->getVectorNumElements();
lib/Transforms/InstCombine/InstCombinePHI.cpp
   96   if (!PN.getType()->isIntegerTy())
  127       DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType()))
  143       if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() &&
  143       if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() &&
  189     if (!PtrPHI || PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType())
  189     if (!PtrPHI || PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType())
  205     assert(MatchingPtrPHI->getType() == IntToPtr->getType() &&
  205     assert(MatchingPtrPHI->getType() == IntToPtr->getType() &&
  209                                             IntToPtr->getOperand(0)->getType());
  214         return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V);
  214         return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V);
  221         if (V->getType() == IntToPtr->getType())
  221         if (V->getType() == IntToPtr->getType())
  230       IntToPtr->getType(), PN.getNumIncomingValues(), PN.getName() + ".ptr");
  238     if (IncomingVal->getType() == IntToPtr->getType()) {
  238     if (IncomingVal->getType() == IntToPtr->getType()) {
  246             IncomingVal->getType()->isPointerTy() ||
  260       CI = CastInst::CreateBitOrPointerCast(IncomingVal, IntToPtr->getType(),
  278                                           IntToPtr->getOperand(0)->getType());
  290   Type *LHSType = LHSVal->getType();
  291   Type *RHSType = RHSVal->getType();
  299         I->getOperand(0)->getType() != LHSType ||
  300         I->getOperand(1)->getType() != RHSType)
  395     if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
  395     if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
  421       if (FirstInst->getOperand(op)->getType() !=GEP->getOperand(op)->getType())
  421       if (FirstInst->getOperand(op)->getType() !=GEP->getOperand(op)->getType())
  453     PHINode *NewPN = PHINode::Create(FirstOp->getType(), e,
  592   PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(),
  599       new LoadInst(FirstLI->getType(), NewPN, "", isVolatile, LoadAlignment);
  690       if (ConstantExpr::getZExt(Trunc, C->getType()) != C)
  718   return CastInst::CreateZExtOrBitCast(NewPhi, Phi.getType());
  746     CastSrcTy = FirstInst->getOperand(0)->getType();
  750     if (PN.getType()->isIntegerTy() && CastSrcTy->isIntegerTy()) {
  751       if (!shouldChangeType(PN.getType(), CastSrcTy))
  770       if (I->getOperand(0)->getType() != CastSrcTy)
  779   PHINode *NewPN = PHINode::Create(FirstInst->getOperand(0)->getType(),
  808                                        PN.getType());
  880   assert(isa<IntegerType>(PN.getType()) && "Expect only integer type phi");
  885   return ConstantInt::get(cast<IntegerType>(PN.getType()), 1);
  902     return Inst->getType()->getPrimitiveSizeInBits() <
  903            RHS.Inst->getType()->getPrimitiveSizeInBits();
 1008       unsigned SizeInBits = UserI->getType()->getScalarSizeInBits();
 1019     return replaceInstUsesWith(FirstPhi, UndefValue::get(FirstPhi.getType()));
 1041     Type *Ty = PHIUsers[UserI].Inst->getType();
 1052       assert(EltPHI->getType() != PN->getType() &&
 1052       assert(EltPHI->getType() != PN->getType() &&
 1087           Res = Builder.CreateLShr(Res, ConstantInt::get(InVal->getType(),
 1119   Value *Undef = UndefValue::get(FirstPhi.getType());
 1158         return replaceInstUsesWith(PN, UndefValue::get(PN.getType()));
 1170       return replaceInstUsesWith(PN, UndefValue::get(PN.getType()));
 1182     if (CmpInst && isa<IntegerType>(PN.getType()) && CmpInst->isEquality() &&
 1260   if (PN.getType()->isIntegerTy() &&
 1261       !DL.isLegalInteger(PN.getType()->getPrimitiveSizeInBits()))
lib/Transforms/InstCombine/InstCombineSelect.cpp
   84   Type *Ty = BO->getType();
  131   Type *SelType = Sel.getType();
  132   if (SelType->isVectorTy() != Cmp->getType()->isVectorTy())
  209     V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), AndMask));
  273     return APInt::getNullValue(I->getType()->getScalarSizeInBits());
  275     return APInt::getAllOnesValue(I->getType()->getScalarSizeInBits());
  277     return APInt(I->getType()->getScalarSizeInBits(), 1);
  296   Type *CondTy = Cond->getType();
  298     Type *FIOpndTy = FI->getOperand(0)->getType();
  299     if (TI->getOperand(0)->getType() != FIOpndTy)
  333                             TI->getType());
  389   if (CondTy->isVectorTy() && (!OtherOpT->getType()->isVectorTy() ||
  390                                !OtherOpF->getType()->isVectorTy()))
  446             Value *C = ConstantInt::get(OOp->getType(), CI);
  477             Value *C = ConstantInt::get(OOp->getType(), CI);
  545   if (!CmpRHS->getType()->isIntOrIntVectorTy())
  549   unsigned Bitwidth = CmpRHS->getType()->getScalarSizeInBits();
  592   if (!TrueVal->getType()->isIntOrIntVectorTy() ||
  593       TrueVal->getType()->isVectorTy() != IC->getType()->isVectorTy())
  593       TrueVal->getType()->isVectorTy() != IC->getType()->isVectorTy())
  626     C1Log = CmpLHS->getType()->getScalarSizeInBits() - 1;
  647   bool NeedZExtTrunc = Y->getType()->getScalarSizeInBits() !=
  648                        V->getType()->getScalarSizeInBits();
  658     APInt C1 = APInt::getOneBitSet(V->getType()->getScalarSizeInBits(), C1Log);
  659     V = Builder.CreateAnd(V, ConstantInt::get(V->getType(), C1));
  663     V = Builder.CreateZExtOrTrunc(V, Y->getType());
  667     V = Builder.CreateZExtOrTrunc(V, Y->getType());
  669     V = Builder.CreateZExtOrTrunc(V, Y->getType());
  743         Intrinsic::uadd_sat, X, ConstantInt::get(X->getType(), *C));
  806   unsigned BitWidth = TrueVal->getType()->getScalarSizeInBits();
  826                                           II->getType());
  873   unsigned SizeOfInBits = Count->getType()->getScalarSizeInBits();
  879     return Builder.CreateZExtOrTrunc(NewI, ValueOnZero->getType());
  908   Type *SelTy = Sel.getType();
  910   if (!SelEltTy || SelTy->isVectorTy() != Cmp.getType()->isVectorTy())
  915     AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC + 1);
  917     AdjustedRHS = ConstantInt::get(CmpRHS->getType(), *CmpC - 1);
  930   else if (CmpRHS->getType()->getScalarSizeInBits() < SelEltTy->getBitWidth()) {
 1070     Cmp.setOperand(1, ConstantInt::getNullValue(Cmp.getOperand(0)->getType()));
 1208                                       C0->getType()->getScalarSizeInBits()))))
 1230     C1 = ConstantInt::getNullValue(Sel0.getType());
 1268                                       C2->getType()->getScalarSizeInBits()))))
 1337   if (C0->getType() != Sel.getType())
 1337   if (C0->getType() != Sel.getType())
 1428         DL.getTypeSizeInBits(TrueVal->getType()->getScalarType());
 1475           foldSelectICmpAndAnd(SI.getType(), ICI, TrueVal, FalseVal, Builder))
 1541   if (Outer.getType() != Inner->getType())
 1541   if (Outer.getType() != Inner->getType())
 1702       if (SI.getType()->isFPOrFPVectorTy()) {
 1720       if (SI.getType()->isFPOrFPVectorTy()) {
 1753   Type *SmallType = X->getType();
 1757       (!Cmp || Cmp->getOperand(0)->getType() != SmallType))
 1762   Type *SelType = Sel.getType();
 1801   if (!CondVal->getType()->isVectorTy() || !match(CondVal, m_Constant(CondC)))
 1804   unsigned NumElts = CondVal->getType()->getVectorNumElements();
 1840   Type *Ty = Sel.getType();
 1902   return CastInst::CreateBitOrPointerCast(NewSel, Sel.getType());
 1992                                     ConstantInt::get(X->getType(), *C2 - *C1));
 1994                                      ConstantInt::get(X->getType(), *C1));
 2005                                       ConstantInt::get(X->getType(), Diff));
 2007                                        ConstantInt::get(X->getType(), *C1));
 2016   Type *Ty = MinMax1.getType();
 2059   if (A->getType()->getScalarSizeInBits() > NewBitWidth ||
 2060       B->getType()->getScalarSizeInBits() > NewBitWidth)
 2085   if (!LHS->getType()->isIntOrIntVectorTy())
 2161   unsigned Width = Sel.getType()->getScalarSizeInBits();
 2186   Function *F = Intrinsic::getDeclaration(Sel.getModule(), IID, Sel.getType());
 2194   Type *SelType = SI.getType();
 2240       TrueVal->getType() == CondVal->getType()) {
 2240       TrueVal->getType() == CondVal->getType()) {
 2282       CondVal->getType()->isVectorTy() == SelType->isVectorTy()) {
 2440       bool IsCastNeeded = LHS->getType() != SelType;
 2444           (LHS->getType()->isFPOrFPVectorTy() &&
 2532     if (TrueSI->getCondition()->getType() == CondVal->getType()) {
 2532     if (TrueSI->getCondition()->getType() == CondVal->getType()) {
 2552     if (FalseSI->getCondition()->getType() == CondVal->getType()) {
 2552     if (FalseSI->getCondition()->getType() == CondVal->getType()) {
 2650   if (!CondVal->getType()->isVectorTy() && !AC.assumptions().empty()) {
lib/Transforms/InstCombine/InstCombineShifts.cpp
   58   if (ShAmt0->getType() != ShAmt1->getType())
   58   if (ShAmt0->getType() != ShAmt1->getType())
   88   unsigned NewShAmtBitWidth = NewShAmt->getType()->getScalarSizeInBits();
   89   unsigned XBitWidth = X->getType()->getScalarSizeInBits();
  114   NewShAmt = ConstantExpr::getZExtOrBitCast(NewShAmt, X->getType());
  135     Ret = CastInst::Create(Instruction::Trunc, NewShift, Sh0->getType());
  185   Type *NarrowestTy = OuterShift->getType();
  186   Type *WidestTy = Masked->getType();
  220         SumOfShAmts, ConstantInt::get(SumOfShAmts->getType()->getScalarType(),
  245         ShAmtsDiff, ConstantInt::get(ShAmtsDiff->getType()->getScalarType(),
  248         ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(),
  288   assert(Op0->getType() == Op1->getType());
  288   assert(Op0->getType() == Op1->getType());
  293     Value *NewExt = Builder.CreateZExt(Y, I.getType(), Op1->getName());
  332     Value *Rem = Builder.CreateAnd(A, ConstantInt::get(I.getType(), *B - 1),
  372   unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits();
  472   Type *ShType = InnerShift->getType();
  625   unsigned TypeBits = Op0->getType()->getScalarSizeInBits();
  645           ConstantExpr::getZExt(cast<Constant>(Op1), TrOp->getType());
  653       unsigned SrcSize = TrOp->getType()->getScalarSizeInBits();
  654       unsigned DstSize = TI->getType()->getScalarSizeInBits();
  674       return new TruncInst(And, I.getType());
  703           if (VectorType *VT = dyn_cast<VectorType>(X->getType()))
  738           if (VectorType *VT = dyn_cast<VectorType>(X->getType()))
  862   Type *Ty = I.getType();
  873       unsigned SrcWidth = X->getType()->getScalarSizeInBits();
  952     if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) {
  979   Type *Ty = I.getType();
 1036         (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) {
 1037       assert(ShAmt < X->getType()->getScalarSizeInBits() &&
 1045         (!Ty->isIntegerTy() || shouldChangeType(Ty, X->getType()))) {
 1047       unsigned SrcTyBitWidth = X->getType()->getScalarSizeInBits();
 1106                               APInt(C->getType()->getScalarSizeInBits(),
 1107                                     V->getType()->getScalarSizeInBits())));
 1162   return TruncInst::CreateTruncOrBitCast(NewAShr, OldAShr.getType());
 1177   Type *Ty = I.getType();
 1188         ShAmt == BitWidth - X->getType()->getScalarSizeInBits())
 1223         (Ty->isVectorTy() || shouldChangeType(Ty, X->getType()))) {
 1225       Type *SrcTy = X->getType();
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
   55   I->setOperand(OpNo, ConstantInt::get(Op->getType(), *C & Demanded));
   65   unsigned BitWidth = Inst.getType()->getScalarSizeInBits();
  122   Type *VTy = V->getType();
  300           ConstantInt::get(I->getType(), NewMask & AndRHS->getValue());
  305           ConstantInt::get(I->getType(), NewMask & XorRHS->getValue());
  362     unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits();
  375     if (!I->getOperand(0)->getType()->isIntOrIntVectorTy())
  378     if (VectorType *DstVTy = dyn_cast<VectorType>(I->getType())) {
  380             dyn_cast<VectorType>(I->getOperand(0)->getType())) {
  387     } else if (I->getOperand(0)->getType()->isVectorTy())
  397     unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits();
  680                     ConstantInt::get(I->getType(), InputBit-ResultBit));
  683                     ConstantInt::get(I->getType(), ResultBit-InputBit));
  729           auto ArgType = cast<VectorType>(Arg->getType());
  768   Type *ITy = I->getType();
  912   Type *Ty = VarX->getType();
  948       Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt);
  954       Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt);
  977       II->getType()->getScalarSizeInBits() != 32 &&
  981   unsigned VWidth = II->getType()->getVectorNumElements();
 1015     return UndefValue::get(II->getType());
 1036   Type *EltTy = II->getType()->getVectorElementType();
 1057     return Builder.CreateInsertElement(UndefValue::get(II->getType()), NewCall,
 1093   unsigned VWidth = V->getType()->getVectorNumElements();
 1105     return UndefValue::get(V->getType());
 1116     Type *EltTy = cast<VectorType>(V->getType())->getElementType();
 1209       if (I->getOperand(i)->getType()->isVectorTy()) {
 1252       Shuffle->getOperand(0)->getType()->getVectorNumElements();
 1359     if (Sel->getCondition()->getType()->isVectorTy()) {
 1397     VectorType *VTy = dyn_cast<VectorType>(I->getOperand(0)->getType());
 1496         return ConstantAggregateZero::get(II->getType());
 1623       auto *Ty0 = II->getArgOperand(0)->getType();
 1730     return UndefValue::get(I->getType());;
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  117       PHINode::Create(EI.getType(), PN->getNumIncomingValues(), ""), *PN));
  168       !X->getType()->isVectorTy() ||
  175   Type *SrcTy = X->getType();
  176   Type *DestTy = Ext.getType();
  258   unsigned VWidth = V->getType()->getVectorNumElements();
  275     unsigned MaskNumElts = UserInstr->getType()->getVectorNumElements();
  301   unsigned VWidth = V->getType()->getVectorNumElements();
  414           SVI->getOperand(0)->getType()->getVectorNumElements();
  417           return replaceInstUsesWith(EI, UndefValue::get(EI.getType()));
  436         return CastInst::Create(CI->getOpcode(), EE, EI.getType());
  447   assert(LHS->getType() == RHS->getType() &&
  447   assert(LHS->getType() == RHS->getType() &&
  449   unsigned NumElts = V->getType()->getVectorNumElements();
  491         unsigned NumLHSElts = LHS->getType()->getVectorNumElements();
  610   assert(V->getType()->isVectorTy() && "Invalid shuffle!");
  611   unsigned NumElts = V->getType()->getVectorNumElements();
  616         PermittedRHS ? UndefValue::get(PermittedRHS->getType()) : V, nullptr);
  643           if (LR.first->getType() != RHS->getType()) {
  643           if (LR.first->getType() != RHS->getType()) {
  655           unsigned NumLHSElts = RHS->getType()->getVectorNumElements();
  666               EI->getOperand(0)->getType()->getVectorNumElements();
  676         if (EI->getOperand(0)->getType() == PermittedRHS->getType() &&
  676         if (EI->getOperand(0)->getType() == PermittedRHS->getType() &&
  726   int MaskSize = Shuf.getMask()->getType()->getVectorNumElements();
  727   int VecSize = Shuf.getOperand(0)->getType()->getVectorNumElements();
  845   return new ShuffleVectorInst(Op0, UndefValue::get(Op0->getType()), NewMask);
  962     unsigned NumElts = Mask->getType()->getVectorNumElements();
 1041       VecSrc->getType()->isVectorTy() && !ScalarSrc->getType()->isVectorTy() &&
 1041       VecSrc->getType()->isVectorTy() && !ScalarSrc->getType()->isVectorTy() &&
 1042       VecSrc->getType()->getVectorElementType() == ScalarSrc->getType()) {
 1042       VecSrc->getType()->getVectorElementType() == ScalarSrc->getType()) {
 1056       ExtractedIdx < ExtVecOp->getType()->getVectorNumElements()) {
 1090           LR.second = UndefValue::get(LR.first->getType());
 1097   unsigned VWidth = VecOp->getType()->getVectorNumElements();
 1181       Type *ITy = I->getType();
 1271           VectorType::get(I->getType()->getScalarType(),
 1272                           NewOps[0]->getType()->getVectorNumElements());
 1292   assert(V->getType()->isVectorTy() && "can't reorder non-vector elements");
 1293   Type *EltTy = V->getType()->getScalarType();
 1309     return ConstantExpr::getShuffleVector(C, UndefValue::get(C->getType()),
 1347       bool NeedsRebuild = (Mask.size() != I->getType()->getVectorNumElements());
 1353         if (I->getOperand(i)->getType()->isVectorTy())
 1415   unsigned LHSElems = SVI.getOperand(0)->getType()->getVectorNumElements();
 1445   Type *Ty = BO->getType();
 1704       NarrowCond->getType()->getVectorNumElements() != NarrowNumElts ||
 1710   Value *Undef = UndefValue::get(X->getType());
 1745   assert(NumElts < Mask->getType()->getVectorNumElements() &&
 1765   if (NumElts != (int)(V0->getType()->getVectorNumElements()))
 1838   if (X->getType() != Y->getType() ||
 1838   if (X->getType() != Y->getType() ||
 1841       !isPowerOf2_32(X->getType()->getVectorNumElements()) ||
 1852   int NarrowElts = X->getType()->getVectorNumElements();
 1897   unsigned LHSWidth = LHS->getType()->getVectorNumElements();
 1919     SVI.setOperand(1, UndefValue::get(RHS->getType()));
 1999     VectorType *SrcTy = cast<VectorType>(V->getType());
 2032         V = Builder.CreateShuffleVector(V, UndefValue::get(V->getType()),
 2118     LHSOp0Width = LHSOp0->getType()->getVectorNumElements();
 2122     RHSOp0Width = RHSOp0->getType()->getVectorNumElements();
 2234       newRHS = UndefValue::get(newLHS->getType());
lib/Transforms/InstCombine/InstructionCombining.cpp
  285   Type *DestTy = C1->getType();
  513   return ConstantExpr::getBinOpIdentity(Opcode, V->getType());
  531       RHS = ConstantExpr::getShl(ConstantInt::get(Op->getType(), 1), C);
  702     if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) {
  711     if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) {
  739     if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) {
  748     if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) {
  830     return Builder.CreateCast(Cast->getOpcode(), SO, I.getType());
  868   if (SI->getType()->isIntOrIntVectorTy(1))
  986   PHINode *NewPN = PHINode::Create(I.getType(), PN->getNumIncomingValues());
 1053     Type *RetTy = CI->getType();
 1060                                  I.getType(), "phitmp");
 1163   assert(isa<IntegerType>(Val->getType()) && "Can only descale integers!");
 1164   assert(cast<IntegerType>(Val->getType())->getBitWidth() ==
 1287         Op = ConstantInt::get(BO->getType(), Amt - logScale);
 1332         if (logScale + 1 == (int32_t)Cast->getType()->getPrimitiveSizeInBits())
 1403   if (!Inst.getType()->isVectorTy()) return nullptr;
 1406   unsigned NumElts = cast<VectorType>(Inst.getType())->getNumElements();
 1408   assert(cast<VectorType>(LHS->getType())->getNumElements() == NumElts);
 1409   assert(cast<VectorType>(RHS->getType())->getNumElements() == NumElts);
 1445     return new ShuffleVectorInst(XY, UndefValue::get(XY->getType()), M);
 1453       V1->getType() == V2->getType() &&
 1453       V1->getType() == V2->getType() &&
 1492       V1->getType()->getVectorNumElements() <= NumElts) {
 1493     assert(Inst.getType()->getScalarType() == V1->getType()->getScalarType() &&
 1493     assert(Inst.getType()->getScalarType() == V1->getType()->getScalarType() &&
 1504     unsigned SrcVecNumElts = V1->getType()->getVectorNumElements();
 1505     UndefValue *UndefScalar = UndefValue::get(C->getType()->getScalarType());
 1583   if (!(match(Op1, m_ZExtOrSExt(m_Value(Y))) && X->getType() == Y->getType() &&
 1583   if (!(match(Op1, m_ZExtOrSExt(m_Value(Y))) && X->getType() == Y->getType() &&
 1591     Constant *NarrowC = ConstantExpr::getTrunc(WideC, X->getType());
 1592     if (ConstantExpr::getCast(CastOpc, NarrowC, BO.getType()) != WideC)
 1615   return CastInst::Create(CastOpc, NarrowBO, BO.getType());
 1620   Type *GEPType = GEP.getType();
 1626   if (GEP.getType()->isVectorTy()) {
 1627     auto VWidth = GEP.getType()->getVectorNumElements();
 1660     Type *IndexTy = (*I)->getType();
 1716         if (Op1->getOperand(J)->getType() != Op2->getOperand(J)->getType())
 1716         if (Op1->getOperand(J)->getType() != Op2->getOperand(J)->getType())
 1775         NewPN = Builder.CreatePHI(Op1->getOperand(DI)->getType(),
 1828           auto *SO0Ty = SO0->getType();
 1876       if (SO1->getType() != GO1->getType())
 1876       if (SO1->getType() != GO1->getType())
 1915     if (GEP.getOperand(1)->getType()->getScalarSizeInBits() ==
 1942           Value *PtrToInt = Builder.CreatePtrToInt(PtrOp, Index->getType());
 1962   PointerType *StrippedPtrTy = cast<PointerType>(StrippedPtr->getType());
 2062           unsigned BitWidth = Idx->getType()->getPrimitiveSizeInBits();
 2068           assert(Idx->getType() == DL.getIndexType(GEPType) &&
 2103           unsigned BitWidth = Idx->getType()->getPrimitiveSizeInBits();
 2109           assert(Idx->getType() == DL.getIndexType(GEPType) &&
 2178       if (NGEP->getType()->getPointerAddressSpace() != GEP.getAddressSpace())
 2224         if (NGEP->getType() == GEPType)
 2228         if (NGEP->getType()->getPointerAddressSpace() != GEP.getAddressSpace())
 2237         DL.getIndexSizeInBits(PtrOp->getType()->getPointerAddressSpace());
 2406         replaceInstUsesWith(*I, UndefValue::get(I->getType()));
 2544   Type *VTy = ResultOp->getType();
 2572     BI.setCondition(ConstantInt::getFalse(BI.getCondition()->getType()));
 2715         replaceInstUsesWith(*WO, UndefValue::get(WO->getType()));
 2747       Value *GEP = Builder.CreateInBoundsGEP(L->getType(),
 2749       Instruction *NL = Builder.CreateLoad(EV.getType(), GEP);
 2800     cast<ArrayType>(LHS->getType())->getNumElements()
 2802     cast<ArrayType>(RHS->getType())->getNumElements();
 2854       ArrayType *FilterType = cast<ArrayType>(FilterClause->getType());
 2968       if (!isa<ArrayType>(NewClauses[j]->getType()))
 3002     ArrayType *FTy = dyn_cast<ArrayType>(Filter->getType());
 3011       ArrayType *LTy = dyn_cast<ArrayType>(LFilter->getType());
 3090     LandingPadInst *NLI = LandingPadInst::Create(LI.getType(),
 3191         Value *Undef = UndefValue::get(I->getType());
 3242     Type *Ty = I->getType();
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1258   auto GV = new GlobalVariable(M, LocStruct->getType(), true,
 1360     *TypeSize = DL.getTypeStoreSizeInBits(LI->getType());
 1366     *TypeSize = DL.getTypeStoreSizeInBits(SI->getValueOperand()->getType());
 1372     *TypeSize = DL.getTypeStoreSizeInBits(RMW->getValOperand()->getType());
 1378     *TypeSize = DL.getTypeStoreSizeInBits(XCHG->getCompareOperand()->getType());
 1399       auto Ty = cast<PointerType>(BasePtr->getType())->getElementType();
 1415     Type *PtrTy = cast<PointerType>(PtrOperand->getType()->getScalarType());
 1438   return V->getType()->isPointerTy() || isa<PtrToIntInst>(V);
 1485     if (i->getType()->isPointerTy())
 1515   auto *VTy = cast<PointerType>(Addr->getType())->getElementType();
 1651       IRB.CreateIntCast(LastAccessedByte, ShadowValue->getType(), false);
 1754         Addr->getType());
 2024       M, Initializer->getType(), false, Linkage, Initializer,
 2054     unsigned SizeOfGlobalStruct = DL.getTypeAllocSize(Initializer->getType());
 2189       ArrayType::get(MetadataInitializers[0]->getType(), N);
 2567           FunctionType::get(IntptrTy, {AsanShadowGlobal->getType()}, false),
 2836         Poison, IRB.CreateIntToPtr(Ptr, Poison->getType()->getPointerTo()), 1);
 2900       Type *Ty = Arg.getType()->getPointerElementType();
lib/Transforms/Instrumentation/BoundsChecking.cpp
   60   uint64_t NeededSize = DL.getTypeStoreSize(InstVal->getType());
   75   Type *IntTy = DL.getIntPtrType(Ptr->getType());
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
 1617         PHINode *PN = PHINode::Create(I.getType(), PredCount, "",
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1048         assert(Shadow->getType() == DFS.ShadowTy);
 1062   assert(Shadow->getType() == DFS.ShadowTy);
 1301   uint64_t Size = DL.getTypeStoreSize(LI.getType());
 1311       Align = DL.getABITypeAlignment(LI.getType());
 1381   uint64_t Size = DL.getTypeStoreSize(SI.getValueOperand()->getType());
 1389       Align = DL.getABITypeAlignment(SI.getValueOperand()->getType());
 1464   if (isa<VectorType>(I.getCondition()->getType())) {
 1496       ConstantInt::get(I.getLength()->getType(), DFSF.DFS.ShadowWidth / 8));
 1593           Type *T = (*i)->getType();
 1654           if (CustomCI->getArgOperand(ArgNo)->getType() == DFSF.DFS.ShadowTy)
 1673       CS.getCalledValue()->getType()->getPointerElementType());
 1746         AttributeFuncs::typeIncompatible(NewCS.getInstruction()->getType())));
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  485       FunctionType::get(Int8PtrTy, {ShadowGlobal->getType()}, false),
  523     *TypeSize = DL.getTypeStoreSizeInBits(LI->getType());
  529     *TypeSize = DL.getTypeStoreSizeInBits(SI->getValueOperand()->getType());
  535     *TypeSize = DL.getTypeStoreSizeInBits(RMW->getValOperand()->getType());
  541     *TypeSize = DL.getTypeStoreSizeInBits(XCHG->getCompareOperand()->getType());
  549     Type *PtrTy = cast<PointerType>(PtrOperand->getType()->getScalarType());
  590       IRB.CreateIntToPtr(untagPointer(IRB, AddrLong), Addr->getType());
  640         ConstantInt::get(PtrTag->getType(), matchAllTag));
  679           FunctionType::get(IRB.getVoidTy(), {PtrLong->getType()}, false),
  688           FunctionType::get(IRB.getVoidTy(), {PtrLong->getType()}, false),
  894         ConstantInt::get(PtrLong->getType(), 0xFFULL << kPointerTagShift));
  898         ConstantInt::get(PtrLong->getType(), ~(0xFFULL << kPointerTagShift)));
 1250       M.getDataLayout().getTypeAllocSize(Initializer->getType());
 1261   auto *NewGV = new GlobalVariable(M, Initializer->getType(), GV->isConstant(),
 1366   auto *NoteTy = StructType::get(Int32Ty, Int32Ty, Int32Ty, Name->getType(),
lib/Transforms/Instrumentation/InstrProfiling.cpp
  203       Type *Ty = LiveInValue->getType();
  269       Value *InitVal = ConstantInt::get(Cand.first->getType(), 0);
  648     Value *Load = Builder.CreateLoad(IncStep->getType(), Addr, "pgocount");
  925   NamesVar = new GlobalVariable(*M, NamesVal->getType(), true,
lib/Transforms/Instrumentation/Instrumentation.cpp
   67       new GlobalVariable(M, StrConst->getType(), true,
lib/Transforms/Instrumentation/MemorySanitizer.cpp
  685   return new GlobalVariable(M, StrConst->getType(), /*isConstant=*/false,
 1123     unsigned StoreSize = DL.getTypeStoreSize(Shadow->getType());
 1124     if (Shadow->getType()->isAggregateType()) {
 1138           DL.getTypeSizeInBits(ConvertedShadow->getType());
 1166       Type *ShadowTy = Shadow->getType();
 1220     unsigned TypeSizeInBits = DL.getTypeSizeInBits(ConvertedShadow->getType());
 1333     return getShadowTy(V->getType());
 1376     Type *Ty = V->getType();
 1538     return getCleanShadow(V->getType());
 1607         if (!FArg.getType()->isSized()) {
 1613                 ? DL.getTypeAllocSize(FArg.getType()->getPointerElementType())
 1614                 : DL.getTypeAllocSize(FArg.getType());
 1624               Type *EltType = A->getType()->getPointerElementType();
 1707     Type *ShadowTy = Shadow->getType();
 1780     assert(I.getType()->isSized() && "Load type must have size");
 1828     Value *ShadowPtr = getShadowOriginPtr(Addr, IRB, I.getType(),
 1885     setShadow(&I, IRB.CreateSExt(getShadow(&I, 0), I.getType(), "_msprop"));
 1891     setShadow(&I, IRB.CreateZExt(getShadow(&I, 0), I.getType(), "_msprop"));
 1897     setShadow(&I, IRB.CreateTrunc(getShadow(&I, 0), I.getType(), "_msprop"));
 1950     if (V1->getType() != S1->getType()) {
 1950     if (V1->getType() != S1->getType()) {
 1951       V1 = IRB.CreateIntCast(V1, S1->getType(), false);
 1952       V2 = IRB.CreateIntCast(V2, S2->getType(), false);
 1972     if (V1->getType() != S1->getType()) {
 1972     if (V1->getType() != S1->getType()) {
 1973       V1 = IRB.CreateIntCast(V1, S1->getType(), false);
 1974       V2 = IRB.CreateIntCast(V2, S2->getType(), false);
 2016           OpShadow = MSV->CreateShadowCast(IRB, OpShadow, Shadow->getType());
 2086     Type *srcTy = V->getType();
 2107     if (V->getType() == ShadowTy)
 2109     if (V->getType()->isPtrOrPtrVectorTy())
 2138     Type *Ty = ConstArg->getType();
 2220     A = IRB.CreatePointerCast(A, Sa->getType());
 2221     B = IRB.CreatePointerCast(B, Sb->getType());
 2233     Value *Zero = Constant::getNullValue(Sc->getType());
 2234     Value *MinusOne = Constant::getAllOnesValue(Sc->getType());
 2293     A = IRB.CreatePointerCast(A, Sa->getType());
 2294     B = IRB.CreatePointerCast(B, Sb->getType());
 2384                                    S2->getType());
 2461         Addr, IRB, Shadow->getType(), /*Alignment*/ 1, /*isStore*/ true);
 2513     Type *RetTy = I.getType();
 2522       Type *Ty = I.getArgOperand(i)->getType();
 2552         I.getArgOperand(0)->getType()->isPointerTy() &&
 2553         I.getArgOperand(1)->getType()->isVectorTy() &&
 2554         I.getType()->isVoidTy() &&
 2561         I.getArgOperand(0)->getType()->isPointerTy() &&
 2562         I.getType()->isVectorTy() &&
 2595     Type *OpType = Op->getType();
 2646     if (ConvertOp->getType()->isVectorTy()) {
 2657     assert(AggShadow->getType()->isIntegerTy());
 2663       assert(CopyOp->getType() == I.getType());
 2663       assert(CopyOp->getType() == I.getType());
 2664       assert(CopyOp->getType()->isVectorTy());
 2666       Type *EltTy = ResultShadow->getType()->getVectorElementType();
 2683     if (S->getType()->isVectorTy())
 2685     assert(S->getType()->getPrimitiveSizeInBits() <= 64);
 2699     Type *T = S->getType();
 2724                                   {IRB.CreateBitCast(S1, V1->getType()), V2});
 2779     bool isX86_MMX = I.getOperand(0)->getType()->isX86_MMXTy();
 2783     assert(isX86_MMX || S1->getType()->isVectorTy());
 2788     Type *T = isX86_MMX ? getMMXVectorTy(EltSizeInBits) : S1->getType();
 2816     bool isX86_MMX = I.getOperand(0)->getType()->isX86_MMXTy();
 2817     Type *ResTy = isX86_MMX ? IntegerType::get(*MS.C, 64) : I.getType();
 2835     bool isX86_MMX = I.getOperand(0)->getType()->isX86_MMXTy();
 2836     Type *ResTy = isX86_MMX ? getMMXVectorTy(EltSizeInBits * 2) : I.getType();
 2917         Addr, IRB, Shadow->getType(), Align, /*isStore*/ true);
 2931                   DL.getTypeStoreSize(Shadow->getType()),
 2967         for (int i = 1, N = PassThru->getType()->getVectorNumElements(); i < N;
 2975             IRB.CreateICmpNE(Acc, Constant::getNullValue(Acc->getType())),
 3298       if (!A->getType()->isSized()) {
 3314         assert(A->getType()->isPointerTy() &&
 3316         Size = DL.getTypeAllocSize(A->getType()->getPointerElementType());
 3329         Size = DL.getTypeAllocSize(A->getType());
 3352     if (!I.getType()->isSized()) return;
 3518     if (I.getType()->isAggregateType()) {
 3522       Sa1 = getPoisonedShadow(getShadowTy(I.getType()));
 3541       if (B->getType()->isVectorTy()) {
 3542         Type *FlatTy = getShadowTyNoVec(B->getType());
 3633     Type *OpType = Operand->getType();
 3653     Type *RetTy = cast<Value>(CB)->getType();
 3725       if (Operand->getType()->isSized())
 3770     Type *T = arg->getType();
 3805         assert(A->getType()->isPointerTy());
 3806         Type *RealTy = A->getType()->getPointerElementType();
 3836                 getShadowPtrForVAArgument(A->getType(), IRB, GpOffset, 8);
 3839                   getOriginPtrForVAArgument(A->getType(), IRB, GpOffset);
 3844                 getShadowPtrForVAArgument(A->getType(), IRB, FpOffset, 16);
 3847                   getOriginPtrForVAArgument(A->getType(), IRB, FpOffset);
 3853             uint64_t ArgSize = DL.getTypeAllocSize(A->getType());
 3855                 getShadowPtrForVAArgument(A->getType(), IRB, OverflowOffset, 8);
 3858                   getOriginPtrForVAArgument(A->getType(), IRB, OverflowOffset);
 3872           unsigned StoreSize = DL.getTypeStoreSize(Shadow->getType());
 4026       uint64_t ArgSize = DL.getTypeAllocSize(A->getType());
 4033       Base = getShadowPtrForVAArgument(A->getType(), IRB, VAArgOffset, ArgSize);
 4148     Type *T = arg->getType();
 4185           Base = getShadowPtrForVAArgument(A->getType(), IRB, GrOffset, 8);
 4189           Base = getShadowPtrForVAArgument(A->getType(), IRB, VrOffset, 8);
 4197           uint64_t ArgSize = DL.getTypeAllocSize(A->getType());
 4198           Base = getShadowPtrForVAArgument(A->getType(), IRB, OverflowOffset,
 4419         assert(A->getType()->isPointerTy());
 4420         Type *RealTy = A->getType()->getPointerElementType();
 4442         uint64_t ArgSize = DL.getTypeAllocSize(A->getType());
 4444         if (A->getType()->isArrayTy()) {
 4447           Type *ElementTy = A->getType()->getArrayElementType();
 4450         } else if (A->getType()->isVectorTy()) {
 4452           ArgAlign = DL.getTypeAllocSize(A->getType());
 4464           Base = getShadowPtrForVAArgument(A->getType(), IRB,
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  273   CI->getOperand(0)->getType()->print(OS, true);
  856       if (Cand.V->getType()->isIntegerTy())
  858       else if (Cand.V->getType()->isPointerTy())
 1383   if (SI.getCondition()->getType()->isVectorTy())
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  378     auto *SizeType = dyn_cast<IntegerType>(MemI->getLength()->getType());
lib/Transforms/Instrumentation/PoisonChecking.cpp
   85   assert(V->getType()->isIntegerTy(1));
  158                      ConstantInt::get(LHS->getType(), 0));
  167                      ConstantInt::get(LHS->getType(), 0));
  177                    ConstantInt::get(RHS->getType(),
  178                                     LHS->getType()->getScalarSizeInBits()));
  188   if (isa<BinaryOperator>(I) && !I.getType()->isVectorTy())
  197     if (Vec->getType()->getVectorIsScalable())
  200     unsigned NumElts = Vec->getType()->getVectorNumElements();
  203                    ConstantInt::get(Idx->getType(), NumElts));
  209     if (Vec->getType()->getVectorIsScalable())
  212     unsigned NumElts = Vec->getType()->getVectorNumElements();
  215                    ConstantInt::get(Idx->getType(), NumElts));
  238   assert(Cond->getType()->isIntegerTy(1));
  252   assert(Cond->getType()->isIntegerTy(1));
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  751       if (Cond->getType()->getScalarSizeInBits() >
  756           ConstantInt::get(Int64Ty, Cond->getType()->getScalarSizeInBits()));
  757       if (Cond->getType()->getScalarSizeInBits() <
  762         if (C->getType()->getScalarSizeInBits() <
  789     if (!A1->getType()->isIntegerTy())
  791     uint64_t TypeSize = DL->getTypeStoreSizeInBits(A1->getType());
  806       if (!isa<ConstantInt>(*I) && (*I)->getType()->isIntegerTy())
  819       if (!A0->getType()->isIntegerTy())
  821       uint64_t TypeSize = DL->getTypeStoreSizeInBits(A0->getType());
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  330     Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType());
  541     if (isa<VectorType>(StoredValue->getType()))
  544     if (StoredValue->getType()->isIntegerTy())
  562   Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType();
  641     Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType();
  697     Type *OrigOldValTy = CASI->getNewValOperand()->getType();
  704       IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0);
  722   Type *OrigPtrTy = Addr->getType();
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  419   if (Args[0]->getType() != I8XX)
  421   if (Args[1]->getType() != I8X)
  509       Value *Null = ConstantPointerNull::get(cast<PointerType>(CI->getType()));
  649         Type *UseTy = U.get()->getType();
  654           if (Replacement->getType() != UseTy) {
  682           if (Replacement->getType() != UseTy)
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  769           if (!Inst->getType()->isVoidTy())
  803         Type *Ty = CI->getArgOperand(0)->getType();
  807         Value *NewValue = UndefValue::get(CI->getType());
  824         Type *Ty = CI->getArgOperand(0)->getType();
  829         Value *NewValue = UndefValue::get(CI->getType());
 1006           Type *ParamTy = CInst->getArgOperand(0)->getType();
 1015               if (Op->getType() != ParamTy)
 1571   Type *ArgTy = Arg->getType();
lib/Transforms/Scalar/BDCE.cpp
   40   assert(I->getType()->isIntOrIntVectorTy() &&
   50     if (J && J->getType()->isIntOrIntVectorTy() &&
   81       if (K && Visited.insert(K).second && K->getType()->isIntOrIntVectorTy() &&
  101         (I.getType()->isIntOrIntVectorTy() &&
  113       if (!U->getType()->isIntOrIntVectorTy())
  129       U.set(ConstantInt::get(U->getType(), 0));
lib/Transforms/Scalar/CallSiteSplitting.cpp
  172     else if (ConstVal->getType()->isPointerTy() && ConstVal->isNullValue()) {
  318     CallPN = PHINode::Create(Instr->getType(), Preds.size(), "phi.call");
  402       PHINode *NewPN = PHINode::Create(CurrentI->getType(), Preds.size());
lib/Transforms/Scalar/ConstantHoisting.cpp
  396   if (ConstExpr->getType()->isVectorTy())
  630         ConstCand->ConstExpr ? ConstCand->ConstExpr->getType() : nullptr;
  666           MemUseValTy = LI->getType();
  671             MemUseValTy = SI->getValueOperand()->getType();
  735   if (!Offset && Ty && Ty != Base->getType())
  870         Type *Ty = ConstInfo.BaseExpr->getType();
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  126   if (S->getType()->isVectorTy()) return false;
  138   if (ReplaceWith == S) ReplaceWith = UndefValue::get(S->getType());
  231       if (!Condition->getType()->isVectorTy()) {
  504   StructType *ST = cast<StructType>(WO->getType());
  542     if (WO->getLHS()->getType()->isIntegerTy() && willNotOverflow(WO, LVI)) {
  549     if (SI->getType()->isIntegerTy() && willNotOverflow(SI, LVI)) {
  567       if (V->getType()->isVectorTy()) continue;
  580     PointerType *Type = dyn_cast<PointerType>(V->getType());
  608   Constant *Zero = ConstantInt::get(SDI->getType(), 0);
  622   if (Instr->getType()->isVectorTy())
  627   auto OrigWidth = Instr->getType()->getIntegerBitWidth();
  649   auto *Zext = B.CreateZExt(BO, Instr->getType(), Instr->getName() + ".zext");
  660   if (SDI->getType()->isVectorTy() || !hasPositiveOperands(SDI, LVI))
  682   if (SDI->getType()->isVectorTy() || !hasPositiveOperands(SDI, LVI))
  700   if (SDI->getType()->isVectorTy())
  703   Constant *Zero = ConstantInt::get(SDI->getType(), 0);
  720   if (SDI->getType()->isVectorTy())
  725   Constant *Zero = ConstantInt::get(Base->getType(), 0);
  732       CastInst::CreateZExtOrBitCast(Base, SDI->getType(), SDI->getName(), SDI);
  746   if (BinOp->getType()->isVectorTy())
  784   if (BinOp->getType()->isVectorTy())
lib/Transforms/Scalar/DeadStoreElimination.cpp
  941       ConstantInt::get(EarlierWriteLength->getType(), NewLength);
  948         ConstantInt::get(EarlierWriteLength->getType(), OffsetMoved)};
  950         EarlierIntrinsic->getRawDest()->getType()->getPointerElementType(),
 1215                   Earlier->getValueOperand()->getType()) &&
 1218                   Later->getValueOperand()->getType()) &&
 1256                 ConstantInt::get(Earlier->getValueOperand()->getType(), Merged),
lib/Transforms/Scalar/DivRemPairs.cpp
   88     assert(DivInst->getType() == RemInst->getType() && "Types should match.");
   88     assert(DivInst->getType() == RemInst->getType() && "Types should match.");
   94   Type *getType() const { return DivInst->getType(); }
lib/Transforms/Scalar/EarlyCSE.cpp
  110       return CI->doesNotAccessMemory() && !CI->getType()->isVoidTy();
  231     return hash_combine(CI->getOpcode(), CI->getType(), CI->getOperand(0));
  385     if (Inst->getType()->isVoidTy())
 1086         Value *Op = getOrCreateResult(InVal.DefInst, Inst->getType());
 1171           InVal.DefInst == getOrCreateResult(Inst, InVal.DefInst->getType()) &&
lib/Transforms/Scalar/Float2Int.cpp
  130       if (isa<VectorType>(I.getType()))
  206       unsigned BW = I->getOperand(0)->getType()->getPrimitiveSizeInBits();
  377           ConvertedToTy = I->getType();
  467     NewV = IRB.CreateZExtOrTrunc(NewOperands[0], I->getType());
  471     NewV = IRB.CreateSExtOrTrunc(NewOperands[0], I->getType());
lib/Transforms/Scalar/GVN.cpp
  274   e.type = I->getType();
  314   e.type = CmpInst::makeCmpResultType(LHS->getType());
  331   e.type = EI->getType();
  746   SSAUpdate.Initialize(LI->getType(), LI->getName());
  774   Type *LoadTy = LI->getType();
  778     if (Res->getType() != LoadTy) {
  788     if (Load->getType() == LoadTy && Offset == 0) {
  835   R << "load of type " << NV("Type", LI->getType()) << " not eliminated"
  875           analyzeLoadFromClobberingStore(LI->getType(), Address, DepSI, DL);
  893           analyzeLoadFromClobberingLoad(LI->getType(), Address, DepLI, DL);
  906         int Offset = analyzeLoadFromClobberingMemInst(LI->getType(), Address,
  930     Res = AvailableValue::get(UndefValue::get(LI->getType()));
  936     Res = AvailableValue::get(Constant::getNullValue(LI->getType()));
  944     if (!canCoerceMustAliasedValueToLoad(S->getValueOperand(), LI->getType(),
  960     if (!canCoerceMustAliasedValueToLoad(LD, LI->getType(), DL))
 1245         LI->getType(), LoadPtr, LI->getName() + ".pre", LI->isVolatile(),
 1283   if (V->getType()->isPtrOrPtrVectorTy())
 1300            << "load of type " << NV("Type", LI->getType()) << " eliminated"
 1375     if (V->getType()->isPtrOrPtrVectorTy())
 1486       if (CmpRHS->getType()->isFloatTy() &&
 1557     if (MD && AvailableValue->getType()->isPtrOrPtrVectorTy())
 1791     assert(LHS->getType() == RHS->getType() && "Equality but unequal types!");
 1791     assert(LHS->getType() == RHS->getType() && "Equality but unequal types!");
 1850     if (!RHS->getType()->isIntegerTy(1))
 1901       Constant *NotVal = ConstantInt::get(Cmp->getType(), isKnownFalse);
 1961       if (MD && V->getType()->isPtrOrPtrVectorTy())
 2036   if (I->getType()->isVoidTy())
 2072   if (MD && Repl->getType()->isPtrOrPtrVectorTy())
 2245       isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() ||
 2383       PHINode::Create(CurInst->getType(), predMap.size(),
 2402   if (MD && Phi->getType()->isPtrOrPtrVectorTy())
 2592         Phi.setIncomingValueForBlock(P, UndefValue::get(Phi.getType()));
lib/Transforms/Scalar/GVNSink.cpp
  299         Values, [&](Value *V) { return V->getType() == Values[0]->getType(); });
  299         Values, [&](Value *V) { return V->getType() == Values[0]->getType(); });
  359     setType(I->getType());
  581         I->getType()->isTokenTy())
  623         PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
  851     assert(!Op->getType()->isTokenTy() && "Can't PHI tokens!");
  852     auto *PN = PHINode::Create(Op->getType(), Insts.size(),
lib/Transforms/Scalar/GuardWidening.cpp
  631   if (!IC || !IC->getOperand(0)->getType()->isIntegerTy() ||
  643       CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())),
lib/Transforms/Scalar/IndVarSimplify.cpp
  215     if (!FromPtr->getType()->isPointerTy() || !ToPtr->getType()->isPointerTy())
  215     if (!FromPtr->getType()->isPointerTy() || !ToPtr->getType()->isPointerTy())
  482   Incr->replaceAllUsesWith(UndefValue::get(Incr->getType()));
  493     Value *Conv = new SIToFPInst(NewPHI, PN->getType(), "indvar.conv",
  610       if (!SE->isSCEVable(PN->getType()))
  674         Value *ExitVal = Rewriter.expandCodeFor(ExitValue, PN->getType(), Inst);
  900   Type *Ty = Cast->getType();
  909   uint64_t NarrowIVWidth = SE->getTypeSizeInBits(WI.NarrowIV->getType());
  922                                       Cast->getOperand(0)->getType())) {
 1308   if (!SE->isSCEVable(DU.NarrowUse->getType()))
 1351   Value *Trunc = Builder.CreateTrunc(DU.WideDef, DU.NarrowDef->getType());
 1382   unsigned CastWidth = SE->getTypeSizeInBits(Op->getType());
 1468       if (!User || User->getType() != WideType)
 1474       if (!User || User->getType() != WideType)
 1519       if (User && User->getType() == WideType) {
 1530       if (User && User->getType() == WideType) {
 1563           PHINode::Create(DU.WideDef->getType(), 1, UsePhi->getName() + ".wide",
 1567         Value *Trunc = Builder.CreateTrunc(WidePhi, DU.NarrowDef->getType());
 1590     if (DU.NarrowUse->getType() != WideType) {
 1591       unsigned CastWidth = SE->getTypeSizeInBits(DU.NarrowUse->getType());
 1596         NewDef = Builder.CreateTrunc(DU.WideDef, DU.NarrowUse->getType());
 2224   if (!SE->isSCEVable(Phi->getType()))
 2267     if (BECount->getType()->isPointerTy() && !Phi->getType()->isPointerTy())
 2299     if (!Phi->getType()->isIntegerTy() &&
 2319       else if (PhiWidth <= SE->getTypeSizeInBits(BestPhi->getType()))
 2342   if (IndVar->getType()->isPointerTy() &&
 2362                              cast<PointerType>(IndVar->getType())
 2368     return Rewriter.expandCodeFor(IVLimit, IndVar->getType(), BI);
 2410       IndVar->getType() : ExitCount->getType();
 2443         IndVar->getType()->isIntegerTy() ||
 2474   assert(ExitCnt->getType()->isPointerTy() ==
 2475              IndVar->getType()->isPointerTy() &&
 2498   unsigned CmpIndVarSize = SE->getTypeSizeInBits(CmpIndVar->getType());
 2499   unsigned ExitCntSize = SE->getTypeSizeInBits(ExitCnt->getType());
 2501     assert(!CmpIndVar->getType()->isPointerTy() &&
 2502            !ExitCnt->getType()->isPointerTy());
 2512                                                   ExitCnt->getType());
 2514       SE->getZeroExtendExpr(TruncatedIV, CmpIndVar->getType());
 2518       ExitCnt = Builder.CreateZExt(ExitCnt, IndVar->getType(),
 2522         SE->getSignExtendExpr(TruncatedIV, CmpIndVar->getType());
 2525         ExitCnt = Builder.CreateSExt(ExitCnt, IndVar->getType(),
 2534       CmpIndVar = Builder.CreateTrunc(CmpIndVar, ExitCnt->getType(),
 2741     auto *NewCond = ConstantInt::get(OldCond->getType(),
 2952       if (ECV->getType() != RHS->getType()) {
 2952       if (ECV->getType() != RHS->getType()) {
 2953         Type *WiderTy = SE->getWiderType(ECV->getType(), RHS->getType());
 2953         Type *WiderTy = SE->getWiderType(ECV->getType(), RHS->getType());
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  783   if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) {
  797   IntegerType *IndVarTy = cast<IntegerType>(LeftValue->getType());
 1267     if (V->getType() == RangeTy)
 1312     PHINode *NewPHI = PHINode::Create(PN.getType(), 2, PN.getName() + ".copy",
 1321   RRI.IndVarEnd = PHINode::Create(IndVarBase->getType(), 2, "indvar.end",
lib/Transforms/Scalar/InferAddressSpaces.cpp
  227     assert(Op.getType()->isPointerTy());
  234     return Op.getType()->isPointerTy();
  270     Type *DestTy = II->getType();
  271     Type *SrcTy = NewV->getType();
  310   assert(V->getType()->isPointerTy());
  323       V->getType()->getPointerAddressSpace() == FlatAddrSpace) {
  358       if (!GEP->getType()->isVectorTy())
  379       if (Cmp->getOperand(0)->getType()->isPointerTy()) {
  384       if (!ASC->getType()->isVectorTy())
  395       if (TopVal->getType()->getPointerAddressSpace() == FlatAddrSpace)
  420       Operand->getType()->getPointerElementType()->getPointerTo(NewAddrSpace);
  446       I->getType()->getPointerElementType()->getPointerTo(NewAddrSpace);
  453     assert(Src->getType()->getPointerAddressSpace() == NewAddrSpace);
  454     if (Src->getType() != NewPtrType)
  462     if (!OperandUse.get()->getType()->isPointerTy())
  473     assert(I->getType()->isPointerTy());
  492     assert(I->getType()->isPointerTy());
  507     CE->getType()->getPointerElementType()->getPointerTo(NewAddrSpace);
  513     assert(CE->getOperand(0)->getType()->getPointerAddressSpace() ==
  527     if (Src0->getType()->getPointerAddressSpace() ==
  528         Src1->getType()->getPointerAddressSpace()) {
  572       NewOperands[0]->getType()->getPointerElementType());
  589          V->getType()->getPointerAddressSpace() == FlatAddrSpace);
  709       I->second : Src0->getType()->getPointerAddressSpace();
  713       J->second : Src1->getType()->getPointerAddressSpace();
  735         I->second : PtrOperand->getType()->getPointerAddressSpace();
  836   unsigned SrcAS = C->getType()->getPointerAddressSpace();
  854         Op->getType()->getPointerAddressSpace() == FlatAddrSpace)
  883     if (V->getType()->getPointerAddressSpace() != NewAddrSpace) {
  916                                                          C->getType());
  934               TTI, U, V->getType()->getPointerAddressSpace())) {
  962           unsigned NewAS = NewV->getType()->getPointerAddressSpace();
  968             if (OtherNewV->getType()->getPointerAddressSpace() == NewAS) {
  980                 ConstantExpr::getAddrSpaceCast(KOtherSrc, NewV->getType()));
  987           unsigned NewAS = NewV->getType()->getPointerAddressSpace();
  989             if (ASC->getType()->getPointerElementType() !=
  990                 NewV->getType()->getPointerElementType()) {
  992                                       ASC->getType(), "", ASC);
 1009           U.set(new AddrSpaceCastInst(NewV, V->getType(), "", &*InsertPos));
 1012                                                V->getType()));
lib/Transforms/Scalar/JumpThreading.cpp
  452   assert(Cond->getType() == ToVal->getType());
  452   assert(Cond->getType() == ToVal->getType());
  516     if (isa<BitCastInst>(I) && I->getType()->isPointerTy())
  521     if (I->getType()->isTokenTy() && I->isUsedOutsideOfBlock(BB))
  538       else if (!CI->getType()->isVectorTy())
  681       R.first = ConstantExpr::getCast(CI->getOpcode(), R.first, CI->getType());
  687   if (I->getType()->getPrimitiveSizeInBits() == 1) {
  770     Type *CmpType = Cmp->getType();
 1177             ConstantInt::getTrue(CondCmp->getType()) :
 1178             ConstantInt::getFalse(CondCmp->getType());
 1333       AvailableVal = UndefValue::get(LoadI->getType());
 1334     if (AvailableVal->getType() != LoadI->getType())
 1334     if (AvailableVal->getType() != LoadI->getType())
 1336           AvailableVal, LoadI->getType(), "", LoadI);
 1379         Ptr, LoadI->getType(), LoadI->isAtomic(), PredBB, BBIt,
 1391             Ptr, LoadI->getType(), LoadI->isAtomic(), SinglePredBB, BBIt,
 1473         LoadI->getType(), LoadedPtr->DoPHITranslation(LoadBB, UnavailablePred),
 1490   PHINode *PN = PHINode::Create(LoadI->getType(), std::distance(PB, PE), "",
 1510     if (PredV->getType() != LoadI->getType())
 1510     if (PredV->getType() != LoadI->getType())
 1511       PredV = CastInst::CreateBitOrPointerCast(PredV, LoadI->getType(), "",
 1882       BO->replaceAllUsesWith(UndefValue::get(BO->getType()));
 2002     PHINode *NewPN = PHINode::Create(PN->getType(), 1, PN->getName(), NewBB);
 2078     SSAUpdate.Initialize(I.getType(), I.getName());
 2398     SSAUpdate.Initialize(I.getType(), I.getName());
 2580       return (Cond && Cond == V && Cond->getType()->isIntegerTy(1));
 2611     PHINode *NewPN = PHINode::Create(SI->getType(), 2, "", SI);
 2747       PHINode *NewPN = PHINode::Create(Inst->getType(), 2);
lib/Transforms/Scalar/LICM.cpp
  870         auto One = llvm::ConstantFP::get(Divisor->getType(), 1.0);
  985   const uint32_t LocSizeInBits = DL.getTypeSizeInBits(LI->getType());
  994   while (Addr->getType() != PtrInt8Ty) {
 1156           if (Op->getType()->isPointerTy()) {
 1423               PHINode::Create(OInst->getType(), PN.getNumIncomingValues(),
 1589       U = UndefValue::get(I.getType());
 1602       U = UndefValue::get(I.getType());
 1755           PHINode *PN = PHINode::Create(I->getType(), PredCache.size(BB),
 1957     if (SomePtr->getType() != ASIV->getType())
 1957     if (SomePtr->getType() != ASIV->getType())
 1978               MDL.getABITypeAlignment(Load->getType());
 2009               MDL.getABITypeAlignment(Store->getValueOperand()->getType());
 2035               Store->getPointerOperand(), Store->getValueOperand()->getType(),
 2064   auto *SomePtrElemType = SomePtr->getType()->getPointerElementType();
 2118       SomePtr->getType()->getPointerElementType(), SomePtr,
lib/Transforms/Scalar/LoopDataPrefetch.cpp
  265       unsigned PtrAddrSpace = PtrValue->getType()->getPointerAddressSpace();
  316           M, Intrinsic::prefetch, PrefPtrValue->getType());
lib/Transforms/Scalar/LoopDeletion.cpp
  164                 UndefValue::get(P.getType()));
lib/Transforms/Scalar/LoopDistribute.cpp
  234         Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
lib/Transforms/Scalar/LoopFuse.cpp
 1216       if (SE.isSCEVable(PHI->getType()))
 1237           LCV->getType(), 2, LCPHI->getName() + ".afterFC0", L1HeaderIP);
 1239       L1HeaderPHI->addIncoming(UndefValue::get(LCV->getType()),
 1458       if (SE.isSCEVable(PHI->getType()))
 1479           LCV->getType(), 2, LCPHI->getName() + ".afterFC0", L1HeaderIP);
 1481       L1HeaderPHI->addIncoming(UndefValue::get(LCV->getType()),
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  342   I->replaceAllUsesWith(UndefValue::get(I->getType()));
  445   uint64_t Size = DL->getTypeSizeInBits(V->getType());
  467   ArrayType *AT = ArrayType::get(V->getType(), ArraySize);
  482   if (DL->isNonIntegralPointerType(SI->getValueOperand()->getType()))
  493   uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType());
  531              StorePtr->getType()->getPointerAddressSpace() == 0 &&
  542     unsigned StoreSize = DL->getTypeStoreSize(SI->getValueOperand()->getType());
  680     unsigned FirstStoreSize = DL->getTypeStoreSize(SL[i]->getValueOperand()->getType());
  777       StoreSize += DL->getTypeStoreSize(I->getValueOperand()->getType());
  957   unsigned DestAS = DestPtr->getType()->getPointerAddressSpace();
 1022     GlobalVariable *GV = new GlobalVariable(*M, PatternValue->getType(), true,
 1062   unsigned StoreSize = DL->getTypeStoreSize(SI->getValueOperand()->getType());
 1574       TTI->getIntrinsicCost(IntrinID, InitX->getType(), Args) >
 1637   Type *Tys[] = {Val->getType()};
 1651   Type *Tys[] = {Val->getType()};
 1709           Builder.CreateAShr(InitX, ConstantInt::get(InitX->getType(), 1));
 1712           Builder.CreateLShr(InitX, ConstantInt::get(InitX->getType(), 1));
 1715           Builder.CreateShl(InitX, ConstantInt::get(InitX->getType(), 1));
 1722       ConstantInt::get(FFS->getType(),
 1723                        FFS->getType()->getIntegerBitWidth()),
 1729         ConstantInt::get(CountPrev->getType(), 1));
 1734                       cast<IntegerType>(CntInst->getType()));
 1753   Type *Ty = Count->getType();
 1800         Builder.CreateZExtOrTrunc(PopCnt, cast<IntegerType>(CntPhi->getType()));
 1825     Value *Opnd1 = ConstantInt::get(PopCntZext->getType(), 0);
 1860     Type *Ty = TripCnt->getType();
 2155   Type *BCmpValTy = BCmpInst->getOperand(0)->getType();
 2626     assert(SE->getTypeSizeInBits(Len->getType()) ==
 2631     if (Len->getType()->isPointerTy())
 2633     assert(Len->getType() == CmpFuncSizeTy && "Should have correct type now.");
 2657       CmpCall, ConstantInt::get(CmpCall->getType(), 0),
lib/Transforms/Scalar/LoopInterchange.cpp
  303     Type *PhiTy = PhiVar->getType();
  936     if (PHI.getType()->isFloatingPointTy())
lib/Transforms/Scalar/LoopLoadElimination.cpp
  101     Type *LoadPtrType = LoadPtr->getType();
  105                StorePtr->getType()->getPointerAddressSpace() &&
  106            LoadType == StorePtr->getType()->getPointerElementType() &&
  434     Value *InitialPtr = SEE.expandCodeFor(PtrSCEV->getStart(), Ptr->getType(),
  437         Cand.Load->getType(), InitialPtr, "load_initial",
  441     PHINode *PHI = PHINode::Create(Initial->getType(), 2, "store_forwarded",
lib/Transforms/Scalar/LoopRerollPass.cpp
  579     if (!I->getType()->isIntegerTy() && !I->getType()->isPointerTy())
  579     if (!I->getType()->isIntegerTy() && !I->getType()->isPointerTy())
  658     if (!I->getType()->isSingleValueType())
 1494     Value *NewIV = Expander.expandCodeFor(NewIVSCEV, Inst->getType(),
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  371         PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  839   MemAccessTy AccessTy(Inst->getType(), MemAccessTy::UnknownAddressSpace);
  841     AccessTy.MemTy = SI->getOperand(0)->getType();
  853       AccessTy.AddrSpace = II->getArgOperand(0)->getType()->getPointerAddressSpace();
  854       AccessTy.MemTy = OperandVal->getType();
  858       AccessTy.AddrSpace = OperandVal->getType()->getPointerAddressSpace();
  859       AccessTy.MemTy = OperandVal->getType();
  865           = IntrInfo.PtrVal->getType()->getPointerAddressSpace();
  885     if (SE.isSCEVable(PN.getType()) &&
  886         (SE.getEffectiveSCEVType(PN.getType()) ==
  947               SE.isSCEVable(UI->getType())) {
 1490   } else if (UserInst->getType()->isVoidTy())
 2121     Type *SrcTy = PH->getType();
 2722       if (!SE.isSCEVable(Oper->getType()))
 2745   Type *LType = LVal->getType();
 2746   Type *RType = RVal->getType();
 3002     if (SE.isSCEVable(OtherUse->getType())
 3059       if (SE.isSCEVable(I.getType()) && !isa<SCEVUnknown>(SE.getSCEV(&I)))
 3081     if (!SE.isSCEVable(PN.getType()))
 3173   Type *IVTy = IVSrc->getType();
 3201         assert(IVTy == IVOper->getType() && "inconsistent IV increment type");
 3206     Type *OperTy = Inc.IVOperand->getType();
 3227       Type *PostIncTy = PostIncV->getType();
 3322         SE.getTypeSizeInBits(LF.OperandValToReplace->getType()))
 3323       LU.WidestFixupType = LF.OperandValToReplace->getType();
 3439         if (SE.isSCEVable(UserInst->getType())) {
 3470             SE.getTypeSizeInBits(LF.OperandValToReplace->getType()))
 3471           LU.WidestFixupType = LF.OperandValToReplace->getType();
 5144   Type *OpTy = LF.OperandValToReplace->getType();
 5274       if (ICmpScaledV->getType() != OpTy) {
 5290       if (C->getType() != OpTy)
 5365         Type *OpTy = LF.OperandValToReplace->getType();
 5366         if (FullV->getType() != OpTy)
 5370                              FullV, LF.OperandValToReplace->getType(),
 5432     Type *OpTy = LF.OperandValToReplace->getType();
 5433     if (FullV->getType() != OpTy) {
lib/Transforms/Scalar/LoopUnswitch.cpp
  433   if (Cond->getType()->isVectorTy())
  767           auto *AllZero = cast<ConstantInt>(Constant::getNullValue(SC->getType()));
  775           auto *AllOne = cast<ConstantInt>(Constant::getAllOnesValue(SC->getType()));
  944       Val->getType() != Type::getInt1Ty(LIC->getContext()))
 1328       PHINode *PN = PHINode::Create(LPad->getType(), 0, "",
 1462       Val->getType()->isIntegerTy(1))) {
 1562       PN.setIncomingValueForBlock(Switch, UndefValue::get(PN.getType()));
lib/Transforms/Scalar/LoopVersioningLICM.cpp
  298       TypeCheck = (TypeCheck && (SomePtr->getType() == Ptr->getType()));
  298       TypeCheck = (TypeCheck && (SomePtr->getType() == Ptr->getType()));
lib/Transforms/Scalar/LowerAtomic.cpp
   29   LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr);
   34   Res = Builder.CreateInsertValue(UndefValue::get(CXI->getType()), Orig, 0);
   47   LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr);
lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
   45   return isa<Constant>(Op) ? ConstantInt::getTrue(II->getType())
   46                            : ConstantInt::getFalse(II->getType());
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  152         Result = Result.zext(Op->getType()->getIntegerBitWidth());
  155         Result = Result.sext(Op->getType()->getIntegerBitWidth());
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  173     int64_t StoreSize = DL.getTypeStoreSize(SI->getOperand(0)->getType());
  393         cast<PointerType>(StartPtr->getType())->getElementType();
  422     StoreAlign = DL.getABITypeAlignment(SI->getOperand(0)->getType());
  429     LoadAlign = DL.getABITypeAlignment(LI->getType());
  553       auto *T = LI->getType();
  651             DL.getTypeStoreSize(SI->getOperand(0)->getType()),
  682     auto *T = V->getType();
  789       Type *StructTy = cast<PointerType>(A->getType())->getElementType();
  872   if (cpySrc->getType()->getPointerAddressSpace() !=
  873       cpyDest->getType()->getPointerAddressSpace())
  877         cpySrc->getType()->getPointerAddressSpace() !=
  878         CS.getArgument(i)->getType()->getPointerAddressSpace())
  885       Value *Dest = cpySrc->getType() == cpyDest->getType() ?  cpyDest
  885       Value *Dest = cpySrc->getType() == cpyDest->getType() ?  cpyDest
  886         : CastInst::CreatePointerCast(cpyDest, cpySrc->getType(),
  889       if (CS.getArgument(i)->getType() == Dest->getType())
  889       if (CS.getArgument(i)->getType() == Dest->getType())
  893                           CS.getArgument(i)->getType(), Dest->getName(), C));
 1045   if (DestSize->getType() != SrcSize->getType()) {
 1045   if (DestSize->getType() != SrcSize->getType()) {
 1046     if (DestSize->getType()->getIntegerBitWidth() >
 1047         SrcSize->getType()->getIntegerBitWidth())
 1048       SrcSize = Builder.CreateZExt(SrcSize, DestSize->getType());
 1050       DestSize = Builder.CreateZExt(DestSize, SrcSize->getType());
 1056       Ule, ConstantInt::getNullValue(DestSize->getType()), SizeDiff);
 1058       Builder.CreateGEP(Dest->getType()->getPointerElementType(), Dest,
 1243   Type *ArgTys[3] = { M->getRawDest()->getType(),
 1244                       M->getRawSource()->getType(),
 1245                       M->getLength()->getType() };
 1262   Type *ByValTy = cast<PointerType>(ByValArg->getType())->getElementType();
 1298   if (MDep->getSource()->getType()->getPointerAddressSpace() !=
 1299       ByValArg->getType()->getPointerAddressSpace())
 1318   if (MDep->getSource()->getType() != ByValArg->getType())
 1318   if (MDep->getSource()->getType() != ByValArg->getType())
 1319     TmpCast = new BitCastInst(MDep->getSource(), ByValArg->getType(),
lib/Transforms/Scalar/MergeICmps.cpp
  165   if (!isDereferenceablePointer(GEP, LoadI->getType(), DL)) {
  171   APInt Offset = APInt(DL.getPointerTypeSizeInBits(GEP->getType()), 0);
  347                      DL.getTypeSizeInBits(CmpI->getOperand(0)->getType()));
  629         Builder.CreateLoad(FirstCmp.Lhs().LoadI->getType(), Lhs);
  631         Builder.CreateLoad(FirstCmp.Rhs().LoadI->getType(), Rhs);
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  217   auto *NewPN = PHINode::Create(Opd1->getType(), 2, Opd2->getName() + ".sink",
lib/Transforms/Scalar/NaryReassociate.cpp
  236       if (SE->isSCEVable(I->getType()) && isPotentiallyNaryReassociable(&*I)) {
  326       DL->getPointerSizeInBits(GEP->getType()->getPointerAddressSpace());
  327   return cast<IntegerType>(Index->getType())->getBitWidth() < PointerSizeInBits;
  377       DL->getTypeSizeInBits(LHS->getType()) <
  378           DL->getTypeSizeInBits(GEP->getOperand(I)->getType())) {
  384         SE->getZeroExtendExpr(IndexExprs[I], GEP->getOperand(I)->getType());
  397   Candidate = Builder.CreateBitOrPointerCast(Candidate, GEP->getType());
  398   assert(Candidate->getType() == GEP->getType());
  398   assert(Candidate->getType() == GEP->getType());
  422   Type *IntPtrTy = DL->getIntPtrType(GEP->getType());
  423   if (RHS->getType() != IntPtrTy)
lib/Transforms/Scalar/NewGVN.cpp
  990   E->setType(PHIOperands.begin()->first->getType());
 1022     E->setType(I->getType());
 1148     assert(I->getOperand(0)->getType() == I->getOperand(1)->getType() &&
 1148     assert(I->getOperand(0)->getType() == I->getOperand(1)->getType() &&
 1150     assert((E->getOperand(0)->getType() == I->getOperand(0)->getType() &&
 1150     assert((E->getOperand(0)->getType() == I->getOperand(0)->getType() &&
 1151             E->getOperand(1)->getType() == I->getOperand(1)->getType()));
 1151             E->getOperand(1)->getType() == I->getOperand(1)->getType()));
 1159       assert(E->getOperand(1)->getType() == I->getOperand(1)->getType() &&
 1159       assert(E->getOperand(1)->getType() == I->getOperand(1)->getType() &&
 1160              E->getOperand(2)->getType() == I->getOperand(2)->getType());
 1160              E->getOperand(2)->getType() == I->getOperand(2)->getType());
 1173         SimplifyCastInst(CI->getOpcode(), E->getOperand(0), CI->getType(), SQ);
 1303       return UndefValue::get(V->getType());
 1351   E->setType(SI->getValueOperand()->getType());
 1424         LoadType == DepSI->getValueOperand()->getType())
 1501     return createConstantExpression(UndefValue::get(LI->getType()));
 1511         return createConstantExpression(UndefValue::get(LI->getType()));
 1517               performSymbolicLoadCoercion(LI->getType(), LoadAddressLeader, LI,
 1523   const auto *LE = createLoadExpression(LI->getType(), LoadAddressLeader, LI,
 1553       return createConstantExpression(ConstantInt::getTrue(Cond->getType()));
 1556         return createConstantExpression(ConstantInt::getTrue(Cond->getType()));
 1557       return createConstantExpression(ConstantInt::getFalse(Cond->getType()));
 1769       return createConstantExpression(UndefValue::get(I->getType()));
 1827       return createBinaryExpression(WO->getBinaryOp(), EI->getType(),
 1854     return createConstantExpression(ConstantInt::getTrue(CI->getType()));
 1859       return createConstantExpression(ConstantInt::getTrue(CI->getType()));
 1861       return createConstantExpression(ConstantInt::getFalse(CI->getType()));
 1922                 ConstantInt::getTrue(CI->getType()));
 1929                 ConstantInt::getFalse(CI->getType()));
 1938                 ConstantInt::getFalse(CI->getType()));
 1944                 ConstantInt::getTrue(CI->getType()));
 2805       FoundVal = UndefValue::get(I->getType());
 2828         PHINode::Create(I->getType(), OpPHI->getNumOperands(), "phiofops");
 2905       if (I.isTerminator() && I.getType()->isVoidTy())
 3110     if (!I->getType()->isVoidTy()) {
 3474       ToErase->replaceAllUsesWith(UndefValue::get(ToErase->getType()));
 3692       Inst.replaceAllUsesWith(UndefValue::get(Inst.getType()));
 3842         Operand.set(UndefValue::get(PHI->getType()));
 3908             Member->getType()->isVoidTy()) {
 3942           if (Def && Def->getType()->isVoidTy())
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
   57   Type *Ty = Call->getType();
  118         if (TTI->haveFastSqrt(Call->getType()) &&
lib/Transforms/Scalar/Reassociate.cpp
   78        << *Ops[0].Op->getType() << '\t';
  141   ConstPart = APInt::getNullValue(V->getType()->getScalarSizeInBits());
  234   if (S1->getType()->isIntOrIntVectorTy())
  246   if (S1->getType()->isIntOrIntVectorTy())
  258   if (S1->getType()->isIntOrIntVectorTy())
  273   Type *Ty = Neg->getType();
  456   unsigned Bitwidth = I->getType()->getScalarType()->getPrimitiveSizeInBits();
  624     Constant *Identity = ConstantExpr::getBinOpIdentity(Opcode, I->getType());
  759       Constant *Undef = UndefValue::get(I->getType());
  762       if (NewOp->getType()->isFPOrFPVectorTy())
  818     return C->getType()->isFPOrFPVectorTy() ? ConstantExpr::getFNeg(C) :
  961   Sub->setOperand(0, Constant::getNullValue(Sub->getType())); // Drop use of op.
  962   Sub->setOperand(1, Constant::getNullValue(Sub->getType())); // Drop use of op.
  976   Constant *MulCst = ConstantInt::get(Shl->getType(), 1);
  981   Shl->setOperand(0, UndefValue::get(Shl->getType())); // Drop use of op.
 1143           return Constant::getNullValue(X->getType());
 1146           return Constant::getAllOnesValue(X->getType());
 1165         return Constant::getNullValue(Ops[0].Op->getType());
 1190       Opnd, ConstantInt::get(Opnd->getType(), ConstOpnd), "and.ra",
 1321   Type *Ty = Ops[0].Op->getType();
 1459       Type *Ty = TheOp->getType();
 1496       return Constant::getNullValue(X->getType());
 1500       return Constant::getAllOnesValue(X->getType());
 1514       Value *V = Constant::getAllOnesValue(X->getType());
 1597         I->getType()->isIntOrIntVectorTy()
 1730     if (LHS->getType()->isIntOrIntVectorTy())
 1850   if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) {
 1851     if (Cst == ConstantExpr::getBinOpAbsorber(Opcode, I->getType()))
 2017       Negatible->setOperand(0, ConstantFP::get(Negatible->getType(), abs(*C)));
 2024       Negatible->setOperand(1, ConstantFP::get(Negatible->getType(), abs(*C)));
 2100   if (I->getType()->isFPOrFPVectorTy() && !I->isFast())
 2109   if (I->getType()->isIntegerTy(1))
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  445     return BaseDefiningValueResult(ConstantAggregateZero::get(I->getType()),
  493   assert(I->getType()->isPtrOrPtrVectorTy() &&
  496   if (I->getType()->isVectorTy())
  516         ConstantPointerNull::get(cast<PointerType>(I->getType())), true);
  523     assert(cast<PointerType>(Def->getType())->getAddressSpace() ==
  524                cast<PointerType>(CI->getType())->getAddressSpace() &&
  941         isa<VectorType>(State.getBaseValue()->getType())) {
  968         return PHINode::Create(I->getType(), NumPreds, Name, I);
  971         UndefValue *Undef = UndefValue::get(SI->getType());
  975         UndefValue *Undef = UndefValue::get(EE->getVectorOperand()->getType());
  980         UndefValue *VecUndef = UndefValue::get(IE->getOperand(0)->getType());
  981         UndefValue *ScalarUndef = UndefValue::get(IE->getOperand(1)->getType());
  987         UndefValue *VecUndef = UndefValue::get(SV->getOperand(0)->getType());
 1019     if (Base->getType() != Input->getType() && InsertPt)
 1019     if (Base->getType() != Input->getType() && InsertPt)
 1020       Base = new BitCastInst(Base, Input->getType(), "cast", InsertPt);
 1313     Type *Ty = LiveVariables[i]->getType();
 1470         DomainTy.push_back(Arg->getType());
 1568     if (!Call->getType()->isVoidTy() && !Call->use_empty()) {
 1570       CallInst *GCResult = Builder.CreateGCResult(Token, Call->getType(), Name);
 1709     AllocaInst *Alloca = new AllocaInst(LiveValue->getType(),
 1967       Type *SrcTy = CI->getOperand(0)->getType();
 1968       Cost += TTI.getCastInstrCost(CI->getOpcode(), CI->getType(), SrcTy, CI);
 2208       assert(!isUnhandledGCPointerType(Arg->getType()) &&
 2210       if (isHandledGCPointerType(Arg->getType()))
 2373     assert(isHandledGCPointerType(Ptr->getType()) &&
 2403     if (isa<PointerType>(A.getType()))
 2475         if (isa<PointerType>(Call->getArgOperand(i)->getType()))
 2478       if (isa<PointerType>(Call->getType()))
 2485     II->replaceAllUsesWith(UndefValue::get(II->getType()));
 2610       if (I.getOperand(i)->getType()->isVectorTy()) {
 2612                VF == I.getOperand(i)->getType()->getVectorNumElements());
 2613         VF = I.getOperand(i)->getType()->getVectorNumElements();
 2618     if (!I.getOperand(0)->getType()->isVectorTy() && VF != 0) {
 2652       assert(!isUnhandledGCPointerType(V->getType()) &&
 2654       if (isHandledGCPointerType(V->getType()) && !isa<Constant>(V)) {
 2679       assert(!isUnhandledGCPointerType(V->getType()) &&
 2681       if (isHandledGCPointerType(V->getType()) && !isa<Constant>(V))
 2690     if (isHandledGCPointerType(I.getType()))
lib/Transforms/Scalar/SCCP.cpp
  356     auto *STy = dyn_cast<StructType>(V->getType());
  367     assert(!V->getType()->isStructTy() &&
  401     if (auto *STy = dyn_cast<StructType>(V->getType()))
  441     assert(!V->getType()->isStructTy() && "structs should use mergeInValue");
  446     assert(!V->getType()->isStructTy() && "structs should use mergeInValue");
  481     assert(!V->getType()->isStructTy() &&
  490     assert(!V->getType()->isStructTy() && "Should use getStructValueState");
  510     assert(!V->getType()->isStructTy() && "Should use getStructValueState");
  525     assert(V->getType()->isStructTy() && "Should use getValueState");
  526     assert(i < cast<StructType>(V->getType())->getNumElements() &&
  784   if (PN.getType()->isStructTy())
  841   if (!TrackedRetVals.empty() && !ResultOp->getType()->isStructTy()) {
  852     if (auto *STy = dyn_cast<StructType>(ResultOp->getType()))
  879                                           I.getType(), DL);
  890   if (EVI.getType()->isStructTy())
  898   if (AggVal->getType()->isStructTy()) {
  909   auto *STy = dyn_cast<StructType>(IVI.getType());
  931     if (Val->getType()->isStructTy())
  944   if (I.getType()->isStructTy())
 1082   Constant *C = V1State.getCompare(I.getPredicate(), I.getType(), V2State);
 1131   if (SI.getOperand(0)->getType()->isStructTy())
 1151   if (I.getType()->isStructTy())
 1187   if (Constant *C = ConstantFoldLoadFromConstPtr(Ptr, I.getType(), DL)) {
 1267     if (I->getType()->isVoidTy()) return;
 1271     if (F && F->isDeclaration() && !I->getType()->isStructTy() &&
 1276         if (AI->get()->getType()->isStructTy())
 1323       if (auto *STy = dyn_cast<StructType>(AI->getType())) {
 1399       if (I->getType()->isStructTy() || !getValueState(I).isOverdefined())
 1442       if (I.getType()->isVoidTy()) continue;
 1444       if (auto *STy = dyn_cast<StructType>(I.getType())) {
 1495       if (I.getOperand(0)->getType()->isStructTy()) {
 1502         if (I.getOperand(1)->getType()->isStructTy()) {
 1511       Type *ITy = I.getType();
 1754   if (V->getType()->isStructTy()) {
 1760     auto *ST = cast<StructType>(V->getType());
 1773     Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(V->getType());
 1844       if (Inst->getType()->isVoidTy() || Inst->isTerminator())
 1946                if (U->getType()->isStructTy()) {
 2096         if (Inst->getType()->isVoidTy())
lib/Transforms/Scalar/SROA.cpp
  780     assert((!LI.isSimple() || LI.getType()->isSingleValueType()) &&
  790     uint64_t Size = DL.getTypeStoreSize(LI.getType());
  791     return handleLoadOrStore(LI.getType(), LI, Offset, Size, LI.isVolatile());
  805     uint64_t Size = DL.getTypeStoreSize(ValOp->getType());
  823     assert((!SI.isSimple() || ValOp->getType()->isSingleValueType()) &&
  825     handleLoadOrStore(ValOp->getType(), SI, Offset, Size, SI.isVolatile());
  963                         DL.getTypeStoreSize(LI->getType()).getFixedSize());
  971                         DL.getTypeStoreSize(Op->getType()).getFixedSize());
 1145       UserTy = LI->getType();
 1147       UserTy = SI->getValueOperand()->getType();
 1203   uint64_t APWidth = DL.getIndexTypeSizeInBits(PN.getType());
 1223     uint64_t Size = DL.getTypeStoreSize(LI->getType());
 1266   Type *LoadTy = SomeLoad->getType();
 1343     if (!isSafeToLoadUnconditionally(TValue, LI->getType(),
 1346     if (!isSafeToLoadUnconditionally(FValue, LI->getType(),
 1366     LoadInst *TL = IRB.CreateLoad(LI->getType(), TV,
 1368     LoadInst *FL = IRB.CreateLoad(LI->getType(), FV,
 1407   return IRB.CreateInBoundsGEP(BasePtr->getType()->getPointerElementType(),
 1428   unsigned OffsetSize = DL.getIndexTypeSizeInBits(BasePtr->getType());
 1542   PointerType *Ty = cast<PointerType>(Ptr->getType());
 1603   auto AS = cast<PointerType>(Ptr->getType())->getAddressSpace();
 1633       if (P->getType() == PointerTy)
 1638     if (Ptr->getType()->isIntegerTy(8)) {
 1653     assert(Ptr->getType()->isPointerTy() && "Unexpected operand type!");
 1673   if (cast<PointerType>(Ptr->getType()) != TargetPtrTy) {
 1689     Ty = LI->getType();
 1692     Ty = SI->getValueOperand()->getType();
 1762   Type *OldTy = V->getType();
 1846   } else if (U->get()->getType()->getPointerElementType()->isStructTy()) {
 1852     Type *LTy = LI->getType();
 1862     Type *STy = SI->getValueOperand()->getType();
 1913         CheckCandidateType(LI->getType());
 1915         CheckCandidateType(SI->getValueOperand()->getType());
 2022     if (DL.getTypeStoreSize(LI->getType()) > Size)
 2031     if (!isa<VectorType>(LI->getType()) && RelBegin == 0 && RelEnd == Size)
 2033     if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) {
 2037                !canConvertValue(DL, AllocaTy, LI->getType())) {
 2043     Type *ValueTy = SI->getValueOperand()->getType();
 2134   IntegerType *IntTy = cast<IntegerType>(V->getType());
 2155   IntegerType *IntTy = cast<IntegerType>(Old->getType());
 2156   IntegerType *Ty = cast<IntegerType>(V->getType());
 2186   VectorType *VecTy = cast<VectorType>(V->getType());
 2204   V = IRB.CreateShuffleVector(V, UndefValue::get(V->getType()),
 2212   VectorType *VecTy = cast<VectorType>(Old->getType());
 2215   VectorType *Ty = dyn_cast<VectorType>(V->getType());
 2227     assert(V->getType() == VecTy && "Vector type mismatch");
 2243   V = IRB.CreateShuffleVector(V, UndefValue::get(V->getType()),
 2486     assert(cast<IntegerType>(LI.getType())->getBitWidth() >= SliceSize * 8 &&
 2488     if (cast<IntegerType>(LI.getType())->getBitWidth() > SliceSize * 8)
 2489       V = IRB.CreateZExt(V, LI.getType());
 2504                              : LI.getType();
 2510     } else if (IntTy && LI.getType()->isIntegerTy()) {
 2569       assert(LI.getType()->isIntegerTy() &&
 2571       assert(SliceSize < DL.getTypeStoreSize(LI.getType()) &&
 2573       assert(DL.typeSizeEqualsStoreSize(LI.getType()) &&
 2582           LI.getType(), UndefValue::get(LI.getType()->getPointerTo(AS)));
 2582           LI.getType(), UndefValue::get(LI.getType()->getPointerTo(AS)));
 2600     if (V->getType() != VecTy) {
 2609       if (V->getType() != SliceTy)
 2629     if (DL.getTypeSizeInBits(V->getType()) != IntTy->getBitWidth()) {
 2660     if (V->getType()->isPointerTy())
 2664     if (SliceSize < DL.getTypeStoreSize(V->getType())) {
 2666       assert(V->getType()->isIntegerTy() &&
 2668       assert(DL.typeSizeEqualsStoreSize(V->getType()) &&
 2677     if (IntTy && V->getType()->isIntegerTy())
 2680     const bool IsStorePastEnd = DL.getTypeStoreSize(V->getType()) > SliceSize;
 2684         (canConvertValue(DL, V->getType(), NewAllocaTy) ||
 2686           V->getType()->isIntegerTy()))) {
 2690       if (auto *VITy = dyn_cast<IntegerType>(V->getType()))
 2704       Value *NewPtr = getNewAllocaSlicePtr(IRB, V->getType()->getPointerTo(AS));
 2705       NewSI = IRB.CreateAlignedStore(V, NewPtr, getSliceAlign(V->getType()),
 2732     IntegerType *VTy = cast<IntegerType>(V->getType());
 2742             ConstantExpr::getZExt(Constant::getAllOnesValue(V->getType()),
 2767       II.setDest(getNewAllocaSlicePtr(IRB, OldPtr->getType()));
 2799       Type *SizeTy = II.getLength()->getType();
 2802           getNewAllocaSlicePtr(IRB, OldPtr->getType()), II.getValue(), Size,
 2852         assert(V->getType() == IntTy &&
 2899       Value *AdjustedPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType());
 2936         II.setLength(ConstantInt::get(II.getLength()->getType(),
 2953     Type *OtherPtrTy = OtherPtr->getType();
 2970       Value *OurPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType());
 2971       Type *SizeTy = II.getLength()->getType();
 3090         ConstantInt::get(cast<IntegerType>(II.getArgOperand(0)->getType()),
 3094     Type *PointerTy = IRB.getInt8PtrTy(OldPtr->getType()->getPointerAddressSpace());
 3122           LoadAlign = DL.getABITypeAlignment(LI->getType());
 3130           StoreAlign = DL.getABITypeAlignment(Op->getType());
 3161     Value *NewPtr = getNewAllocaSlicePtr(PtrBuilder, OldPtr->getType());
 3185     Value *NewPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType());
 3373     if (!LI.isSimple() || LI.getType()->isSingleValueType())
 3380     LoadOpSplitter Splitter(&LI, *U, LI.getType(), AATags,
 3382     Value *V = UndefValue::get(LI.getType());
 3383     Splitter.emitSplitOps(LI.getType(), V, LI.getName() + ".fca");
 3420     if (V->getType()->isSingleValueType())
 3427     StoreOpSplitter Splitter(&SI, *U, V->getType(), AATags,
 3429     Splitter.emitSplitOps(V->getType(), V, V->getName() + ".fca");
 3839     IntegerType *Ty = cast<IntegerType>(LI->getType());
 3916             PLoad->getType()->getPointerTo(SI->getPointerAddressSpace());
 3962     IntegerType *Ty = cast<IntegerType>(LI->getType());
 4418   U = UndefValue::get(OldV->getType());
 4470     DeadUser->replaceAllUsesWith(UndefValue::get(DeadUser->getType()));
 4523     I->replaceAllUsesWith(UndefValue::get(I->getType()));
lib/Transforms/Scalar/Scalarizer.cpp
  241   Type *Ty = V->getType();
  325       if (Done && I->getType()->isVoidTy())
  362     Op->setOperand(I, UndefValue::get(Op->getOperand(I)->getType()));
  442   VectorType *VT = dyn_cast<VectorType>(I.getType());
  462   VectorType *VT = dyn_cast<VectorType>(I.getType());
  495   VectorType *VT = dyn_cast<VectorType>(CI.getType());
  519     if (OpI->getType()->isVectorTy()) {
  553   VectorType *VT = dyn_cast<VectorType>(SI.getType());
  566   if (SI.getOperand(0)->getType()->isVectorTy()) {
  599   VectorType *VT = dyn_cast<VectorType>(GEPI.getType());
  610   if (!Op0->getType()->isVectorTy())
  621     if (!Op->getType()->isVectorTy())
  742   VectorType *VT = dyn_cast<VectorType>(PHI.getType());
  773   if (!getVectorLayout(LI.getType(), LI.getAlignment(), Layout,
  799   if (!getVectorLayout(FullValue->getType(), SI.getAlignment(), Layout,
  835       Type *Ty = Op->getType();
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  575   unsigned BitWidth = cast<IntegerType>(V->getType())->getBitWidth();
  622       Current = ConstantExpr::getCast((*I)->getOpcode(), C, (*I)->getType());
  686     return ConstantInt::getNullValue(UserChain[ChainIndex]->getType());
  765   Type *IntPtrTy = DL->getIntPtrType(GEP->getType());
  771       if ((*I)->getType() != IntPtrTy) {
  816   Type *IntPtrTy = DL->getIntPtrType(Variadic->getType());
  819       Builder.getInt8PtrTy(Variadic->getType()->getPointerAddressSpace());
  828   if (ResultPtr->getType() != I8PtrTy)
  877   if (ResultPtr->getType() != Variadic->getType())
  877   if (ResultPtr->getType() != Variadic->getType())
  878     ResultPtr = Builder.CreateBitCast(ResultPtr, Variadic->getType());
  888   Type *IntPtrTy = DL->getIntPtrType(Variadic->getType());
  925   ResultPtr = Builder.CreateIntToPtr(ResultPtr, Variadic->getType());
  932   if (GEP->getType()->isVectorTy())
 1068   Type *IntPtrTy = DL->getIntPtrType(GEP->getType());
 1104     if (GEP->getType() != I8PtrTy)
 1105       NewGEP = new BitCastInst(NewGEP, GEP->getType(), GEP->getName(), GEP);
 1163   if (!SE->isSCEVable(I->getType()))
 1173     if (LHS->getType() == RHS->getType()) {
 1173     if (LHS->getType() == RHS->getType()) {
 1177         Instruction *NewSExt = new SExtInst(Dom, I->getType(), "", I);
 1249   if (FirstBase->getType() != SecondBase->getType())
 1249   if (FirstBase->getType() != SecondBase->getType())
 1301                    cast<PointerType>(First->getType())->getAddressSpace()),
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  228     auto *NewPN = PHINode::Create(PN.getType(), /*NumReservedValues*/ 2,
 1053           PHINode::Create(I.getType(), /*NumReservedValues*/ 2, ".us-phi",
 2640       if (I.getType()->isTokenTy() && I.isUsedOutsideOfBlock(BB))
lib/Transforms/Scalar/SimplifyCFGPass.cpp
  125       RetBlockPHI = PHINode::Create(Ret->getOperand(0)->getType(),
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  675         assert(SpeculatedVals[PredIdx]->getType() == OpI->getType() &&
  675         assert(SpeculatedVals[PredIdx]->getType() == OpI->getType() &&
  704       auto *SpecIPN = IRB.CreatePHI(OrigI->getType(), SpecPreds.size(),
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  264           Basis.Ins->getType() == C.Ins->getType() &&
  264           Basis.Ins->getType() == C.Ins->getType() &&
  389   if (!isa<IntegerType>(I->getType()))
  413     ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1);
  447     ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0);
  457   if (!isa<IntegerType>(I->getType()))
  476   IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType()));
  488       Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1),
  520   if (GEP->getType()->isVectorTy())
  540     if (ArrayIdx->getType()->getIntegerBitWidth() <=
  551         TruncatedArrayIdx->getType()->getIntegerBitWidth() <=
  667       Type *IntPtrTy = DL->getIntPtrType(C.Ins->getType());
  671         unsigned AS = Basis.Ins->getType()->getPointerAddressSpace();
  679         Reduced = Builder.CreateBitCast(Reduced, C.Ins->getType());
lib/Transforms/Scalar/StructurizeCFG.cpp
  596     Value *Undef = UndefValue::get(Phi.getType());
  616       Value *Undef = UndefValue::get(Phi->getType());
  617       Updater.Initialize(Phi->getType(), "");
  928           Value *Undef = UndefValue::get(I.getType());
  929           Updater.Initialize(I.getType(), "");
lib/Transforms/Scalar/TailRecursionElimination.cpp
  343           !isSafeToLoadUnconditionally(L->getPointerOperand(), L->getType(),
  596       PHINode *PN = PHINode::Create(I->getType(), 2,
  633         AccumulatorRecursionEliminationInitVal->getType(),
lib/Transforms/Utils/BasicBlockUtils.cpp
   77         I.replaceAllUsesWith(UndefValue::get(I.getType()));
  147       PN->replaceAllUsesWith(UndefValue::get(PN->getType()));
  576         PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI);
  647       cast<PHINode>(I)->addIncoming(UndefValue::get(I->getType()), NewBB);
  750       assert(!LPad->getType()->isTokenTy() &&
  753       PHINode *PN = PHINode::Create(LPad->getType(), 2, "lpad.phi", LPad);
lib/Transforms/Utils/BreakCriticalEdges.cpp
  126         PN.getType(), Preds.size(), "split",
  454       PHINode *NewIndPHI = PHINode::Create(IndPHI->getType(), 1, "ind", IndPHI);
  461           PHINode::Create(IndPHI->getType(), 2, "merge", &*MergeInsert);
lib/Transforms/Utils/BuildLibCalls.cpp
  823   unsigned AS = V->getType()->getPointerAddressSpace();
  894   return emitLibCall(LibFunc_strncpy, I8Ptr, {I8Ptr, I8Ptr, Len->getType()},
  901   return emitLibCall(LibFunc_stpncpy, I8Ptr, {I8Ptr, I8Ptr, Len->getType()},
  960       {B.getInt8PtrTy(), B.getInt8PtrTy(), B.getInt32Ty(), Len->getType()},
  970                      {B.getInt8PtrTy(), Size->getType(), B.getInt8PtrTy()},
  993   return emitLibCall(LibFunc_strlcpy, Size->getType(),
  994                      {B.getInt8PtrTy(), B.getInt8PtrTy(), Size->getType()},
 1000   return emitLibCall(LibFunc_strlcat, Size->getType(),
 1001                      {B.getInt8PtrTy(), B.getInt8PtrTy(), Size->getType()},
 1008                      {B.getInt8PtrTy(), B.getInt8PtrTy(), Size->getType()},
 1016       {B.getInt8PtrTy(), Size->getType(), B.getInt8PtrTy(), VAList->getType()},
 1016       {B.getInt8PtrTy(), Size->getType(), B.getInt8PtrTy(), VAList->getType()},
 1023                      {B.getInt8PtrTy(), B.getInt8PtrTy(), VAList->getType()},
 1030   if (!Op->getType()->isDoubleTy()) {
 1033     if (Op->getType()->isFloatTy())
 1049       M->getOrInsertFunction(Name, Op->getType(), Op->getType());
 1049       M->getOrInsertFunction(Name, Op->getType(), Op->getType());
 1078   StringRef Name = getFloatFnName(TLI, Op->getType(),
 1090   FunctionCallee Callee = M->getOrInsertFunction(Name, Op1->getType(),
 1091                                                  Op1->getType(), Op2->getType());
 1091                                                  Op1->getType(), Op2->getType());
 1123   StringRef Name = getFloatFnName(TLI, Op1->getType(),
 1177                                             B.getInt32Ty(), File->getType());
 1178   if (File->getType()->isPointerTy())
 1198                                             B.getInt32Ty(), File->getType());
 1199   if (File->getType()->isPointerTy())
 1218                                             B.getInt8PtrTy(), File->getType());
 1219   if (File->getType()->isPointerTy())
 1237                                             B.getInt8PtrTy(), File->getType());
 1238   if (File->getType()->isPointerTy())
 1258       DL.getIntPtrType(Context), DL.getIntPtrType(Context), File->getType());
 1260   if (File->getType()->isPointerTy())
 1324       DL.getIntPtrType(Context), DL.getIntPtrType(Context), File->getType());
 1326   if (File->getType()->isPointerTy())
 1344                                             File->getType());
 1345   if (File->getType()->isPointerTy())
 1364                              B.getInt8PtrTy(), B.getInt32Ty(), File->getType());
 1386       DL.getIntPtrType(Context), DL.getIntPtrType(Context), File->getType());
 1388   if (File->getType()->isPointerTy())
lib/Transforms/Utils/BypassSlowDivision.cpp
  102   Type *getSlowType() { return SlowDivOrRem->getType(); }
  127   IntegerType *SlowType = dyn_cast<IntegerType>(SlowDivOrRem->getType());
  234   unsigned LongLen = V->getType()->getIntegerBitWidth();
lib/Transforms/Utils/CallPromotionUtils.cpp
  107   if (OrigInst->getType()->isVoidTy() || OrigInst->use_empty())
  111   PHINode *Phi = Builder.CreatePHI(OrigInst->getType(), 0);
  265   if (CS.getCalledValue()->getType() != Callee->getType())
  265   if (CS.getCalledValue()->getType() != Callee->getType())
  266     Callee = Builder.CreateBitCast(Callee, CS.getCalledValue()->getType());
  327   Type *CallRetTy = CS.getInstruction()->getType();
  352     Type *ActualTy = CS.getArgument(I)->getType();
  385   Type *CallSiteRetTy = CS.getInstruction()->getType();
  406     Type *ActualTy = Arg->getType();
lib/Transforms/Utils/CloneFunction.cpp
  246       ArgTypes.push_back(I.getType());
  590         Value *NV = UndefValue::get(PN->getType());
lib/Transforms/Utils/CodeExtractor.cpp
  676       PHINode *NewPN = PHINode::Create(PN->getType(), 1 + NumPredsFromRegion,
  733           PHINode::Create(PN.getType(), IncomingVals.size(),
  789     paramTy.push_back(value->getType());
  796       paramTy.push_back(output->getType());
  798       paramTy.push_back(PointerType::getUnqual(output->getType()));
 1029         if (Mem->getType() == Int8PtrTy)
 1093         new AllocaInst(output->getType(), DL.getAllocaAddrSpace(),
 1107       ArgTypes.push_back((*v)->getType());
 1166     LoadInst *load = new LoadInst(outputs[i]->getType(), Output,
 1286     } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) {
lib/Transforms/Utils/CtorUtils.cpp
   41   if (CA->getType() == OldCA->getType()) {
   48       new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(),
   56     if (V->getType() != GCL->getType())
lib/Transforms/Utils/DemoteRegToStack.cpp
   36     Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr,
   39     Slot = new AllocaInst(I.getType(), DL.getAllocaAddrSpace(), nullptr,
   75             V = new LoadInst(I.getType(), Slot, I.getName() + ".reload",
   84       Value *V = new LoadInst(I.getType(), Slot, I.getName() + ".reload",
  121     Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr,
  125     Slot = new AllocaInst(P->getType(), DL.getAllocaAddrSpace(), nullptr,
  147       new LoadInst(P->getType(), Slot, P->getName() + ".reload", &*InsertPt);
lib/Transforms/Utils/Evaluator.cpp
   94     if (DL.getTypeSizeInBits(CE->getType()) !=
   95         DL.getTypeSizeInBits(CE->getOperand(0)->getType()))
  134   if (!cast<PointerType>(C->getType())->getElementType()->isSingleValueType())
  190     Type *Ty = cast<PointerType>(Ptr->getType())->getElementType();
  250             Val, P->getType()->getPointerElementType(), DL);
  281       ConstantFoldLoadThroughBitcast(CE, CE->getOperand(0)->getType(), DL));
  317           dyn_cast<FunctionType>(CE->getType()->getPointerElementType())) {
  376             Type *Ty = cast<PointerType>(P->getType())->getElementType();
  413                                          CI->getType());
lib/Transforms/Utils/FunctionComparator.cpp
  202   Type *TyL = L->getType();
  203   Type *TyR = R->getType();
  520   if (int Res = cmpTypes(L->getType(), R->getType()))
  520   if (int Res = cmpTypes(L->getType(), R->getType()))
  531             cmpTypes(L->getOperand(i)->getType(), R->getOperand(i)->getType()))
  531             cmpTypes(L->getOperand(i)->getType(), R->getOperand(i)->getType()))
  780         assert(cmpTypes(OpL->getType(), OpR->getType()) == 0);
  780         assert(cmpTypes(OpL->getType(), OpR->getType()) == 0);
lib/Transforms/Utils/GlobalStatus.cpp
   74       if (!isa<PointerType>(CE->getType()))
lib/Transforms/Utils/InlineFunction.cpp
  181     PHINode *InnerPHI = PHINode::Create(OuterPHI->getType(), PHICapacity,
  189   InnerEHValuesPHI = PHINode::Create(CallerLPad->getType(), PHICapacity,
 1016           if (IsArgMemOnlyCall && !Arg->getType()->isPointerTy())
 1155     unsigned Align = Arg.getType()->isPointerTy() ? Arg.getParamAlignment() : 0;
 1249   Type *AggTy = cast<PointerType>(Src->getType())->getElementType();
 1266   PointerType *ArgTy = cast<PointerType>(Arg->getType());
 1333     if (U->getType() != Int8PtrTy) continue;
 2118     if (Caller->getReturnType() == TheCall->getType()) {
 2159         if (NewDeoptCall->getType()->isVoidTy())
 2177     bool NeedBitCast = !TheCall->use_empty() && TheCall->getType() != NewRetTy;
 2244         TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
 2328         assert(RI->getReturnValue()->getType() == PHI->getType() &&
 2328         assert(RI->getReturnValue()->getType() == PHI->getType() &&
 2354         TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
 2377     TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
lib/Transforms/Utils/InstructionNamer.cpp
   43           if (!I.hasName() && !I.getType()->isVoidTy())
lib/Transforms/Utils/IntegerDivision.cpp
   35   unsigned BitWidth = Dividend->getType()->getIntegerBitWidth();
  107   unsigned BitWidth = Dividend->getType()->getIntegerBitWidth();
  157   IntegerType *DivTy = cast<IntegerType>(Dividend->getType());
  382   assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported");
  383   assert((Rem->getType()->getIntegerBitWidth() == 32 ||
  384           Rem->getType()->getIntegerBitWidth() == 64) &&
  440   assert(!Div->getType()->isVectorTy() && "Div over vectors not supported");
  441   assert((Div->getType()->getIntegerBitWidth() == 32 ||
  442           Div->getType()->getIntegerBitWidth() == 64) &&
  490   Type *RemTy = Rem->getType();
  539   Type *RemTy = Rem->getType();
  588   Type *DivTy = Div->getType();
  636   Type *DivTy = Div->getType();
lib/Transforms/Utils/LCSSA.cpp
   92     assert(!I->getType()->isTokenTy() && "Tokens shouldn't be in the worklist");
  135     SSAUpdate.Initialize(I->getType(), I->getName());
  147       PHINode *PN = PHINode::Create(I->getType(), PredCache.size(ExitBB),
  365       if (I.getType()->isTokenTy())
lib/Transforms/Utils/LibCallsShrinkWrap.cpp
  116     if (!Arg->getType()->isFloatTy())
  117       V = ConstantExpr::getFPExtend(V, Arg->getType());
  309   Type *ArgType = CI.getArgOperand(0)->getType();
  441     if (!Exp->getType()->isFloatTy())
  442       V = ConstantExpr::getFPExtend(V, Exp->getType());
  454     unsigned BW = I->getOperand(0)->getType()->getPrimitiveSizeInBits();
  470     if (!Exp->getType()->isFloatTy())
  471       V = ConstantExpr::getFPExtend(V, Exp->getType());
  472     if (!Base->getType()->isFloatTy())
  473       V0 = ConstantExpr::getFPExtend(V0, Exp->getType());
lib/Transforms/Utils/Local.cpp
  493     Value *Undef = UndefValue::get(I->getType());
  535       I->replaceAllUsesWith(UndefValue::get(I->getType()));
  677     if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
  710                                                      BA->getType()));
 1186   assert(V->getType()->isPointerTy() &&
 1297   if (!valueCoversEntireFragment(DV->getType(), DII)) {
 1305     DV = UndefValue::get(DV->getType());
 1326   if (!valueCoversEntireFragment(LI->getType(), DII)) {
 1357   if (!valueCoversEntireFragment(APN->getType(), DII)) {
 1829   Type *FromTy = From.getType();
 1830   Type *ToTy = To.getType();
 1885     if (!Inst->use_empty() && !Inst->getType()->isTokenTy())
 1886       Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
 1887     if (Inst->isEHPad() || Inst->getType()->isTokenTy()) {
 1932       BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
 2254         TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
 2380   Type *NewType = Dest.getType();
 2463   assert(From->getType() == To->getType());
 2463   assert(From->getType() == To->getType());
 2480    assert(From->getType() == To->getType());
 2480    assert(From->getType() == To->getType());
 2543   auto *NewTy = NewLI.getType();
 2560       ConstantPointerNull::get(cast<PointerType>(Ptr->getType())), ITy);
 2568   auto *NewTy = NewLI.getType();
 2684   auto BitWidth = cast<IntegerType>(V->getType())->getBitWidth();
 2753       APInt Bit(I->getType()->getPrimitiveSizeInBits(), 1);
 2824   IntegerType *ITy = dyn_cast<IntegerType>(I->getType());
 2833       DemandedTy = cast<IntegerType>(Trunc->getType());
 2866     IntegerType *ProviderTy = cast<IntegerType>(Provider->getType());
 2903   if (I->getOperand(OpIdx)->getType()->isMetadataTy())
lib/Transforms/Utils/LoopRotationUtils.cpp
  107     SSA.Initialize(OrigHeaderVal->getType(), OrigHeaderVal->getName());
  165         NewVal = UndefValue::get(OrigHeaderVal->getType());
lib/Transforms/Utils/LoopSimplify.cpp
  393     PHINode *NewPN = PHINode::Create(PN->getType(), BackedgeBlocks.size(),
  528           BI->setCondition(ConstantInt::get(Cond->getType(),
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  101       PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr",
  111         NewPN->addIncoming(UndefValue::get(PN.getType()), PreHeader);
  158       B.CreateICmpULT(BECount, ConstantInt::get(BECount->getType(), Count - 1));
  223     PN.addIncoming(UndefValue::get(PN.getType()), PreHeader);
  256       PHINode *NewPN = PHINode::Create(PN.getType(), 2, PN.getName() + ".unr",
  357         PHINode *NewIdx = PHINode::Create(NewIter->getType(), 2,
  361             Builder.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1),
  737                                     ConstantInt::get(BECount->getType(),
  740                                    ConstantInt::get(ModValTmp->getType(), 1));
  744                           ConstantInt::get(BECount->getType(), Count),
  749                                            ConstantInt::get(BECount->getType(),
  898     PHINode *NewIdx = PHINode::Create(TestVal->getType(), 2, "niter",
  901         B2.CreateSub(NewIdx, ConstantInt::get(NewIdx->getType(), 1),
lib/Transforms/Utils/LoopUtils.cpp
  613       auto *Undef = UndefValue::get(I.getType());
  793   unsigned VF = Src->getType()->getVectorNumElements();
  823   unsigned VF = Src->getType()->getVectorNumElements();
  841         TmpVec, UndefValue::get(TmpVec->getType()),
  866   assert(isa<VectorType>(Src->getType()) && "Type must be a vector");
  891           Constant::getNullValue(Src->getType()->getVectorElementType()), Src);
  897       Type *Ty = Src->getType()->getVectorElementType();
  928   if (TTI->useReductionIntrinsic(Opcode, Src->getType(), Flags))
lib/Transforms/Utils/LoopVersioning.cpp
  140       PN = PHINode::Create(Inst->getType(), 2, Inst->getName() + ".lver",
lib/Transforms/Utils/LowerMemIntrinsics.cpp
   46   unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace();
   47   unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace();
   62     if (SrcAddr->getType() != SrcOpType) {
   65     if (DstAddr->getType() != DstOpType) {
  112       Value *CastedSrc = SrcAddr->getType() == SrcPtrType
  121       Value *CastedDst = DstAddr->getType() == DstPtrType
  154   unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace();
  155   unsigned DstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace();
  158   if (SrcAddr->getType() != SrcOpType) {
  161   if (DstAddr->getType() != DstOpType) {
  166   Type *CopyLenType = CopyLen->getType();
  291   Type *TypeOfCopyLen = CopyLen->getType();
  295   Type *EltTy = cast<PointerType>(SrcAddr->getType())->getElementType();
  371   Type *TypeOfCopyLen = CopyLen->getType();
  382   unsigned dstAS = cast<PointerType>(DstAddr->getType())->getAddressSpace();
  384                                   PointerType::get(SetValue->getType(), dstAS));
  397       LoopBuilder.CreateInBoundsGEP(SetValue->getType(), DstAddr, LoopIndex),
lib/Transforms/Utils/MetaRenamer.cpp
  146         if (!AI->getType()->isVoidTy())
  153           if (!I.getType()->isVoidTy())
lib/Transforms/Utils/ModuleUtils.cpp
   59   (void)new GlobalVariable(M, NewInit->getType(), false,
lib/Transforms/Utils/PredicateInfo.cpp
  558       Function *IF = getCopyDeclaration(F.getParent(), Op->getType());
  570       Function *IF = getCopyDeclaration(F.getParent(), Op->getType());
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
   87       if (BCI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
   92       if (GEPI->getType() != Type::getInt8PtrTy(U->getContext(), AS))
  308                                        Constant::getNullValue(LI->getType()));
  325     if (!I->getType()->isVoidTy()) {
  395       ReplVal = UndefValue::get(LI->getType());
  483         LI->replaceAllUsesWith(UndefValue::get(LI->getType()));
  500         ReplVal = UndefValue::get(LI->getType());
  666       A->replaceAllUsesWith(UndefValue::get(A->getType()));
  759       Value *UndefVal = UndefValue::get(SomePHI->getType());
lib/Transforms/Utils/SSAUpdater.cpp
   73   assert(ProtoType == V->getType() &&
  349   SSA.Initialize(SomeVal->getType(), BaseName);
  453     if (NewVal == ALoad) NewVal = UndefValue::get(NewVal->getType());
lib/Transforms/Utils/SimplifyCFG.cpp
  412   if (CI || !isa<Constant>(V) || !V->getType()->isPointerTy())
  417   IntegerType *PtrTy = cast<IntegerType>(DL.getIntPtrType(V->getType()));
  717       if (PTII->getType() == DL.getIntPtrType(Ptr->getType()))
  717       if (PTII->getType() == DL.getIntPtrType(Ptr->getType()))
 1170       if (CV->getType()->isPointerTy()) {
 1171         CV = Builder.CreatePtrToInt(CV, DL.getIntPtrType(CV->getType()),
 1378   if (!NT->getType()->isVoidTy()) {
 1455         I->getType()->isTokenTy())
 1517     if (I0->getOperand(OI)->getType()->isTokenTy())
 1593     assert(!Op->getType()->isTokenTy() && "Can't PHI tokens!");
 1594     auto *PN = PHINode::Create(Op->getType(), Insts.size(),
 2363   if (PN->getType()->isIntegerTy(1) &&
 2936   PHI = PHINode::Create(V->getType(), 2, "simplifycfg.merge", &Succ->front());
 2941           AlternativeV ? AlternativeV : UndefValue::get(V->getType()), PredBB);
 3080       DL.getABITypeAlignment(SI->getValueOperand()->getType());
 3778   if (CompVal->getType()->isPointerTy()) {
 3780         CompVal, DL.getIntPtrType(CompVal->getType()), "magicptr");
 4211       BBI->replaceAllUsesWith(UndefValue::get(BBI->getType()));
 4392       ConstantInt::get(Offset->getType(), ContiguousCases->size());
 4459   unsigned Bits = Cond->getType()->getIntegerBitWidth();
 4985   Type *ValueType = Values.begin()->second->getType();
 4992     assert(CaseRes->getType() == ValueType);
 5005     assert(DefaultValue->getType() == ValueType);
 5128     IntegerType *IT = cast<IntegerType>(Index->getType());
 5130         Array->getInitializer()->getType()->getArrayNumElements();
 5243   Constant *TrueConst = ConstantInt::getTrue(RangeCmp->getType());
 5244   Constant *FalseConst = ConstantInt::getFalse(RangeCmp->getType());
 5281         RangeCmp, ConstantInt::get(RangeCmp->getType(), 1), "inverted.cmp",
 5357     ResultTypes[PHI] = ResultLists[PHI][0].second->getType();
 5553   auto *CondTy = cast<IntegerType>(SI->getCondition()->getType());
 5615   auto *Ty = cast<IntegerType>(SI->getCondition()->getType());
lib/Transforms/Utils/SimplifyIndVar.cpp
  132     assert(SE->isSCEVable(IVSrc->getType()) && "Expect SCEVable IV operand");
  137       uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth();
  152   if (!SE->isSCEVable(UseInst->getType()))
  342   auto *T = Rem->getType();
  389     auto *T = Rem->getType();
  518   Type *IVTy = IV->getType();
  608   TI->replaceAllUsesWith(UndefValue::get(TI->getType()));
  660   if (!SE->isSCEVable(I->getType()))
  674   auto *Invariant = Rewriter.expandCodeFor(S, I->getType(), IP);
  688   if (!SE->isSCEVable(UseInst->getType()) ||
  689       (UseInst->getType() != IVOperand->getType()) ||
  689       (UseInst->getType() != IVOperand->getType()) ||
  826   if (!SE->isSCEVable(I->getType()))
  853   if (!SE->isSCEVable(CurrIV->getType()))
lib/Transforms/Utils/SimplifyLibCalls.cpp
  106     return OI->getType()->isFloatingPointTy();
  112     return OI->getType()->isFP128Ty();
  135   if (!isIntN(CI->getType()->getPrimitiveSizeInBits(), Result))
  138   return ConstantInt::get(CI->getType(), Result);
  198     unsigned AS = CI->getArgOperand(ArgNo)->getType()->getPointerAddressSpace();
  226     unsigned AS = CI->getArgOperand(ArgNo)->getType()->getPointerAddressSpace();
  378     return Constant::getNullValue(CI->getType());
  406     return Constant::getNullValue(CI->getType());
  415     return ConstantInt::get(CI->getType(), 0);
  423     return ConstantInt::get(CI->getType(), Str1.compare(Str2));
  427         B.CreateLoad(B.getInt8Ty(), Str2P, "strcmpload"), CI->getType()));
  431                         CI->getType());
  472     return ConstantInt::get(CI->getType(), 0);
  484     return ConstantInt::get(CI->getType(), 0);
  497     return ConstantInt::get(CI->getType(), SubStr1.compare(SubStr2));
  502         B.CreateLoad(B.getInt8Ty(), Str2P, "strcmpload"), CI->getType()));
  506                         CI->getType());
  651     return ConstantInt::get(CI->getType(), Len - 1);
  703         Offset = B.CreateSExtOrTrunc(Offset, CI->getType());
  704         return B.CreateSub(ConstantInt::get(CI->getType(), NullTermIdx),
  722                             ConstantInt::get(CI->getType(), LenTrue - 1),
  723                             ConstantInt::get(CI->getType(), LenFalse - 1));
  731                         CI->getType());
  761     return Constant::getNullValue(CI->getType());
  767       return Constant::getNullValue(CI->getType());
  799     return Constant::getNullValue(CI->getType());
  806     return ConstantInt::get(CI->getType(), Pos);
  819     return Constant::getNullValue(CI->getType());
  826     return ConstantInt::get(CI->getType(), Pos);
  839     return B.CreateBitCast(CI->getArgOperand(0), CI->getType());
  854                        ConstantInt::getNullValue(StrNCmp->getType()), "cmp");
  867     return B.CreateBitCast(CI->getArgOperand(0), CI->getType());
  874       return Constant::getNullValue(CI->getType());
  880     return B.CreateBitCast(Result, CI->getType());
  886     return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : nullptr;
  909       return Constant::getNullValue(CI->getType());
  958     Value *C = B.CreateZExtOrTrunc(CI->getArgOperand(1), BitfieldC->getType());
  971     return B.CreateIntToPtr(B.CreateAnd(Bounds, Bits, "memchr"), CI->getType());
  981     return Constant::getNullValue(CI->getType());
  991     return Constant::getNullValue(CI->getType());
  997                      CI->getType(), "lhsv");
 1000                      CI->getType(), "rhsv");
 1029             IntType->getPointerTo(LHS->getType()->getPointerAddressSpace());
 1034             IntType->getPointerTo(RHS->getType()->getPointerAddressSpace());
 1037       return B.CreateZExt(B.CreateICmpNE(LHSV, RHSV), CI->getType(), "memcmp");
 1057     return ConstantInt::get(CI->getType(), Ret);
 1070     return Constant::getNullValue(CI->getType());
 1080     return Constant::getNullValue(CI->getType());
 1223   Function *F = Intrinsic::getDeclaration(M, IID, CI->getType());
 1237     if (Op->getType()->isFloatTy())
 1255   if (!CI->getType()->isDoubleTy() || !CalleeFn)
 1264       if (!Cast || !Cast->getType()->isFloatTy())
 1333     assert(Op->getType()->isArrayTy() && "Unexpected signature for cabs!");
 1346                                               CI->getType());
 1416     unsigned BitWidth = Op->getType()->getPrimitiveSizeInBits();
 1433   Type *Ty = Pow->getType();
 1575         Intrinsic::getDeclaration(M, Intrinsic::sqrt, V->getType());
 1580   if (hasFloatFn(TLI, V->getType(), LibFunc_sqrt, LibFunc_sqrtf, LibFunc_sqrtl))
 1595   Type *Ty = Pow->getType();
 1631   Function *F = Intrinsic::getDeclaration(M, Intrinsic::powi, Base->getType());
 1640   Type *Ty = Pow->getType();
 1768   Type *Ty = CI->getType();
 1807   Function *F = Intrinsic::getDeclaration(CI->getModule(), IID, CI->getType());
 1817   Type *Ty = Log->getType();
 1944       Eul = ConstantFP::get(Log->getType(), numbers::e);
 1946       Eul = ConstantFP::get(Log->getType(), 2.0);
 1948       Eul = ConstantFP::get(Log->getType(), 10.0);
 2017   Type *ArgType = I->getType();
 2072   Type *ArgTy = Arg->getType();
 2108   if (SinCos->getType()->isStructTy()) {
 2130   bool IsFloat = Arg->getType()->isFloatTy();
 2203   Type *ArgType = Op->getType();
 2207   V = B.CreateAdd(V, ConstantInt::get(V->getType(), 1));
 2217   Type *ArgType = Op->getType();
 2221   V = B.CreateSub(ConstantInt::get(V->getType(), ArgType->getIntegerBitWidth()),
 2223   return B.CreateIntCast(V, CI->getType(), false);
 2230   Value *IsNeg = B.CreateICmpSLT(X, Constant::getNullValue(X->getType()));
 2240   return B.CreateZExt(Op, CI->getType());
 2247   return B.CreateZExt(Op, CI->getType());
 2253                      ConstantInt::get(CI->getType(), 0x7F));
 2333     return CI->use_empty() ? (Value *)CI : ConstantInt::get(CI->getType(), 0);
 2368       CI->getArgOperand(1)->getType()->isIntegerTy())
 2373       CI->getArgOperand(1)->getType()->isPointerTy())
 2432     return ConstantInt::get(CI->getType(), FormatStr.size());
 2444     if (!CI->getArgOperand(2)->getType()->isIntegerTy())
 2452     return ConstantInt::get(CI->getType(), 1);
 2458     if (!CI->getArgOperand(2)->getType()->isPointerTy())
 2465         B.CreateAdd(Len, ConstantInt::get(Len->getType(), 1), "leninc");
 2469     return B.CreateIntCast(Len, CI->getType(), false);
 2530       return ConstantInt::get(CI->getType(), FormatStr.size());
 2540     return ConstantInt::get(CI->getType(), FormatStr.size());
 2551         return ConstantInt::get(CI->getType(), 1);
 2556       if (!CI->getArgOperand(3)->getType()->isIntegerTy())
 2564       return ConstantInt::get(CI->getType(), 1);
 2574         return ConstantInt::get(CI->getType(), Str.size());
 2579                      ConstantInt::get(CI->getType(), Str.size() + 1));
 2582       return ConstantInt::get(CI->getType(), Str.size());
 2633     if (!CI->getArgOperand(2)->getType()->isIntegerTy())
 2640     if (!CI->getArgOperand(2)->getType()->isPointerTy())
 2693       return ConstantInt::get(CI->getType(), 0);
 2701       return NewCI ? ConstantInt::get(CI->getType(), 1) : nullptr;
lib/Transforms/Utils/StripGCRelocates.cpp
   61     if (GCRel->getType() != OrigPtr->getType())
   61     if (GCRel->getType() != OrigPtr->getType())
   62       ReplaceGCRel = new BitCastInst(OrigPtr, GCRel->getType(), "cast", GCRel);
lib/Transforms/Utils/VNCoercion.cpp
   17   Type *StoredTy = StoredVal->getType();
   38   if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType()) !=
   62   Type *StoredValTy = StoredVal->getType();
  121         StoredVal, ConstantInt::get(StoredVal->getType(), ShiftAmt));
  223   if (StoredVal->getType()->isStructTy() ||
  224       StoredVal->getType()->isArrayTy())
  228   if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType()) !=
  238       DL.getTypeSizeInBits(DepSI->getValueOperand()->getType());
  249   if (DepLI->getType()->isStructTy() || DepLI->getType()->isArrayTy())
  249   if (DepLI->getType()->isStructTy() || DepLI->getType()->isArrayTy())
  253   if (DL.isNonIntegralPointerType(DepLI->getType()->getScalarType()) !=
  258   uint64_t DepSize = DL.getTypeSizeInBits(DepLI->getType());
  278   assert(DepLI->getType()->isIntegerTy() && "Can't widen non-integer load");
  328   unsigned AS = Src->getType()->getPointerAddressSpace();
  347   LLVMContext &Ctx = SrcVal->getType()->getContext();
  352   if (SrcVal->getType()->isPointerTy() && LoadTy->isPointerTy() &&
  353       cast<PointerType>(SrcVal->getType())->getAddressSpace() ==
  358   uint64_t StoreSize = (DL.getTypeSizeInBits(SrcVal->getType()) + 7) / 8;
  362   if (SrcVal->getType()->isPtrOrPtrVectorTy())
  363     SrcVal = Helper.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType()));
  364   if (!SrcVal->getType()->isIntegerTy())
  375                                ConstantInt::get(SrcVal->getType(), ShiftAmt));
  411   unsigned SrcValStoreSize = DL.getTypeStoreSize(SrcVal->getType());
  415     assert(SrcVal->getType()->isIntegerTy() && "Can't widen non-integer load");
  429         PointerType::get(DestTy, PtrVal->getType()->getPointerAddressSpace());
  444     RV = Builder.CreateTrunc(RV, SrcVal->getType());
  455   unsigned SrcValStoreSize = DL.getTypeStoreSize(SrcVal->getType());
  485             Val, ConstantInt::get(Val->getType(), NumBytesSet * 8));
  492       T *ShVal = Helper.CreateShl(Val, ConstantInt::get(Val->getType(), 1 * 8));
  503   unsigned AS = Src->getType()->getPointerAddressSpace();
lib/Transforms/Utils/ValueMapper.cpp
  440   Type *NewTy = C->getType();
  446   if (OpNo == NumOperands && NewTy == C->getType())
  898         TypeMapper->remapType(I->getType()), Tys, FTy->isVarArg()));
  924   I->mutateType(TypeMapper->remapType(I->getType()));
  947       A.mutateType(TypeMapper->remapType(A.getType()));
  961         cast<ArrayType>(InitPrefix->getType())->getNumElements();
  972     auto &ST = *cast<StructType>(NewMembers.front()->getType());
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  136     return DL.getABITypeAlignment(LI->getType());
  144     return DL.getABITypeAlignment(SI->getValueOperand()->getType());
  323   Type *PtrATy = PtrA->getType()->getPointerElementType();
  324   Type *PtrBTy = PtrB->getType()->getPointerElementType();
  340   unsigned PtrBitWidth = DL.getPointerTypeSizeInBits(PtrA->getType());
  346   unsigned NewPtrBitWidth = DL.getTypeStoreSizeInBits(PtrA->getType());
  348   if (NewPtrBitWidth != DL.getTypeStoreSizeInBits(PtrB->getType()))
  420       OpA->getType() != OpB->getType())
  420       OpA->getType() != OpB->getType())
  432   unsigned IdxBitWidth = OpA->getType()->getScalarSizeInBits();
  444   if (!OpB || ValA->getType() != OpB->getType())
  444   if (!OpB || ValA->getType() != OpB->getType())
  460   unsigned BitWidth = ValA->getType()->getScalarSizeInBits();
  757       Type *Ty = LI->getType();
  775       unsigned AS = Ptr->getType()->getPointerAddressSpace();
  804       Type *Ty = SI->getValueOperand()->getType();
  822       unsigned AS = Ptr->getType()->getPointerAddressSpace();
  946     StoreTy = cast<StoreInst>(I)->getValueOperand()->getType();
 1055         if (Extract->getType() != StoreTy->getScalarType())
 1067       if (Extract->getType() != StoreTy->getScalarType())
 1097     LoadTy = cast<LoadInst>(V)->getType();
 1212         if (V->getType() != UI->getType())
 1212         if (V->getType() != UI->getType())
 1213           V = Builder.CreateBitCast(V, UI->getType());
 1233       if (V->getType() != CV->getType()) {
 1233       if (V->getType() != CV->getType()) {
 1234         V = Builder.CreateBitOrPointerCast(V, CV->getType());
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  504   Type *PhiTy = Phi->getType();
  582         Type *PhiTy = Phi->getType();
  679             CI->getType()->isFloatingPointTy() &&
  719       if ((!VectorType::isValidElementType(I.getType()) &&
  720            !I.getType()->isVoidTy()) ||
  730         Type *T = ST->getValueOperand()->getType();
  759           Type *VecTy = VectorType::get(I.getType(), /*NumElements=*/2);
  777       } else if (I.getType()->isFloatingPointTy() && (CI || I.isBinaryOp()) &&
  821   if (PrimaryInduction && WidestIndTy != PrimaryInduction->getType())
lib/Transforms/Vectorize/LoopVectorize.cpp
  311     return LI->getType();
  312   return cast<StoreInst>(I)->getValueOperand()->getType();
 1684     assert(Start->getType()->isIntegerTy() &&
 1686     auto *TruncType = cast<IntegerType>(EntryVal->getType());
 1698   if (Step->getType()->isIntegerTy()) {
 1708   Value *ConstVF = getSignedIntOrFpConstant(Step->getType(), VF);
 1723   PHINode *VecInd = PHINode::Create(SteppedStart->getType(), 2, "vec.ind",
 1795   assert((IV->getType()->isIntegerTy() || IV != OldInduction) &&
 1802   assert(IV->getType() == ID.getStartValue()->getType() && "Types must match");
 1802   assert(IV->getType() == ID.getStartValue()->getType() && "Types must match");
 1826   if (PSE.getSE()->isSCEVable(IV->getType())) {
 1850       ScalarIV = IV->getType()->isIntegerTy()
 1851                      ? Builder.CreateSExtOrTrunc(Induction, IV->getType())
 1853                                           IV->getType());
 1858       auto *TruncType = cast<IntegerType>(Trunc->getType());
 1859       assert(Step->getType()->isIntegerTy() &&
 1894   assert(Val->getType()->isVectorTy() && "Must be a vector");
 1895   int VLen = Val->getType()->getVectorNumElements();
 1897   Type *STy = Val->getType()->getScalarType();
 1900   assert(Step->getType() == STy && "Step has wrong type");
 1911     assert(Cv->getType() == Val->getType() && "Invalid consecutive vec");
 1911     assert(Cv->getType() == Val->getType() && "Invalid consecutive vec");
 1913     assert(Step->getType() == Val->getType() && "Invalid step vec");
 1913     assert(Step->getType() == Val->getType() && "Invalid step vec");
 1954   Type *ScalarIVTy = ScalarIV->getType()->getScalarType();
 1955   assert(ScalarIVTy == Step->getType() &&
 1990   assert(!V->getType()->isVectorTy() && "Can't widen a vector");
 1991   assert(!V->getType()->isVoidTy() && "Type does not produce a value");
 1996     V = ConstantInt::get(V->getType(), 1);
 2044       Value *Undef = UndefValue::get(VectorType::get(V->getType(), VF));
 2084   if (!U->getType()->isVectorTy()) {
 2098   assert(!V->getType()->isVectorTy() && "Can't pack a vector");
 2099   assert(!V->getType()->isVoidTy() && "Type does not produce a value");
 2109   assert(Vec->getType()->isVectorTy() && "Invalid type");
 2114   return Builder.CreateShuffleVector(Vec, UndefValue::get(Vec->getType()),
 2246           auto *Undefs = UndefValue::get(Mask[Part]->getType());
 2281         if (Member->getType() != ScalarTy) {
 2282           VectorType *OtherVTy = VectorType::get(Member->getType(), VF);
 2314       if (StoredVec->getType() != SubVT)
 2330       auto *Undefs = UndefValue::get(Mask[Part]->getType());
 2487   assert(!Instr->getType()->isAggregateType() && "Can't handle vectors");
 2492   bool IsVoidRetTy = Instr->getType()->isVoidTy();
 2535   auto *Induction = Builder.CreatePHI(Start->getType(), 2, "index");
 2593   if (TripCount->getType()->isPointerTy())
 2608   Type *Ty = TC->getType();
 2638     auto *IsZero = Builder.CreateICmpEQ(R, ConstantInt::get(R->getType(), 0));
 2651   VectorType *SrcVecTy = cast<VectorType>(V->getType());
 2695         P, Count, ConstantInt::get(Count->getType(), VF * UF),
 2802   assert(Index->getType() == Step->getType() &&
 2812     assert(X->getType() == Y->getType() && "Types don't match!");
 2812     assert(X->getType() == Y->getType() && "Types don't match!");
 2823     assert(X->getType() == Y->getType() && "Types don't match!");
 2823     assert(X->getType() == Y->getType() && "Types don't match!");
 2835     assert(Index->getType() == StartValue->getType() &&
 2835     assert(Index->getType() == StartValue->getType() &&
 2840         Index, Exp.expandCodeFor(Step, Index->getType(), &*B.GetInsertPoint()));
 2847         StartValue->getType()->getPointerElementType(), StartValue,
 2848         CreateMul(Index, Exp.expandCodeFor(Step, Index->getType(),
 3008         OrigPhi->getType(), 3, "bc.resume.val", ScalarPH->getTerminator());
 3141           CountRoundDown, ConstantInt::get(CountRoundDown->getType(), 1));
 3225   Type *ScalarRetTy = CI->getType();
 3228     ScalarTys.push_back(ArgOp->getType());
 3274   return TTI.getIntrinsicInstrCost(ID, CI->getType(), Operands, FMF, VF);
 3304       Type *OriginalTy = I->getType();
 3358         auto Elements0 = SI->getOperand(0)->getType()->getVectorNumElements();
 3361         auto Elements1 = SI->getOperand(1)->getType()->getVectorNumElements();
 3370         auto Elements = IE->getOperand(0)->getType()->getVectorNumElements();
 3376         auto Elements = EE->getOperand(0)->getType()->getVectorNumElements();
 3536         UndefValue::get(VectorType::get(VectorInit->getType(), VF)), VectorInit,
 3547   auto *VecPhi = Builder.CreatePHI(VectorInit->getType(), 2, "vector.recur");
 3620   auto *Start = Builder.CreatePHI(Phi->getType(), 2, "scalar.recur.init");
 3663   Type *VecTy = getOrCreateVectorValue(LoopExitInst, 0)->getType();
 3745   if (VF > 1 && Phi->getType() != RdxDesc.getRecurrenceType()) {
 3802     if (Phi->getType() != RdxDesc.getRecurrenceType())
 3805         ? Builder.CreateSExt(ReducedPartRdx, Phi->getType())
 3806         : Builder.CreateZExt(ReducedPartRdx, Phi->getType());
 3811   PHINode *BCBlockPhi = PHINode::Create(Phi->getType(), 2, "bc.merge.rdx",
 3973         (VF == 1) ? PN->getType() : VectorType::get(PN->getType(), VF);
 3973         (VF == 1) ? PN->getType() : VectorType::get(PN->getType(), VF);
 3992           (VF == 1) ? PN->getType() : VectorType::get(PN->getType(), VF);
 3992           (VF == 1) ? PN->getType() : VectorType::get(PN->getType(), VF);
 4019     assert(P->getType()->isPointerTy() && "Unexpected type.");
 4031         Constant *Idx = ConstantInt::get(PtrInd->getType(), Lane + Part * VF);
 4127         assert((VF == 1 || NewGEP->getType()->isVectorTy()) &&
 4246         (VF == 1) ? CI->getType() : VectorType::get(CI->getType(), VF);
 4246         (VF == 1) ? CI->getType() : VectorType::get(CI->getType(), VF);
 4268     Type *RetTy = ToVectorTy(CI->getType(), VF);
 4271       Tys.push_back(ToVectorTy(ArgOperand->getType(), VF));
 4299         Type *TysForDecl[] = {CI->getType()};
 4301           TysForDecl[0] = VectorType::get(CI->getType()->getScalarType(), VF);
 4392     return ((isa<BitCastInst>(V) && V->getType()->isPointerTy()) ||
 4637   auto *ScalarTy = LI ? LI->getType() : SI->getValueOperand()->getType();
 4637   auto *ScalarTy = LI ? LI->getType() : SI->getValueOperand()->getType();
 5078       Type *T = I.getType();
 5099         T = ST->getValueOperand()->getType();
 5414           unsigned ClassID = TTI.getRegisterClassForType(false, Inst->getType());
 5427             unsigned ClassID = TTI.getRegisterClassForType(false, Inst->getType());
 5433             unsigned ClassID = TTI.getRegisterClassForType(true, Inst->getType());
 5435               RegUsage[ClassID] = GetRegUsage(Inst->getType(), VFs[j]);
 5437               RegUsage[ClassID] += GetRegUsage(Inst->getType(), VFs[j]);
 5461       unsigned Usage = VFs[i] == 1 ? 1 : GetRegUsage(Inst->getType(), VFs[i]);
 5462       unsigned ClassID = TTI.getRegisterClassForType(VFs[i] > 1, Inst->getType());
 5616     if (isScalarWithPredication(I) && !I->getType()->isVoidTy()) {
 5617       ScalarCost += TTI.getScalarizationOverhead(ToVectorTy(I->getType(), VF),
 5628         assert(VectorType::isValidElementType(J->getType()) &&
 5634                               ToVectorTy(J->getType(),VF), false, true);
 5736   Type *PtrTy = ToVectorTy(Ptr->getType(), VF);
 5915   Type *RetTy = ToVectorTy(I->getType(), VF);
 6093   Type *RetTy = I->getType();
 6151                  Instruction::Select, ToVectorTy(Phi->getType(), VF),
 6230     Type *CondTy = SI->getCondition()->getType();
 6238     Type *ValTy = I->getOperand(0)->getType();
 6279     Type *SrcScalarTy = I->getOperand(0)->getType();
 6292             largestIntegerVectorType(ToVectorTy(I->getType(), VF), MinVecTy);
 6297             smallestIntegerVectorType(ToVectorTy(I->getType(), VF), MinVecTy);
 6566   Type *Ty = Val->getType();
 6992       Instr->getType()->isVoidTy() ? nullptr : new VPPredInstPHIRecipe(Instr);
 7354             UndefValue::get(VectorType::get(Ingredient->getType(), State.VF));
 7383     if (ConditionBit->getType()->isVectorTy())
 7421     Type *PredInstType = PredInst->getType();
 7423     Phi->addIncoming(UndefValue::get(ScalarPredInst->getType()), PredicatingBB);
lib/Transforms/Vectorize/SLPVectorizer.cpp
  276     if (Vec->getType()->getVectorNumElements() != Size)
  388       Type *Ty0 = cast<Instruction>(VL[BaseIndex])->getOperand(0)->getType();
  389       Type *Ty1 = cast<Instruction>(VL[Cnt])->getOperand(0)->getType();
  411   Type *Ty = VL[0]->getType();
  413     if (VL[i]->getType() != Ty)
 2079       Value *Undef = UndefValue::get(Pair.getFirst()->getType());
 2184   if (S.OpValue->getType()->isVectorTy()) {
 2191     if (SI->getValueOperand()->getType()->isVectorTy()) {
 2405       Type *ScalarTy = VL0->getType();
 2491       Type *SrcTy = VL0->getOperand(0)->getType();
 2493         Type *Ty = cast<Instruction>(V)->getOperand(0)->getType();
 2523       Type *ComparedTy = VL0->getOperand(0)->getType();
 2527             Cmp->getOperand(0)->getType() != ComparedTy) {
 2626       Type *Ty0 = VL0->getOperand(0)->getType();
 2628         Type *CurTy = cast<Instruction>(V)->getOperand(0)->getType();
 2849     NElts = canMapToVector(Vec->getType(), DL);
 2857     NElts = Vec->getType()->getVectorNumElements();
 2910   Type *ScalarTy = VL[0]->getType();
 2912     ScalarTy = SI->getValueOperand()->getType();
 2914     ScalarTy = CI->getOperand(0)->getType();
 3020                     Ext->getOpcode(), Ext->getType(), VecTy, i);
 3023                     Ext->getOpcode(), Ext->getType(), E->getType(), Ext);
 3023                     Ext->getOpcode(), Ext->getType(), E->getType(), Ext);
 3047       Type *SrcTy = VL0->getOperand(0)->getType();
 3201         ScalarTys.push_back(CI->getArgOperand(op)->getType());
 3215       int VecCallCost = TTI->getIntrinsicInstrCost(ID, CI->getType(), Args, FMF,
 3257         Type *Src0SclTy = E->getMainOp()->getOperand(0)->getType();
 3258         Type *Src1SclTy = E->getAltOp()->getOperand(0)->getType();
 3319   Type *SrcTy = LoadPtr->getType()->getPointerElementType();
 3412         V.push_back(VectorType::get(II->getType(), BundleWidth));
 3475     auto *VecTy = VectorType::get(EU.Scalar->getType(), BundleWidth);
 3482       ExtractCost += TTI->getExtractWithExtendCost(Extend, EU.Scalar->getType(),
 3521   Type *ScalarTy = VL[0]->getType();
 3523     ScalarTy = SI->getValueOperand()->getType();
 3667             V = Builder.CreateShuffleVector(V, UndefValue::get(V->getType()),
 3676   Type *ScalarTy = S.OpValue->getType();
 3678     ScalarTy = SI->getValueOperand()->getType();
 3731   Type *ScalarTy = VL0->getType();
 3733     ScalarTy = SI->getValueOperand()->getType();
 4018       Type *ScalarLoadTy = LI->getType();
 4040         V = Builder.CreateShuffleVector(V, UndefValue::get(V->getType()),
 4071         Alignment = DL->getABITypeAlignment(SI->getValueOperand()->getType());
 4137       Type *Tys[] = { VectorType::get(CI->getType(), E->Scalars.size()) };
 4307       Ex = extend(ScalarRoot, Ex, Scalar->getType());
 4332             Ex = extend(ScalarRoot, Ex, Scalar->getType());
 4340         Ex = extend(ScalarRoot, Ex, Scalar->getType());
 4347       Ex = extend(ScalarRoot, Ex, Scalar->getType());
 4370       Type *Ty = Scalar->getType();
 4927     return DL->getTypeSizeInBits(Store->getValueOperand()->getType());
 4948     auto *Ty = I->getType();
 4976     return DL->getTypeSizeInBits(V->getType());
 5061   auto *TreeRootIT = dyn_cast<IntegerType>(TreeRoot[0]->getType());
 5126   if (MaxBitWidth == DL->getTypeSizeInBits(TreeRoot[0]->getType()) &&
 5144       auto NumTypeBits = DL->getTypeSizeInBits(Scalar->getType());
 5474       if (!isValidElementType(SI->getValueOperand()->getType()))
 5486       if (!isValidElementType(Idx->getType()))
 5488       if (GEP->getType()->isVectorTy())
 5530     Type *Ty = V->getType();
 5555     auto *VecTy = VectorType::get(VL[0]->getType(), VF);
 6015         return CmpInst::makeCmpResultType(LHS->getType());
 6268     Type *Ty = B->getType();
 6512     Type *ScalarTy = FirstReducedVal->getType();
 6601           TmpVec, UndefValue::get(TmpVec->getType()), LeftMask, "rdx.shuf.l");
 6603           TmpVec, UndefValue::get(TmpVec->getType()), (RightMask),
 6668   return V->getType() < V2->getType();
 6668   return V->getType() < V2->getType();
 6829   if (!R.canMapToVector(IVI->getType(), DL))
 6918              (*SameTypeIt)->getType() == (*IncIt)->getType()) {
 6918              (*SameTypeIt)->getType() == (*IncIt)->getType()) {
 6989     if (it->use_empty() && (it->getType()->isVoidTy() || isa<CallInst>(it) ||
lib/Transforms/Vectorize/VPlan.cpp
  378     auto *TCMO = Builder.CreateSub(TC, ConstantInt::get(TC->getType(), 1),
  630     if (!Inst->getType()->isVoidTy()) {
lib/Transforms/Vectorize/VPlanSLP.cpp
   63       Type *T = cast<VPInstruction>(V)->getUnderlyingInstr()->getType();
   93   unsigned Width = OriginalInstr->getType()->getPrimitiveSizeInBits();
   97                I->getType()->getPrimitiveSizeInBits() == Width;
tools/bugpoint-passes/TestPasses.cpp
   62             CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));
tools/bugpoint/CrashDebugger.cpp
  231   UsedVar->mutateType(NewUsedVal->getType()->getPointerTo());
  472         if (BBTerm->isEHPad() || BBTerm->getType()->isTokenTy())
  474         if (!BBTerm->getType()->isVoidTy())
  475           BBTerm->replaceAllUsesWith(Constant::getNullValue(BBTerm->getType()));
  523       if (V && V->getType() == Type::getLabelTy(V->getContext()))
  630       if (V && V->getType() == Type::getLabelTy(V->getContext()))
  722       if (V && V->getType() == Type::getLabelTy(V->getContext()))
  780             !Inst->isEHPad() && !Inst->getType()->isTokenTy() &&
  782           if (!Inst->getType()->isVoidTy())
  783             Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
 1059               if (I->isEHPad() || I->getType()->isTokenTy() ||
tools/bugpoint/ExtractFunction.cpp
  104   if (!TheInst->getType()->isVoidTy())
  105     TheInst->replaceAllUsesWith(Constant::getNullValue(TheInst->getType()));
  240       ArrayType::get(ArrayElts[0]->getType(), ArrayElts.size()), ArrayElts);
  289     new GlobalVariable(*M1, M1Init->getType(), false,
  300     new GlobalVariable(*M2, M2Init->getType(), false,
tools/bugpoint/Miscompilation.cpp
  846             *Safe, InitArray->getType(), true /*isConstant*/,
  855         Value *GEP = ConstantExpr::getGetElementPtr(InitArray->getType(),
  904               PHINode::Create(NullPtr->getType(), 2, "fp", DoCallBB);
tools/clang/lib/CodeGen/Address.h
   44     return llvm::cast<llvm::PointerType>(getPointer()->getType());
tools/clang/lib/CodeGen/BackendUtil.cpp
 1637       *M, ModuleConstant->getType(), true, llvm::GlobalValue::PrivateLinkage,
 1659     GV = new llvm::GlobalVariable(*M, CmdConstant->getType(), true,
tools/clang/lib/CodeGen/CGAtomic.cpp
  347   if (!requiresMemSetZero(addr->getType()->getPointerElementType()))
  977       auto T = V->getType();
 1194           Builder.CreateBitCast(Dest, ResVal->getType()->getPointerTo()));
 1332     cast<llvm::PointerType>(addr.getPointer()->getType())->getAddressSpace();
 1389   assert(IntVal->getType()->isIntegerTy() && "Expected integer value");
 1399       assert(IntVal->getType() == ValTy && "Different integer types.");
 1403     else if (llvm::CastInst::isBitCastable(IntVal->getType(), ValTy))
 1581     if (isa<llvm::IntegerType>(Value->getType()))
 1587       if (isa<llvm::PointerType>(Value->getType()))
 1589       else if (llvm::BitCastInst::isBitCastable(Value->getType(), InputIntTy))
 1777   llvm::PHINode *PHI = CGF.Builder.CreatePHI(OldVal->getType(),
 1859   llvm::PHINode *PHI = CGF.Builder.CreatePHI(OldVal->getType(),
tools/clang/lib/CodeGen/CGBlocks.cpp
 1021                 CGM.getDataLayout().getTypeAllocSize(I.first->getType())),
 1598     Address Alloca = CreateTempAlloca(BlockPointer->getType(),
 2083         auto *ty = cast<llvm::PointerType>(srcValue->getType());
 2334       llvm::ConstantPointerNull::get(cast<llvm::PointerType>(value->getType()));
 2824     cast<llvm::PointerType>(addr.getPointer()->getType())->getElementType());
tools/clang/lib/CodeGen/CGBuilder.h
  101     assert(Addr->getType()->getPointerElementType() == Ty);
  130     assert(Addr->getType()->getPointerElementType() == getInt1Ty());
  136     assert(Addr->getType()->getPointerElementType() == getInt1Ty());
tools/clang/lib/CodeGen/CGBuiltin.cpp
   97   if (V->getType()->isPointerTy())
  100   assert(V->getType() == IntType);
  111   assert(V->getType() == ResultType);
  127   unsigned AddrSpace = DestPtr->getType()->getPointerAddressSpace();
  137   llvm::Type *ValueType = Args[1]->getType();
  152       Address, llvm::PointerType::getUnqual(Val->getType()), "cast");
  188   unsigned AddrSpace = DestPtr->getType()->getPointerAddressSpace();
  197   llvm::Type *ValueType = Args[1]->getType();
  229   unsigned AddrSpace = DestPtr->getType()->getPointerAddressSpace();
  238   llvm::Type *ValueType = Args[1]->getType();
  356   Function *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType());
  367   Function *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType());
  379   Function *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType());
  390   Function *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType());
  402                                       {ResultType, Src0->getType()});
  408   Function *F = CGF.CGM.getIntrinsic(Intrinsic::fabs, V->getType());
  419   llvm::Type *Ty = V->getType();
  465   assert(X->getType() == Y->getType() &&
  465   assert(X->getType() == Y->getType() &&
  469   Function *Callee = CGF.CGM.getIntrinsic(IntrinsicID, X->getType());
  532   if (ArgValue->getType() != DestType)
  604   assert(Ptr->getType()->isPointerTy() &&
  608       CGM.getIntrinsic(Intrinsic::objectsize, {ResType, Ptr->getType()});
  761       BitPos, llvm::ConstantInt::get(BitPos->getType(), 3), "bittest.byteidx");
  918     llvm::Type *ArgType = ArgValue->getType();
  920       EmitScalarExpr(E->getArg(0))->getType()->getPointerElementType();
 1103       ArgValue, llvm::Constant::getNullValue(ArgValue->getType()));
 1212     Addr = Builder.CreateBitCast(Addr, Arg.getPointer()->getType(),
 1266         CGM.getDataLayout().getTypeSizeInBits(ArgVal->getType());
 1328     Signed = CGF.Builder.CreateSExt(Signed, Unsigned->getType(), "op.sext");
 1330     Unsigned = CGF.Builder.CreateZExt(Unsigned, Signed->getType(), "op.zext");
 1332   llvm::Type *OpTy = Signed->getType();
 1522   llvm::Type *Ty = Src->getType();
 1818     Constant *Zero = llvm::Constant::getNullValue(ArgValue->getType());
 1830       Imag->getType()->isFPOrFPVectorTy()
 1831         ? llvm::ConstantFP::getZeroValueForNegation(Imag->getType())
 1832         : llvm::Constant::getNullValue(Imag->getType());
 1901     llvm::Type *ArgType = ArgValue->getType();
 1921     llvm::Type *ArgType = ArgValue->getType();
 1927     if (Result->getType() != ResultType)
 1938     llvm::Type *ArgType = ArgValue->getType();
 1944     if (Result->getType() != ResultType)
 1955     llvm::Type *ArgType = ArgValue->getType();
 1965     if (Result->getType() != ResultType)
 1976     llvm::Type *ArgType = ArgValue->getType();
 1982     if (Result->getType() != ResultType)
 1992     llvm::Type *ArgType = ArgValue->getType();
 1997     if (Result->getType() != ResultType)
 2010     llvm::Type *ArgType = ArgValue->getType();
 2015     if (Result->getType() != ResultType)
 2028     llvm::Type *ArgType = ArgValue->getType();
 2129     if (Result->getType() != ResultType)
 2153     Function *F = CGM.getIntrinsic(Intrinsic::prefetch, Address->getType());
 2184     llvm::Type *ArgType = Base->getType();
 2243     Constant *Infinity = ConstantFP::getInfinity(V->getType());
 2256         AbsArg, ConstantFP::getInfinity(Arg->getType()), "isinf");
 2275       Builder.CreateFCmpULT(Abs, ConstantFP::getInfinity(V->getType()),"isinf");
 2291     if (Result->getType() != ResultType)
 2330       Builder.CreateFCmpOEQ(VAbs, ConstantFP::getInfinity(V->getType()),
 2514     PHINode *DstPhi = Builder.CreatePHI(Dst->getType(), 2);
 2516     PHINode *SrcPhi = Builder.CreatePHI(Src->getType(), 2);
 2611     llvm::IntegerType *IntTy = cast<llvm::IntegerType>(Int->getType());
 2900     unsigned AddrSpace = Ptr->getType()->getPointerAddressSpace();
 2983     unsigned AddrSpace = Ptr.getPointer()->getType()->getPointerAddressSpace();
 3136                                       AnnVal->getType());
 3206                                                X->getType());
 3406     RTy = Exchange->getType();
 3582       llvm::Type *ArgTys[] = {Arg0->getType(), I8PTy, Int32Ty, Int32Ty};
 3595       llvm::Type *ArgTys[] = {Arg0->getType(), Arg1->getType(), Int32Ty, I8PTy,
 3595       llvm::Type *ArgTys[] = {Arg0->getType(), Arg1->getType(), Int32Ty, I8PTy,
 3604       if (Arg2->getType() != Int32Ty)
 3642     llvm::Type *ArgTys[] = {Arg0->getType(), Int32Ty, Int32Ty, Int32Ty};
 3647     if (Arg1->getType() != Int32Ty)
 3682     llvm::Type *ArgTys[] = {Arg0->getType(), Arg1->getType(), Int32Ty, Int32Ty};
 3682     llvm::Type *ArgTys[] = {Arg0->getType(), Arg1->getType(), Int32Ty, Int32Ty};
 3708     llvm::Type *ArgTys[] = {Arg0->getType(), Int32Ty, Int32Ty};
 3728     if (Arg0->getType()->getPointerAddressSpace() !=
 3834           GenericVoidPtrTy, IntTy, ElemPtr->getType()};
 3910       ArgTys.push_back(ElemPtr->getType());
 3970                 IntTy, {NDRange->getType(), GenericVoidPtrTy, GenericVoidPtrTy},
 4030     if (PTy0 != Arg0Val->getType()) {
 4038     if (PTy1 != Arg1->getType())
 4062     if (PTy0 != Arg0->getType())
 4068     if (PTy1 != Arg1Val->getType()) {
 4076     if (PTy2 != Arg2->getType())
 4177       if (PTy != ArgValue->getType()) {
 4181               ArgValue->getType()->getPointerAddressSpace()) {
 4184               ArgValue->getType()->getPointerTo(PtrTy->getAddressSpace()));
 4203     if (RetTy != V->getType()) {
 4206         if (PtrTy->getAddressSpace() != V->getType()->getPointerAddressSpace()) {
 4208             V, V->getType()->getPointerTo(PtrTy->getAddressSpace()));
 4212       assert(V->getType()->canLosslesslyBitCastTo(RetTy) &&
 4336   unsigned nElts = V->getType()->getVectorNumElements();
 4348       Ops[j] = EmitNeonShiftVector(Ops[j], ai->getType(), rightshift);
 4350       Ops[j] = Builder.CreateBitCast(Ops[j], ai->getType(), name);
 5212     llvm::Type *ArgTy = ai->getType();
 5213     if (Ops[j]->getType()->getPrimitiveSizeInBits() ==
 5217     assert(ArgTy->isVectorTy() && !Ops[j]->getType()->isVectorTy());
 5229       Result->getType()->getPrimitiveSizeInBits())
 5496     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 5516     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 5542     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 5816   llvm::Type *OTy = Op->getType();
 5823     OTy = BI->getOperand(0)->getType();
 5844   llvm::VectorType *TblTy = cast<llvm::VectorType>(Ops[0]->getType());
 6048     Function *F = CGM.getIntrinsic(Intrinsic::prefetch, Address->getType());
 6055         CGM.getIntrinsic(Intrinsic::bitreverse, Arg->getType()), Arg, "rbit");
 6240     if (StoreVal->getType()->isPointerTy())
 6245           CGM.getDataLayout().getTypeSizeInBits(StoreVal->getType()));
 6253                                    StoreAddr->getType());
 6445     llvm::Type *Tys[] = {Arg->getType()};
 6750       llvm::Type *Tys[] = {Int8PtrTy, Ops[1]->getType()};
 6758     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 7102     Function *F = CGM.getIntrinsic(Intrinsic::prefetch, Address->getType());
 7111         CGM.getIntrinsic(Intrinsic::bitreverse, Arg->getType()), Arg, "rbit");
 7118         CGM.getIntrinsic(Intrinsic::bitreverse, Arg->getType()), Arg, "rbit");
 7229     if (StoreVal->getType()->isPointerTy())
 7234           CGM.getDataLayout().getTypeSizeInBits(StoreVal->getType()));
 7242                                    StoreAddr->getType());
 7526     bool Is64 = Ops[0]->getType()->getPrimitiveSizeInBits() == 64;
 7541     bool Is64 = Ops[0]->getType()->getPrimitiveSizeInBits() == 64;
 7560     if (Ops[0]->getType()->getPrimitiveSizeInBits() == 64)
 7562     else if (Ops[0]->getType()->getPrimitiveSizeInBits() == 32)
 8466     llvm::Value *addend = Builder.CreateBitCast(Ops[0], tmp->getType());
 9163     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 9174                 llvm::PointerType::getUnqual(Ops[1]->getType()));
 9185                 llvm::PointerType::getUnqual(Ops[1]->getType()));
 9196                 llvm::PointerType::getUnqual(Ops[1]->getType()));
 9208                 llvm::PointerType::getUnqual(Ops[1]->getType()));
 9220                 llvm::PointerType::getUnqual(Ops[1]->getType()));
 9232                 llvm::PointerType::getUnqual(Ops[1]->getType()));
 9237     llvm::Type *Tys[2] = { VTy, Ops[1]->getType() };
 9245     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 9251     llvm::Type *Tys[2] = { VTy, Ops[1]->getType() };
 9260     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 9266     llvm::Type *Tys[2] = { VTy, Ops[1]->getType() };
 9276     Ty = llvm::PointerType::getUnqual(Ops[1]->getType());
 9284     llvm::Type *Tys[2] = { VTy, Ops[2]->getType() };
 9293     llvm::Type *Tys[2] = { VTy, Ops[3]->getType() };
 9301     llvm::Type *Tys[2] = { VTy, Ops[3]->getType() };
 9310     llvm::Type *Tys[2] = { VTy, Ops[4]->getType() };
 9318     llvm::Type *Tys[2] = { VTy, Ops[4]->getType() };
 9327     llvm::Type *Tys[2] = { VTy, Ops[5]->getType() };
 9459       {FieldAddr->getType()});
 9481     llvm::UndefValue::get(llvm::VectorType::get(Ops[0]->getType(), Ops.size()));
 9494                          cast<IntegerType>(Mask->getType())->getBitWidth());
 9515                                llvm::PointerType::getUnqual(Ops[1]->getType()));
 9518                                    Ops[1]->getType()->getVectorNumElements());
 9527                                llvm::PointerType::getUnqual(Ops[1]->getType()));
 9530                                    Ops[1]->getType()->getVectorNumElements());
 9537   llvm::Type *ResultTy = Ops[1]->getType();
 9555   llvm::Type *ResultTy = Ops[1]->getType();
 9568   llvm::Type *ResultTy = Ops[1]->getType();
 9586   unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
 9594                                    Ops[0]->getType());
 9599   llvm::Type *Ty = Op0->getType();
 9604   if (Amt->getType() != Ty) {
 9619   llvm::Type *Ty = Op0->getType();
 9663   Mask = getMaskVecValue(CGF, Mask, Op0->getType()->getVectorNumElements());
 9677                           Mask->getType()->getIntegerBitWidth());
 9698         Cmp, llvm::Constant::getNullValue(Cmp->getType()), Indices);
 9710   unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
 9741   Value *Zero = Constant::getNullValue(In->getType());
 9748   llvm::Type *Ty = Ops[1]->getType();
 9754     Function *F = CGF.CGM.getIntrinsic(IID, { Ty, Ops[0]->getType() });
 9766   llvm::Type *Ty = Ops[0]->getType();
 9838     llvm::Type *Ty = A->getType();
 9868     MaskFalseVal = Constant::getNullValue(Ops[0]->getType());
 9904     Intrinsic::ID IID = Ops[0]->getType()->getPrimitiveSizeInBits() == 32 ?
 9910     Function *FMA = CGF.CGM.getIntrinsic(Intrinsic::fma, Ops[0]->getType());
 9915     Value *PassThru = ZeroMask ? Constant::getNullValue(Res->getType())
 9931   llvm::Type *Ty = Ops[0]->getType();
 9960   llvm::Type *Ty = Ops[0]->getType();
10000   llvm::Function *F = CGF.CGM.getIntrinsic(IID, Ops[0]->getType());
10207     llvm::VectorType *FPVecTy = cast<llvm::VectorType>(Ops[0]->getType());
10221     Function *F = CGM.getIntrinsic(Intrinsic::prefetch, Address->getType());
10252     Function *F = CGM.getIntrinsic(Intrinsic::ctlz, Ops[0]->getType());
10258     Function *F = CGM.getIntrinsic(Intrinsic::cttz, Ops[0]->getType());
10285     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
10300     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
10455                              Constant::getNullValue(Ops[0]->getType()));
10731     unsigned MinElts = std::min(Ops[0]->getType()->getVectorNumElements(),
10732                                 Ops[2]->getType()->getVectorNumElements());
10839     unsigned MinElts = std::min(Ops[2]->getType()->getVectorNumElements(),
10840                                 Ops[3]->getType()->getVectorNumElements());
10864     unsigned SrcNumElts = Ops[0]->getType()->getVectorNumElements();
10876                                              UndefValue::get(Ops[0]->getType()),
10901     unsigned DstNumElts = Ops[0]->getType()->getVectorNumElements();
10902     unsigned SrcNumElts = Ops[1]->getType()->getVectorNumElements();
10914                                              UndefValue::get(Ops[1]->getType()),
10931     Value *Res = Builder.CreateTrunc(Ops[0], Ops[1]->getType());
10939         return Builder.CreateTrunc(Ops[0], Ops[1]->getType());
10966     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
10983     llvm::Type *Ty = Ops[0]->getType();
11007     llvm::Type *Ty = Ops[0]->getType();
11037     llvm::Type *Ty = Ops[0]->getType();
11064     llvm::Type *Ty = Ops[0]->getType();
11092     llvm::Type *Ty = Ops[0]->getType();
11110     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11123       Ops[0] = llvm::Constant::getNullValue(Ops[0]->getType());
11147     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11170     llvm::Type *Ty = Ops[0]->getType();
11196     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11208         OutOps[l] = llvm::ConstantAggregateZero::get(Ops[0]->getType());
11234     llvm::Type *ResultType = Ops[0]->getType();
11258     return Builder.CreateBitCast(SV, Ops[0]->getType(), "cast");
11264     llvm::Type *ResultType = Ops[0]->getType();
11295     unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11298       return llvm::Constant::getNullValue(Ops[0]->getType());
11306     Value *Zero = llvm::Constant::getNullValue(In->getType());
11310     return Builder.CreateBitCast(SV, Ops[0]->getType());
11317     unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11320       return llvm::Constant::getNullValue(Ops[0]->getType());
11328     Value *Zero = llvm::Constant::getNullValue(In->getType());
11332     return Builder.CreateBitCast(SV, Ops[0]->getType());
11351         Ptr, llvm::PointerType::getUnqual(Src->getType()), "cast");
11466     Value *C = llvm::Constant::getAllOnesValue(Ops[0]->getType());
11475     Value *C = llvm::Constant::getNullValue(Ops[0]->getType());
11517     unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11545     unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11550     return Builder.CreateBitCast(Res, Ops[0]->getType());
11581     unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11584                                  Ops[0]->getType());
11593     unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11595     return Builder.CreateBitCast(Res, Ops[0]->getType());
11601     unsigned NumElts = Ops[0]->getType()->getIntegerBitWidth();
11618     return Builder.CreateBitCast(Res, Ops[0]->getType());
11627     Function *F = CGM.getIntrinsic(Intrinsic::ctlz, Ops[0]->getType());
11633     Function *F = CGM.getIntrinsic(Intrinsic::sqrt, A->getType());
11649     Function *F = CGM.getIntrinsic(Intrinsic::sqrt, A->getType());
11672     Function *F = CGM.getIntrinsic(Intrinsic::sqrt, Ops[0]->getType());
11890     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11927     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
11985     unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
12101       unsigned NumElts = Ops[0]->getType()->getVectorNumElements();
12147                              Ops[0]->getType()->getVectorNumElements());
12802         llvm::UndefValue::get(llvm::VectorType::get(Ops[0]->getType(), 2));
12838                                            X->getType());
12846       = FlagOutPtr.getPointer()->getType()->getPointerElementType();
12860                                       Src0->getType());
12876       Args.insert(Args.begin(), llvm::UndefValue::get(Args[0]->getType()));
12878         CGM.getIntrinsic(Intrinsic::amdgcn_update_dpp, Args[0]->getType());
12919                                 { Builder.getInt32Ty(), Src0->getType() });
12925                                 { Builder.getInt16Ty(), Src0->getType() });
12948       { Builder.getInt64Ty(), Src0->getType() });
12959       { Builder.getInt64Ty(), Src0->getType() });
12974     Function *F = CGM.getIntrinsic(Intrin, { Src0->getType() });
13622         CGM.getIntrinsic(IntrinsicID, {Ptr->getType()->getPointerElementType(),
13623                                        Ptr->getType()}),
13629         CGM.getIntrinsic(IntrinsicID, {Ptr->getType()->getPointerElementType(),
13630                                        Ptr->getType()}),
13703         CGM.getIntrinsic(Intrinsic::nvvm_atomic_load_inc_32, Ptr->getType());
13711         CGM.getIntrinsic(Intrinsic::nvvm_atomic_load_dec_32, Ptr->getType());
13839             {Ptr->getType()->getPointerElementType(), Ptr->getType()}),
13839             {Ptr->getType()->getPointerElementType(), Ptr->getType()}),
13849             {Ptr->getType()->getPointerElementType(), Ptr->getType()}),
13849             {Ptr->getType()->getPointerElementType(), Ptr->getType()}),
13920         Builder.CreateCall(CGM.getIntrinsic(IID, Src->getType()), {Src, Ldm});
13963         CGM.getIntrinsic(IID, Dst->getType());
14158         CGM.getIntrinsic(Intrinsic::wasm_trunc_signed, {ResT, Src->getType()});
14168                                         {ResT, Src->getType()});
14180                                      {ResT, Src->getType()});
14192                                      {ResT, Src->getType()});
14347     Function *Callee = CGM.getIntrinsic(IntNo, Vec->getType());
14353     Function *Callee = CGM.getIntrinsic(Intrinsic::fabs, Vec->getType());
14359     Function *Callee = CGM.getIntrinsic(Intrinsic::sqrt, Vec->getType());
14382     Function *Callee = CGM.getIntrinsic(IntNo, A->getType());
14405         CGM.getIntrinsic(IntNo, {ConvertType(E->getType()), Low->getType()});
14439         CGM.getIntrinsic(IntNo, {ConvertType(E->getType()), Vec->getType()});
14469                                             NewBase->getType()->getPointerTo());
14493                                             NewBase->getType()->getPointerTo());
14533         Builder.CreateBitCast(DestAddress, DestVal->getType()->getPointerTo());
14558                                               Vprd->getType()->getPointerTo(0));
14580                                               Vprd->getType()->getPointerTo(0));
tools/clang/lib/CodeGen/CGCUDANV.cpp
  641           llvm::Constant::getNullValue(HandleValue->getType());
  783     llvm::Constant *Zero = llvm::Constant::getNullValue(HandleValue->getType());
tools/clang/lib/CodeGen/CGCall.cpp
 1105         V->getType() != IRFuncTy->getParamType(IRCallArgPos))
 1166   if (Val->getType() == Ty)
 1169   if (isa<llvm::PointerType>(Val->getType())) {
 1182   if (Val->getType() != DestIntTy) {
 1187       uint64_t SrcSize = DL.getTypeSizeInBits(Val->getType());
 1273         dyn_cast<llvm::StructType>(Val->getType())) {
 1294   llvm::Type *SrcTy = Src->getType();
 2171   if (value->getType() == varType) return value;
 2438         if (V->getType() != ArgI.getCoerceToType())
 2449         if (V->getType() != LTy)
 2593   llvm::Type *resultType = result->getType();
 2701   llvm::Type *resultType = result->getType();
 3083       llvm::ConstantPointerNull::get(cast<llvm::PointerType>(ptr->getType()));
 3319       llvm::PHINode *phiToUse = CGF.Builder.CreatePHI(valueToUse->getType(), 2,
 3322       phiToUse->addIncoming(llvm::UndefValue::get(valueToUse->getType()),
 3395       Builder.CreateICmpNE(V, llvm::Constant::getNullValue(V->getType()));
 3822           Callee.getFunctionPointer()->getType()->getPointerElementType();
 4017           auto *T = V->getType()->getPointerElementType()->getPointerTo(
 4065         if (ArgInfo.getCoerceToType() != V->getType() &&
 4066             V->getType()->isIntegerTy())
 4072             V->getType() != IRFuncTy->getParamType(FirstIRArg))
 4147         llvm::Type *scalarType = RV.getScalarVal()->getType();
 4153             RV.getScalarVal()->getType(),
 4201       unsigned CalleeAS = CalleePtr->getType()->getPointerAddressSpace();
 4207       if (Arg->getType() != LastParamTy) {
 4290       assert(IRCallArgs[i]->getType() == IRFuncTy->getParamType(i));
 4296     if (auto *VT = dyn_cast<llvm::VectorType>(IRCallArgs[i]->getType()))
 4376   if (!CI->getType()->isVoidTy())
 4380   if (auto *VT = dyn_cast<llvm::VectorType>(CI->getType()))
 4475       assert(CI->getType() == RetAI.getUnpaddedCoerceAndExpandType());
 4476       bool requiresExtract = isa<llvm::StructType>(CI->getType());
 4532           if (V->getType() != RetIRTy)
tools/clang/lib/CodeGen/CGCall.h
  115       assert(functionPtr->getType()->isPointerTy());
  116       assert(functionPtr->getType()->getPointerElementType()->isFunctionTy());
tools/clang/lib/CodeGen/CGClass.cpp
  249   unsigned AddrSpace = ptr->getType()->getPointerAddressSpace();
  386     BaseAddr.getPointer()->getType()->getPointerAddressSpace();
  426     llvm::PHINode *PHI = Builder.CreatePHI(Value->getType(), 2);
  428     PHI->addIncoming(llvm::Constant::getNullValue(Value->getType()), CastNull);
 1949   llvm::PHINode *cur = Builder.CreatePHI(arrayBegin->getType(), 2,
 2044         ThisPtr->getType()->getPointerElementType()->getPointerTo(TargetThisAS);
 2287       GetVTablePtr(This, VTableGlobal->getType(), Vptr.VTableClass);
 2832       cast<llvm::PointerType>(VTable->getType())->getElementType());
tools/clang/lib/CodeGen/CGCleanup.cpp
   45       CGF.CreateDefaultAlignTempAlloca(V->getType(), "saved-rvalue");
   53         llvm::StructType::get(V.first->getType(), V.second->getType());
   53         llvm::StructType::get(V.first->getType(), V.second->getType());
  456         CreateDefaultAlignTempAlloca(Inst->getType(), "tmp.exprcleanup");
tools/clang/lib/CodeGen/CGCoroutine.cpp
  202   if (SuspendRet != nullptr && SuspendRet->getType()->isIntegerTy(1)) {
tools/clang/lib/CodeGen/CGDecl.cpp
  337   if (GV->getType()->getElementType() != Init->getType()) {
  340     GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
  396   llvm::Type *expectedType = addr->getType();
 1026     SizeSoFar = CurOff + DL.getTypeAllocSize(CurOp->getType());
 1042   llvm::Type *OrigTy = constant->getType();
 1064     auto *NewElemTy = Values[0]->getType();
 1102     auto *Ty = Constant->getType();
 1144   auto *Ty = constant->getType();
 1242   auto *Ty = constant->getType();
 1254   auto *Ty = constant->getType();
 1291   assert(Addr->getType()->getPointerAddressSpace() ==
 1303   assert(Addr->getType()->getPointerAddressSpace() ==
 1333           CreateDefaultAlignTempAlloca(VlaSize.NumElts->getType(), NameRef);
 1355       auto VlaExprTy = VlaSize.NumElts->getType()->getPointerElementType();
 1462             CreateTempAlloca(Zero->getType(), CharUnits::One(), "nrvo");
 1712         SizeVal, llvm::ConstantInt::get(SizeVal->getType(), 0),
 2164     Builder.CreatePHI(begin->getType(), 2, "arraydestroy.elementPast");
 2390       auto *T = V->getType()->getPointerElementType()->getPointerTo(DestAS);
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  195   unsigned ActualAddrSpace = DeclPtr->getType()->getPointerAddressSpace();
  272     llvm::FunctionType::get(IntTy, dtorStub->getType(), false);
  694       Builder.CreateStore(llvm::ConstantInt::get(GuardVal->getType(),1), Guard);
  700               CGM.getDataLayout().getTypeAllocSize(GuardVal->getType())));
tools/clang/lib/CodeGen/CGException.cpp
  347   if (Fn->getType() != CXXFn.getCallee()->getType())
  867                              filterTypes[0]->getType() : Int8PtrTy,
 1586   llvm::Type *LPadType = llvm::StructType::get(Exn->getType(), Sel->getType());
 1586   llvm::Type *LPadType = llvm::StructType::get(Exn->getType(), Sel->getType());
 1969   assert(SEHInfo->getType() == Int8PtrTy);
tools/clang/lib/CodeGen/CGExpr.cpp
   52       cast<llvm::PointerType>(value->getType())->getAddressSpace();
   58   if (value->getType() == destType) return value;
  390               CGF.CGM.getModule(), Init->getType(), /*isConstant=*/true,
  664   if (Ptr->getType()->getPointerAddressSpace())
  921       llvm::ConstantInt::get(SizeInBytes->getType(), EltSize);
  993   if (isa<llvm::IntegerType>(InVal.first->getType())) {
  995     NextVal = llvm::ConstantInt::get(InVal.first->getType(), AmountVal, true);
 1605       cast<llvm::IntegerType>(Value->getType())->getBitWidth() == 1)
 1696     if (Value->getType()->isIntegerTy(1))
 1698     assert(Value->getType()->isIntegerTy(getContext().getTypeSize(Ty)) &&
 1708     assert(Value->getType()->isIntegerTy(getContext().getTypeSize(Ty)) &&
 1724       llvm::Type *SrcTy = Value->getType();
 1875   Vec = Builder.CreateShuffleVector(Vec, llvm::UndefValue::get(Vec->getType()),
 2103     unsigned NumDstElts = Vec->getType()->getVectorNumElements();
 2114                                         llvm::UndefValue::get(Vec->getType()),
 2128                                     llvm::UndefValue::get(SrcVal->getType()),
 2288   unsigned AS = cast<llvm::PointerType>(V->getType())->getAddressSpace();
 2823       CGM.getModule(), Descriptor->getType(),
 2837   if (V->getType() == TargetTy)
 2842   if (V->getType()->isFloatingPointTy()) {
 2843     unsigned Bits = V->getType()->getPrimitiveSizeInBits();
 2850   if (V->getType()->isIntegerTy() &&
 2851       V->getType()->getIntegerBitWidth() <= TargetTy->getIntegerBitWidth())
 2855   if (!V->getType()->isPointerTy()) {
 2856     Address Ptr = CreateDefaultAlignTempAlloca(V->getType());
 3075           new llvm::GlobalVariable(CGM.getModule(), Info->getType(), false,
 3136         new llvm::GlobalVariable(CGM.getModule(), Info->getType(), false,
 3471     if (Promote && Idx->getType() != IntPtrTy)
 3542         llvm::ConstantInt::get(Idx->getType(), InterfaceSize.getQuantity());
 4264     llvm::PHINode *phi = Builder.CreatePHI(lhs->getPointer()->getType(),
 4800       llvm::Type *PrefixStructTyElems[] = {PrefixSig->getType(), Int32Ty};
 4998   assert(Val->getType()->isFPOrFPVectorTy());
tools/clang/lib/CodeGen/CGExprAgg.cpp
  500           CGM.getModule(), C->getType(),
  525     endOfInit = CGF.CreateTempAlloca(begin->getType(), CGF.getPointerAlign(),
  595       Builder.CreatePHI(element->getType(), 2, "arrayinit.cur");
 1672       Builder.CreatePHI(zero->getType(), 2, "arrayinit.index");
 1680     if (outerBegin->getType() != element->getType())
 1680     if (outerBegin->getType() != element->getType())
 1681       outerBegin = Builder.CreateBitCast(outerBegin, element->getType());
tools/clang/lib/CodeGen/CGExprCXX.cpp
  529         CGF.CGM.getModule(), NullConstantForBase->getType(),
  701   assert(isa<llvm::IntegerType>(numElements->getType()));
  712     = cast<llvm::IntegerType>(numElements->getType());
  835     assert(numElements->getType() == CGF.SizeTy);
 1001           RemainingSize->getType(),
 1155           llvm::ConstantInt::get(NumElements->getType(), InitListElements));
 1740     llvm::PHINode *PHI = Builder.CreatePHI(resultPtr->getType(), 2);
 1742     PHI->addIncoming(llvm::Constant::getNullValue(resultPtr->getType()),
 2263     llvm::PHINode *PHI = Builder.CreatePHI(Value->getType(), 2);
 2265     PHI->addIncoming(llvm::Constant::getNullValue(Value->getType()), CastNull);
tools/clang/lib/CodeGen/CGExprComplex.cpp
  402   return ComplexPairTy(llvm::Constant::getNullValue(Imag->getType()), Imag);
  447   return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType()));
  552   if (Op.first->getType()->isFloatingPointTy()) {
  568   if (Op.second->getType()->isFloatingPointTy())
  579   if (Op.LHS.first->getType()->isFloatingPointTy()) {
  597   if (Op.LHS.first->getType()->isFloatingPointTy()) {
  681   if (Op.LHS.first->getType()->isFloatingPointTy()) {
  735           getComplexMultiplyLibCallName(Op.LHS.first->getType()), Op);
  741       llvm::PHINode *RealPHI = Builder.CreatePHI(ResR->getType(), 3, "real_mul_phi");
  745       llvm::PHINode *ImagPHI = Builder.CreatePHI(ResI->getType(), 3, "imag_mul_phi");
  783   if (LHSr->getType()->isFloatingPointTy()) {
  795         LibCallOp.LHS.second = llvm::Constant::getNullValue(LHSr->getType());
  797       switch (LHSr->getType()->getTypeID()) {
  815         LHSi = llvm::Constant::getNullValue(RHSi->getType());
 1044   llvm::PHINode *RealPN = Builder.CreatePHI(LHS.first->getType(), 2, "cond.r");
 1049   llvm::PHINode *ImagPN = Builder.CreatePHI(LHS.first->getType(), 2, "cond.i");
tools/clang/lib/CodeGen/CGExprConstant.cpp
   48         CGM.getDataLayout().getABITypeAlignment(C->getType()));
   56     return getSize(C->getType());
  323     if (auto *Seq = dyn_cast<llvm::SequentialType>(CA->getType())) {
  332       auto *ST = cast<llvm::StructType>(CA->getType());
  405     llvm::Type *CommonType = Elems[0]->getType();
  415       if (Elems[I]->getType() != CommonType ||
  519         STy->getElementType(0) == Elems[First]->getType())
  903   auto GV = new llvm::GlobalVariable(CGM.getModule(), C->getType(),
  958     if (Filler->getType() != CommonElementType)
  971     Types.push_back(Elt->getType());
 1045       if (C->getType() == destTy) return C;
 1052       Types.push_back(C->getType());
 1053       unsigned CurSize = CGM.getDataLayout().getTypeAllocSize(C->getType());
 1213         CommonElementType = C->getType();
 1214       else if (C->getType() != CommonElementType)
 1468       BaseValueTy = init->getType();
 1690   if (C->getType()->isIntegerTy(1)) {
 1790     llvm::Type *origPtrTy = C->getType();
 1895     if (TypeInfo->getType() != StdTypeInfoPtrTy)
 2035         llvm::StructType::get(Complex[0]->getType(), Complex[1]->getType());
 2035         llvm::StructType::get(Complex[0]->getType(), Complex[1]->getType());
 2058         llvm::StructType::get(Complex[0]->getType(), Complex[1]->getType());
 2058         llvm::StructType::get(Complex[0]->getType(), Complex[1]->getType());
 2126         CommonElementType = C->getType();
 2127       else if (C->getType() != CommonElementType)
tools/clang/lib/CodeGen/CGExprScalar.cpp
  387     llvm::Value *Zero = llvm::Constant::getNullValue(V->getType());
  393     Value *Zero = CGF.CGM.getNullPointer(cast<llvm::PointerType>(V->getType()), QT);
  403       if (ZI->getOperand(0)->getType() == Builder.getInt1Ty()) {
  733     if (Ops.LHS->getType()->isFPOrFPVectorTy()) {
  861   assert((SrcType->isIntegerType() || isa<llvm::PointerType>(Src->getType())) &&
  864   if (isa<llvm::IntegerType>(Src->getType()))
  867   assert(isa<llvm::PointerType>(Src->getType()));
  945   llvm::Type *SrcTy = Src->getType();
  946   llvm::Type *DstTy = Dst->getType();
  951   assert(SrcTy->getScalarSizeInBits() > Dst->getType()->getScalarSizeInBits());
  990   unsigned SrcBits = Src->getType()->getScalarSizeInBits();
  991   unsigned DstBits = Dst->getType()->getScalarSizeInBits();
 1033   llvm::Type *SrcTy = Src->getType();
 1034   llvm::Type *DstTy = Dst->getType();
 1056     llvm::Type *VTy = V->getType();
 1093   llvm::Type *SrcTy = Src->getType();
 1094   llvm::Type *DstTy = Dst->getType();
 1214   llvm::Type *SrcTy = Src->getType();
 1444       Value *Zero = llvm::Constant::getNullValue(Result->getType());
 1597     llvm::VectorType *LTy = cast<llvm::VectorType>(LHS->getType());
 1602     llvm::VectorType *MTy = cast<llvm::VectorType>(Mask->getType());
 1660   llvm::Type *SrcTy = Src->getType();
 1811     llvm::VectorType *VVT = dyn_cast<llvm::VectorType>(Init->getType());
 1868       llvm::VectorType *OpTy = cast<llvm::VectorType>(SVOp->getType());
 1995     llvm::Type *SrcTy = Src->getType();
 2321   BinOp.RHS = llvm::ConstantInt::get(InVal->getType(), 1, false);
 2332       llvm::ConstantInt::get(InVal->getType(), IsInc ? 1 : -1, true);
 2402     atomicPHI = Builder.CreatePHI(value->getType(), 2);
 2431       llvm::Value *amt = llvm::ConstantInt::get(value->getType(), amount, true);
 2462       value = Builder.CreateBitCast(value, input->getType());
 2478       llvm::Value *amt = llvm::ConstantInt::get(value->getType(), amount);
 2484                   llvm::ConstantFP::get(value->getType(), amount),
 2505     if (value->getType()->isFloatTy())
 2508     else if (value->getType()->isDoubleTy())
 2518       if (value->getType()->isFP128Ty())
 2520       else if (value->getType()->isHalfTy())
 2536         value = Builder.CreateFPTrunc(value, input->getType(), "incdec.conv");
 2556     value = Builder.CreateBitCast(value, input->getType());
 2590   if (Op->getType()->isFPOrFPVectorTy())
 2596   BinOp.LHS = llvm::Constant::getNullValue(BinOp.RHS->getType());
 2614     Value *Zero = llvm::Constant::getNullValue(Oper->getType());
 2616     if (Oper->getType()->isFPOrFPVectorTy())
 2896     atomicPHI = Builder.CreatePHI(OpInfo.LHS->getType(), 2);
 2976     llvm::IntegerType *Ty = cast<llvm::IntegerType>(Zero->getType());
 3012   if (Ops.LHS->getType()->isFPOrFPVectorTy()) {
 3021       llvm::Type *ValTy = Val->getType();
 3170   if (!isSubtraction && !pointer->getType()->isPointerTy()) {
 3177   unsigned width = cast<llvm::IntegerType>(index->getType())->getBitWidth();
 3179   auto PtrTy = cast<llvm::PointerType>(pointer->getType());
 3202     return CGF.Builder.CreateIntToPtr(index, pointer->getType());
 3232     return CGF.Builder.CreateBitCast(result, pointer->getType());
 3263     return CGF.Builder.CreateBitCast(result, pointer->getType());
 3288         llvm::ConstantFP::getZeroValueForNegation(MulOp0->getType()), MulOp0,
 3293         llvm::ConstantFP::getZeroValueForNegation(Addend->getType()), Addend,
 3298       CGF.CGM.getIntrinsic(llvm::Intrinsic::fmuladd, Addend->getType()),
 3341   if (op.LHS->getType()->isPointerTy() ||
 3342       op.RHS->getType()->isPointerTy())
 3365   if (op.LHS->getType()->isFPOrFPVectorTy()) {
 3489   if (!op.LHS->getType()->isPointerTy()) {
 3510     if (op.LHS->getType()->isFPOrFPVectorTy()) {
 3526   if (!op.RHS->getType()->isPointerTy())
 3583   if (llvm::VectorType *VT = dyn_cast<llvm::VectorType>(LHS->getType()))
 3586     Ty = cast<llvm::IntegerType>(LHS->getType());
 3587   return llvm::ConstantInt::get(RHS->getType(), Ty->getBitWidth() - 1);
 3594   if (Ops.LHS->getType() != RHS->getType())
 3594   if (Ops.LHS->getType() != RHS->getType())
 3595     RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom");
 3607            isa<llvm::IntegerType>(Ops.LHS->getType())) {
 3639         llvm::Value *One = llvm::ConstantInt::get(BitsShiftedOff->getType(), 1);
 3642       llvm::Value *Zero = llvm::ConstantInt::get(BitsShiftedOff->getType(), 0);
 3645       llvm::PHINode *BaseCheck = Builder.CreatePHI(ValidBase->getType(), 2);
 3662   if (Ops.LHS->getType() != RHS->getType())
 3662   if (Ops.LHS->getType() != RHS->getType())
 3663     RHS = Builder.CreateIntCast(RHS, Ops.LHS->getType(), false, "sh_prom");
 3670            isa<llvm::IntegerType>(Ops.LHS->getType())) {
 3813       llvm::IntegerType *ResultTy = cast<llvm::IntegerType>(Result->getType());
 3823     } else if (LHS->getType()->isFPOrFPVectorTy()) {
 3863       LHS.second = llvm::Constant::getNullValue(LHS.first->getType());
 3874       RHS.second = llvm::Constant::getNullValue(RHS.first->getType());
 3969     Value *Zero = llvm::ConstantAggregateZero::get(LHS->getType());
 3970     if (LHS->getType()->isFPOrFPVectorTy()) {
 4053     Value *Zero = llvm::ConstantAggregateZero::get(LHS->getType());
 4054     if (LHS->getType()->isFPOrFPVectorTy()) {
 4214     llvm::VectorType *rhsVTy = cast<llvm::VectorType>(RHS->getType());
 4216       RHSTmp = Builder.CreateBitCast(RHS, tmp2->getType());
 4217       LHSTmp = Builder.CreateBitCast(LHS, tmp->getType());
 4225       tmp5 = Builder.CreateBitCast(tmp5, RHS->getType());
 4282   llvm::PHINode *PN = Builder.CreatePHI(LHS->getType(), 2, "cond");
 4313   if (ArgTy != Val->getType()) {
 4314     if (ArgTy->isPointerTy() && !Val->getType()->isPointerTy())
 4330   llvm::Value *UnV = llvm::UndefValue::get(Src->getType());
 4361   auto SrcTy = Src->getType();
 4391   llvm::Type *SrcTy = Src->getType();
 4570         Builder.CreatePtrToInt(BasePtr, DL.getIntPtrType(BasePtr->getType()));
 4572         Builder.CreatePtrToInt(GEPVal, DL.getIntPtrType(GEPVal->getType()));
 4661   llvm::Type *PtrTy = Ptr->getType();
tools/clang/lib/CodeGen/CGGPUBuiltin.cpp
  100       ArgTypes.push_back(Args[I].getRValue(*this).getScalarVal()->getType());
  113       Builder.CreateAlignedStore(Arg, P, DL.getPrefTypeAlignment(Arg->getType()));
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp
  352         llvm::ConstantInt::get(NumElts->getType(), BaseEltSize);
  437           if (Arg.getType() != CGM.Int8PtrPtrTy)
tools/clang/lib/CodeGen/CGObjC.cpp
  273   if (ExpLLVMTy == Result.getScalarVal()->getType())
 1996   llvm::Type *origType = returnType ? returnType : value->getType();
 2038   assert(addr.getElementType() == value->getType());
 2045   llvm::Type *origType = value->getType();
 2100   llvm::Type *origType = returnType ? returnType : value->getType();
 2279   assert(addr.getElementType() == value->getType());
 2373   llvm::Type *origType = value->getType();
 2497   assert(value->getType() == Int8PtrTy);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  221       auto *GV = new llvm::GlobalVariable(TheModule, value->getType(), true,
  325     if (V->getType() == Ty) return V;
  756         CGF.CreateTempAlloca(Receiver->getType(), CGF.getPointerAlign());
  960       Types.push_back(Arg->getType());
 1014     } else if (isa->getType() != PtrToIdTy)
 1062       auto *Buffer = new llvm::GlobalVariable(TheModule, C->getType(),
 1420     if (Val->getType() == Ty)
 1439       auto *GV = new llvm::GlobalVariable(TheModule, Init->getType(),
 1683     if (Offset->getType() != PtrDiffTy)
 2343   Address tmp = CGF.CreateTempAlloca(SelValue->getType(),
 2473   else if (isa->getType() != PtrToIdTy)
 2582       llvm::StructType::get(Receiver->getType(), IdTy);
 2658             llvm::Constant::getNullValue(Receiver->getType()));
 2734       llvm::PHINode *phi = Builder.CreatePHI(v->getType(), 2);
 2736       phi->addIncoming(llvm::Constant::getNullValue(v->getType()), startBB);
 2749       llvm::PHINode *phi = Builder.CreatePHI(v.first->getType(), 2);
 2751       phi->addIncoming(llvm::Constant::getNullValue(v.first->getType()),
 2753       llvm::PHINode *phi2 = Builder.CreatePHI(v.second->getType(), 2);
 2755       phi2->addIncoming(llvm::Constant::getNullValue(v.second->getType()),
 2900       IVars->getType(),   // ivars
 2901       Methods->getType(), // methods
 2910       IvarOffsets->getType(), // ivar_offsets
 2911       Properties->getType(),  // properties
 3563         new llvm::GlobalVariable(TheModule, offsetValue->getType(),
 3805     llvm::FunctionType::get(Builder.getVoidTy(), module->getType(), true);
 4094     if (Offset->getType() != PtrDiffTy)
tools/clang/lib/CodeGen/CGObjCMac.cpp
 1785       llvm::PHINode *phi = CGF.Builder.CreatePHI(null->getType(), 2);
 1808     llvm::Type *scalarTy = callResult.first->getType();
 2016   auto *GV = new llvm::GlobalVariable(CGM.getModule(), C->getType(), isConstant,
 4010   llvm::Type *Ty = Init->getType();
 4059       new llvm::GlobalVariable(CGM.getModule(), Value->getType(),
 4325     tys[i] = Locals[i]->getType();
 4467     SyncArgSlot = CGF.CreateTempAlloca(SyncArg->getType(),
 4573       PropagatingExnVar = CGF.CreateTempAlloca(Caught->getType(),
 4804   llvm::Type * SrcTy = src->getType();
 4825   llvm::Type * SrcTy = src->getType();
 4851   llvm::Type * SrcTy = src->getType();
 4870   llvm::Type * SrcTy = src->getType();
 6075     new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, LT, Init,
 6078       llvm::Align(CGM.getDataLayout().getABITypeAlignment(Init->getType())));
 6523   PTGV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false,
 7330       assert(ClassGV->getType() == ObjCTypes.ClassnfABIPtrTy &&
 7337         CGM.getModule(), ClassGV->getType(), false,
 7376         CGM.getModule(), ClassGV->getType(), false,
 7516   llvm::Type * SrcTy = src->getType();
 7536   llvm::Type * SrcTy = src->getType();
 7582   llvm::Type * SrcTy = src->getType();
 7603   llvm::Type * SrcTy = src->getType();
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp
  150   assert(Block->getType()->isPointerTy() && "Invalid block literal type");
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  831         CGF.CGM.getModule(), Init->getType(), /*isConstant=*/true,
  898     SrcElementPHI = CGF.Builder.CreatePHI(SrcBegin->getType(), 2,
  906       DestBegin->getType(), 2, "omp.arraycpy.destElementPast");
 1010       cast<llvm::PointerType>(SharedAddresses[N].first.getPointer()->getType())
 1017         Size, llvm::ConstantInt::get(Size->getType(), /*V=*/1));
 3141     assert(Elem.second->getType()->getPointerElementType() == Ty &&
 4028       M, StrPtrInit->getType(), /*isConstant=*/true,
 5040       std::next(TaskFunction->arg_begin(), 3)->getType();
 5500       RHSBegin->getType(), 2, "omp.arraycpy.srcElementPast");
 5507       LHSBegin->getType(), 2, "omp.arraycpy.destElementPast");
 8609           CGM.getModule(), SizesArrayInit->getType(),
 8625         CGM.getModule(), MapTypesArrayInit->getType(),
 8637           BP, BPVal->getType()->getPointerTo(/*AddrSpace=*/0));
 8650           P, PVal->getType()->getPointerTo(/*AddrSpace=*/0));
 8918       PtrBegin->getType(), 2, "omp.arraymap.ptrcurrent");
 9716             getOrCreateInternalVariable(Addr->getType(), RefName);
10998   if (Allocator->getType()->isIntegerTy())
11000   else if (Allocator->getType()->isPointerTy())
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 2569         if (V->getType()->isIntegerTy())
 2828       CastItem, Val->getType()->getPointerTo(CastItem.getAddressSpace()));
 4496       TargetAddr, TargetAddr->getType()->getPointerElementType()->getPointerTo(
 4500       TargetAddr, TargetAddr->getType()->getPointerElementType()->getPointerTo(
 4527         NativeArg->getType()->getPointerElementType()->getPointerTo());
tools/clang/lib/CodeGen/CGStmt.cpp
 1057         new llvm::GlobalVariable(CGM.getModule(), SLoc->getType(), false,
 2107                                                Arg->getType()))
 2111       if (auto *VT = dyn_cast<llvm::VectorType>(Arg->getType()))
 2119       InOutArgTypes.push_back(Arg->getType());
 2174         if (isa<llvm::PointerType>(Arg->getType()))
 2191                                                    Arg->getType()))
 2198     if (auto *VT = dyn_cast<llvm::VectorType>(Arg->getType()))
 2202     ArgTypes.push_back(Arg->getType());
 2227         ArgTypes.push_back(BA->getType());
 2311       else if (TruncTy->isPointerTy() && Tmp->getType()->isIntegerTy()) {
 2316       } else if (Tmp->getType()->isPointerTy() && TruncTy->isIntegerTy()) {
 2317         uint64_t TmpSize =CGM.getDataLayout().getTypeSizeInBits(Tmp->getType());
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  668     Builder.CreatePHI(SrcBegin->getType(), 2, "omp.arraycpy.srcElementPast");
  675     Builder.CreatePHI(DestBegin->getType(), 2, "omp.arraycpy.destElementPast");
 3665         ScalarVal, llvm::Constant::getNullValue(ScalarVal->getType()));
 3757       !Update.getScalarVal()->getType()->isIntegerTy() ||
 3759                         (Update.getScalarVal()->getType() !=
tools/clang/lib/CodeGen/CGVTables.cpp
  102     llvm::PHINode *PHI = CGF.Builder.CreatePHI(ReturnValue->getType(), 2);
  104     PHI->addIncoming(llvm::Constant::getNullValue(ReturnValue->getType()),
  214                                           ThisStore->getOperand(0)->getType());
  405     llvm::Type *ThisType = Args[ThisArgNo]->getType();
  406     if (ThisType != AdjustedThisPtr->getType())
  413     if (ThisType != AdjustedThisPtr->getType())
  431   if (Call->getType()->isVoidTy())
tools/clang/lib/CodeGen/CGValue.h
  373     assert(address.getPointer()->getType()->isPointerTy());
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  394       PN->replaceAllUsesWith(llvm::UndefValue::get(PN->getType()));
  433     if (auto *VT = dyn_cast<llvm::VectorType>(A.getType()))
  509   auto *GV = new llvm::GlobalVariable(CGM.getModule(), Addr->getType(),
 1669       new llvm::GlobalVariable(CGM.getModule(), NullConstant->getType(),
 1826     assert(vlaSize->getType() == SizeTy);
 1851   assert(VlaSize->getType() == SizeTy);
 1943             llvm::Value *Zero = llvm::Constant::getNullValue(Size->getType());
 2030   llvm::Instruction *inst = new llvm::BitCastInst(value, value->getType(), "",
 2100   llvm::Type *VTy = V->getType();
tools/clang/lib/CodeGen/CodeGenFunction.h
 4378             CGF.CGM.getDataLayout().getPrefTypeAlignment(value->getType()));
 4380     CGF.CreateTempAlloca(value->getType(), align, "cond-cleanup.save");
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1813            F->arg_begin()->getType()
 2166     Annotations[0]->getType(), Annotations.size()), Annotations);
 2167   auto *gv = new llvm::GlobalVariable(getModule(), Array->getType(), false,
 2181       new llvm::GlobalVariable(getModule(), s->getType(), true,
 2375       getModule(), Init->getType(),
 3548             auto *InitType = Init->getType();
 3937   llvm::Type* InitType = Init->getType();
 3970         llvm::ConstantExpr::getBitCast(GV, Entry->getType());
 4285     if (callSite->getType() != newRetTy && !callSite->use_empty())
 4302       if (callSite->getArgOperand(argNo)->getType() != A.getType()) {
 4302       if (callSite->getArgOperand(argNo)->getType() != A.getType()) {
 4333     if (!newCall->getType()->isVoidTy())
 4736       new llvm::GlobalVariable(getModule(), C->getType(), /*isConstant=*/true,
 4894       M, C->getType(), !CGM.getLangOpts().WritableStrings, LT, C, GlobalName,
 5056     Type = InitialValue->getType();
 5926   auto FTy = llvm::FunctionType::get(SamplerT, {C->getType()}, false);
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
   24     return Data.get<llvm::Constant*>()->getType();
   26     return Data.get<ConstantInitBuilderBase*>()->Buffer[0]->getType();
   74                                      initializer->getType(),
  230       llvm::Type *elementType = element->getType();
  252   if (!eltTy) eltTy = elts[0]->getType();
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1434                                 FilenamesAndMappingsVal->getType()};
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  608   This = Builder.CreateBitCast(Ptr, This->getType(), "this.adjusted");
  789   assert(MemPtr->getType() == CGM.PtrDiffTy);
  864     llvm::Value *null = llvm::Constant::getAllOnesValue(src->getType());
  873     adj = llvm::ConstantInt::get(adj->getType(), offset);
  921     adj = llvm::ConstantInt::get(adj->getType(), offset);
 1084   llvm::Value *Zero = llvm::Constant::getNullValue(LPtr->getType());
 1096     llvm::Value *One = llvm::ConstantInt::get(LPtr->getType(), 1);
 1121     assert(MemPtr->getType() == CGM.PtrDiffTy);
 1123       llvm::Constant::getAllOnesValue(MemPtr->getType());
 1130   llvm::Constant *Zero = llvm::ConstantInt::get(Ptr->getType(), 0);
 1136     llvm::Constant *One = llvm::ConstantInt::get(Ptr->getType(), 1);
 2374   auto AddrAS = addr ? addr->getType()->getPointerAddressSpace() : 0;
 2385   llvm::Type *paramTys[] = {dtorTy, AddrInt8PtrTy, handle->getType()};
 2709     if (Val->getType() != Wrapper->getReturnType())
 2870       Name, Init->getType(), Linkage, Align.getQuantity());
 3500       new llvm::GlobalVariable(M, Init->getType(),
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 1253     VBPtr = CGF.Builder.CreateElementBitCast(VBPtr, GVPtr->getType(),
 1499       unsigned AS = cast<llvm::PointerType>(This->getType())->getAddressSpace();
 1501                  *thisTy = This->getType();
 2265       CGF.IntTy, DtorStub->getType(), /*isVarArg=*/false);
 2664   assert(Res->getType() == ConvertMemberPointerType(MPT));
 2852   llvm::StructType *LType = cast<llvm::StructType>(L->getType());
 2866     llvm::Value *Zero = llvm::Constant::getNullValue(L0->getType());
 2889   if (MemPtr->getType()->isStructTy())
 2911     llvm::Constant *FirstField = Val->getType()->isStructTy() ?
 2926     assert(Val->getType()->isIntegerTy());
 2965       VBTableOffset, llvm::ConstantInt::get(VBTableOffset->getType(), 2),
 3049   if (MemPtr->getType()->isStructTy()) {
 3119     assert(Src->getType() == DstNull->getType());
 3119     assert(Src->getType() == DstNull->getType());
 3137   llvm::PHINode *Phi = Builder.CreatePHI(DstNull->getType(), 2, "memptr.converted");
 3343   if (MemPtr->getType()->isStructTy()) {
 3366     ThisPtrForCall = Builder.CreateBitCast(Ptr, ThisPtrForCall->getType(),
tools/clang/lib/CodeGen/TargetInfo.cpp
  268                                         Ptr->getType(),
 9927   auto *BlockTy = BlockLiteral->getType()->getPointerElementType();
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  193         M, DummyInit->getType(), true, GlobalVariable::ExternalLinkage,
  206       auto *Image = new GlobalVariable(M, Data->getType(), /*isConstant*/ true,
  228         new GlobalVariable(M, ImagesData->getType(), /*isConstant*/ true,
  242     return new GlobalVariable(M, DescInit->getType(), /*isConstant*/ true,
tools/clang/unittests/CodeGen/IRMatchers.h
  303     Type *Ty = V.getType();
tools/lldb/source/Expression/IRInterpreter.cpp
  175                                value->getType());
  178       size_t value_size = m_target_data.getTypeStoreSize(value->getType());
  192         return AssignToMatchType(scalar, u64value, value->getType());
  208     if (!AssignToMatchType(cast_scalar, scalar.ULongLong(), value->getType()))
  211     size_t value_byte_size = m_target_data.getTypeStoreSize(value->getType());
  309     lldb::addr_t data_address = Malloc(value->getType());
  346     size_t constant_size = m_target_data.getTypeStoreSize(constant->getType());
  417     lldb::addr_t data_address = Malloc(value->getType());
  599         Type *operand_type = operand->getType();
 1058               (*ii)->getType(), I.ULongLong(LLDB_INVALID_ADDRESS)));
 1286       Type *pointer_ty = pointer_operand->getType();
 1378       Type *pointer_ty = pointer_operand->getType();
 1458       llvm::Type *returnType = call_inst->getType();
 1502       llvm::Type *prototype = val->getType();
 1533         llvm::Type *arg_ty = arg_op->getType();
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1005     Type *class_type = load->getType();
 1296   Type *symbol_type = symbol->getType();
 1376         ConstantExpr::getIntToPtr(class_addr, load_instruction->getType());
 1500   Constant *zero(Constant::getNullValue(guard_load->getType()));
 1572                     value_maker.GetValue(function), constant_expr->getType(),
 1799                   get_element_ptr, value->getType()->getPointerTo(), "",
 1807                   get_element_ptr, value->getType(), "", entry_instruction);
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
   76     if (isRSAllocationPtrTy(param->getType()))
tools/llvm-diff/DiffConsumer.cpp
   37       if (!BI->hasName() && !BI->getType()->isVoidTy())
   52   if (V->getType()->isVoidTy()) {
tools/llvm-diff/DifferenceEngine.cpp
  266       if (L->getType() != R->getType()) {
  266       if (L->getType() != R->getType()) {
  267         if (!L->getType()->isPointerTy() || !R->getType()->isPointerTy()) {
  267         if (!L->getType()->isPointerTy() || !R->getType()->isPointerTy()) {
tools/llvm-dis/llvm-dis.cpp
   88     if (!V.getType()->isVoidTy()) {
   92       OS << "; [#uses=" << V.getNumUses() << " type=" << *V.getType() << "]";
tools/llvm-reduce/deltas/ReduceArguments.cpp
   68         VMap[&A] = UndefValue::get(A.getType());
   75       I->replaceAllUsesWith(UndefValue::get(I->getType()));
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
  121       I.replaceAllUsesWith(UndefValue::get(I.getType()));
tools/llvm-reduce/deltas/ReduceFunctions.cpp
   44           Call->replaceAllUsesWith(UndefValue::get(Call->getType()));
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
   48     Inst->replaceAllUsesWith(UndefValue::get(Inst->getType()));
tools/llvm-reduce/deltas/ReduceInstructions.cpp
   40           Inst.replaceAllUsesWith(UndefValue::get(Inst.getType()));
tools/llvm-stress/llvm-stress.cpp
  227       if (V->getType() == Tp)
  260       if (V->getType()->isPointerTy())
  271       if (V->getType()->isVectorTy())
  358     PointerType *Tp = cast<PointerType>(Ptr->getType());
  360     Type  *ValTy = Val->getType();
  377     Value *Val1 = getRandomValue(Val0->getType());
  380     if (Val0->getType()->isPointerTy() ||
  381         Val1->getType()->isPointerTy())
  385     if (Val0->getType()->getScalarSizeInBits() == 1)
  388     bool isFloat = Val0->getType()->getScalarType()->isFloatingPointTy();
  486              getRandom() % cast<VectorType>(Val0->getType())->getNumElements()),
  498     Value *Val1 = getRandomValue(Val0->getType());
  500     unsigned Width = cast<VectorType>(Val0->getType())->getNumElements();
  526     Value *Val1 = getRandomValue(Val0->getType()->getScalarType());
  530               getRandom() % cast<VectorType>(Val0->getType())->getNumElements()),
  542     Type *VTy = V->getType();
  623     Value *Val1 = getRandomValue(Val0->getType());
  629     if (Val0->getType()->isVectorTy() && (getRandom() % 1)) {
  630       unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements();
  646     Value *Val1 = getRandomValue(Val0->getType());
  648     if (Val0->getType()->isPointerTy()) return;
  649     bool fp = Val0->getType()->getScalarType()->isFloatingPointTy();
  710     if (Instr.getType() == IntegerType::getInt1Ty(F->getContext()))
tools/opt/Debugify.cpp
  128         if (I->getType()->isVoidTy())
  139                                                getCachedDIType(I->getType()),
  185   Type *Ty = V->getType();
tools/polly/lib/Analysis/ScopBuilder.cpp
  812     Type *Ty = LInst->getType();
 1329   PointerType *PTy = dyn_cast<PointerType>(V->getType());
 1602   Type *ElementType = Val->getType();
 1613     auto *SrcTy = Src->getType();
 1614     auto *DstTy = BitCast->getType();
 1679   Type *ElementType = Val->getType();
 1824       if (!Arg->getType()->isPointerTy())
 1845   Type *ElementType = Val->getType();
 2531   addMemoryAccess(Stmt, Inst, MemoryAccess::MUST_WRITE, Inst, Inst->getType(),
 2570     addMemoryAccess(UserStmt, nullptr, MemoryAccess::READ, V, V->getType(),
 2588     scop->getOrCreateScopArrayInfo(PHI, PHI->getType(), {},
 2611       IncomingStmt, PHI, MemoryAccess::MUST_WRITE, PHI, PHI->getType(), true,
 2619   addMemoryAccess(PHIStmt, PHI, MemoryAccess::READ, PHI, PHI->getType(), true,
 2892   if (isSafeToLoadUnconditionally(LI->getPointerOperand(), LI->getType(),
 2944           LInst->getPointerOperand(), LInst->getType(),
 2995     if (SE.isSCEVable(AccInst->getType())) {
 3020     Type *Ty = LInst->getType();
 3656                      BP, BP->getType(), false, {AF}, {nullptr}, GlobalRead);
tools/polly/lib/Analysis/ScopDetection.cpp
  471                                       Load->getType(),
  498     if (!V->getType()->isPointerTy())
  708         if (!Arg->getType()->isPointerTy())
tools/polly/lib/Analysis/ScopInfo.cpp
  735   if (!Ptr || !SE->isSCEVable(Ptr->getType()))
 1362       Parent.getOrCreateScopArrayInfo(V, V->getType(), {}, MemoryKind::Value);
 1363   Access = new MemoryAccess(this, nullptr, MemoryAccess::READ, V, V->getType(),
 1802   Type *Ty = LInst->getType();
tools/polly/lib/CodeGen/BlockGenerators.cpp
   68   if (!SE.isSCEVable(Old->getType()))
   90       expandCodeFor(S, SE, DL, "polly", NewScev, Old->getType(), &*IP, &VTV,
  119     if (Old->getType()->getScalarSizeInBits() <
  120         New->getType()->getScalarSizeInBits())
  121       New = Builder.CreateTruncOrBitCast(New, Old->getType());
  251   if (!NewInst->getType()->isVoidTy())
  263       NewAccesses, MA.getId().release(), MA.getAccessValue()->getType());
  280     auto NewPtrTy = Address->getType();
  301                                     Access.getAccessValue()->getType());
  601       IsInSetExpr, ConstantInt::get(IsInSetExpr->getType(), 0));
  707       if (!RuntimeDebugBuilder::isPrintable(Inst->getType()))
  802           if (Val->getType() != Address->getType()->getPointerElementType())
  802           if (Val->getType() != Address->getType()->getPointerElementType())
  804                 Address, Val->getType()->getPointerTo());
  883         Builder.CreateBitOrPointerCast(EscapeInstReload, EscapeInst->getType());
  886     PHINode *MergePHI = PHINode::Create(EscapeInst->getType(), 2,
  896     if (SE.isSCEVable(EscapeInst->getType()))
  962     Reload = Builder.CreateBitOrPointerCast(Reload, PHI->getType());
  967     auto *MergePHI = PHINode::Create(PHI->getType(), 2, Name + ".ph.merge");
 1027   Value *Vector = UndefValue::get(VectorType::get(Old->getType(), Width));
 1040   PointerType *PointerTy = dyn_cast<PointerType>(Val->getType());
 1108       dyn_cast<PointerType>(Pointer->getType())->getElementType(), VectorWidth);
 1133   if (!VectorType::isValidElementType(Load->getType())) {
 1169   VectorType *DestType = VectorType::get(Inst->getType(), VectorWidth);
 1275   if (!VectorType::isValidElementType(Inst->getType()) || !HasVectorOperand)
 1279   VectorType *VectorType = VectorType::get(Inst->getType(), VectorWidth);
 1639   PHINode *NewPHI = PHINode::Create(OrigPHI->getType(), Incoming.size(),
 1790       Builder.CreatePHI(PHI->getType(), NumIncoming, "polly." + PHI->getName());
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  120                                   {LHS->getType()});
  124                                   {LHS->getType()});
  128                                   {LHS->getType()});
  135   assert(ResultStruct->getType()->isStructTy());
  183   MaxType = getWidestType(MaxType, V->getType());
  185   if (MaxType != V->getType())
  214     Type *Ty = getWidestType(V->getType(), OpV->getType());
  214     Type *Ty = getWidestType(V->getType(), OpV->getType());
  216     if (Ty != OpV->getType())
  219     if (Ty != V->getType())
  270   assert(Base->getType()->isPointerTy() && "Access base should be a pointer");
  274                                     Base->getType()->getPointerAddressSpace());
  275   if (Base->getType() != PointerTy) {
  290     assert(NextIndex->getType()->isIntegerTy() &&
  299       Type *Ty = getWidestType(NextIndex->getType(), IndexOp->getType());
  299       Type *Ty = getWidestType(NextIndex->getType(), IndexOp->getType());
  301       if (Ty != NextIndex->getType())
  303       if (Ty != IndexOp->getType())
  323     Type *Ty = getWidestType(DimSize->getType(), IndexOp->getType());
  323     Type *Ty = getWidestType(DimSize->getType(), IndexOp->getType());
  325     if (Ty != IndexOp->getType())
  328     if (Ty != DimSize->getType())
  363   Type *LHSType = LHS->getType();
  364   Type *RHSType = RHS->getType();
  392   if (MaxType != RHS->getType())
  395   if (MaxType != LHS->getType())
  462   if (!Cond->getType()->isIntegerTy(1))
  468   MaxType = getWidestType(MaxType, LHS->getType());
  469   MaxType = getWidestType(MaxType, RHS->getType());
  471   if (MaxType != RHS->getType())
  474   if (MaxType != LHS->getType())
  499   auto *LHSTy = LHS->getType();
  500   auto *RHSTy = RHS->getType();
  510   if (LHS->getType() != RHS->getType()) {
  510   if (LHS->getType() != RHS->getType()) {
  511     Type *MaxType = LHS->getType();
  512     MaxType = getWidestType(MaxType, RHS->getType());
  514     if (MaxType != RHS->getType())
  517     if (MaxType != LHS->getType())
  569   if (!LHS->getType()->isIntegerTy(1))
  571   if (!RHS->getType()->isIntegerTy(1))
  622   if (!LHS->getType()->isIntegerTy(1))
  633   if (!RHS->getType()->isIntegerTy(1))
  727   if (V->getType()->isPointerTy())
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  445   MaxType = ExprBuilder.getWidestType(MaxType, ValueLB->getType());
  446   MaxType = ExprBuilder.getWidestType(MaxType, ValueInc->getType());
  448   if (MaxType != ValueLB->getType())
  450   if (MaxType != ValueInc->getType())
  542   MaxType = ExprBuilder.getWidestType(MaxType, ValueLB->getType());
  543   MaxType = ExprBuilder.getWidestType(MaxType, ValueUB->getType());
  544   MaxType = ExprBuilder.getWidestType(MaxType, ValueInc->getType());
  546   if (MaxType != ValueLB->getType())
  548   if (MaxType != ValueUB->getType())
  550   if (MaxType != ValueInc->getType())
  649         ValueUB, Builder.CreateSExt(Builder.getTrue(), ValueUB->getType()));
  652   MaxType = ExprBuilder.getWidestType(MaxType, ValueLB->getType());
  653   MaxType = ExprBuilder.getWidestType(MaxType, ValueUB->getType());
  654   MaxType = ExprBuilder.getWidestType(MaxType, ValueInc->getType());
  656   if (MaxType != ValueLB->getType())
  658   if (MaxType != ValueUB->getType())
  660   if (MaxType != ValueInc->getType())
 1060           if (Address && SE.getUnknown(UndefValue::get(Address->getType())) ==
 1152   Type *endType = dyn_cast<IntegerType>(end->getType());
 1208   Type *Ty = AccInst->getType();
 1212   auto AS = Ptr->getType()->getPointerAddressSpace();
 1245   Type *AccInstTy = AccInst->getType();
 1272   if (!Cond->getType()->isIntegerTy(1))
 1378   Type *AccInstTy = AccInst->getType();
 1386     assert(PreloadVal->getType() == MAAccInst->getType());
 1386     assert(PreloadVal->getType() == MAAccInst->getType());
 1415         assert(BasePtr->getType() == PreloadVal->getType());
 1415         assert(BasePtr->getType() == PreloadVal->getType());
 1592   if (!RTC->getType()->isIntegerTy(1))
tools/polly/lib/CodeGen/LoopGenerators.cpp
   91   assert(LB->getType() == UB->getType() && "Types of loop bounds do not match");
   91   assert(LB->getType() == UB->getType() && "Types of loop bounds do not match");
   92   IntegerType *LoopIVType = dyn_cast<IntegerType>(UB->getType());
  222     Members.push_back(V->getType());
tools/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
  189       Return, Builder.CreateZExt(Builder.getFalse(), Return->getType()));
tools/polly/lib/CodeGen/PerfMonitor.cpp
   78         *M, InitialValue->getType(), true, GlobalValue::WeakAnyLinkage,
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
  123     Type *Ty = Val->getType();
  145     Ty = Val->getType();
  196     Type *Ty = Val->getType();
  222     Ty = Val->getType();
  287   Builder.CreateCall(F, Constant::getNullValue(F->arg_begin()->getType()));
tools/polly/lib/Exchange/JSONExporter.cpp
  452               DL.getABITypeAlignment(LoadI->getType()) != LoadI->getAlignment();
  457               DL.getABITypeAlignment(StoreI->getValueOperand()->getType()) !=
tools/polly/lib/Support/ScopHelper.cpp
  278       assert(SE.isSCEVable(Op->getType()));
  280       auto *OpClone = expandCodeFor(OpSCEV, Op->getType(), IP);
  638   if (!V || !SE->isSCEVable(V->getType()))
tools/polly/lib/Support/VirtualInstruction.cpp
   66   if (SE->isSCEVable(Val->getType())) {
tools/polly/lib/Transform/DeLICM.cpp
 1052         DL.getTypeAllocSize(TargetStoreMA->getAccessValue()->getType());
 1068       auto MASize = DL.getTypeAllocSize(MA->getAccessValue()->getType());
tools/polly/lib/Transform/ForwardOpTree.cpp
  363                          LI->getType(), true, {}, Sizes, LI, MemoryKind::Array);
tools/polly/lib/Transform/RewriteByReferenceParameters.cpp
   76     auto *NewBitCast = new BitCastInst(NewAlloca, BitCast->getType(),
tools/polly/lib/Transform/ZoneAlgo.cpp
  427       AccVal->getType() == MA->getLatestScopArrayInfo()->getElementType() &&
unittests/Analysis/AliasAnalysisTest.cpp
   49       if (A.getType()->isPointerTy())
   52       if (I.getType()->isPointerTy())
unittests/Analysis/MemorySSATest.cpp
 1236     return Intrinsic::getDeclaration(&M, ID, {Foo->getType()});
unittests/Analysis/ScalarEvolutionTest.cpp
 1490           cast<IntegerType>(CanonicalIV->getType())->getBitWidth();
 1532           cast<IntegerType>(CanonicalIV->getType())->getBitWidth();
 1567           cast<IntegerType>(NewCanonicalIV->getType())->getBitWidth();
 1608           cast<IntegerType>(CanonicalIV.getType())->getBitWidth();
 1830           cast<IntegerType>(CanonicalIV->getType())->getBitWidth();
 1878           cast<IntegerType>(CanonicalIV.getType())->getBitWidth();
unittests/AsmParser/AsmParserTest.cpp
   78   EXPECT_TRUE(V->getType()->isDoubleTy());
   84   EXPECT_TRUE(V->getType()->isIntegerTy());
   90   EXPECT_TRUE(V->getType()->isVectorTy());
unittests/FuzzMutate/OperationsTest.cpp
   71 MATCHER_P(TypesMatch, V, "has type " + PrintToString(V->getType())) {
   72   return arg->getType() == V->getType();
   72   return arg->getType() == V->getType();
   75 MATCHER_P(HasType, T, "") { return arg->getType() == T; }
   94       ConstantArray::get(ArrayType::get(i32->getType(), 2), {i32, i32});
   98       ConstantPointerNull::get(PointerType::get(i32->getType(), 0));
  100   auto OnlyI32 = onlyType(i32->getType());
  117       AnyType.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  117       AnyType.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  117       AnyType.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  127       AnyInt.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  127       AnyInt.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  127       AnyInt.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  138       AnyFP.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  138       AnyFP.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  138       AnyFP.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  147   auto isPointer = [](Value *V) { return V->getType()->isPointerTy(); };
  149       AnyPtr.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  149       AnyPtr.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  149       AnyPtr.generate({}, {i32->getType(), f16->getType(), v8i8->getType()}),
  159   EXPECT_THAT(AnyVec.generate({}, {v8i8->getType()}),
  169   EXPECT_THAT(First.generate({f16}, {i8->getType()}),
unittests/IR/ConstantsTest.cpp
  221   Constant *UndefV16 = UndefValue::get(P6->getType());
unittests/IR/IRBuilderTest.cpp
  106   Call = Builder.CreateIntrinsic(Intrinsic::fma, {V->getType()}, {V, V, V});
  112   Call = Builder.CreateIntrinsic(Intrinsic::fma, {V->getType()}, {V, V, V}, I);
  118   Call = Builder.CreateIntrinsic(Intrinsic::fma, {V->getType()}, {V, V, V}, I);
  146     EXPECT_EQ(FTy->getParamType(i), ArgTys[i]->getType());
  167     EXPECT_EQ(FTy->getParamType(i), ArgTys[i]->getType());
  791   EXPECT_TRUE(String1a->getType()->getPointerAddressSpace() == 0);
  792   EXPECT_TRUE(String1b->getType()->getPointerAddressSpace() == 0);
  793   EXPECT_TRUE(String2->getType()->getPointerAddressSpace() == 1);
unittests/IR/InstructionsTest.cpp
   92     EXPECT_EQ(FArgTypes[Idx], Arg->getType());
   93     EXPECT_EQ(Call->getArgOperand(Idx)->getType(), Arg->getType());
   93     EXPECT_EQ(Call->getArgOperand(Idx)->getType(), Arg->getType());
  110     EXPECT_EQ(FArgTypes[Idx], Arg->getType());
  111     EXPECT_EQ(Invoke->getArgOperand(Idx)->getType(), Arg->getType());
  111     EXPECT_EQ(Invoke->getArgOperand(Idx)->getType(), Arg->getType());
unittests/IR/MDBuilderTest.cpp
   41   EXPECT_TRUE(Val->getType()->isFloatingPointTy());
unittests/IR/MetadataTest.cpp
 2487   EXPECT_TRUE(V->getType()->isMetadataTy());
 2499   EXPECT_TRUE(V->getType()->isMetadataTy());
 2506   EXPECT_TRUE(V3->getType()->isMetadataTy());
 2518   EXPECT_TRUE(V->getType()->isMetadataTy());
unittests/IR/ValueHandleTest.cpp
   44   EXPECT_EQ(Type::getInt32Ty(Context), WVH->getType());
   45   EXPECT_EQ(Type::getInt32Ty(Context), (*WVH).getType());
   62   EXPECT_EQ(Type::getInt32Ty(Context), WVH->getType());
   63   EXPECT_EQ(Type::getInt32Ty(Context), (*WVH).getType());
  217   EXPECT_EQ(Type::getInt32Ty(Context), CVH->getType());
  218   EXPECT_EQ(Type::getInt32Ty(Context), (*CVH).getType());
unittests/IR/ValueTest.cpp
   70   EXPECT_EQ(1u, Dummy1->getType()->getPointerAddressSpace());
   87   EXPECT_EQ(1u, DummyCast1->getType()->getPointerAddressSpace());
unittests/Linker/LinkModulesTest.cpp
  113   EXPECT_EQ(AT, Init->getType());
unittests/Transforms/Utils/CloningTest.cpp
  177   VMap[A] = UndefValue::get(A->getType());
unittests/Transforms/Utils/LocalTest.cpp
  760   EXPECT_EQ(ConstantInt::get(A.getType(), 0), ADbgVal->getVariableLocation());