Home
last modified time | relevance | path

Searched refs:getAllOnesValue (Results 1 – 25 of 38) sorted by relevance

12

/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp147 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant()
151 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant()
169 return ConstantInt::getAllOnesValue(Tp); in getRandomValue()
173 return ConstantFP::getAllOnesValue(Tp); in getRandomValue()
364 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
391 APInt::getAllOnesValue(Ty->getPrimitiveSizeInBits()))); in Act()
/external/llvm/include/llvm/
DConstant.h143 static Constant *getAllOnesValue(Type* Ty);
/external/llvm/include/llvm/ADT/
DAPInt.h398 return getAllOnesValue(numBits); in getMaxValue()
403 APInt API = getAllOnesValue(numBits); in getSignedMaxValue()
429 static APInt getAllOnesValue(unsigned numBits) { in getAllOnesValue() function
488 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet()
505 return getAllOnesValue(numBits).lshr(numBits - loBitsSet); in getLowBitsSet()
DAPFloat.h255 static APFloat getAllOnesValue(unsigned BitWidth, bool isIEEE = false);
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp479 DAG.getConstant(APInt::getAllOnesValue(BitTy.getSizeInBits()), BitTy), in ExpandSELECT()
493 APInt::getAllOnesValue(BitTy.getSizeInBits()), MaskTy); in ExpandSELECT()
535 APInt::getAllOnesValue(VT.getScalarType().getSizeInBits()), VT); in ExpandVSELECT()
609 DAG.getConstant(APInt::getAllOnesValue in UnrollVSETCC()
DDAGCombiner.cpp138 APInt Demanded = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits()
2031 DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), in visitUREM()
2434 APInt::getAllOnesValue(BitWidth))) in visitAND()
2509 Constant = APInt::getAllOnesValue(BitWidth); in visitAND()
3022 return DAG.getConstant(APInt::getAllOnesValue(EltVT.getSizeInBits()), VT); in visitOR()
3223 APInt Mask = APInt::getAllOnesValue(OpSizeInBits); in MatchRotate()
3540 APInt::getAllOnesValue(OpSizeInBits))) in visitSHL()
3812 APInt::getAllOnesValue(OpSizeInBits))) in visitSRL()
4445 DAG.getConstant(APInt::getAllOnesValue(ElementWidth), VT); in visitSIGN_EXTEND()
7327 Imm ^= APInt::getAllOnesValue(BitWidth); in ReduceLoadOpStoreWidth()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
214 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
737 APInt AllOnes = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
816 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
DInstCombineVectorOps.cpp399 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitInsertElementInst()
424 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitShuffleVectorInst()
DInstCombineCompares.cpp736 ConstantExpr::getSub(ConstantInt::getAllOnesValue(CI->getType()), CI); in FoldICmpAddOpCst()
1643 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast()
1781 if (!CI) return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask()
1804 return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask()
1967 APInt::getAllOnesValue(BitWidth), in visitICmpInst()
2091 Constant::getAllOnesValue(Op0->getType())); in visitICmpInst()
2413 Constant::getAllOnesValue(SRem->getType())); in visitICmpInst()
DInstCombineSelect.cpp116 return Constant::getAllOnesValue(I->getType()); in GetSelectFoldableConstant()
909 APInt AllOnesEltMask(APInt::getAllOnesValue(VWidth)); in visitSelectInst()
DInstCombineMulDivRem.cpp644 Constant *N1 = Constant::getAllOnesValue(I.getType()); in visitURem()
DInstCombineCasts.cpp919 ConstantInt::getAllOnesValue(CI.getType()) : in transformSExtICmp()
936 ConstantInt::getAllOnesValue(In->getType()), in transformSExtICmp()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp75 return Constant::getAllOnesValue(Ty); in getTrue()
501 SimplifyXorInst(Cond, Constant::getAllOnesValue(Cond->getType()), in ThreadCmpOverSelect()
624 return Constant::getAllOnesValue(Op0->getType()); in SimplifyAddInst()
1298 return Constant::getAllOnesValue(Op0->getType()); in SimplifyAShrInst()
1433 return Constant::getAllOnesValue(Op0->getType()); in SimplifyOrInst()
1450 return Constant::getAllOnesValue(Op0->getType()); in SimplifyOrInst()
1466 return Constant::getAllOnesValue(Op1->getType()); in SimplifyOrInst()
1471 return Constant::getAllOnesValue(Op0->getType()); in SimplifyOrInst()
1540 return Constant::getAllOnesValue(Op0->getType()); in SimplifyXorInst()
1829 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst()
[all …]
DValueTracking.cpp255 KnownZero = APInt::getAllOnesValue(BitWidth); in ComputeMaskedBits()
700 KnownZero = APInt::getAllOnesValue(BitWidth); in ComputeMaskedBits()
701 KnownOne = APInt::getAllOnesValue(BitWidth); in ComputeMaskedBits()
DConstantFolding.cpp53 return Constant::getAllOnesValue(DestTy); in FoldBitCast()
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp888 markConstant(IV, &I, Constant::getAllOnesValue(PT)); in visitBinaryOperator()
891 Constant::getAllOnesValue(I.getType())); in visitBinaryOperator()
1357 markForcedConstant(I, Constant::getAllOnesValue(ITy)); in ResolvedUndefsIn()
1389 markForcedConstant(I, Constant::getAllOnesValue(ITy)); in ResolvedUndefsIn()
DReassociate.cpp241 Constant *Cst = Constant::getAllOnesValue(Neg->getType()); in LowerNegateToMultiply()
1056 return Constant::getAllOnesValue(X->getType()); in OptimizeAndOrXor()
/external/llvm/lib/VMCore/
DConstants.cpp141 Constant *Constant::getAllOnesValue(Type *Ty) { in getAllOnesValue() function in Constant
144 APInt::getAllOnesValue(ITy->getBitWidth())); in getAllOnesValue()
147 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(), in getAllOnesValue()
154 getAllOnesValue(VTy->getElementType())); in getAllOnesValue()
1919 return get(Instruction::Xor, C, Constant::getAllOnesValue(C->getType())); in getNot()
2028 return Constant::getAllOnesValue(Ty); in getBinOpIdentity()
2043 return Constant::getAllOnesValue(Ty); in getBinOpAbsorber()
DConstantFold.cpp46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
917 return Constant::getAllOnesValue(C1->getType()); // undef | X -> ~0 in ConstantFoldBinaryInstruction()
925 return Constant::getAllOnesValue(C1->getType()); in ConstantFoldBinaryInstruction()
1590 return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
1668 case FCmpInst::FCMP_TRUE: return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
DType.cpp355 return APInt::getAllOnesValue(getBitWidth()); in getMask()
DInstructions.cpp1899 Constant *C = Constant::getAllOnesValue(Op->getType()); in CreateNot()
1906 Constant *AllOnes = Constant::getAllOnesValue(Op->getType()); in CreateNot()
/external/clang/lib/CodeGen/
DItaniumCXXABI.cpp374 llvm::Value *null = llvm::Constant::getAllOnesValue(src->getType()); in EmitMemberPointerConversion()
650 llvm::Constant::getAllOnesValue(MemPtr->getType()); in EmitMemberPointerIsNotNull()
DCGExprCXX.cpp652 size = llvm::Constant::getAllOnesValue(CGF.SizeTy); in EmitCXXNewAllocSize()
794 llvm::Constant::getAllOnesValue(CGF.SizeTy), in EmitCXXNewAllocSize()
/external/llvm/unittests/ADT/
DAPIntTest.cpp69 APInt u128max = APInt::getAllOnesValue(128); in TEST()
/external/llvm/lib/Support/
DAPFloat.cpp3254 APFloat::getAllOnesValue(unsigned BitWidth, bool isIEEE) in getAllOnesValue() function in APFloat
3256 return APFloat(APInt::getAllOnesValue(BitWidth), isIEEE); in getAllOnesValue()

12