Searched refs:KnownOne (Results 1 - 25 of 45) sorted by relevance

12

/freebsd-11.0-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
60 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne,
72 APInt &KnownZero, APInt &KnownOne,
76 KnownOne, Depth, UserI);
89 /// returns false after analyzing the expression and setting KnownOne and 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
97 /// and KnownOne must all be the same.
105 APInt &KnownZero, APInt &KnownOne,
71 SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument
104 SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth, Instruction *CxtI) argument
804 SimplifyShrShlDemandedBits(Instruction *Shr, Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) argument
[all...]
H A DInstCombineInternal.h471 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, argument
473 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, AC, CxtI,
485 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, argument
487 return llvm::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth, AC, CxtI,
516 APInt &KnownOne, unsigned Depth,
519 APInt &KnownOne, unsigned Depth = 0);
524 APInt &KnownOne);
H A DInstCombineCalls.cpp823 APInt KnownOne(BitWidth, 0);
824 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II);
825 unsigned TrailingZeros = KnownOne.countTrailingZeros();
841 APInt KnownOne(BitWidth, 0);
842 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II);
843 unsigned LeadingZeros = KnownOne.countLeadingZeros();
1739 APInt KnownZero(1, 0), KnownOne(1, 0);
1740 computeKnownBits(IIOperand, KnownZero, KnownOne, 0, II);
1741 if (KnownOne.isAllOnesValue())
H A DInstructionCombining.cpp2074 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
2075 computeKnownBits(ResultOp, KnownZero, KnownOne, 0, &RI);
2076 if ((KnownZero|KnownOne).isAllOnesValue())
2077 RI.setOperand(0, Constant::getIntegerValue(VTy, KnownOne));
2142 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
2143 computeKnownBits(Cond, KnownZero, KnownOne, 0, &SI);
2145 unsigned LeadingKnownOnes = KnownOne.countLeadingOnes();
2760 APInt KnownOne(BitWidth, 0);
2761 computeKnownBits(I, KnownZero, KnownOne, /*Depth*/0, I);
2762 if ((KnownZero | KnownOne)
[all...]
H A DInstCombineCompares.cpp181 const APInt& KnownOne,
183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
186 "KnownZero, KnownOne and Min, Max must have equal bitwidth.");
187 APInt UnknownBits = ~(KnownZero|KnownOne);
191 Min = KnownOne;
192 Max = KnownOne|UnknownBits;
205 const APInt &KnownOne,
207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
210 "Ty, KnownZero, KnownOne and Min, Max must have equal bitwidth.");
211 APInt UnknownBits = ~(KnownZero|KnownOne);
180 ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, const APInt& KnownOne, APInt& Min, APInt& Max) argument
204 ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, const APInt &KnownOne, APInt &Min, APInt &Max) argument
[all...]
H A DInstCombineCasts.cpp625 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
626 computeKnownBits(ICI->getOperand(0), KnownZero, KnownOne, 0, &CI);
1000 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
1001 computeKnownBits(Op0, KnownZero, KnownOne, 0, &CI);
1136 bool KnownZero, KnownOne; local
1137 ComputeSignBit(Src, KnownZero, KnownOne, 0, &CI);
/freebsd-11.0-release/contrib/llvm/include/llvm/CodeGen/
H A DFunctionLoweringInfo.h123 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo
124 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0),
199 const APInt &KnownZero, const APInt &KnownOne) {
201 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0)
207 LOI.KnownOne = KnownOne;
198 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
/freebsd-11.0-release/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp130 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
134 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, argument
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, argument
165 ::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth,
229 APInt &KnownZero, APInt &KnownOne,
291 KnownOne = PossibleSumOne & Known;
303 KnownOne |= APInt::getSignBit(BitWidth);
309 APInt &KnownZero, APInt &KnownOne,
228 computeKnownBitsAddSub(bool Add, Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout &DL, unsigned Depth, const Query &Q) argument
308 computeKnownBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout &DL, unsigned Depth, const Query &Q) argument
369 computeKnownBitsFromRangeMetadata(const MDNode &Ranges, APInt &KnownZero, APInt &KnownOne) argument
545 computeKnownBitsFromTrueCondition(Value *V, ICmpInst *Cmp, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument
619 computeKnownBitsFromDominatingCondition(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument
727 computeKnownBitsFromAssume(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument
984 computeKnownBitsFromShiftOperator(Operator *I, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout &DL, unsigned Depth, const Query &Q, KZFunctor KZF, KOFunctor KOF) argument
1059 computeKnownBitsFromOperator(Operator *I, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument
1612 computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument
1702 ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument
[all...]
H A DDemandedBits.cpp73 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne,
87 KnownOne = APInt(BitWidth, 0);
88 computeKnownBits(const_cast<Value *>(V1), KnownZero, KnownOne, DL, 0,
118 std::min(BitWidth, KnownOne.countLeadingZeros()+1));
128 std::min(BitWidth, KnownOne.countTrailingZeros()+1));
218 AB &= ~(KnownOne & ~KnownOne2);
315 APInt KnownZero, KnownOne, KnownZero2, KnownOne2; local
332 KnownZero, KnownOne,
71 determineLiveOperandBits( const Instruction *UserI, const Instruction *I, unsigned OperandNo, const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2) argument
H A DLint.cpp516 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
517 computeKnownBits(V, KnownZero, KnownOne, DL, 0, AC,
538 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
539 computeKnownBits(Elem, KnownZero, KnownOne, DL);
/freebsd-11.0-release/contrib/llvm/include/llvm/Analysis/
H A DDemandedBits.h57 APInt &KnownZero, APInt &KnownOne,
H A DValueTracking.h38 /// them in the KnownZero/KnownOne bit sets.
45 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
52 /// \p KnownOne the set of bits that are known to be one
54 APInt &KnownZero, APInt &KnownOne);
63 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp378 /// return a mask of KnownOne and KnownZero bits for the expression (used to
384 APInt &KnownOne,
395 KnownZero = KnownOne = APInt(BitWidth, 0);
400 // If not at the root, Just compute the KnownZero/KnownOne bits to
402 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth);
421 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
422 KnownZero = ~KnownOne;
443 KnownOne, TLO, Depth+1))
445 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
453 if ((NewMask & ~KnownZero2 & KnownOne)
381 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument
1132 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
1185 APInt KnownZero, KnownOne; local
[all...]
H A DFunctionLoweringInfo.cpp393 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
428 DestLOI.KnownOne = Zero;
436 DestLOI.KnownOne = Val;
454 DestLOI.KnownOne.getBitWidth() == BitWidth &&
463 DestLOI.KnownOne = Zero;
471 DestLOI.KnownOne &= Val;
489 DestLOI.KnownOne &= SrcLOI->KnownOne;
H A DSelectionDAG.cpp2033 APInt KnownZero, KnownOne; local
2034 computeKnownBits(Op, KnownZero, KnownOne, Depth);
2039 /// them in the KnownZero/KnownOne bitsets.
2041 APInt &KnownOne, unsigned Depth) const {
2044 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything.
2053 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
2054 KnownZero = ~KnownOne;
2058 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
2062 KnownOne &= KnownOne2;
2067 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Dept
2040 computeKnownBits(SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth) const argument
2648 APInt KnownZero, KnownOne; local
2673 APInt KnownZero, KnownOne; local
2742 APInt KnownZero, KnownOne; local
7087 llvm::computeKnownBits(const_cast<GlobalValue *>(GV), KnownZero, KnownOne, local
[all...]
H A DSelectionDAGISel.cpp678 APInt KnownOne; local
707 CurDAG->computeKnownBits(Src, KnownZero, KnownOne);
708 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne);
1752 APInt KnownZero, KnownOne; local
1753 CurDAG->computeKnownBits(LHS, KnownZero, KnownOne);
1756 if ((NeededMask & KnownOne) == NeededMask)
/freebsd-11.0-release/contrib/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp417 APInt KnownZero, KnownOne; local
418 DAG.computeKnownBits(Value, KnownZero, KnownOne);
1634 APInt KnownZero, KnownOne; local
1639 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne,
1651 APInt KnownZero, KnownOne; local
1656 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne,
1688 APInt KnownZero, KnownOne; local
1691 DAG.computeKnownBits(N2, KnownZero, KnownOne);
1711 APInt KnownZero, KnownOne; local
1714 DAG.computeKnownBits(N2, KnownZero, KnownOne);
1727 APInt KnownZero, KnownOne; local
1854 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
[all...]
H A DXCoreISelLowering.h204 APInt &KnownOne,
/freebsd-11.0-release/contrib/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp709 APInt KnownZero, KnownOne; local
710 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne);
758 APInt KnownZero, KnownOne; local
759 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
782 APInt KnownZero, KnownOne; local
783 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
784 Mask &= ~KnownOne.getZExtValue();
/freebsd-11.0-release/contrib/llvm/lib/Target/Sparc/
H A DSparcISelLowering.h62 /// KnownZero/KnownOne bitsets.
65 APInt &KnownOne,
/freebsd-11.0-release/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.h197 /// either zero or one and return them in the \p KnownZero and \p KnownOne
201 APInt &KnownOne,
H A DAMDGPUISelLowering.cpp2448 APInt KnownZero, KnownOne; local
2450 DAG.computeKnownBits(Op, KnownZero, KnownOne);
2472 APInt KnownZero, KnownOne; local
2474 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO))
2787 APInt KnownZero, KnownOne; local
2793 KnownZero, KnownOne, TLO)) {
3004 APInt &KnownOne,
3013 KnownOne = Op0One & Op1One;
3019 APInt &KnownOne,
3023 KnownZero = KnownOne
3001 computeKnownBitsForMinMax(const SDValue Op0, const SDValue Op1, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) argument
3016 computeKnownBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.h230 /// or one and return them in the KnownZero/KnownOne bitsets.
232 APInt &KnownOne, const SelectionDAG &DAG,
/freebsd-11.0-release/contrib/llvm/lib/Target/ARM/
H A DARMISelLowering.h320 APInt &KnownOne,
/freebsd-11.0-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h505 APInt &KnownOne,

Completed in 181 milliseconds

12