Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalityPredicates.cpp168 !llvm::has_single_bit<uint32_t>(QueryTy.getSizeInBits()); in sizeNotPow2()
188 return !llvm::has_single_bit<uint32_t>( in memSizeInBytesNotPow2()
197 !llvm::has_single_bit<uint32_t>(MemTy.getSizeInBytes()); in memSizeNotByteSizePow2()
H A DIRTranslator.cpp1099 !llvm::has_single_bit<uint32_t>(MaskTy.getSizeInBits())) in emitBitTestHeader()
H A DCombinerHelper.cpp732 if (!llvm::has_single_bit<uint32_t>(LoadValueTy.getSizeInBits())) in matchCombineExtendingLoads()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit27 constexpr bool has_single_bit(T x) noexcept; // C++20
75 # include <__bit/has_single_bit.h>
H A Dmodule.modulemap1073 module std_private_bit_has_single_bit [system] { header "__bit/has_single_bit.h" }
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dhas_single_bit.h27 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr bool has_single_bit(_Tp __t) noexcept { in has_single_bit() function
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVSubtarget.cpp176 llvm::has_single_bit<uint32_t>(RVVVectorLMULMax) && in getMaxLMULForFixedLengthVectors()
H A DRISCVInstrInfo.cpp3663 if (llvm::has_single_bit<uint32_t>(Amount)) { in mulImm()
3699 } else if (llvm::has_single_bit<uint32_t>(Amount - 1)) { in mulImm()
3710 } else if (llvm::has_single_bit<uint32_t>(Amount + 1)) { in mulImm()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h292 return llvm::has_single_bit(Value); in isPowerOf2_32()
297 return llvm::has_single_bit(Value); in isPowerOf2_64()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dbit.h146 [[nodiscard]] constexpr inline bool has_single_bit(T Value) noexcept {
110 [[nodiscard]] constexpr inline bool has_single_bit(T Value) noexcept { has_single_bit() function
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DDAGISelMatcherGen.cpp340 if (!llvm::has_single_bit<uint32_t>( in EmitOperatorMatchCode()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp522 !llvm::has_single_bit<uint32_t>(Size.getQuantity())) { in flushTrivialFields()
H A DCGExprScalar.cpp2840 if (llvm::has_single_bit(Ty->getScalarSizeInBits())) { in EmitScalarPrePostIncDec()
/freebsd/lib/libc++/
H A DMakefile520 BIT_HEADERS+= has_single_bit.h
H A Dlibcxx.imp231 { include: [ "<__bit/has_single_bit.h>", "private", "<bit>", "public" ] },
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp1597 if (!llvm::has_single_bit<uint32_t>(NewVTSize.getKnownMinValue())) in getVectorTypeBreakdown()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp452 llvm::has_single_bit<uint32_t>(getImm()); in isCRBitMask()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2947 if ((has_single_bit(TyAllocSize) && in visitGetElementPtrInst()
2965 if (has_single_bit(TyAllocSize) && in visitGetElementPtrInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelLowering.cpp269 assert(llvm::has_single_bit<uint32_t>(VT.getSizeInBits()) && in LowerShifts()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp7078 if (llvm::has_single_bit(CaseValue)) in simplifySwitchOfPowersOfTwo()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp14249 if (llvm::has_single_bit<uint32_t>(MulAmt - 1)) { in PerformMULCombine()
14257 } else if (llvm::has_single_bit<uint32_t>(MulAmt + 1)) { in PerformMULCombine()
14269 if (llvm::has_single_bit<uint32_t>(MulAmtAbs + 1)) { in PerformMULCombine()
14277 } else if (llvm::has_single_bit<uint32_t>(MulAmtAbs - 1)) { in PerformMULCombine()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStdSymbolMap.inc1454 SYMBOL(has_single_bit, std::, <bit>)
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp1914 if (!llvm::has_single_bit<uint32_t>(EltTy.getSizeInBits())) in AMDGPULegalizerInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp7125 if (!llvm::has_single_bit<uint32_t>(ImmVal)) in selectExtendedSHL()

12