Home
last modified time | relevance | path

Searched refs:KnownBits (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DKnownBits.h22 struct KnownBits { struct
28 KnownBits(APInt Zero, APInt One) in KnownBits() function
33 KnownBits() {} in KnownBits() function
36 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits() argument
127 KnownBits trunc(unsigned BitWidth) const { in trunc() argument
128 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc()
135 KnownBits zext(unsigned BitWidth, bool ExtendedBitsAreKnownZero) const { in zext() argument
140 return KnownBits(NewZero, One.zext(BitWidth)); in zext()
145 KnownBits sext(unsigned BitWidth) const { in sext() argument
146 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DKnownBits.cpp18 static KnownBits computeForAddCarry( in computeForAddCarry()
19 const KnownBits &LHS, const KnownBits &RHS, in computeForAddCarry()
41 KnownBits KnownOut; in computeForAddCarry()
47 KnownBits KnownBits::computeForAddCarry( in computeForAddCarry()
48 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry) { in computeForAddCarry()
54 KnownBits KnownBits::computeForAddSub(bool Add, bool NSW, in computeForAddSub()
55 const KnownBits &LHS, KnownBits RHS) { in computeForAddSub()
56 KnownBits KnownOut; in computeForAddSub()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMBasicBlockInfo.h33 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()
DARMBasicBlockInfo.cpp133 const unsigned KnownBits = BBInfo[i - 1].postKnownBits(Align); in adjustBBOffsetsAfter() local
140 BBInfo[i].KnownBits == KnownBits) in adjustBBOffsetsAfter()
144 BBInfo[i].KnownBits = KnownBits; in adjustBBOffsetsAfter()
DARMConstantIslandPass.cpp338 << " kb=" << unsigned(BBI.KnownBits) in dumpBBs()
696 BBInfo.front().KnownBits = Log2(MF->getAlignment()); in initializeFunctionInfo()
976 unsigned KnownBits = BBI.internalKnownBits(); in getUserOffset() local
983 U.KnownAlignment = (KnownBits >= 2); in getUserOffset()
1328 unsigned KnownBits = UserBBI.internalKnownBits(); in createNewWater() local
1329 unsigned UPad = UnknownPadding(Align, KnownBits); in createNewWater()
1340 << " la=" << Log2(Align) << " kb=" << KnownBits in createNewWater()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DGISelKnownBits.h39 virtual void computeKnownBitsImpl(Register R, KnownBits &Known,
48 KnownBits getKnownBits(Register R);
50 KnownBits getKnownBits(MachineInstr &MI);
67 void computeKnownBitsForFrameIndex(Register R, KnownBits &Known,
72 static void computeKnownBitsForAlignment(KnownBits &Known,
DInstructionSelector.h398 GISelKnownBits *KnownBits = nullptr; variable
410 KnownBits = &KB; in setupMF()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DGISelKnownBits.cpp51 void GISelKnownBits::computeKnownBitsForFrameIndex(Register R, KnownBits &Known, in computeKnownBitsForFrameIndex()
58 void GISelKnownBits::computeKnownBitsForAlignment(KnownBits &Known, in computeKnownBitsForAlignment()
65 KnownBits GISelKnownBits::getKnownBits(MachineInstr &MI) { in getKnownBits()
69 KnownBits GISelKnownBits::getKnownBits(Register R) { in getKnownBits()
70 KnownBits Known; in getKnownBits()
90 void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known, in computeKnownBitsImpl()
102 Known = KnownBits(); in computeKnownBitsImpl()
107 Known = KnownBits(BitWidth); // Don't know anything in computeKnownBitsImpl()
118 KnownBits Known2; in computeKnownBitsImpl()
311 KnownBits RHSKnown; in computeKnownBitsImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp166 static void computeKnownBits(const Value *V, KnownBits &Known,
169 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits()
178 static KnownBits computeKnownBits(const Value *V, unsigned Depth,
181 KnownBits llvm::computeKnownBits(const Value *V, const DataLayout &DL, in computeKnownBits()
208 KnownBits LHSKnown(IT->getBitWidth()); in haveNoCommonBitsSet()
209 KnownBits RHSKnown(IT->getBitWidth()); in haveNoCommonBitsSet()
251 KnownBits Known = in isKnownNonNegative()
271 KnownBits Known = in isKnownNegative()
311 KnownBits &KnownOut, KnownBits &Known2, in computeKnownBitsAddSub()
317 KnownBits LHSKnown(BitWidth); in computeKnownBitsAddSub()
[all …]
DDemandedBits.cpp88 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2, in determineLiveOperandBits()
105 Known = KnownBits(BitWidth); in determineLiveOperandBits()
109 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
372 KnownBits Known, Known2; in performAnalysis()
DInstructionSimplify.cpp761 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifySubInst()
1271 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyShift()
1303 KnownBits Op0Known = computeKnownBits(Op0, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in SimplifyRightShift()
1366 const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyLShrInst()
2074 const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyAndInst()
2077 const KnownBits XKnown = computeKnownBits(X, Q.DL, 0, Q.AC, Q.CxtI, in SimplifyAndInst()
2626 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
2634 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
2643 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
2651 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DDemandedBits.h37 struct KnownBits;
69 KnownBits &Known, KnownBits &Known2, bool &KnownBitsComputed);
DValueTracking.h37 struct KnownBits;
54 void computeKnownBits(const Value *V, KnownBits &Known,
63 KnownBits computeKnownBits(const Value *V, const DataLayout &DL,
74 KnownBits &Known);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZLongBranch.cpp128 unsigned KnownBits; member
131 : KnownBits(InitialLogAlignment) {} in BlockPosition()
182 if (Log2(Block.Alignment) > Position.KnownBits) { in skipNonTerminators()
186 (Block.Alignment.value() - (uint64_t(1) << Position.KnownBits)); in skipNonTerminators()
187 Position.KnownBits = Log2(Block.Alignment); in skipNonTerminators()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp68 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits()
84 KnownBits &Known, in SimplifyDemandedBits()
119 KnownBits &Known, unsigned Depth, in SimplifyDemandedUseBits()
154 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits()
395 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
436 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
491 Known = KnownBits::computeForAddSub(I->getOpcode() == Instruction::Add, in SimplifyDemandedUseBits()
675 KnownBits Known2(BitWidth); in SimplifyDemandedUseBits()
794 KnownBits &Known, in SimplifyMultipleUseDemandedBits()
800 KnownBits LHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits()
[all …]
DInstCombineInternal.h728 void computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits()
733 KnownBits computeKnownBits(const Value *V, unsigned Depth, in computeKnownBits()
838 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, KnownBits &Known,
841 const APInt &DemandedMask, KnownBits &Known,
849 KnownBits &Known,
856 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known);
DInstCombineCasts.cpp888 KnownBits Known = computeKnownBits(Cmp->getOperand(0), 0, &Zext); in transformZExtICmp()
933 KnownBits KnownLHS = computeKnownBits(LHS, 0, &Zext); in transformZExtICmp()
934 KnownBits KnownRHS = computeKnownBits(RHS, 0, &Zext); in transformZExtICmp()
937 APInt KnownBits = KnownLHS.Zero | KnownLHS.One; in transformZExtICmp() local
938 APInt UnknownBit = ~KnownBits; in transformZExtICmp()
1256 KnownBits Known = computeKnownBits(Op0, 0, &CI); in transformSExtICmp()
1377 KnownBits Known = computeKnownBits(Src, 0, &CI); in visitSExt()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DFunctionLoweringInfo.h161 KnownBits Known = 1;
240 const KnownBits &Known) { in AddLiveOutRegInfo()
DTargetLowering.h79 struct KnownBits;
3136 const APInt &DemandedElts, KnownBits &Known,
3143 KnownBits &Known, TargetLoweringOpt &TLO,
3190 KnownBits &Known,
3199 Register R, KnownBits &Known,
3208 KnownBits &Known,
3239 KnownBits &Known,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstantRange.h44 struct KnownBits;
93 static ConstantRange fromKnownBits(const KnownBits &Known, bool IsSigned);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiISelLowering.h107 void computeKnownBitsForTargetNode(const SDValue Op, KnownBits &Known,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp443 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
476 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelLowering.h205 KnownBits &Known,
DXCoreISelLowering.cpp406 KnownBits Known = DAG.computeKnownBits(Value); in isWordAligned()
1606 KnownBits Known; in PerformDAGCombine()
1622 KnownBits Known; in PerformDAGCombine()
1660 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
1682 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
1697 KnownBits Known = DAG.computeKnownBits(N2); in PerformDAGCombine()
1817 KnownBits &Known, in computeKnownBitsForTargetNode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DSparcISelLowering.h65 KnownBits &Known,

1234