/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 23 struct KnownBits { struct 29 KnownBits(APInt Zero, APInt One) in KnownBits() function 34 KnownBits() = default; 37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits() function 150 KnownBits trunc(unsigned BitWidth) const { in trunc() argument 151 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc() 156 KnownBits anyext(unsigned BitWidth) const { in anyext() argument 157 return KnownBits(Zero.zext(BitWidth), One.zext(BitWidth)); in anyext() 161 KnownBits zext(unsigned BitWidth) const { in zext() argument 165 return KnownBits(NewZero, One.zext(BitWidth)); in zext() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | KnownBits.cpp | 21 static KnownBits computeForAddCarry(const KnownBits &LHS, const KnownBits &RHS, in computeForAddCarry() 38 KnownBits KnownOut; in computeForAddCarry() 44 KnownBits KnownBits::computeForAddCarry( in computeForAddCarry() 45 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry) { in computeForAddCarry() 51 KnownBits KnownBits::computeForAddSub(bool Add, bool NSW, bool NUW, in computeForAddSub() 52 const KnownBits &LHS, in computeForAddSub() 53 const KnownBits &RHS) { in computeForAddSub() 55 KnownBits KnownOut(BitWidth); in computeForAddSub() 68 KnownBits NotRHS = RHS; in computeForAddSub() 137 KnownBits KnownBits::computeForSubBorrow(const KnownBits &LHS, KnownBits RHS, in computeForSubBorrow() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | GISelKnownBits.cpp | 61 KnownBits GISelKnownBits::getKnownBits(MachineInstr &MI) { in getKnownBits() 67 KnownBits GISelKnownBits::getKnownBits(Register R) { in getKnownBits() 77 KnownBits GISelKnownBits::getKnownBits(Register R, const APInt &DemandedElts, in getKnownBits() 82 KnownBits Known; in getKnownBits() 101 dumpResult(const MachineInstr &MI, const KnownBits &Known, unsigned Depth) { in dumpResult() 113 KnownBits &Known, in computeKnownBitsMin() 123 KnownBits Known2; in computeKnownBitsMin() 133 static KnownBits extractBits(unsigned BitWidth, const KnownBits &SrcOpKnown, in extractBits() 134 const KnownBits &OffsetKnown, in extractBits() 135 const KnownBits &WidthKnown) { in extractBits() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | DemandedBits.h | 35 struct KnownBits; 71 const KnownBits &LHS, 72 const KnownBits &RHS); 78 const KnownBits &LHS, 79 const KnownBits &RHS); 86 KnownBits &Known, KnownBits &Known2, bool &KnownBitsComputed);
|
H A D | ValueTracking.h | 40 struct KnownBits; 58 void computeKnownBits(const Value *V, KnownBits &Known, const DataLayout &DL, 65 KnownBits computeKnownBits(const Value *V, const DataLayout &DL, 72 KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts, 79 KnownBits computeKnownBits(const Value *V, const APInt &DemandedElts, 82 KnownBits computeKnownBits(const Value *V, unsigned Depth, 85 void computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth, 91 void computeKnownBitsFromRangeMetadata(const MDNode &Ranges, KnownBits &Known); 94 void computeKnownBitsFromContext(const Value *V, KnownBits &Known, 98 KnownBits analyzeKnownBitsFromAndXorOr(const Operator *I, [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | GISelKnownBits.h | 9 /// Provides analysis for querying information about KnownBits during GISel 22 #include "llvm/Support/KnownBits.h" 36 SmallDenseMap<Register, KnownBits, 16> ComputeKnownBitsCache; 38 void computeKnownBitsMin(Register Src0, Register Src1, KnownBits &Known, 57 virtual void computeKnownBitsImpl(Register R, KnownBits &Known, 66 KnownBits getKnownBits(Register R); 67 KnownBits getKnownBits(Register R, const APInt &DemandedElts, 71 KnownBits getKnownBits(MachineInstr &MI); 86 static void computeKnownBitsForAlignment(KnownBits &Known, in computeKnownBitsForAlignment()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMBasicBlockInfo.h | 33 inline unsigned UnknownPadding(Align Alignment, unsigned KnownBits) { in UnknownPadding() argument 34 if (KnownBits < Log2(Alignment)) in UnknownPadding() 35 return Alignment.value() - (1ull << KnownBits); in UnknownPadding() 62 uint8_t KnownBits = 0; member 79 unsigned Bits = Unalign ? Unalign : KnownBits; in internalKnownBits()
|
H A D | ARMBasicBlockInfo.cpp | 132 const unsigned KnownBits = BBInfo[i - 1].postKnownBits(Align); in adjustBBOffsetsAfter() 139 BBInfo[i].KnownBits == KnownBits) in adjustBBOffsetsAfter() 143 BBInfo[i].KnownBits = KnownBits; in adjustBBOffsetsAfter() 133 const unsigned KnownBits = BBInfo[i - 1].postKnownBits(Align); adjustBBOffsetsAfter() local
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | DemandedBits.cpp | 56 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2, in determineLiveOperandBits() 73 Known = KnownBits(BitWidth); in determineLiveOperandBits() 77 Known2 = KnownBits(BitWidth); in determineLiveOperandBits() 352 KnownBits Known, Known2; in performAnalysis() 429 KnownBits Known, Known2; in getDemandedBits() 494 const KnownBits &LHS, in determineLiveOperandBitsAddCarry() 495 const KnownBits &RHS, in determineLiveOperandBitsAddCarry() 555 const KnownBits &LHS, in determineLiveOperandBitsAdd() 556 const KnownBits &RHS) { in determineLiveOperandBitsAdd() 563 const KnownBits &LHS, in determineLiveOperandBitsSub() [all …]
|
H A D | ValueTracking.cpp | 151 KnownBits &Known, unsigned Depth, 154 void llvm::computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth, in computeKnownBits() 165 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits() 174 KnownBits llvm::computeKnownBits(const Value *V, const DataLayout &DL, in computeKnownBits() 182 KnownBits llvm::computeKnownBits(const Value *V, const APInt &DemandedElts, in computeKnownBits() 251 return KnownBits::haveNoCommonBitsSet(LHSCache.getKnownBits(SQ), in haveNoCommonBitsSet() 296 KnownBits Known = computeKnownBits(V, Depth, SQ); in isKnownPositive() 326 KnownBits Known(Mask.getBitWidth()); in MaskedValueIsZero() 361 KnownBits &KnownOut, KnownBits &Known2, in computeKnownBitsAddSub() 371 KnownOut = KnownBits::computeForAddSub(Add, NSW, NUW, Known2, KnownOut); in computeKnownBitsAddSub() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUGlobalISelUtils.cpp | 21 GISelKnownBits *KnownBits, bool CheckNUW) { in getBaseWithConstantOffset() argument 52 if (KnownBits && mi_match(Reg, MRI, m_GOr(m_Reg(Base), m_ICst(Offset))) && in getBaseWithConstantOffset() 53 KnownBits->maskedValueIsZero(Base, APInt(32, Offset))) in getBaseWithConstantOffset()
|
H A D | AMDGPUGlobalISelUtils.h | 27 GISelKnownBits *KnownBits = nullptr,
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 69 KnownBits &Known) { in SimplifyDemandedInstructionBits() 82 KnownBits Known(getBitWidth(Inst.getType(), DL)); in SimplifyDemandedInstructionBits() 91 KnownBits &Known, unsigned Depth, in SimplifyDemandedBits() 159 KnownBits &Known, in SimplifyDemandedUseBits() 171 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits() 442 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits() 469 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits() 565 Known = KnownBits::computeForAddSub(true, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits() 599 Known = KnownBits::computeForAddSub(false, NSW, NUW, LHSKnown, RHSKnown); in SimplifyDemandedUseBits() 698 Known = KnownBits::shl(Known, in SimplifyDemandedUseBits() [all …]
|
H A D | InstCombineInternal.h | 551 KnownBits &Known, unsigned Depth, 555 const APInt &DemandedMask, KnownBits &Known, 563 KnownBits &Known, unsigned Depth, 570 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known); 575 bool SimplifyDemandedInstructionBits(Instruction &Inst, KnownBits &Known);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZLongBranch.cpp | 128 unsigned KnownBits; member 131 : KnownBits(InitialLogAlignment) {} in BlockPosition() 184 if (Log2(Block.Alignment) > Position.KnownBits) { in skipNonTerminators() 188 (Block.Alignment.value() - (uint64_t(1) << Position.KnownBits)); in skipNonTerminators() 189 Position.KnownBits = Log2(Block.Alignment); in skipNonTerminators()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
H A D | InstCombiner.h | 354 KnownBits &Known, 431 void computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth, in computeKnownBits() 436 KnownBits computeKnownBits(const Value *V, unsigned Depth, in computeKnownBits() 506 const APInt &DemandedMask, KnownBits &Known, 510 const APInt &DemandedMask, KnownBits &Known) { in SimplifyDemandedBits()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 44 struct KnownBits; 93 static ConstantRange fromKnownBits(const KnownBits &Known, bool IsSigned); 586 KnownBits toKnownBits() const;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | FunctionLoweringInfo.h | 166 KnownBits Known = 1; 242 const KnownBits &Known) { in AddLiveOutRegInfo()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombineInternal.h | 111 KnownBits computeKnownBits(const Value *V) const { in computeKnownBits()
|
H A D | TruncInstCombine.cpp | 35 #include "llvm/Support/KnownBits.h" 310 KnownBits KnownRHS = computeKnownBits(I->getOperand(1)); in getBestTruncatedType() 317 KnownBits KnownLHS = computeKnownBits(I->getOperand(0)); in getBestTruncatedType() 333 KnownBits Known = computeKnownBits(Op); in getBestTruncatedType()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | InferAlignment.cpp | 73 KnownBits Known = computeKnownBits(PtrOp, DL, 0, &AC, &I, &DT); in inferAlignment()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 468 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo() 479 DestLOI.Known = KnownBits::makeConstant(Val); in ComputePHILiveOutRegInfo() 504 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
|
H A D | SelectionDAG.cpp | 3055 KnownBits KnownAmt = computeKnownBits(V.getOperand(1), DemandedElts, Depth); in getValidShiftAmountRange() 3129 KnownBits SelectionDAG::computeKnownBits(SDValue Op, unsigned Depth) const { in computeKnownBits() 3144 KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts, in computeKnownBits() 3148 KnownBits Known(BitWidth); // Don't know anything. in computeKnownBits() 3152 return KnownBits::makeConstant(C->getAPIntValue()); in computeKnownBits() 3156 return KnownBits::makeConstant(C->getValueAPF().bitcastToAPInt()); in computeKnownBits() 3162 KnownBits Known2; in computeKnownBits() 3449 Known = KnownBits::mul(Known, Known2, SelfMultiply); in computeKnownBits() 3463 Known = KnownBits::mulhu(Known, Known2); in computeKnownBits() 3469 Known = KnownBits::mulhs(Known, Known2); in computeKnownBits() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyISelDAGToDAG.cpp | 394 KnownBits Known0 = CurDAG->computeKnownBits(N->getOperand(0), 0); in SelectAddrOperands() 395 KnownBits Known1 = CurDAG->computeKnownBits(N->getOperand(1), 0); in SelectAddrOperands()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 59 ConstantRange ConstantRange::fromKnownBits(const KnownBits &Known, in fromKnownBits() 79 KnownBits ConstantRange::toKnownBits() const { in toKnownBits() 83 return KnownBits(getBitWidth()); in toKnownBits() 88 KnownBits Known = KnownBits::makeConstant(Min); in toKnownBits() 1548 KnownBits LHSKnown = toKnownBits(); in binaryXor() 1549 KnownBits RHSKnown = Other.toKnownBits(); in binaryXor() 1550 KnownBits Known = LHSKnown ^ RHSKnown; in binaryXor()
|