Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDemandedBits.h40 class DemandedBits {
42 DemandedBits(Function &F, AssumptionCache &AC, DominatorTree &DT) : in DemandedBits() function
110 using Result = DemandedBits;
114 DemandedBits run(Function &F, FunctionAnalysisManager &AM);
H A DIVDescriptors.h24 class DemandedBits;
172 DemandedBits *DB = nullptr, AssumptionCache *AC = nullptr,
182 DemandedBits *DB = nullptr, AssumptionCache *AC = nullptr,
25 class DemandedBits; global() variable
H A DVectorUtils.h119 class DemandedBits; variable
311 DemandedBits &DB,
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp54 void DemandedBits::determineLiveOperandBits( in determineLiveOperandBits()
287 void DemandedBits::performAnalysis() { in performAnalysis()
400 APInt DemandedBits::getDemandedBits(Instruction *I) { in getDemandedBits()
411 APInt DemandedBits::getDemandedBits(Use *U) { in getDemandedBits()
438 bool DemandedBits::isInstructionDead(Instruction *I) { in isInstructionDead()
444 bool DemandedBits::isUseDead(Use *U) { in isUseDead()
469 void DemandedBits::print(raw_ostream &OS) { in print()
553 APInt DemandedBits::determineLiveOperandBitsAdd(unsigned OperandNo, in determineLiveOperandBitsAdd()
561 APInt DemandedBits::determineLiveOperandBitsSub(unsigned OperandNo, in determineLiveOperandBitsSub()
574 DemandedBits DemandedBitsAnalysis::run(Function &F, in run()
[all …]
H A DIVDescriptors.cpp94 DemandedBits *DB, in computeRecurrenceType()
215 RecurrenceDescriptor &RedDes, DemandedBits *DB, AssumptionCache *AC, in AddReductionVar()
840 DemandedBits *DB, AssumptionCache *AC, in isReductionPHI()
H A DVectorUtils.cpp599 llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB, in computeMinimumValueSizes()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/
H A DLoopVectorize.h67 class DemandedBits; variable
180 DemandedBits *DB;
194 DemandedBits &DB_, AssumptionCache &AC_,
H A DSLPVectorizer.h33 class DemandedBits; variable
72 DemandedBits *DB = nullptr;
81 DominatorTree *DT_, AssumptionCache *AC_, DemandedBits *DB_,
H A DLoopVectorizationLegality.h38 class DemandedBits; variable
246 LoopVectorizationRequirements *R, LoopVectorizeHints *H, DemandedBits *DB, in LoopVectorizationLegality()
534 DemandedBits *DB;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp514 const APInt &DemandedBits, in ShrinkDemandedConstant() argument
522 if (DemandedBits.isZero() || DemandedElts.isZero()) in ShrinkDemandedConstant()
526 if (targetShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO)) in ShrinkDemandedConstant()
542 if (Opcode == ISD::XOR && DemandedBits.isSubsetOf(C)) in ShrinkDemandedConstant()
545 if (!C.isSubsetOf(DemandedBits)) { in ShrinkDemandedConstant()
547 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant()
561 const APInt &DemandedBits, in ShrinkDemandedConstant() argument
567 return ShrinkDemandedConstant(Op, DemandedBits, DemandedElts, TLO); in ShrinkDemandedConstant()
575 const APInt &DemandedBits, in ShrinkDemandedOp() argument
602 unsigned DemandedSize = DemandedBits.getActiveBits(); in ShrinkDemandedOp()
[all …]
H A DDAGCombiner.cpp338 APInt DemandedBits = APInt::getAllOnes(BitWidth); in SimplifyDemandedBits() local
339 return SimplifyDemandedBits(Op, DemandedBits); in SimplifyDemandedBits()
342 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits) { in SimplifyDemandedBits() argument
347 return SimplifyDemandedBits(Op, DemandedBits, DemandedElts, false); in SimplifyDemandedBits()
363 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
1378 bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits, in SimplifyDemandedBits() argument
1383 if (!TLI.SimplifyDemandedBits(Op, DemandedBits, DemandedElts, Known, TLO, 0, in SimplifyDemandedBits()
8224 APInt DemandedBits = APInt::getLowBitsSet(NegBits, Bits); in matchRotateSub() local
8226 TLI.SimplifyMultipleUseDemandedBits(Neg, DemandedBits, DAG)) { in matchRotateSub()
8247 APInt DemandedBits = APInt::getLowBitsSet(PosBits, MaskLoBits); in matchRotateSub() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DBDCE.cpp44 static void clearAssumptionsOfUsers(Instruction *I, DemandedBits &DB) { in clearAssumptionsOfUsers()
96 static bool bitTrackingDCE(Function &F, DemandedBits &DB) { in bitTrackingDCE()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h3965 bool ShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
3970 bool ShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
3977 const APInt &DemandedBits, in targetShrinkDemandedConstant() argument
3988 const APInt &DemandedBits,
4004 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
4011 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
4018 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
4023 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits,
4030 SDValue SimplifyMultipleUseDemandedBits(SDValue Op, const APInt &DemandedBits,
4037 SDValue SimplifyMultipleUseDemandedBits(SDValue Op, const APInt &DemandedBits,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.h1203 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
1235 const APInt &DemandedBits,
1242 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts,
H A DX86ISelLowering.cpp37015 const APInt &DemandedBits, in targetShrinkDemandedConstant() argument
37041 unsigned ActiveBits = DemandedBits.getActiveBits(); in targetShrinkDemandedConstant()
37071 APInt ShrunkMask = Mask & DemandedBits; in targetShrinkDemandedConstant()
37095 if (!ZeroExtendMask.isSubsetOf(Mask | ~DemandedBits)) in targetShrinkDemandedConstant()
43164 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in SimplifyMultipleUseDemandedBitsForTargetNode() argument
43187 unsigned BitWidth = DemandedBits.getBitWidth(); in SimplifyMultipleUseDemandedBitsForTargetNode()
43189 unsigned UpperDemandedBits = BitWidth - DemandedBits.countr_zero(); in SimplifyMultipleUseDemandedBitsForTargetNode()
43197 if (DemandedBits.isSignMask()) in SimplifyMultipleUseDemandedBitsForTargetNode()
43203 if (DemandedBits.isSignMask() && in SimplifyMultipleUseDemandedBitsForTargetNode()
43231 if (DemandedBits.isSubsetOf(RHSKnown.Zero | LHSKnown.Zero)) in SimplifyMultipleUseDemandedBitsForTargetNode()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.h517 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
H A DARMISelLowering.cpp20196 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in targetShrinkDemandedConstant() argument
20222 unsigned Demanded = DemandedBits.getZExtValue(); in targetShrinkDemandedConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h596 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
H A DRISCVISelLowering.cpp17706 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in targetShrinkDemandedConstant()
17727 APInt ShrunkMask = Mask & DemandedBits; in targetShrinkDemandedConstant()
17731 APInt ExpandedMask = Mask | ~DemandedBits; in targetShrinkDemandedConstant()
17703 targetShrinkDemandedConstant(SDValue Op,const APInt & DemandedBits,const APInt & DemandedElts,TargetLoweringOpt & TLO) const targetShrinkDemandedConstant() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.h595 bool targetShrinkDemandedConstant(SDValue Op, const APInt &DemandedBits,
H A DAArch64ISelLowering.cpp2181 uint64_t DemandedBits = Demanded.getZExtValue(); in optimizeLogicalImm() local
2184 Imm &= DemandedBits; in optimizeLogicalImm()
2194 uint64_t NonDemandedBits = ~DemandedBits; in optimizeLogicalImm()
2195 uint64_t InvertedImm = ~Imm & DemandedBits; in optimizeLogicalImm()
2216 uint64_t Hi = Imm >> EltSize, DemandedBitsHi = DemandedBits >> EltSize; in optimizeLogicalImm()
2219 if (((Imm ^ Hi) & (DemandedBits & DemandedBitsHi) & Mask) != 0) in optimizeLogicalImm()
2224 DemandedBits |= DemandedBitsHi; in optimizeLogicalImm()
2263 SDValue Op, const APInt &DemandedBits, const APInt &DemandedElts, in targetShrinkDemandedConstant() argument
2281 if (DemandedBits.popcount() == Size) in targetShrinkDemandedConstant()
2302 return optimizeLogicalImm(Op, Size, Imm, DemandedBits, TLO, NewOpc); in targetShrinkDemandedConstant()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1020 const TargetLibraryInfo *TLI, DemandedBits *DB, in LoopVectorizationCostModel()
1772 DemandedBits *DB;
9431 TargetLibraryInfo *TLI, DemandedBits *DB, AssumptionCache *AC, in processLoopInVPlanNativePath()
10114 DemandedBits &DB_, AssumptionCache &AC_, LoopAccessInfoManager &LAIs_, in runImpl()
H A DSLPVectorizer.cpp38 #include "llvm/Analysis/DemandedBits.h"
1144 DominatorTree *Dt, AssumptionCache *AC, DemandedBits *DB, in BoUpSLP()
3993 DemandedBits *DB;
15831 AssumptionCache *AC_, DemandedBits *DB_, in runImpl()
/freebsd/lib/clang/libllvm/
H A DMakefile97 SRCS_MIN+= Analysis/DemandedBits.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp14636 APInt DemandedBits = APInt::getBitsSet(32, 8 * Offset, 8 * Offset + 8); in performCvtF32UByteNCombine() local
14637 if (TLI.SimplifyDemandedBits(Src, DemandedBits, DCI)) { in performCvtF32UByteNCombine()
14647 TLI.SimplifyMultipleUseDemandedBits(Src, DemandedBits, DAG)) in performCvtF32UByteNCombine()