Home
last modified time | relevance | path

Searched refs:ActiveBits (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPSInt.cpp34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt() local
35 if (ActiveBits < NumBits) in APSInt()
36 Tmp = Tmp.trunc(std::max<unsigned>(1, ActiveBits)); in APSInt()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAtomicOptimizer.cpp562 auto *ActiveBits = B.CreatePHI(WaveTy, 2, "ActiveBits"); in buildScanIteratively() local
563 ActiveBits->addIncoming(Ballot, EntryBB); in buildScanIteratively()
567 B.CreateIntrinsic(Intrinsic::cttz, WaveTy, {ActiveBits, B.getTrue()}); in buildScanIteratively()
593 auto *NewActiveBits = B.CreateAnd(ActiveBits, InverseMask); in buildScanIteratively()
594 ActiveBits->addIncoming(NewActiveBits, ComputeLoop); in buildScanIteratively()
H A DAMDGPUInstCombineIntrinsic.cpp1733 const unsigned ActiveBits = DemandedElts.getActiveBits(); in simplifyAMDGCNMemoryIntrinsicDemanded() local
1739 DemandedElts = (1 << ActiveBits) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded()
1754 if (ActiveBits == 4 && UnusedComponentsAtFront == 1) in simplifyAMDGCNMemoryIntrinsicDemanded()
H A DSIISelLowering.cpp5231 auto ActiveBits = in lowerWaveReduce() local
5239 .addReg(ActiveBits->getOperand(0).getReg()); in lowerWaveReduce()
5254 .addReg(ActiveBits->getOperand(0).getReg()); in lowerWaveReduce()
5259 ActiveBits.addReg(NewActiveBits->getOperand(0).getReg()) in lowerWaveReduce()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugInfoMetadata.cpp1962 std::optional<uint64_t> ActiveBits = InitialActiveBits; in getActiveBits() local
1968 ActiveBits = InitialActiveBits; in getActiveBits()
1978 ActiveBits = InitialActiveBits; in getActiveBits()
1985 if (ActiveBits) in getActiveBits()
1986 ActiveBits = std::min(*ActiveBits, Op.getArg(1)); in getActiveBits()
1988 ActiveBits = Op.getArg(1); in getActiveBits()
1992 return ActiveBits; in getActiveBits()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h1807 unsigned ActiveBits = InitVal.getActiveBits(); in computeEnumBits() local
1808 NumPositiveBits = std::max({NumPositiveBits, ActiveBits, 1u}); in computeEnumBits()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp6807 unsigned ActiveBits = AndC->getAPIntValue().countr_one(); in isAndLoadExtLoad() local
6809 ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in isAndLoadExtLoad()
6972 unsigned ActiveBits = Mask->getAPIntValue().countr_one(); in SearchForAndLoads() local
6973 EVT ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in SearchForAndLoads()
10681 unsigned ActiveBits = IsSignExt in combineShiftToMULH() local
10684 if (ActiveBits > NarrowVTSize) in combineShiftToMULH()
15373 unsigned ActiveBits = 0; in reduceLoadWidth() local
15375 ActiveBits = Mask.countr_one(); in reduceLoadWidth()
15376 } else if (Mask.isShiftedMask(ShAmt, ActiveBits)) { in reduceLoadWidth()
15383 ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in reduceLoadWidth()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1880 unsigned ActiveBits = Exponent.getActiveBits(); in getIntrinsicInstrCost() local
1882 InstructionCost Cost = (ActiveBits + PopCount - 2) * in getIntrinsicInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7310 uint32_t ActiveBits = DemandBits.getActiveBits(); in optimizeLoadExt() local
7322 if (ActiveBits <= 1 || !DemandBits.isMask(ActiveBits) || in optimizeLoadExt()
7327 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp8949 unsigned ActiveBits = IsSignExt in combineShiftToMulAddHigh() local
8952 if (ActiveBits > NarrowVTSize) in combineShiftToMulAddHigh()
8968 unsigned ActiveBits = IsSignExt in combineShiftToMulAddHigh() local
8971 if (ActiveBits > NarrowVTSize) in combineShiftToMulAddHigh()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp32585 unsigned ActiveBits = Known.getBitWidth() - LZ; in LowerCTPOP() local
32590 if (ActiveBits > 2) in LowerCTPOP()
32602 if (ActiveBits > 3) in LowerCTPOP()
32619 if (ActiveBits > 4) in LowerCTPOP()
32635 if (ActiveBits > 8) in LowerCTPOP()
38412 auto NeedsSignExtension = [&](SDValue V, unsigned ActiveBits) { in targetShrinkDemandedConstant() argument
38420 Val.trunc(ActiveBits).getNumSignBits() == ActiveBits) in targetShrinkDemandedConstant()
38427 unsigned ActiveBits = DemandedBits.getActiveBits(); in targetShrinkDemandedConstant() local
38428 if (EltSize > ActiveBits && EltSize > 1 && isTypeLegal(VT) && in targetShrinkDemandedConstant()
38430 NeedsSignExtension(Op.getOperand(1), ActiveBits)) { in targetShrinkDemandedConstant()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp16275 unsigned ActiveBits = std::max(8u, Known.countMaxActiveBits()); in narrowIndex() local
16277 EVT ResultVT = EVT::getIntegerVT(C, ActiveBits).getRoundIntegerType(C); in narrowIndex()