Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/llvm/include/llvm/Analysis/
DDemandedBits.h40 class DemandedBits {
42 DemandedBits(Function &F, AssumptionCache &AC, DominatorTree &DT) : in DemandedBits() function
104 mutable std::optional<DemandedBits> DB;
117 DemandedBits &getDemandedBits() { return *DB; } in getDemandedBits()
130 using Result = DemandedBits;
134 DemandedBits run(Function &F, FunctionAnalysisManager &AM);
DIVDescriptors.h25 class DemandedBits; variable
170 DemandedBits *DB = nullptr, AssumptionCache *AC = nullptr,
180 DemandedBits *DB = nullptr, AssumptionCache *AC = nullptr,
DVectorUtils.h283 class DemandedBits; variable
469 DemandedBits &DB,
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DDemandedBits.cpp80 void DemandedBits::determineLiveOperandBits( in determineLiveOperandBits()
324 void DemandedBits::performAnalysis() { in performAnalysis()
437 APInt DemandedBits::getDemandedBits(Instruction *I) { in getDemandedBits()
448 APInt DemandedBits::getDemandedBits(Use *U) { in getDemandedBits()
475 bool DemandedBits::isInstructionDead(Instruction *I) { in isInstructionDead()
482 bool DemandedBits::isUseDead(Use *U) { in isUseDead()
507 void DemandedBits::print(raw_ostream &OS) { in print()
590 APInt DemandedBits::determineLiveOperandBitsAdd(unsigned OperandNo, in determineLiveOperandBitsAdd()
598 APInt DemandedBits::determineLiveOperandBitsSub(unsigned OperandNo, in determineLiveOperandBitsSub()
615 DemandedBits DemandedBitsAnalysis::run(Function &F, in run()
[all …]
DCMakeLists.txt55 DemandedBits.cpp
DIVDescriptors.cpp96 DemandedBits *DB, in computeRecurrenceType()
218 RecurrenceDescriptor &RedDes, DemandedBits *DB, AssumptionCache *AC, in AddReductionVar()
827 DemandedBits *DB, AssumptionCache *AC, in isReductionPHI()
DVectorUtils.cpp666 llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB, in computeMinimumValueSizes()
/openbsd/src/gnu/llvm/llvm/include/llvm/Transforms/Vectorize/
DLoopVectorize.h67 class DemandedBits; variable
179 DemandedBits *DB;
193 DemandedBits &DB_, AssumptionCache &AC_,
DSLPVectorizer.h33 class DemandedBits; variable
72 DemandedBits *DB = nullptr;
81 DominatorTree *DT_, AssumptionCache *AC_, DemandedBits *DB_,
DLoopVectorizationLegality.h39 class DemandedBits; variable
247 LoopVectorizationRequirements *R, LoopVectorizeHints *H, DemandedBits *DB, in LoopVectorizationLegality()
537 DemandedBits *DB;
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp501 const APInt &DemandedBits, in ShrinkDemandedConstant() argument
508 if (targetShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO)) in ShrinkDemandedConstant()
524 if (Opcode == ISD::XOR && DemandedBits.isSubsetOf(C)) in ShrinkDemandedConstant()
527 if (!C.isSubsetOf(DemandedBits)) { in ShrinkDemandedConstant()
529 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant()
542 const APInt &DemandedBits, in ShrinkDemandedConstant() argument
548 return ShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO); in ShrinkDemandedConstant()
598 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
605 bool Simplified = SimplifyDemandedBits(Op, DemandedBits, Known, TLO); in SimplifyDemandedBits()
613 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
[all …]
DDAGCombiner.cpp324 APInt DemandedBits = APInt::getAllOnes(BitWidth); in SimplifyDemandedBits() local
325 return SimplifyDemandedBits(Op, DemandedBits); in SimplifyDemandedBits()
328 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits) { in SimplifyDemandedBits() argument
331 if (!TLI.SimplifyDemandedBits(Op, DemandedBits, Known, TLO, 0, false)) in SimplifyDemandedBits()
354 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
1236 bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
1241 if (!TLI.SimplifyDemandedBits(Op, DemandedBits, DemandedElts, Known, TLO, 0, in SimplifyDemandedBits()
7492 APInt DemandedBits = APInt::getLowBitsSet(NegBits, Bits); in matchRotateSub() local
7494 TLI.SimplifyMultipleUseDemandedBits(Neg, DemandedBits, DAG)) { in matchRotateSub()
7515 APInt DemandedBits = APInt::getLowBitsSet(PosBits, MaskLoBits); in matchRotateSub() local
[all …]
/openbsd/src/gnu/llvm/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()
/openbsd/src/gnu/usr.bin/clang/libLLVMAnalysis/
DMakefile36 DemandedBits.cpp \
/openbsd/src/gnu/llvm/llvm/utils/gn/secondary/llvm/lib/Analysis/
DBUILD.gn44 "DemandedBits.cpp",
/openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/
DTargetLowering.h3684 bool ShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
3689 bool ShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
3696 const APInt &DemandedBits, in targetShrinkDemandedConstant() argument
3721 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
3728 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
3735 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
3740 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
3747 SDValue SimplifyMultipleUseDemandedBits(SDValue Op, const APInt &DemandedBits,
3754 SDValue SimplifyMultipleUseDemandedBits(SDValue Op, const APInt &DemandedBits,
3867 const APInt &DemandedBits,
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Target/X86/
DX86ISelLowering.h1170 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
1202 const APInt &DemandedBits,
1209 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts,
DX86ISelLowering.cpp37720 const APInt &DemandedBits, in targetShrinkDemandedConstant() argument
37746 unsigned ActiveBits = DemandedBits.getActiveBits(); in targetShrinkDemandedConstant()
37776 APInt ShrunkMask = Mask & DemandedBits; in targetShrinkDemandedConstant()
37800 if (!ZeroExtendMask.isSubsetOf(Mask | ~DemandedBits)) in targetShrinkDemandedConstant()
43187 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in SimplifyMultipleUseDemandedBitsForTargetNode() argument
43210 unsigned BitWidth = DemandedBits.getBitWidth(); in SimplifyMultipleUseDemandedBitsForTargetNode()
43212 unsigned UpperDemandedBits = BitWidth - DemandedBits.countTrailingZeros(); in SimplifyMultipleUseDemandedBitsForTargetNode()
43220 if (DemandedBits.isSignMask()) in SimplifyMultipleUseDemandedBitsForTargetNode()
43226 if (DemandedBits.isSignMask() && in SimplifyMultipleUseDemandedBitsForTargetNode()
43241 if (DemandedBits.isSubsetOf(RHSKnown.Zero | LHSKnown.Zero)) in SimplifyMultipleUseDemandedBitsForTargetNode()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Target/RISCV/
DRISCVISelLowering.h424 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
/openbsd/src/gnu/llvm/llvm/lib/Target/ARM/
DARMISelLowering.h511 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
/openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h539 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
DAArch64ISelLowering.cpp1987 uint64_t DemandedBits = Demanded.getZExtValue(); in optimizeLogicalImm() local
1990 Imm &= DemandedBits; in optimizeLogicalImm()
2000 uint64_t NonDemandedBits = ~DemandedBits; in optimizeLogicalImm()
2001 uint64_t InvertedImm = ~Imm & DemandedBits; in optimizeLogicalImm()
2022 uint64_t Hi = Imm >> EltSize, DemandedBitsHi = DemandedBits >> EltSize; in optimizeLogicalImm()
2025 if (((Imm ^ Hi) & (DemandedBits & DemandedBitsHi) & Mask) != 0) in optimizeLogicalImm()
2030 DemandedBits |= DemandedBitsHi; in optimizeLogicalImm()
2069 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in targetShrinkDemandedConstant() argument
2087 if (DemandedBits.countPopulation() == Size) in targetShrinkDemandedConstant()
2108 return optimizeLogicalImm(Op, Size, Imm, DemandedBits, TLO, NewOpc); in targetShrinkDemandedConstant()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1169 const TargetLibraryInfo *TLI, DemandedBits *DB, in LoopVectorizationCostModel()
1840 DemandedBits *DB;
9957 TargetLibraryInfo *TLI, DemandedBits *DB, AssumptionCache *AC, in processLoopInVPlanNativePath()
10590 DemandedBits &DB_, AssumptionCache &AC_, LoopAccessInfoManager &LAIs_, in runImpl()
DSLPVectorizer.cpp978 DominatorTree *Dt, AssumptionCache *AC, DemandedBits *DB, in BoUpSLP()
3431 DemandedBits *DB;
11323 AssumptionCache *AC_, DemandedBits *DB_, in runImpl()
/openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp11554 APInt DemandedBits = APInt::getBitsSet(32, 8 * Offset, 8 * Offset + 8); in performCvtF32UByteNCombine() local
11555 if (TLI.SimplifyDemandedBits(Src, DemandedBits, DCI)) { in performCvtF32UByteNCombine()
11565 TLI.SimplifyMultipleUseDemandedBits(Src, DemandedBits, DAG)) in performCvtF32UByteNCombine()

12