Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DKnownBits.h23 struct KnownBits { struct
29 KnownBits(APInt Zero, APInt One) in KnownBits() function
34 KnownBits() {} in KnownBits() function
37 KnownBits(unsigned BitWidth) : Zero(BitWidth, 0), One(BitWidth, 0) {} in KnownBits() function
113 KnownBits trunc(unsigned BitWidth) { in trunc() argument
114 return KnownBits(Zero.trunc(BitWidth), One.trunc(BitWidth)); in trunc()
119 KnownBits zext(unsigned BitWidth) { in zext() argument
120 return KnownBits(Zero.zext(BitWidth), One.zext(BitWidth)); in zext()
125 KnownBits sext(unsigned BitWidth) { in sext() argument
126 return KnownBits(Zero.sext(BitWidth), One.sext(BitWidth)); in sext()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMBasicBlockInfo.h29 inline unsigned UnknownPadding(unsigned LogAlign, unsigned KnownBits) { in UnknownPadding() argument
30 if (KnownBits < LogAlign) in UnknownPadding()
31 return (1u << LogAlign) - (1u << KnownBits); in UnknownPadding()
58 uint8_t KnownBits = 0; member
76 unsigned Bits = Unalign ? Unalign : KnownBits; in internalKnownBits()
DARMConstantIslandPass.cpp331 << " kb=" << unsigned(BBI.KnownBits) in dumpBBs()
691 BBInfo.front().KnownBits = MF->getAlignment(); in initializeFunctionInfo()
984 unsigned KnownBits = BBI.internalKnownBits(); in getUserOffset() local
991 U.KnownAlignment = (KnownBits >= 2); in getUserOffset()
1114 unsigned KnownBits = BBInfo[i - 1].postKnownBits(LogAlign); in adjustBBOffsetsAfter() local
1121 BBInfo[i].KnownBits == KnownBits) in adjustBBOffsetsAfter()
1125 BBInfo[i].KnownBits = KnownBits; in adjustBBOffsetsAfter()
1354 unsigned KnownBits = UserBBI.internalKnownBits(); in createNewWater() local
1355 unsigned UPad = UnknownPadding(LogAlign, KnownBits); in createNewWater()
1366 << " la=" << LogAlign << " kb=" << KnownBits in createNewWater()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DKnownBits.cpp19 KnownBits KnownBits::computeForAddSub(bool Add, bool NSW, in computeForAddSub()
20 const KnownBits &LHS, KnownBits RHS) { in computeForAddSub()
46 KnownBits KnownOut; in computeForAddSub()
DCMakeLists.txt87 KnownBits.cpp
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DValueTracking.cpp161 static void computeKnownBits(const Value *V, KnownBits &Known,
164 void llvm::computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits()
173 static KnownBits computeKnownBits(const Value *V, unsigned Depth,
176 KnownBits llvm::computeKnownBits(const Value *V, const DataLayout &DL, in computeKnownBits()
202 KnownBits LHSKnown(IT->getBitWidth()); in haveNoCommonBitsSet()
203 KnownBits RHSKnown(IT->getBitWidth()); in haveNoCommonBitsSet()
245 KnownBits Known = computeKnownBits(V, DL, Depth, AC, CxtI, DT); in isKnownNonNegative()
264 KnownBits Known = computeKnownBits(V, DL, Depth, AC, CxtI, DT); in isKnownNegative()
302 KnownBits &KnownOut, KnownBits &Known2, in computeKnownBitsAddSub()
308 KnownBits LHSKnown(BitWidth); in computeKnownBitsAddSub()
[all …]
DDemandedBits.cpp87 const APInt &AOut, APInt &AB, KnownBits &Known, KnownBits &Known2) { in determineLiveOperandBits()
99 Known = KnownBits(BitWidth); in determineLiveOperandBits()
103 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
327 KnownBits Known, Known2; in performAnalysis()
DInstructionSimplify.cpp737 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifySubInst()
1244 KnownBits Known = computeKnownBits(Op1, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyShift()
1276 KnownBits Op0Known = computeKnownBits(Op0, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in SimplifyRightShift()
1338 const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyLShrInst()
1883 const KnownBits YKnown = computeKnownBits(Y, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in SimplifyAndInst()
1886 const KnownBits XKnown = computeKnownBits(X, Q.DL, 0, Q.AC, Q.CxtI, in SimplifyAndInst()
2425 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
2433 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
2442 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
2450 KnownBits LHSKnown = computeKnownBits(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyICmpWithZero()
[all …]
DLint.cpp554 KnownBits Known = computeKnownBits(V, DL, 0, AC, dyn_cast<Instruction>(V), DT); in isZero()
573 KnownBits Known = computeKnownBits(Elem, DL); in isZero()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DDemandedBits.h38 struct KnownBits;
59 KnownBits &Known, KnownBits &Known2);
DValueTracking.h36 struct KnownBits;
53 void computeKnownBits(const Value *V, KnownBits &Known,
61 KnownBits computeKnownBits(const Value *V, const DataLayout &DL,
71 KnownBits &Known);
/external/llvm/lib/Target/SystemZ/
DSystemZLongBranch.cpp124 unsigned KnownBits; member
127 : Address(0), KnownBits(InitialAlignment) {} in BlockPosition()
181 if (Block.Alignment > Position.KnownBits) { in skipNonTerminators()
185 (uint64_t(1) << Position.KnownBits)); in skipNonTerminators()
186 Position.KnownBits = Block.Alignment; in skipNonTerminators()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZLongBranch.cpp129 unsigned KnownBits; member
131 BlockPosition(unsigned InitialAlignment) : KnownBits(InitialAlignment) {} in BlockPosition()
182 if (Block.Alignment > Position.KnownBits) { in skipNonTerminators()
186 (uint64_t(1) << Position.KnownBits)); in skipNonTerminators()
187 Position.KnownBits = Block.Alignment; in skipNonTerminators()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp67 static inline unsigned UnknownPadding(unsigned LogAlign, unsigned KnownBits) { in UnknownPadding() argument
68 if (KnownBits < LogAlign) in UnknownPadding()
69 return (1u << LogAlign) - (1u << KnownBits); in UnknownPadding()
109 uint8_t KnownBits; member
121 BasicBlockInfo() : Offset(0), Size(0), KnownBits(0), Unalign(0), in BasicBlockInfo()
128 unsigned Bits = Unalign ? Unalign : KnownBits; in internalKnownBits()
384 << " kb=" << unsigned(BBI.KnownBits) in dumpBBs()
749 BBInfo.front().KnownBits = MF->getAlignment(); in initializeFunctionInfo()
1055 unsigned KnownBits = BBI.internalKnownBits(); in getUserOffset() local
1062 U.KnownAlignment = (KnownBits >= 2); in getUserOffset()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/
Dknownbits.ll20 ; The vector icmp+zext involves a REPLICATE of 1's. If KnownBits reflects
29 ; The DAG XOR has JOIN_DWORDS and REPLICATE operands. With KnownBits properly set
Ddag-combine-03.ll19 ; value. Test that the BITCAST nodes in the DAG when computing KnownBits is
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp67 KnownBits Known(BitWidth); in SimplifyDemandedInstructionBits()
83 KnownBits &Known, in SimplifyDemandedBits()
118 KnownBits &Known, unsigned Depth, in SimplifyDemandedUseBits()
153 KnownBits LHSKnown(BitWidth), RHSKnown(BitWidth); in SimplifyDemandedUseBits()
344 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
386 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
441 Known = KnownBits::computeForAddSub(I->getOpcode() == Instruction::Add, in SimplifyDemandedUseBits()
625 KnownBits Known2(BitWidth); in SimplifyDemandedUseBits()
720 KnownBits &Known, in SimplifyMultipleUseDemandedBits()
726 KnownBits LHSKnown(BitWidth); in SimplifyMultipleUseDemandedBits()
[all …]
DInstCombineInternal.h634 void computeKnownBits(const Value *V, KnownBits &Known, in computeKnownBits()
639 KnownBits computeKnownBits(const Value *V, unsigned Depth, in computeKnownBits()
740 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, KnownBits &Known,
743 const APInt &DemandedMask, KnownBits &Known,
751 KnownBits &Known,
758 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known);
DInstCombineCasts.cpp850 KnownBits Known = computeKnownBits(ICI->getOperand(0), 0, &CI); in transformZExtICmp()
895 KnownBits KnownLHS = computeKnownBits(LHS, 0, &CI); in transformZExtICmp()
896 KnownBits KnownRHS = computeKnownBits(RHS, 0, &CI); in transformZExtICmp()
899 APInt KnownBits = KnownLHS.Zero | KnownLHS.One; in transformZExtICmp() local
900 APInt UnknownBit = ~KnownBits; in transformZExtICmp()
1219 KnownBits Known = computeKnownBits(Op0, 0, &CI); in transformSExtICmp()
1340 KnownBits Known = computeKnownBits(Src, 0, &CI); in visitSExt()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DFunctionLoweringInfo.h198 KnownBits Known = 1;
274 const KnownBits &Known) { in AddLiveOutRegInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
DLanaiISelLowering.h108 void computeKnownBitsForTargetNode(const SDValue Op, KnownBits &Known,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DFunctionLoweringInfo.cpp436 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
469 DestLOI.Known = KnownBits(BitWidth); in ComputePHILiveOutRegInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreISelLowering.h204 KnownBits &Known,
DXCoreISelLowering.cpp406 KnownBits Known; in isWordAligned()
1600 KnownBits Known; in PerformDAGCombine()
1616 KnownBits Known; in PerformDAGCombine()
1652 KnownBits Known; in PerformDAGCombine()
1675 KnownBits Known; in PerformDAGCombine()
1691 KnownBits Known; in PerformDAGCombine()
1819 KnownBits &Known, in computeKnownBitsForTargetNode()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcISelLowering.h69 KnownBits &Known,

1234