/external/llvm/unittests/IR/ |
D | ValueTest.cpp | 57 Constant::getAllOnesValue(Int32Ty), in TEST() 75 Constant::getAllOnesValue(Int32Ty), in TEST()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 153 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant() 157 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant() 175 return ConstantInt::getAllOnesValue(Tp); in getRandomValue() 179 return ConstantFP::getAllOnesValue(Tp); in getRandomValue() 370 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act() 395 APInt::getAllOnesValue(Ty->getPrimitiveSizeInBits()))); in Act()
|
/external/llvm/include/llvm/IR/ |
D | Constant.h | 161 static Constant *getAllOnesValue(Type* Ty);
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 417 return getAllOnesValue(numBits); in getMaxValue() 422 APInt API = getAllOnesValue(numBits); in getSignedMaxValue() 448 static APInt getAllOnesValue(unsigned numBits) { in getAllOnesValue() function 517 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet() 536 return getAllOnesValue(numBits).lshr(numBits - loBitsSet); in getLowBitsSet()
|
D | APFloat.h | 277 static APFloat getAllOnesValue(unsigned BitWidth, bool isIEEE = false);
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 57 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 229 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits() 763 APInt AllOnes = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits() 866 APInt BitMask1(APInt::getAllOnesValue(BitWidth)); in SimplifyShrShlDemandedBits() 867 APInt BitMask2(APInt::getAllOnesValue(BitWidth)); in SimplifyShrShlDemandedBits() 921 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
|
D | InstCombineCompares.cpp | 767 ConstantExpr::getSub(ConstantInt::getAllOnesValue(CI->getType()), CI); in FoldICmpAddOpCst() 1887 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast() 2258 if (!CI) return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask() 2281 return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask() 2489 APInt::getAllOnesValue(BitWidth), in visitICmpInst() 2629 Constant::getAllOnesValue(Op0->getType())); in visitICmpInst() 3027 Constant::getAllOnesValue(SRem->getType())); in visitICmpInst()
|
D | InstCombineVectorOps.cpp | 580 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitInsertElementInst() 870 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitShuffleVectorInst()
|
D | InstCombineSelect.cpp | 140 return Constant::getAllOnesValue(I->getType()); in GetSelectFoldableConstant() 1086 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitSelectInst()
|
D | InstCombineAndOrXor.cpp | 585 L12 = Constant::getAllOnesValue(L1->getType()); in foldLogOpOfMaskedICmpsHelper() 593 L22 = Constant::getAllOnesValue(L2->getType()); in foldLogOpOfMaskedICmpsHelper() 619 R12 = Constant::getAllOnesValue(R1->getType()); in foldLogOpOfMaskedICmpsHelper() 637 R12 = Constant::getAllOnesValue(R2->getType()); in foldLogOpOfMaskedICmpsHelper()
|
D | InstCombineCasts.cpp | 933 ConstantInt::getAllOnesValue(CI.getType()) : in transformSExtICmp() 950 ConstantInt::getAllOnesValue(In->getType()), in transformSExtICmp()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 697 DAG.getConstant(APInt::getAllOnesValue(BitTy.getSizeInBits()), BitTy), in ExpandSELECT() 711 APInt::getAllOnesValue(BitTy.getSizeInBits()), MaskTy); in ExpandSELECT() 880 APInt::getAllOnesValue(VT.getScalarType().getSizeInBits()), VT); in ExpandVSELECT() 955 DAG.getConstant(APInt::getAllOnesValue in UnrollVSETCC()
|
D | DAGCombiner.cpp | 162 APInt Demanded = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits() 2182 DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), in visitUREM() 2631 APInt::getAllOnesValue(BitWidth))) in visitAND() 2706 Constant = APInt::getAllOnesValue(BitWidth); in visitAND() 3312 return DAG.getConstant(APInt::getAllOnesValue(EltVT.getSizeInBits()), VT); in visitOR() 3645 APInt Mask = APInt::getAllOnesValue(OpSizeInBits); in MatchRotate() 3996 APInt::getAllOnesValue(OpSizeInBits))) in visitSHL() 4289 APInt::getAllOnesValue(OpSizeInBits))) in visitSRL() 4349 APInt Mask = APInt::getAllOnesValue(OpSizeInBits).lshr(ShiftAmt); in visitSRL() 5125 DAG.getConstant(APInt::getAllOnesValue(ElementWidth), VT); in visitSIGN_EXTEND() [all …]
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 75 return Constant::getAllOnesValue(Ty); in getTrue() 429 SimplifyXorInst(Cond, Constant::getAllOnesValue(Cond->getType()), in ThreadCmpOverSelect() 552 return Constant::getAllOnesValue(Op0->getType()); in SimplifyAddInst() 1341 return Constant::getAllOnesValue(Op0->getType()); in SimplifyAShrInst() 1471 return Constant::getAllOnesValue(Op0->getType()); in SimplifyOrInst() 1488 return Constant::getAllOnesValue(Op0->getType()); in SimplifyOrInst() 1504 return Constant::getAllOnesValue(Op1->getType()); in SimplifyOrInst() 1509 return Constant::getAllOnesValue(Op0->getType()); in SimplifyOrInst() 1605 return Constant::getAllOnesValue(Op0->getType()); in SimplifyXorInst() 1947 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() [all …]
|
D | ValueTracking.cpp | 254 KnownZero = APInt::getAllOnesValue(BitWidth); in computeKnownBits() 714 KnownZero = APInt::getAllOnesValue(BitWidth); in computeKnownBits() 715 KnownOne = APInt::getAllOnesValue(BitWidth); in computeKnownBits()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SCCP.cpp | 880 markConstant(IV, &I, Constant::getAllOnesValue(PT)); in visitBinaryOperator() 883 Constant::getAllOnesValue(I.getType())); in visitBinaryOperator() 1347 markForcedConstant(I, Constant::getAllOnesValue(ITy)); in ResolvedUndefsIn() 1379 markForcedConstant(I, Constant::getAllOnesValue(ITy)); in ResolvedUndefsIn()
|
D | Reassociate.cpp | 320 Constant *Cst = Constant::getAllOnesValue(Neg->getType()); in LowerNegateToMultiply() 1091 return Constant::getAllOnesValue(X->getType()); in OptimizeAndOrXor() 1434 return Constant::getAllOnesValue(X->getType()); in OptimizeAdd() 1448 Value *V = Constant::getAllOnesValue(X->getType()); in OptimizeAdd()
|
/external/llvm/lib/Support/ |
D | APFloat.cpp | 3340 APFloat::getAllOnesValue(unsigned BitWidth, bool isIEEE) in getAllOnesValue() function in APFloat 3344 return APFloat(IEEEhalf, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue() 3346 return APFloat(IEEEsingle, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue() 3348 return APFloat(IEEEdouble, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue() 3350 return APFloat(x87DoubleExtended, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue() 3353 return APFloat(IEEEquad, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue() 3354 return APFloat(PPCDoubleDouble, APInt::getAllOnesValue(BitWidth)); in getAllOnesValue()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector() 930 return Constant::getAllOnesValue(C1->getType()); // undef | X -> ~0 in ConstantFoldBinaryInstruction() 938 return Constant::getAllOnesValue(C1->getType()); in ConstantFoldBinaryInstruction() 1613 return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction() 1687 case FCmpInst::FCMP_TRUE: return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
|
D | Constants.cpp | 185 Constant *Constant::getAllOnesValue(Type *Ty) { in getAllOnesValue() function in Constant 188 APInt::getAllOnesValue(ITy->getBitWidth())); in getAllOnesValue() 191 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(), in getAllOnesValue() 198 getAllOnesValue(VTy->getElementType())); in getAllOnesValue() 2099 return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType())); in getNot() 2208 return Constant::getAllOnesValue(Ty); in getBinOpIdentity() 2223 return Constant::getAllOnesValue(Ty); in getBinOpAbsorber()
|
D | Type.cpp | 328 return APInt::getAllOnesValue(getBitWidth()); in getMask()
|
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 77 APInt u128max = APInt::getAllOnesValue(128); in TEST()
|
/external/clang/lib/CodeGen/ |
D | CGExprCXX.cpp | 569 size = llvm::Constant::getAllOnesValue(CGF.SizeTy); in EmitCXXNewAllocSize() 711 llvm::Constant::getAllOnesValue(CGF.SizeTy), in EmitCXXNewAllocSize()
|
D | ItaniumCXXABI.cpp | 536 llvm::Value *null = llvm::Constant::getAllOnesValue(src->getType()); in EmitMemberPointerConversion() 795 llvm::Constant::getAllOnesValue(MemPtr->getType()); in EmitMemberPointerIsNotNull()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | MemorySanitizer.cpp | 884 return Constant::getAllOnesValue(ShadowTy); in getPoisonedShadow() 1499 Value *MinusOne = Constant::getAllOnesValue(Sc->getType()); in handleEqualityComparison()
|