Home
last modified time | relevance | path

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

12

/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp141 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant()
145 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant()
163 return ConstantInt::getAllOnesValue(Tp); in getRandomValue()
167 return ConstantFP::getAllOnesValue(Tp); in getRandomValue()
358 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
385 APInt::getAllOnesValue(Ty->getPrimitiveSizeInBits()))); in Act()
/external/llvm/include/llvm/
DConstant.h143 static Constant *getAllOnesValue(Type* Ty);
/external/llvm/include/llvm/ADT/
DAPInt.h396 return getAllOnesValue(numBits); in getMaxValue()
401 APInt API = getAllOnesValue(numBits); in getSignedMaxValue()
427 static APInt getAllOnesValue(unsigned numBits) { in getAllOnesValue() function
486 return getAllOnesValue(numBits).shl(shiftAmt); in getHighBitsSet()
503 return getAllOnesValue(numBits).lshr(numBits - loBitsSet); in getLowBitsSet()
DAPFloat.h255 static APFloat getAllOnesValue(unsigned BitWidth, bool isIEEE = false);
/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.cpp735 ConstantExpr::getSub(ConstantInt::getAllOnesValue(CI->getType()), CI); in FoldICmpAddOpCst()
1642 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast()
1780 if (!CI) return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask()
1803 return APInt::getAllOnesValue(BitWidth); in DemandedBitsLHSMask()
1966 APInt::getAllOnesValue(BitWidth), in visitICmpInst()
2090 Constant::getAllOnesValue(Op0->getType())); in visitICmpInst()
2412 Constant::getAllOnesValue(SRem->getType())); in visitICmpInst()
DInstCombineMulDivRem.cpp631 Constant *N1 = Constant::getAllOnesValue(I.getType()); in visitURem()
DInstCombineCasts.cpp921 ConstantInt::getAllOnesValue(CI.getType()) : in transformSExtICmp()
938 ConstantInt::getAllOnesValue(In->getType()), in transformSExtICmp()
DInstCombineSelect.cpp116 return Constant::getAllOnesValue(I->getType()); in GetSelectFoldableConstant()
/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()
1823 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/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp415 APInt::getAllOnesValue(VT.getScalarType().getSizeInBits()), VT); in ExpandVSELECT()
489 DAG.getConstant(APInt::getAllOnesValue in UnrollVSETCC()
DDAGCombiner.cpp138 APInt Demanded = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits()
2026 DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()), in visitUREM()
2429 APInt::getAllOnesValue(BitWidth))) in visitAND()
2494 Constant = APInt::getAllOnesValue(BitWidth); in visitAND()
2972 return DAG.getConstant(APInt::getAllOnesValue(EltVT.getSizeInBits()), VT); in visitOR()
3173 APInt Mask = APInt::getAllOnesValue(OpSizeInBits); in MatchRotate()
3490 APInt::getAllOnesValue(OpSizeInBits))) in visitSHL()
3762 APInt::getAllOnesValue(OpSizeInBits))) in visitSRL()
4395 DAG.getConstant(APInt::getAllOnesValue(ElementWidth), VT); in visitSIGN_EXTEND()
6903 Imm ^= APInt::getAllOnesValue(BitWidth); in ReduceLoadOpStoreWidth()
[all …]
/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.cpp214 Constant *Cst = Constant::getAllOnesValue(Neg->getType()); in LowerNegateToMultiply()
677 return Constant::getAllOnesValue(X->getType()); in OptimizeAndOrXor()
/external/llvm/lib/VMCore/
DConstantFold.cpp46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
910 return Constant::getAllOnesValue(C1->getType()); // undef | X -> ~0 in ConstantFoldBinaryInstruction()
918 return Constant::getAllOnesValue(C1->getType()); in ConstantFoldBinaryInstruction()
1582 return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
1660 case FCmpInst::FCMP_TRUE: return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
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()
DType.cpp355 return APInt::getAllOnesValue(getBitWidth()); in getMask()
DInstructions.cpp1893 Constant *C = Constant::getAllOnesValue(Op->getType()); in CreateNot()
1900 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.cpp614 size = llvm::Constant::getAllOnesValue(CGF.SizeTy); in EmitCXXNewAllocSize()
756 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.cpp3208 APFloat::getAllOnesValue(unsigned BitWidth, bool isIEEE) in getAllOnesValue() function in APFloat
3210 return APFloat(APInt::getAllOnesValue(BitWidth), isIEEE); in getAllOnesValue()

12