Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDemandedBits.h40 class DemandedBits {
42 DemandedBits(Function &F, AssumptionCache &AC, DominatorTree &DT) : in DemandedBits() function
104 mutable Optional<DemandedBits> DB;
117 DemandedBits &getDemandedBits() { return *DB; } in getDemandedBits()
130 using Result = DemandedBits;
134 DemandedBits run(Function &F, FunctionAnalysisManager &AM);
H A DIVDescriptors.h29 class DemandedBits; variable
155 DemandedBits *DB = nullptr,
165 DemandedBits *DB = nullptr,
H A DVectorUtils.h282 class DemandedBits; variable
437 DemandedBits &DB,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp86 void DemandedBits::determineLiveOperandBits( in determineLiveOperandBits()
330 void DemandedBits::performAnalysis() { in performAnalysis()
443 APInt DemandedBits::getDemandedBits(Instruction *I) { in getDemandedBits()
455 APInt DemandedBits::getDemandedBits(Use *U) { in getDemandedBits()
482 bool DemandedBits::isInstructionDead(Instruction *I) { in isInstructionDead()
489 bool DemandedBits::isUseDead(Use *U) { in isUseDead()
514 void DemandedBits::print(raw_ostream &OS) { in print()
597 APInt DemandedBits::determineLiveOperandBitsAdd(unsigned OperandNo, in determineLiveOperandBitsAdd()
605 APInt DemandedBits::determineLiveOperandBitsSub(unsigned OperandNo, in determineLiveOperandBitsSub()
622 DemandedBits DemandedBitsAnalysis::run(Function &F, in run()
[all …]
H A DIVDescriptors.cpp117 DemandedBits *DB, in computeRecurrenceType()
221 DemandedBits *DB, in AddReductionVar()
650 DemandedBits *DB, AssumptionCache *AC, in isReductionPHI()
H A DVectorUtils.cpp494 llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB, in computeMinimumValueSizes()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/
H A DLoopVectorize.h68 class DemandedBits; variable
148 DemandedBits *DB;
161 BlockFrequencyInfo &BFI_, TargetLibraryInfo *TLI_, DemandedBits &DB_,
H A DSLPVectorizer.h34 class DemandedBits; variable
71 DemandedBits *DB = nullptr;
80 DominatorTree *DT_, AssumptionCache *AC_, DemandedBits *DB_,
H A DLoopVectorizationLegality.h255 LoopVectorizationRequirements *R, LoopVectorizeHints *H, DemandedBits *DB, in LoopVectorizationLegality()
540 DemandedBits *DB;
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp521 if (!C.isSubsetOf(DemandedBits)) { in ShrinkDemandedConstant()
644 if (DemandedBits == 0 || DemandedElts == 0) in SimplifyMultipleUseDemandedBits()
769 if (DemandedBits.isSignMask() && in SimplifyMultipleUseDemandedBits()
912 APInt DemandedBits = OriginalDemandedBits; in SimplifyDemandedBits() local
1187 if ((LHSKnown.Zero & DemandedBits) == in SimplifyDemandedBits()
1324 if (DemandedBits.isSubsetOf(Known.Zero)) in SimplifyDemandedBits()
1411 if (DemandedBits.isSignMask() && in SimplifyDemandedBits()
1608 if (DemandedBits.isOneValue()) in SimplifyDemandedBits()
1797 if (DemandedBits.isSignMask()) { in SimplifyDemandedBits()
2033 if (!(HighBits & DemandedBits)) { in SimplifyDemandedBits()
[all …]
H A DSelectionDAG.cpp2376 SDValue SelectionDAG::GetDemandedBits(SDValue V, const APInt &DemandedBits) { in GetDemandedBits() argument
2385 return GetDemandedBits(V, DemandedBits, DemandedElts); in GetDemandedBits()
2393 SDValue SelectionDAG::GetDemandedBits(SDValue V, const APInt &DemandedBits, in GetDemandedBits() argument
2397 return TLI->SimplifyMultipleUseDemandedBits(V, DemandedBits, DemandedElts, in GetDemandedBits()
2401 APInt NewVal = CVal & DemandedBits; in GetDemandedBits()
2415 if (Amt >= DemandedBits.getBitWidth()) in GetDemandedBits()
2417 APInt SrcDemandedBits = DemandedBits << Amt; in GetDemandedBits()
H A DDAGCombiner.cpp322 APInt DemandedBits = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits() local
323 return SimplifyDemandedBits(Op, DemandedBits); in SimplifyDemandedBits()
326 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits) { in SimplifyDemandedBits() argument
329 if (!TLI.SimplifyDemandedBits(Op, DemandedBits, Known, TLO, 0, false)) in SimplifyDemandedBits()
352 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
1160 bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
1165 if (!TLI.SimplifyDemandedBits(Op, DemandedBits, DemandedElts, Known, TLO, 0, in SimplifyDemandedBits()
18879 APInt DemandedBits = APInt::getAllOnesValue(VecEltBitWidth); in visitEXTRACT_VECTOR_ELT() local
18880 if (SimplifyDemandedBits(VecOp, DemandedBits, DemandedElts, true)) { in visitEXTRACT_VECTOR_ELT()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DBDCE.cpp44 static void clearAssumptionsOfUsers(Instruction *I, DemandedBits &DB) { in clearAssumptionsOfUsers()
93 static bool bitTrackingDCE(Function &F, DemandedBits &DB) { in bitTrackingDCE()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h3316 bool ShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
3321 bool ShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
3328 const APInt &DemandedBits, in targetShrinkDemandedConstant() argument
3353 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
3360 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
3367 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
3373 SDValue SimplifyMultipleUseDemandedBits(SDValue Op, const APInt &DemandedBits,
3380 SDValue SimplifyMultipleUseDemandedBits(SDValue Op, const APInt &DemandedBits,
3486 const APInt &DemandedBits,
3496 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts,
H A DSelectionDAG.h1686 SDValue GetDemandedBits(SDValue V, const APInt &DemandedBits);
1695 SDValue GetDemandedBits(SDValue V, const APInt &DemandedBits,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.h1071 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
1103 const APInt &DemandedBits,
1110 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts,
H A DX86ISelLowering.cpp34669 unsigned ActiveBits = DemandedBits.getActiveBits(); in targetShrinkDemandedConstant()
34699 APInt ShrunkMask = Mask & DemandedBits; in targetShrinkDemandedConstant()
34723 if (!ZeroExtendMask.isSubsetOf(Mask | ~DemandedBits)) in targetShrinkDemandedConstant()
39640 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in SimplifyMultipleUseDemandedBitsForTargetNode() argument
39663 unsigned BitWidth = DemandedBits.getBitWidth(); in SimplifyMultipleUseDemandedBitsForTargetNode()
39673 if (DemandedBits.isSignMask()) in SimplifyMultipleUseDemandedBitsForTargetNode()
39679 if (DemandedBits.isSignMask() && in SimplifyMultipleUseDemandedBitsForTargetNode()
39728 Op, DemandedBits, DemandedElts, DAG, Depth); in SimplifyMultipleUseDemandedBitsForTargetNode()
41653 APInt DemandedBits(APInt::getSignMask(BitWidth)); in combineVSelectToBLENDV() local
46038 if (TLI.SimplifyDemandedBits(Mask, DemandedBits, DCI)) { in combineMaskedLoad()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h343 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
H A DRISCVISelLowering.cpp6413 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in targetShrinkDemandedConstant() argument
6434 APInt ShrunkMask = Mask & DemandedBits; in targetShrinkDemandedConstant()
6438 APInt ExpandedMask = Mask | ~DemandedBits; in targetShrinkDemandedConstant()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.h517 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.h510 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
H A DAArch64ISelLowering.cpp1633 uint64_t DemandedBits = Demanded.getZExtValue(); in optimizeLogicalImm() local
1636 Imm &= DemandedBits; in optimizeLogicalImm()
1646 uint64_t NonDemandedBits = ~DemandedBits; in optimizeLogicalImm()
1647 uint64_t InvertedImm = ~Imm & DemandedBits; in optimizeLogicalImm()
1668 uint64_t Hi = Imm >> EltSize, DemandedBitsHi = DemandedBits >> EltSize; in optimizeLogicalImm()
1671 if (((Imm ^ Hi) & (DemandedBits & DemandedBitsHi) & Mask) != 0) in optimizeLogicalImm()
1676 DemandedBits |= DemandedBitsHi; in optimizeLogicalImm()
1715 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in targetShrinkDemandedConstant() argument
1733 if (DemandedBits.countPopulation() == Size) in targetShrinkDemandedConstant()
1754 return optimizeLogicalImm(Op, Size, Imm, DemandedBits, TLO, NewOpc); in targetShrinkDemandedConstant()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1234 const TargetLibraryInfo *TLI, DemandedBits *DB, in LoopVectorizationCostModel()
1880 DemandedBits *DB;
9933 TargetLibraryInfo *TLI, DemandedBits *DB, AssumptionCache *AC, in processLoopInVPlanNativePath()
10397 DemandedBits &DB_, AAResults &AA_, AssumptionCache &AC_, in runImpl()
H A DSLPVectorizer.cpp602 DominatorTree *Dt, AssumptionCache *AC, DemandedBits *DB, in BoUpSLP()
2454 DemandedBits *DB;
6764 AssumptionCache *AC_, DemandedBits *DB_, in runImpl()
/freebsd-13.1/lib/clang/libllvm/
H A DMakefile67 SRCS_MIN+= Analysis/DemandedBits.cpp

12