Home
last modified time | relevance | path

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

12345678

/external/swiftshader/third_party/LLVM/unittests/Support/
DMathExtrasTest.cpp17 TEST(MathExtras, isPowerOf2_32) { in TEST() argument
18 EXPECT_TRUE(isPowerOf2_32(1 << 6)); in TEST()
19 EXPECT_TRUE(isPowerOf2_32(1 << 12)); in TEST()
20 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3)); in TEST()
21 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DLegalityPredicates.cpp79 return QueryTy.isScalar() && !isPowerOf2_32(QueryTy.getSizeInBits()); in sizeNotPow2()
85 return !isPowerOf2_32(Query.MMODescrs[MMOIdx].Size /* In Bytes */); in memSizeInBytesNotPow2()
92 return QueryTy.isVector() && isPowerOf2_32(QueryTy.getNumElements()); in numElementsNotPow2()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DMathExtrasTest.cpp179 TEST(MathExtras, isPowerOf2_32) { in TEST() argument
180 EXPECT_FALSE(isPowerOf2_32(0)); in TEST()
181 EXPECT_TRUE(isPowerOf2_32(1 << 6)); in TEST()
182 EXPECT_TRUE(isPowerOf2_32(1 << 12)); in TEST()
183 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3)); in TEST()
184 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0)); in TEST()
/external/llvm/unittests/Support/
DMathExtrasTest.cpp149 TEST(MathExtras, isPowerOf2_32) { in TEST() argument
150 EXPECT_TRUE(isPowerOf2_32(1 << 6)); in TEST()
151 EXPECT_TRUE(isPowerOf2_32(1 << 12)); in TEST()
152 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3)); in TEST()
153 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0)); in TEST()
/external/swiftshader/third_party/LLVM/include/llvm/
DAttributes.h118 assert(isPowerOf2_32(i) && "Alignment must be a power of two."); in constructAlignmentFromInt()
139 assert(isPowerOf2_32(i) && "Alignment must be a power of two."); in constructStackAlignmentFromInt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64LegalizerInfo.cpp109 return isPowerOf2_32(Ty1.getSizeInBits()) && in AArch64LegalizerInfo()
129 return isPowerOf2_32(Ty0.getSizeInBits()) && in AArch64LegalizerInfo()
309 if (!isPowerOf2_32(EltTy.getSizeInBits())) in AArch64LegalizerInfo()
342 return !isPowerOf2_32(Ty.getSizeInBits()) && in AArch64LegalizerInfo()
/external/clang/lib/Lex/
DHeaderMap.cpp93 if (!llvm::isPowerOf2_32(NumBuckets)) in checkHeader()
216 assert(llvm::isPowerOf2_32(NumBuckets) && "Expected power of 2"); in lookupFilename()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUMachineFunction.h28 assert(isPowerOf2_32(Align)); in allocateKernArg()
DAMDGPUTargetTransformInfo.h79 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.cpp25 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.cpp25 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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DIRBuilder.cpp161 assert((DstAlign == 0 || isPowerOf2_32(DstAlign)) && "Must be 0 or a power of 2"); in CreateMemCpy()
162 assert((SrcAlign == 0 || isPowerOf2_32(SrcAlign)) && "Must be 0 or a power of 2"); in CreateMemCpy()
241 assert((DstAlign == 0 || isPowerOf2_32(DstAlign)) && "Must be 0 or a power of 2"); in CreateMemMove()
242 assert((SrcAlign == 0 || isPowerOf2_32(SrcAlign)) && "Must be 0 or a power of 2"); in CreateMemMove()
/external/swiftshader/third_party/subzero/src/
DIceUtils.h90 assert(llvm::isPowerOf2_32(Alignment)); in applyAlignment()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonStoreWidening.cpp322 assert(isPowerOf2_32(SizeAccum) && "First store size not a power of 2"); in selectStores()
367 if (isPowerOf2_32(SizeAccum)) { in selectStores()
/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()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp235 assert(isPowerOf2_32(TyWidth) && "Type width must be power of 2"); in getPopcntSupport()
/external/capstone/
DMathExtras.h89 static inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DMCSymbol.h350 assert((!Align || isPowerOf2_32(Align)) && in setCommon()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.h132 assert(isPowerOf2_32(TyWidth) && "Ty 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/CodeGen/
DInterleavedAccessPass.cpp176 if (!isPowerOf2_32(NumSubElts)) in isReInterleaveMask()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DTargetLoweringBase.cpp750 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
868 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdownMVT()
890 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdownMVT()
1300 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdown()
1325 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdown()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DMathExtras.h114 inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
/external/llvm/lib/IR/
DAttributes.cpp109 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithAlignment()
116 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithStackAlignment()
1352 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addAlignmentAttr()
1364 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addStackAlignmentAttr()

12345678