Home
last modified time | relevance | path

Searched refs:ActiveBits (Results 1 – 11 of 11) 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.cpp580 auto *ActiveBits = B.CreatePHI(WaveTy, 2, "ActiveBits"); in buildScanIteratively() local
581 ActiveBits->addIncoming(Ballot, EntryBB); in buildScanIteratively()
585 B.CreateIntrinsic(Intrinsic::cttz, WaveTy, {ActiveBits, B.getTrue()}); in buildScanIteratively()
611 auto *NewActiveBits = B.CreateAnd(ActiveBits, InverseMask); in buildScanIteratively()
612 ActiveBits->addIncoming(NewActiveBits, ComputeLoop); in buildScanIteratively()
H A DAMDGPUInstCombineIntrinsic.cpp1306 const unsigned ActiveBits = DemandedElts.getActiveBits(); in simplifyAMDGCNMemoryIntrinsicDemanded() local
1312 DemandedElts = (1 << ActiveBits) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded()
1327 if (ActiveBits == 4 && UnusedComponentsAtFront == 1) in simplifyAMDGCNMemoryIntrinsicDemanded()
H A DSIISelLowering.cpp4913 auto ActiveBits = in lowerWaveReduce() local
4921 .addReg(ActiveBits->getOperand(0).getReg()); in lowerWaveReduce()
4936 .addReg(ActiveBits->getOperand(0).getReg()); in lowerWaveReduce()
4941 ActiveBits.addReg(NewActiveBits->getOperand(0).getReg()) in lowerWaveReduce()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugInfoMetadata.cpp1684 std::optional<uint64_t> ActiveBits = InitialActiveBits; in getActiveBits() local
1690 ActiveBits = InitialActiveBits; in getActiveBits()
1700 ActiveBits = InitialActiveBits; in getActiveBits()
1707 if (ActiveBits) in getActiveBits()
1708 ActiveBits = std::min(*ActiveBits, Op.getArg(1)); in getActiveBits()
1710 ActiveBits = Op.getArg(1); in getActiveBits()
1714 return ActiveBits; in getActiveBits()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h1583 unsigned ActiveBits = Exponent.getActiveBits(); in getIntrinsicInstrCost() local
1585 InstructionCost Cost = (ActiveBits + PopCount - 2) * in getIntrinsicInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp6422 unsigned ActiveBits = AndC->getAPIntValue().countr_one(); in isAndLoadExtLoad() local
6424 ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in isAndLoadExtLoad()
6586 unsigned ActiveBits = Mask->getAPIntValue().countr_one(); in SearchForAndLoads() local
6587 EVT ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in SearchForAndLoads()
10226 unsigned ActiveBits = IsSignExt in combineShiftToMULH() local
10229 if (ActiveBits > NarrowVTSize) in combineShiftToMULH()
14485 unsigned ActiveBits = 0; in reduceLoadWidth() local
14487 ActiveBits = Mask.countr_one(); in reduceLoadWidth()
14488 } else if (Mask.isShiftedMask(ShAmt, ActiveBits)) { in reduceLoadWidth()
14495 ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in reduceLoadWidth()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6918 uint32_t ActiveBits = DemandBits.getActiveBits(); in optimizeLoadExt() local
6930 if (ActiveBits <= 1 || !DemandBits.isMask(ActiveBits) || in optimizeLoadExt()
6935 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp31377 unsigned ActiveBits = Known.getBitWidth() - LZ; in LowerCTPOP() local
31382 if (ActiveBits > 2) in LowerCTPOP()
31394 if (ActiveBits > 3) in LowerCTPOP()
31411 if (ActiveBits > 4) in LowerCTPOP()
31427 if (ActiveBits > 8) in LowerCTPOP()
37026 auto NeedsSignExtension = [&](SDValue V, unsigned ActiveBits) { in targetShrinkDemandedConstant() argument
37034 Val.trunc(ActiveBits).getNumSignBits() == ActiveBits) in targetShrinkDemandedConstant()
37041 unsigned ActiveBits = DemandedBits.getActiveBits(); in targetShrinkDemandedConstant() local
37042 if (EltSize > ActiveBits && EltSize > 1 && isTypeLegal(VT) && in targetShrinkDemandedConstant()
37044 NeedsSignExtension(Op.getOperand(1), ActiveBits)) { in targetShrinkDemandedConstant()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp19879 unsigned ActiveBits = InitVal.getActiveBits(); in ActOnEnumBody() local
19880 NumPositiveBits = std::max({NumPositiveBits, ActiveBits, 1u}); in ActOnEnumBody()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp14124 unsigned ActiveBits = std::max(8u, Known.countMaxActiveBits()); in narrowIndex()
14126 EVT ResultVT = EVT::getIntegerVT(C, ActiveBits).getRoundIntegerType(C); in narrowIndex()
14121 unsigned ActiveBits = std::max(8u, Known.countMaxActiveBits()); narrowIndex() local