| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| H A D | MatrixBuilder.h | 39 assert((LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()) && in splatScalarOperandIfNeeded() 41 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded() 42 assert(!isa<ScalableVectorType>(LHS->getType()) && in splatScalarOperandIfNeeded() 45 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in splatScalarOperandIfNeeded() 47 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded() 48 assert(!isa<ScalableVectorType>(RHS->getType()) && in splatScalarOperandIfNeeded() 51 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in splatScalarOperandIfNeeded() 70 PointerType *PtrTy = cast<PointerType>(DataPtr->getType()); 100 Type *OverloadedTypes[] = {Matrix->getType()}; 116 auto *OpType = cast<VectorType>(Matrix->getType()); [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A D | IntrinsicLowering.cpp | 39 ParamTys.push_back((*I)->getType()); in ReplaceCallWith() 54 assert(V->getType()->isIntOrIntVectorTy() && "Can't bswap a non-integer type!"); in LowerBSWAP() 56 unsigned BitSize = V->getType()->getScalarSizeInBits(); in LowerBSWAP() 63 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP() 65 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP() 71 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP() 73 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP() 75 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP() 77 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP() 80 ConstantInt::get(V->getType(), 0xFF0000), in LowerBSWAP() [all …]
|
| H A D | MachineStableHash.cpp | 63 switch (MO.getType()) { in stableHashValue() 71 return stable_hash_combine(MO.getType(), MO.getReg(), MO.getSubReg(), in stableHashValue() 74 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), MO.getImm()); in stableHashValue() 81 return hash_combine(MO.getType(), MO.getTargetFlags(), ValHash); in stableHashValue() 101 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 110 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 114 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getOffset(), in stableHashValue() 119 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getRegMask()); in stableHashValue() 128 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() 134 return hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue() [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/ |
| H A D | ubsan_value.cc | 24 CHECK(getType().isSignedIntegerTy()); in getSIntValue() 29 sizeof(SIntMax) * 8 - getType().getIntegerBitWidth(); in getSIntValue() 32 if (getType().getIntegerBitWidth() == 64) in getSIntValue() 35 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 38 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 45 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue() 48 if (getType().getIntegerBitWidth() == 64) in getUIntValue() 51 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 54 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 61 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/ |
| H A D | ubsan_value.cc | 22 CHECK(getType().isSignedIntegerTy()); in getSIntValue() 27 sizeof(SIntMax) * 8 - getType().getIntegerBitWidth(); in getSIntValue() 30 if (getType().getIntegerBitWidth() == 64) in getSIntValue() 33 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 36 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 43 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue() 46 if (getType().getIntegerBitWidth() == 64) in getUIntValue() 49 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 52 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 59 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 37 return ConstantInt::get(Val->getType(), 0); in decomposeSimpleLinearExpr() 87 PointerType *PTy = cast<PointerType>(CI.getType()); in PromoteCastOfAllocation() 149 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation() 155 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation() 171 Value *NewCast = Builder.CreateBitCast(New, AI.getType(), "tmpcast"); in PromoteCastOfAllocation() 215 if (I->getOperand(0)->getType() == Ty) in EvaluateInDifferentType() 286 auto *Ty = CI.getType(); in commonCastTransforms() 302 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType() || in commonCastTransforms() 304 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms() 316 if (!Src->getType()->isIntegerTy() || !CI.getType()->isIntegerTy() || in commonCastTransforms() [all …]
|
| H A D | InstCombinePHI.cpp | 106 if (!PN.getType()->isIntegerTy()) in foldIntegerTypedPHI() 137 DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType())) in foldIntegerTypedPHI() 153 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in foldIntegerTypedPHI() 200 if (PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in foldIntegerTypedPHI() 216 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in foldIntegerTypedPHI() 220 IntToPtr->getOperand(0)->getType()); in foldIntegerTypedPHI() 225 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in foldIntegerTypedPHI() 234 if (V->getType() == IntToPtr->getType()) in foldIntegerTypedPHI() 249 IntToPtr->getType(), PN.getNumIncomingValues(), PN.getName() + ".ptr"); in foldIntegerTypedPHI() 257 if (IncomingVal->getType() == IntToPtr->getType()) { in foldIntegerTypedPHI() [all …]
|
| H A D | InstCombineVectorOps.cpp | 128 PHINode::Create(EI.getType(), PN->getNumIncomingValues(), ""), *PN)); in scalarizePHI() 179 !X->getType()->isVectorTy() || in foldBitcastExtElt() 186 auto *SrcTy = cast<VectorType>(X->getType()); in foldBitcastExtElt() 187 Type *DestTy = Ext.getType(); in foldBitcastExtElt() 274 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsBySingleUser() 292 cast<FixedVectorType>(UserInstr->getType())->getNumElements(); in findDemandedEltsBySingleUser() 318 unsigned VWidth = cast<FixedVectorType>(V->getType())->getNumElements(); in findDemandedEltsByAllUsers() 437 if (isa<FixedVectorType>(SVI->getType()) && isa<ConstantInt>(Index)) { in visitExtractElementInst() 441 unsigned LHSWidth = cast<FixedVectorType>(SVI->getOperand(0)->getType()) in visitExtractElementInst() 445 return replaceInstUsesWith(EI, UndefValue::get(EI.getType())); in visitExtractElementInst() [all …]
|
| H A D | InstCombineCompares.cpp | 115 uint64_t ArrayElementCount = Init->getType()->getArrayNumElements(); in foldCmpLoadFromIndexedGlobal() 135 Type *EltTy = Init->getType()->getArrayElementType(); in foldCmpLoadFromIndexedGlobal() 276 Type *IntPtrTy = DL.getIntPtrType(GEP->getType()); in foldCmpLoadFromIndexedGlobal() 278 if (Idx->getType()->getPrimitiveSizeInBits().getFixedSize() > PtrSize) in foldCmpLoadFromIndexedGlobal() 289 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal() 297 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal() 309 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal() 317 Value *SecondFalseIdx = ConstantInt::get(Idx->getType(),SecondFalseElement); in foldCmpLoadFromIndexedGlobal() 329 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); in foldCmpLoadFromIndexedGlobal() 333 Value *End = ConstantInt::get(Idx->getType(), in foldCmpLoadFromIndexedGlobal() [all …]
|
| H A D | InstCombineCalls.cpp | 130 MI->setLength(Constant::getNullValue(MI->getLength()->getType())); in SimplifyAnyMemTransfer() 159 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer() 161 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace(); in SimplifyAnyMemTransfer() 221 MI->setLength(Constant::getNullValue(MemOpLength->getType())); in SimplifyAnyMemTransfer() 239 MI->setLength(Constant::getNullValue(MI->getLength()->getType())); in SimplifyAnyMemSet() 246 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8)) in SimplifyAnyMemSet() 265 unsigned DstAddrSp = cast<PointerType>(Dest->getType())->getAddressSpace(); in SimplifyAnyMemSet() 278 MI->setLength(Constant::getNullValue(LenC->getType())); in SimplifyAnyMemSet() 295 LoadInst *L = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad() 303 if (isDereferenceablePointer(LoadPtr, II.getType(), in simplifyMaskedLoad() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/ |
| H A D | ubsan_value.cpp | 71 CHECK(getType().isSignedIntegerTy()); in getSIntValue() 76 sizeof(SIntMax) * 8 - getType().getIntegerBitWidth(); in getSIntValue() 79 if (getType().getIntegerBitWidth() == 64) in getSIntValue() 82 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 85 if (getType().getIntegerBitWidth() == 128) in getSIntValue() 92 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue() 95 if (getType().getIntegerBitWidth() == 64) in getUIntValue() 98 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 101 if (getType().getIntegerBitWidth() == 128) in getUIntValue() 108 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/ |
| H A D | OpDescriptor.h | 97 return V->getType() == Only; in onlyType() 107 return !V->getType()->isVoidTy(); in anyType() 115 return V->getType()->isIntegerTy(); in anyIntType() 123 return V->getType()->isFloatingPointTy(); in anyFloatType() 131 return V->getType()->isPointerTy() && !V->isSwiftError(); in anyPtrType() 148 if (const auto *PtrT = dyn_cast<PointerType>(V->getType())) in sizedPtrType() 167 if (isa<ArrayType>(V->getType())) in anyAggregateType() 168 return V->getType()->getArrayNumElements() > 0; in anyAggregateType() 171 if (isa<StructType>(V->getType())) in anyAggregateType() 172 return V->getType()->getStructNumElements() > 0; in anyAggregateType() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/ |
| H A D | Constants.cpp | 57 if (getType()->isFPOrFPVectorTy()) in isNegativeZeroValue() 163 if (auto *VTy = dyn_cast<VectorType>(this->getType())) { in isNotOneValue() 213 if (auto *VTy = dyn_cast<VectorType>(this->getType())) { in isNotMinSignedValue() 230 auto *VTy = dyn_cast<FixedVectorType>(getType()); in isFiniteNonZeroFP() 244 auto *VTy = dyn_cast<FixedVectorType>(getType()); in isNormalFP() 258 auto *VTy = dyn_cast<FixedVectorType>(getType()); in hasExactInverseFP() 272 auto *VTy = dyn_cast<FixedVectorType>(getType()); in isNaN() 289 auto *VTy = dyn_cast<VectorType>(getType()); in isElementWiseEqual() 290 if (!isa<Constant>(Y) || !VTy || VTy != Y->getType()) in isElementWiseEqual() 310 if (auto *VTy = dyn_cast<VectorType>(C->getType())) { in containsUndefinedElement() [all …]
|
| H A D | ConstantFold.cpp | 59 if (NumElts != cast<FixedVectorType>(CV->getType())->getNumElements()) in BitCastConstantVector() 96 Type *SrcTy = Op->getOperand(0)->getType(); in foldConstantCastPair() 97 Type *MidTy = Op->getType(); in foldConstantCastPair() 112 Type *SrcTy = V->getType(); in FoldBitCast() 118 if (PointerType *PTy = dyn_cast<PointerType>(V->getType())) in FoldBitCast() 141 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast() 191 if (FP->getType()->isPPC_FP128Ty()) in FoldBitCast() 216 assert(C->getType()->isIntegerTy() && in ExtractConstantBytes() 217 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 && in ExtractConstantBytes() 219 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8; in ExtractConstantBytes() [all …]
|
| H A D | Instructions.cpp | 72 if (Op1->getType() != Op2->getType()) in areInvalidOperands() 75 if (Op1->getType()->isTokenTy()) in areInvalidOperands() 78 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands() 82 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands() 88 } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) { in areInvalidOperands() 99 : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()), in PHINode() 127 replaceAllUsesWith(UndefValue::get(getType())); in removeIncomingValue() 159 return UndefValue::get(getType()); in hasConstantValue() 198 : Instruction(LP.getType(), Instruction::LandingPad, nullptr, in LandingPadInst() 319 getType()->getPointerAddressSpace())) in isReturnNonNull() [all …]
|
| H A D | IRBuilder.cpp | 51 *M, StrConstant->getType(), true, GlobalValue::PrivateLinkage, in CreateGlobalString() 64 auto *PT = cast<PointerType>(Ptr->getType()); in getCastedInt8PtrValue() 89 Intrinsic::getDeclaration(M, Intrinsic::vscale, {Scaling->getType()}); in CreateVScale() 119 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet() 147 Type *Tys[] = {Ptr->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemSet() 177 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemTransferInst() 214 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateMemCpyInline() 242 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemCpy() 280 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() }; in CreateMemMove() 317 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemMove() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 187 unsigned OffsetElemSize = cast<FixedVectorType>(Offsets->getType()) in checkOffsetSize() 204 if (isa<FixedVectorType>(ConstOff->getType())) { in checkOffsetSize() 229 if (GEPPtr->getType()->isVectorTy() || in checkGEP() 230 !isa<FixedVectorType>(Offsets->getType())) in checkGEP() 240 cast<FixedVectorType>(Offsets->getType())->getNumElements(); in checkGEP() 247 FixedVectorType *OffsetType = cast<FixedVectorType>(Offsets->getType()); in checkGEP() 259 if (Ty != Offsets->getType()) { in checkGEP() 275 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast() 276 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast() 358 auto *Ty = cast<FixedVectorType>(I->getType()); in lowerGather() [all …]
|
| H A D | ARMRegisterBankInfo.cpp | 239 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 274 LLT LargeTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() 284 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 297 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 304 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 318 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 319 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() 327 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() 328 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping() 337 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGExprAgg.cpp | 132 E->getType().isVolatileQualified()); in VisitConstantExpr() 199 return EmitFinalDestCopy(E->getType(), LV); in VisitPseudoObjectExpr() 202 CGF.EmitPseudoObjectRValue(E, EnsureSlot(E->getType())); in VisitPseudoObjectExpr() 213 EmitFinalDestCopy(E->getType(), Res); in VisitAtomicExpr() 229 if (LV.getType()->isAtomicType() || CGF.LValueIsSuitableForInlineAtomic(LV)) { in EmitAggLoadOfLValue() 234 EmitFinalDestCopy(E->getType(), LV); in EmitAggLoadOfLValue() 256 QualType RetTy = E->getType(); in withReturnValueSlot() 303 EmitFinalDestCopy(E->getType(), Src); in withReturnValueSlot() 396 Ctx.getAsConstantArrayType(E->getSubExpr()->getType()); in VisitCXXStdInitializerListExpr() 400 RecordDecl *Record = E->getType()->castAs<RecordType>()->getDecl(); in VisitCXXStdInitializerListExpr() [all …]
|
| H A D | CGExpr.cpp | 55 cast<llvm::PointerType>(value->getType())->getAddressSpace(); in EmitCastToVoidPtr() 61 if (value->getType() == destType) return value; in EmitCastToVoidPtr() 159 auto *ArrayTy = cast<llvm::ArrayType>(Result.getType()->getElementType()); in CreateMemTemp() 185 if (const MemberPointerType *MPT = E->getType()->getAs<MemberPointerType>()) { in EvaluateExprAsBool() 193 if (!E->getType()->isAnyComplexType()) in EvaluateExprAsBool() 194 return EmitScalarConversion(EmitScalarExpr(E), E->getType(), BoolTy, Loc); in EvaluateExprAsBool() 196 return EmitComplexToScalarConversion(EmitComplexExpr(E), E->getType(), BoolTy, in EvaluateExprAsBool() 217 switch (getEvaluationKind(E->getType())) { in EmitAnyExpr() 224 aggSlot = CreateAggTemp(E->getType(), "agg-temp"); in EmitAnyExpr() 236 if (hasAggregateEvaluationKind(E->getType())) in EmitAnyExprToTemp() [all …]
|
| H A D | CGExprScalar.cpp | 141 QualType LHSType = BinOp->getLHS()->getType(); in isFixedPointOp() 142 QualType RHSType = BinOp->getRHS()->getType(); in isFixedPointOp() 146 return UnOp->getSubExpr()->getType()->isFixedPointType(); in isFixedPointOp() 155 return E->getType()->isNullPtrType(); in MustVisitNullValue() 165 QualType BaseTy = Base->getType(); in getUnwidenedIntegerType() 167 Ctx.getTypeSize(BaseTy) >= Ctx.getTypeSize(E->getType())) in getUnwidenedIntegerType() 214 unsigned PromotedSize = Ctx.getTypeSize(Op.E->getType()); in CanElideOverflowCheck() 260 if (VD->getType()->isReferenceType()) { in EmitLValueAlignmentAssumption() 262 dyn_cast<TypedefType>(VD->getType().getNonReferenceType())) in EmitLValueAlignmentAssumption() 279 dyn_cast<TypedefType>(E->getType())) in EmitLValueAlignmentAssumption() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | ScalarEvolutionExpander.cpp | 62 if (U->getType() != Ty) in ReuseOrCreateCast() 157 assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) && in InsertNoopCastOfTo() 178 if (V->getType() == Ty) in InsertNoopCastOfTo() 181 if (CI->getOperand(0)->getType() == Ty) in InsertNoopCastOfTo() 187 SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(V->getType())) { in InsertNoopCastOfTo() 191 SE.getTypeSizeInBits(CI->getType()) == in InsertNoopCastOfTo() 192 SE.getTypeSizeInBits(CI->getOperand(0)->getType())) in InsertNoopCastOfTo() 197 SE.getTypeSizeInBits(CE->getType()) == in InsertNoopCastOfTo() 198 SE.getTypeSizeInBits(CE->getOperand(0)->getType())) in InsertNoopCastOfTo() 295 S = SE.getConstant(S->getType(), 1); in FactorOutConstant() [all …]
|
| H A D | VNCoercion.cpp | 19 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad() 76 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadTypeHelper() 134 StoredVal, ConstantInt::get(StoredVal->getType(), ShiftAmt)); in coerceAvailableValueToLoadTypeHelper() 231 if (isFirstClassAggregateOrScalableType(StoredVal->getType())) in analyzeLoadFromClobberingStore() 239 DL.getTypeSizeInBits(DepSI->getValueOperand()->getType()).getFixedSize(); in analyzeLoadFromClobberingStore() 256 if (!isa<IntegerType>(LI->getType()) || !LI->isSimple()) in getLoadLoadClobberFullWidthSize() 301 unsigned NewLoadByteSize = LI->getType()->getPrimitiveSizeInBits() / 8U; in getLoadLoadClobberFullWidthSize() 335 if (DepLI->getType()->isStructTy() || DepLI->getType()->isArrayTy()) in analyzeLoadFromClobberingLoad() 342 uint64_t DepSize = DL.getTypeSizeInBits(DepLI->getType()).getFixedSize(); in analyzeLoadFromClobberingLoad() 362 assert(DepLI->getType()->isIntegerTy() && "Can't widen non-integer load"); in analyzeLoadFromClobberingLoad() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | InferAddressSpaces.cpp | 262 I2P->getOperand(0)->getType(), I2P->getType(), in isNoopPtrIntCastPair() 265 P2I->getOperand(0)->getType(), P2I->getType(), in isNoopPtrIntCastPair() 268 P2I->getOperand(0)->getType()->getPointerAddressSpace(), in isNoopPtrIntCastPair() 269 I2P->getType()->getPointerAddressSpace()); in isNoopPtrIntCastPair() 283 assert(Op->getType()->isPointerTy()); in isAddressExpression() 290 return Op->getType()->isPointerTy(); in isAddressExpression() 345 Type *DestTy = II->getType(); in rewriteIntrinsicOperands() 346 Type *SrcTy = NewV->getType(); in rewriteIntrinsicOperands() 395 assert(V->getType()->isPointerTy()); in appendsFlatAddressExpressionToPostorderStack() 407 if (V->getType()->getPointerAddressSpace() == FlatAddrSpace && in appendsFlatAddressExpressionToPostorderStack() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 63 Type *VTy = V.getType(); in canSafelyConvertTo16Bit() 80 Type *CastSrcTy = CastSrc->getType(); in canSafelyConvertTo16Bit() 90 Type *VTy = V.getType(); in convertTo16Bit() 127 FloatCoord == Coord->getType()->isFloatingPointTy()); in simplifyAMDGCNImageIntrinsic() 128 FloatCoord = Coord->getType()->isFloatingPointTy(); in simplifyAMDGCNImageIntrinsic() 200 Type *Ty = II.getType(); in instCombineIntrinsic() 227 Type *Ty = II.getType(); in instCombineIntrinsic() 251 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), Exp)); in instCombineIntrinsic() 255 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() 283 return IC.replaceInstUsesWith(II, UndefValue::get(II.getType())); in instCombineIntrinsic() [all …]
|