HomeSort by relevance Sort by last modified time
    Searched refs:KnownZero (Results 1 - 25 of 48) sorted by null

1 2

  /external/llvm/lib/Transforms/InstCombine/
InstCombineSimplifyDemanded.cpp 57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
60 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne,
72 APInt &KnownZero, APInt &KnownOne,
75 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero,
90 /// to be one in the expression. KnownZero contains all the bits that are known
93 /// the expression. KnownOne and KnownZero always follow the invariant that
94 /// KnownOne & KnownZero == 0. That is, a bit can't be both 1 and 0. Note that
95 /// the bits in KnownOne and KnownZero may only be accurate for those bits set
96 /// in DemandedMask. Note also that the bitwidth of V, DemandedMask, KnownZero
105 APInt &KnownZero, APInt &KnownOne
    [all...]
InstCombineInternal.h 471 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
473 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, AC, CxtI,
485 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
487 return llvm::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth, AC, CxtI,
515 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero,
518 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero,
523 APInt DemandedMask, APInt &KnownZero,
InstCombineCasts.cpp 625 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
626 computeKnownBits(ICI->getOperand(0), KnownZero, KnownOne, 0, &CI);
628 APInt KnownZeroMask(~KnownZero);
    [all...]
InstCombineCalls.cpp 822 APInt KnownZero(BitWidth, 0);
824 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II);
827 if ((Mask & KnownZero) == Mask)
840 APInt KnownZero(BitWidth, 0);
842 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II);
845 if ((Mask & KnownZero) == Mask)
    [all...]
InstCombineCompares.cpp 180 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero,
183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
184 KnownZero.getBitWidth() == Min.getBitWidth() &&
185 KnownZero.getBitWidth() == Max.getBitWidth() &&
186 "KnownZero, KnownOne and Min, Max must have equal bitwidth.");
187 APInt UnknownBits = ~(KnownZero|KnownOne);
204 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero,
207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
208 KnownZero.getBitWidth() == Min.getBitWidth() &&
209 KnownZero.getBitWidth() == Max.getBitWidth() &
    [all...]
InstructionCombining.cpp     [all...]
InstCombineAddSub.cpp     [all...]
  /external/llvm/include/llvm/CodeGen/
FunctionLoweringInfo.h 123 APInt KnownOne, KnownZero;
125 KnownZero(1, 0) {}
199 const APInt &KnownZero, const APInt &KnownOne) {
201 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0)
208 LOI.KnownZero = KnownZero;
  /external/llvm/lib/Analysis/
ValueTracking.cpp 130 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
134 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
138 ::computeKnownBits(V, KnownZero, KnownOne, DL, Depth,
157 static void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
161 void llvm::ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
165 ::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth,
229 APInt &KnownZero, APInt &KnownOne,
239 unsigned BitWidth = KnownZero.getBitWidth();
251 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2);
257 unsigned BitWidth = KnownZero.getBitWidth()
    [all...]
DemandedBits.cpp 73 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne,
86 KnownZero = APInt(BitWidth, 0);
88 computeKnownBits(const_cast<Value *>(V1), KnownZero, KnownOne, DL, 0,
202 AB &= ~(KnownZero & ~KnownZero2);
248 auto NumLeadingZeroes = std::min(KnownZero.countLeadingOnes(),
322 APInt KnownZero, KnownOne, KnownZero2, KnownOne2;
339 KnownZero, KnownOne,
Lint.cpp 516 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
517 computeKnownBits(V, KnownZero, KnownOne, DL, 0, AC,
519 return KnownZero.isAllOnesValue();
530 // For a vector, KnownZero will only be true if all values are zero, so check
538 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
539 computeKnownBits(Elem, KnownZero, KnownOne, DL);
540 if (KnownZero.isAllOnesValue())
  /external/llvm/include/llvm/Analysis/
DemandedBits.h 57 APInt &KnownZero, APInt &KnownOne,
ValueTracking.h 38 /// them in the KnownZero/KnownOne bit sets.
45 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
51 /// \p KnownZero the set of bits that are known to be zero
54 APInt &KnownZero, APInt &KnownOne);
63 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
  /external/llvm/lib/CodeGen/SelectionDAG/
TargetLowering.cpp 384 /// analyze the expression and return a mask of KnownOne and KnownZero bits for
385 /// the expression (used to simplify the caller). The KnownZero/One bits may
389 APInt &KnownZero,
401 KnownZero = KnownOne = APInt(BitWidth, 0);
406 // If not at the root, Just compute the KnownZero/KnownOne bits to
408 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth);
428 KnownZero = ~KnownOne;
448 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero,
451 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
452 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero & NewMask
    [all...]
FunctionLoweringInfo.cpp 392 if (BitWidth > LOI->KnownZero.getBitWidth()) {
394 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
429 DestLOI.KnownZero = Zero;
437 DestLOI.KnownZero = ~Val;
455 assert(DestLOI.KnownZero.getBitWidth() == BitWidth &&
464 DestLOI.KnownZero = Zero;
472 DestLOI.KnownZero &= ~Val;
490 DestLOI.KnownZero &= SrcLOI->KnownZero;
    [all...]
SelectionDAG.cpp     [all...]
  /external/llvm/lib/Target/XCore/
XCoreISelLowering.cpp 417 APInt KnownZero, KnownOne;
418 DAG.computeKnownBits(Value, KnownZero, KnownOne);
419 return KnownZero.countTrailingOnes() >= 2;
    [all...]
XCoreISelLowering.h 203 APInt &KnownZero,
  /external/mesa3d/src/gallium/drivers/radeon/
AMDGPUISelLowering.h 66 /// KnownZero/KnownOne bitsets.
68 APInt &KnownZero,
AMDILISelLowering.cpp 279 APInt &KnownZero,
286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything
292 KnownZero,
301 assert((KnownZero & KnownOne) == 0
307 KnownZero &= KnownZero2;
  /external/llvm/lib/Target/SystemZ/
SystemZISelDAGToDAG.cpp 709 APInt KnownZero, KnownOne;
710 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne);
711 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue()))
758 APInt KnownZero, KnownOne;
759 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
760 Mask |= KnownZero.getZExtValue();
782 APInt KnownZero, KnownOne;
783 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
    [all...]
  /external/llvm/lib/Target/Sparc/
SparcISelLowering.h 62 /// KnownZero/KnownOne bitsets.
64 APInt &KnownZero,
  /external/llvm/lib/Target/AMDGPU/
AMDGPUISelLowering.h 189 /// either zero or one and return them in the \p KnownZero and \p KnownOne
192 APInt &KnownZero,
AMDGPUISelLowering.cpp     [all...]
  /external/llvm/lib/Transforms/Utils/
Local.cpp     [all...]

Completed in 513 milliseconds

1 2