Searched refs:ActiveBits (Results 1 – 7 of 7) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APSInt.cpp | 34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt() local 35 if (ActiveBits < NumBits) in APSInt() 36 Tmp = Tmp.trunc(std::max<unsigned>(1, ActiveBits)); in APSInt()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 1104 const unsigned ActiveBits = DemandedElts.getActiveBits(); in simplifyAMDGCNMemoryIntrinsicDemanded() local 1110 DemandedElts = (1 << ActiveBits) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded() 1124 if (ActiveBits == 4 && UnusedComponentsAtFront == 1) in simplifyAMDGCNMemoryIntrinsicDemanded()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | BasicTTIImpl.h | 1429 unsigned ActiveBits = Exponent.getActiveBits(); in getIntrinsicInstrCost() local 1431 InstructionCost Cost = (ActiveBits + PopCount - 2) * in getIntrinsicInstrCost()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 6545 uint32_t ActiveBits = DemandBits.getActiveBits(); in optimizeLoadExt() local 6557 if (ActiveBits <= 1 || !DemandBits.isMask(ActiveBits) || in optimizeLoadExt() 6562 Type *TruncTy = Type::getIntNTy(Ctx, ActiveBits); in optimizeLoadExt()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 5655 unsigned ActiveBits = AndC->getAPIntValue().countTrailingOnes(); in isAndLoadExtLoad() local 5657 ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in isAndLoadExtLoad() 5819 unsigned ActiveBits = Mask->getAPIntValue().countTrailingOnes(); in SearchForAndLoads() local 5820 EVT ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in SearchForAndLoads() 9173 unsigned ActiveBits = IsSignExt in combineShiftToMULH() local 9176 if (ActiveBits > NarrowVTSize) in combineShiftToMULH() 12798 unsigned ActiveBits = 0; in reduceLoadWidth() local 12800 ActiveBits = Mask.countTrailingOnes(); in reduceLoadWidth() 12801 } else if (Mask.isShiftedMask(ShAmt, ActiveBits)) { in reduceLoadWidth() 12808 ExtVT = EVT::getIntegerVT(*DAG.getContext(), ActiveBits); in reduceLoadWidth()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaDecl.cpp | 18979 unsigned ActiveBits = InitVal.getActiveBits(); in ActOnEnumBody() local 18980 NumPositiveBits = std::max({NumPositiveBits, ActiveBits, 1u}); in ActOnEnumBody()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 36679 auto NeedsSignExtension = [&](SDValue V, unsigned ActiveBits) { in targetShrinkDemandedConstant() argument 36687 Val.trunc(ActiveBits).getNumSignBits() == ActiveBits) in targetShrinkDemandedConstant() 36694 unsigned ActiveBits = DemandedBits.getActiveBits(); in targetShrinkDemandedConstant() local 36695 if (EltSize > ActiveBits && EltSize > 1 && isTypeLegal(VT) && in targetShrinkDemandedConstant() 36697 NeedsSignExtension(Op.getOperand(1), ActiveBits)) { in targetShrinkDemandedConstant() 36698 EVT ExtSVT = EVT::getIntegerVT(*TLO.DAG.getContext(), ActiveBits); in targetShrinkDemandedConstant()
|