Home
last modified time | relevance | path

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

12

/external/llvm/unittests/Support/
DMathExtrasTest.cpp120 TEST(MathExtras, isPowerOf2_32) { in TEST() argument
121 EXPECT_TRUE(isPowerOf2_32(1 << 6)); in TEST()
122 EXPECT_TRUE(isPowerOf2_32(1 << 12)); in TEST()
123 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3)); in TEST()
124 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0)); in TEST()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.cpp25 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.h56 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/Analysis/
DCostModel.cpp258 if (!isPowerOf2_32(NumVecElems)) in matchPairwiseReduction()
322 if (!isPowerOf2_32(NumVecElems)) in matchVectorSplittingReduction()
DLoads.cpp72 assert(isPowerOf2_32(Align)); in isSafeToLoadUnconditionally()
/external/llvm/lib/CodeGen/
DInterleavedAccessPass.cpp158 if (!isPowerOf2_32(NumSubElts)) in isReInterleaveMask()
DTargetLoweringBase.cpp927 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
1045 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdownMVT()
1067 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdownMVT()
1414 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdown()
1439 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdown()
DExecutionDepsFix.cpp639 if (isPowerOf2_32(available)) { in visitSoftInstr()
/external/llvm/lib/Target/Hexagon/
DHexagonStoreWidening.cpp325 assert(isPowerOf2_32(SizeAccum) && "First store size not a power of 2"); in selectStores()
370 if (isPowerOf2_32(SizeAccum)) { in selectStores()
DHexagonISelDAGToDAG.cpp139 return isPowerOf2_32(v); in ImmIsSingleBit()
1159 if ((ValueVT == MVT::i32 && isPowerOf2_32(~Val)) || in SelectBitOp()
1183 if ((ValueVT == MVT::i32 && !isPowerOf2_32(Val)) || in SelectBitOp()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp235 assert(isPowerOf2_32(TyWidth) && "Type width must be power of 2"); in getPopcntSupport()
/external/llvm/include/llvm/MC/
DMCSymbol.h343 assert((!Align || isPowerOf2_32(Align)) && in setCommon()
/external/llvm/lib/IR/
DAttributes.cpp79 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithAlignment()
86 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithStackAlignment()
1239 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addAlignmentAttr()
1251 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addStackAlignmentAttr()
DType.cpp324 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
/external/llvm/lib/Transforms/Scalar/
DLoadCombine.cpp176 while (TotalSize != 0 && !isPowerOf2_32(TotalSize)) in combineLoads()
/external/llvm/lib/Transforms/Instrumentation/
DSafeStack.cpp512 assert(isPowerOf2_32(MaxAlignment)); in moveStaticAllocasToUnsafeStack()
622 assert(isPowerOf2_32(Align)); in moveDynamicAllocasToUnsafeStack()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp32 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp37 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
969 if (!isPowerOf2_32(NumElem)) { in getMemoryOpCost()
1007 !isPowerOf2_32(NumElem)) { in getMaskedMemoryOpCost()
1323 if (isa<VectorType>(DataTy) && !isPowerOf2_32(DataTy->getVectorNumElements())) in isLegalMaskedGather()
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp321 if (!isPowerOf2_32(Count)) in UnrollRuntimeLoopProlog()
/external/llvm/lib/MC/
DMCAsmStreamer.cpp576 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2"); in EmitLocalCommonSymbol()
805 if (isPowerOf2_32(ByteAlignment)) { in EmitValueToAlignment()
/external/llvm/include/llvm/Support/
DMathExtras.h354 inline bool isPowerOf2_32(uint32_t Value) {
/external/llvm/lib/Target/Mips/
DMipsConstantIslandPass.cpp568 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement()
642 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp172 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/utils/TableGen/
DDAGISelMatcherGen.cpp327 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp558 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialConstPlacement()
704 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()

12