Home
last modified time | relevance | path

Searched refs:DemandedBits (Results 1 – 25 of 69) sorted by relevance

123

/external/llvm-project/llvm/test/Analysis/DemandedBits/
Dintrinsics.ll4 ; CHECK-DAG: DemandedBits: 0xff000000 for %1 = or i32 %x, 1
5 ; CHECK-DAG: DemandedBits: 0xff for %2 = call i32 @llvm.bitreverse.i32(i32 %1)
6 ; CHECK-DAG: DemandedBits: 0xff for %3 = trunc i32 %2 to i8
15 ; CHECK-DAG: DemandedBits: 0xff000000 for %1 = or i32 %x, 1
16 ; CHECK-DAG: DemandedBits: 0xff for %2 = call i32 @llvm.bswap.i32(i32 %1)
17 ; CHECK-DAG: DemandedBits: 0xff for %3 = trunc i32 %2 to i8
30 ; CHECK-DAG: DemandedBits: 0xff for %x2 = or i32 %x, 1
31 ; CHECK-DAG: DemandedBits: 0xff000000 for %y2 = or i32 %y, 1
32 ; CHECK-DAG: DemandedBits: 0xffff for %z = call i32 @llvm.fshl.i32(i32 %x2, i32 %y2, i32 8)
33 ; CHECK-DAG: DemandedBits: 0xffffffff for %r = and i32 %z, 65535
[all …]
Dvectors.ll4 ; CHECK-DAG: DemandedBits: 0xff00 for %x = or <2 x i32> %a, zeroinitializer
5 ; CHECK-DAG: DemandedBits: 0xff00 for %y = or <2 x i32> %b, zeroinitializer
6 ; CHECK-DAG: DemandedBits: 0xff00 for %z = or <2 x i32> %x, %y
7 ; CHECK-DAG: DemandedBits: 0xff for %u = lshr <2 x i32> %z, <i32 8, i32 8>
8 ; CHECK-DAG: DemandedBits: 0xff for %r = trunc <2 x i32> %u to <2 x i8>
20 ; CHECK-DAG: DemandedBits: 0xff for %x = or <2 x i32> %a, zeroinitializer
21 ; CHECK-DAG: DemandedBits: 0xf0 for %z = extractelement <2 x i32> %x, i32 1
22 ; CHECK-DAG: DemandedBits: 0xf for %y = extractelement <2 x i32> %x, i32 0
23 ; CHECK-DAG: DemandedBits: 0xffffffff for %u = and i32 %y, 15
24 ; CHECK-DAG: DemandedBits: 0xffffffff for %v = and i32 %z, 240
[all …]
Dadd.ll4 ; CHECK-DAG: DemandedBits: 0x1e for %1 = and i32 %a, 9
5 ; CHECK-DAG: DemandedBits: 0x1a for %2 = and i32 %b, 9
6 ; CHECK-DAG: DemandedBits: 0x1a for %3 = and i32 %c, 13
7 ; CHECK-DAG: DemandedBits: 0x1a for %4 = and i32 %d, 4
8 ; CHECK-DAG: DemandedBits: 0x1a for %5 = or i32 %2, %3
9 ; CHECK-DAG: DemandedBits: 0x1a for %6 = or i32 %4, %5
10 ; CHECK-DAG: DemandedBits: 0x10 for %7 = add i32 %1, %6
11 ; CHECK-DAG: DemandedBits: 0xffffffff for %8 = and i32 %7, 16
Dbasic.ll4 ; CHECK-DAG: DemandedBits: 0xff for %1 = add nsw i32 %a, 5
5 ; CHECK-DAG: DemandedBits: 0xff for %3 = trunc i32 %2 to i8
6 ; CHECK-DAG: DemandedBits: 0xff for %2 = mul nsw i32 %1, %b
/external/llvm/include/llvm/Analysis/
DDemandedBits.h39 class DemandedBits {
41 DemandedBits(Function &F, AssumptionCache &AC, DominatorTree &DT) : in DemandedBits() function
73 mutable Optional<DemandedBits> DB;
84 DemandedBits &getDemandedBits() { return *DB; } in getDemandedBits()
96 typedef DemandedBits Result;
100 DemandedBits run(Function &F, AnalysisManager<Function> &AM);
DVectorUtils.h23 class DemandedBits; variable
114 DemandedBits &DB,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DDemandedBits.h40 class DemandedBits {
42 DemandedBits(Function &F, AssumptionCache &AC, DominatorTree &DT) : in DemandedBits() function
87 mutable Optional<DemandedBits> DB;
100 DemandedBits &getDemandedBits() { return *DB; } in getDemandedBits()
113 using Result = DemandedBits;
117 DemandedBits run(Function &F, FunctionAnalysisManager &AM);
/external/llvm-project/llvm/include/llvm/Analysis/
DDemandedBits.h40 class DemandedBits {
42 DemandedBits(Function &F, AssumptionCache &AC, DominatorTree &DT) : in DemandedBits() function
101 mutable Optional<DemandedBits> DB;
114 DemandedBits &getDemandedBits() { return *DB; } in getDemandedBits()
127 using Result = DemandedBits;
131 DemandedBits run(Function &F, FunctionAnalysisManager &AM);
DIVDescriptors.h28 class DemandedBits; variable
161 DemandedBits *DB = nullptr,
171 DemandedBits *DB = nullptr,
/external/llvm/test/Analysis/DemandedBits/
Dbasic.ll4 ; CHECK-DAG: DemandedBits: 0xFF for %1 = add nsw i32 %a, 5
5 ; CHECK-DAG: DemandedBits: 0xFF for %3 = trunc i32 %2 to i8
6 ; CHECK-DAG: DemandedBits: 0xFF for %2 = mul nsw i32 %1, %b
/external/llvm-project/llvm/lib/Analysis/
DDemandedBits.cpp86 void DemandedBits::determineLiveOperandBits( in determineLiveOperandBits()
330 void DemandedBits::performAnalysis() { in performAnalysis()
443 APInt DemandedBits::getDemandedBits(Instruction *I) { in getDemandedBits()
455 bool DemandedBits::isInstructionDead(Instruction *I) { in isInstructionDead()
462 bool DemandedBits::isUseDead(Use *U) { in isUseDead()
487 void DemandedBits::print(raw_ostream &OS) { in print()
556 APInt DemandedBits::determineLiveOperandBitsAdd(unsigned OperandNo, in determineLiveOperandBitsAdd()
564 APInt DemandedBits::determineLiveOperandBitsSub(unsigned OperandNo, in determineLiveOperandBitsSub()
581 DemandedBits DemandedBitsAnalysis::run(Function &F, in run()
585 return DemandedBits(F, AC, DT); in run()
/external/llvm/lib/Analysis/
DDemandedBits.cpp73 void DemandedBits::determineLiveOperandBits( in determineLiveOperandBits()
261 void DemandedBits::performAnalysis() { in performAnalysis()
362 APInt DemandedBits::getDemandedBits(Instruction *I) { in getDemandedBits()
371 bool DemandedBits::isInstructionDead(Instruction *I) { in isInstructionDead()
378 void DemandedBits::print(raw_ostream &OS) { in print()
392 DemandedBits DemandedBitsAnalysis::run(Function &F, in run()
396 return DemandedBits(F, AC, DT); in run()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDemandedBits.cpp86 void DemandedBits::determineLiveOperandBits( in determineLiveOperandBits()
307 void DemandedBits::performAnalysis() { in performAnalysis()
420 APInt DemandedBits::getDemandedBits(Instruction *I) { in getDemandedBits()
432 bool DemandedBits::isInstructionDead(Instruction *I) { in isInstructionDead()
439 bool DemandedBits::isUseDead(Use *U) { in isUseDead()
464 void DemandedBits::print(raw_ostream &OS) { in print()
478 DemandedBits DemandedBitsAnalysis::run(Function &F, in run()
482 return DemandedBits(F, AC, DT); in run()
/external/llvm-project/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorize.h68 class DemandedBits; variable
148 DemandedBits *DB;
161 BlockFrequencyInfo &BFI_, TargetLibraryInfo *TLI_, DemandedBits &DB_,
DSLPVectorizer.h34 class DemandedBits; variable
71 DemandedBits *DB = nullptr;
80 DominatorTree *DT_, AssumptionCache *AC_, DemandedBits *DB_,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorize.h68 class DemandedBits; variable
139 DemandedBits *DB;
152 DemandedBits &DB_, AliasAnalysis &AA_, AssumptionCache &AC_,
DSLPVectorizer.h35 class DemandedBits; variable
73 DemandedBits *DB = nullptr;
82 DominatorTree *DT_, AssumptionCache *AC_, DemandedBits *DB_,
DLoopVectorizationLegality.h204 LoopVectorizationRequirements *R, LoopVectorizeHints *H, DemandedBits *DB, in LoopVectorizationLegality()
462 DemandedBits *DB;
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp487 const APInt &DemandedBits, in ShrinkDemandedConstant() argument
494 if (targetShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO)) in ShrinkDemandedConstant()
510 if (Opcode == ISD::XOR && DemandedBits.isSubsetOf(C)) in ShrinkDemandedConstant()
513 if (!C.isSubsetOf(DemandedBits)) { in ShrinkDemandedConstant()
515 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant()
528 const APInt &DemandedBits, in ShrinkDemandedConstant() argument
534 return ShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO); in ShrinkDemandedConstant()
584 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
591 bool Simplified = SimplifyDemandedBits(Op, DemandedBits, Known, TLO); in SimplifyDemandedBits()
599 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
[all …]
/external/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorize.h83 DemandedBits *DB;
96 DemandedBits &DB_, AliasAnalysis &AA_, AssumptionCache &AC_,
DSLPVectorizer.h53 DemandedBits *DB = nullptr;
62 DominatorTree *DT_, AssumptionCache *AC_, DemandedBits *DB_);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp580 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
587 bool Simplified = SimplifyDemandedBits(Op, DemandedBits, Known, TLO); in SimplifyDemandedBits()
595 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
604 return SimplifyDemandedBits(Op, DemandedBits, DemandedElts, Known, TLO, Depth, in SimplifyDemandedBits()
611 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in SimplifyMultipleUseDemandedBits() argument
622 if (DemandedBits == 0 || DemandedElts == 0) in SimplifyMultipleUseDemandedBits()
637 Src, DemandedBits, DemandedElts, DAG, Depth + 1)) in SimplifyMultipleUseDemandedBits()
649 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, Offset); in SimplifyMultipleUseDemandedBits()
673 DemandedSrcBits.insertBits(DemandedBits, Offset); in SimplifyMultipleUseDemandedBits()
691 if (DemandedBits.isSubsetOf(LHSKnown.Zero | RHSKnown.One)) in SimplifyMultipleUseDemandedBits()
[all …]
/external/llvm-project/llvm/unittests/IR/
DDemandedBitsTest.cpp57 TestBinOpExhaustive(DemandedBits::determineLiveOperandBitsAdd, in TEST()
62 TestBinOpExhaustive(DemandedBits::determineLiveOperandBitsSub, in TEST()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DBDCE.cpp40 static void clearAssumptionsOfUsers(Instruction *I, DemandedBits &DB) { in clearAssumptionsOfUsers()
89 static bool bitTrackingDCE(Function &F, DemandedBits &DB) { in bitTrackingDCE()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DBDCE.cpp44 static void clearAssumptionsOfUsers(Instruction *I, DemandedBits &DB) { in clearAssumptionsOfUsers()
93 static bool bitTrackingDCE(Function &F, DemandedBits &DB) { in bitTrackingDCE()

123