/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | MathExtrasTest.cpp | 17 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/ |
D | LegalityPredicates.cpp | 79 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/ |
D | MathExtrasTest.cpp | 179 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/ |
D | MathExtrasTest.cpp | 149 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/ |
D | Attributes.h | 118 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/ |
D | AArch64LegalizerInfo.cpp | 109 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/ |
D | HeaderMap.cpp | 93 if (!llvm::isPowerOf2_32(NumBuckets)) in checkHeader() 216 assert(llvm::isPowerOf2_32(NumBuckets) && "Expected power of 2"); in lookupFilename()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUMachineFunction.h | 28 assert(isPowerOf2_32(Align)); in allocateKernArg()
|
D | AMDGPUTargetTransformInfo.h | 79 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.cpp | 25 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.cpp | 25 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 258 if (!isPowerOf2_32(NumVecElems)) in matchPairwiseReduction() 322 if (!isPowerOf2_32(NumVecElems)) in matchVectorSplittingReduction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | IRBuilder.cpp | 161 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/ |
D | IceUtils.h | 90 assert(llvm::isPowerOf2_32(Alignment)); in applyAlignment()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonStoreWidening.cpp | 322 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/ |
D | HexagonStoreWidening.cpp | 325 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/ |
D | SystemZTargetTransformInfo.cpp | 235 assert(isPowerOf2_32(TyWidth) && "Type width must be power of 2"); in getPopcntSupport()
|
/external/capstone/ |
D | MathExtras.h | 89 static inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/ |
D | MCSymbol.h | 350 assert((!Align || isPowerOf2_32(Align)) && in setCommon()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.h | 132 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/include/llvm/MC/ |
D | MCSymbol.h | 343 assert((!Align || isPowerOf2_32(Align)) && in setCommon()
|
/external/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 176 if (!isPowerOf2_32(NumSubElts)) in isReInterleaveMask()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 750 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/ |
D | MathExtras.h | 114 inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
|
/external/llvm/lib/IR/ |
D | Attributes.cpp | 109 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()
|