/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 120 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/ |
D | WebAssemblyTargetTransformInfo.cpp | 25 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.h | 56 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()
|
D | Loads.cpp | 72 assert(isPowerOf2_32(Align)); in isSafeToLoadUnconditionally()
|
/external/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 158 if (!isPowerOf2_32(NumSubElts)) in isReInterleaveMask()
|
D | TargetLoweringBase.cpp | 927 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()
|
D | ExecutionDepsFix.cpp | 639 if (isPowerOf2_32(available)) { in visitSoftInstr()
|
/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()
|
D | HexagonISelDAGToDAG.cpp | 139 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/ |
D | SystemZTargetTransformInfo.cpp | 235 assert(isPowerOf2_32(TyWidth) && "Type 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/IR/ |
D | Attributes.cpp | 79 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()
|
D | Type.cpp | 324 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoadCombine.cpp | 176 while (TotalSize != 0 && !isPowerOf2_32(TotalSize)) in combineLoads()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | SafeStack.cpp | 512 assert(isPowerOf2_32(MaxAlignment)); in moveStaticAllocasToUnsafeStack() 622 assert(isPowerOf2_32(Align)); in moveDynamicAllocasToUnsafeStack()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 32 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 37 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/ |
D | LoopUnrollRuntime.cpp | 321 if (!isPowerOf2_32(Count)) in UnrollRuntimeLoopProlog()
|
/external/llvm/lib/MC/ |
D | MCAsmStreamer.cpp | 576 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/ |
D | MathExtras.h | 354 inline bool isPowerOf2_32(uint32_t Value) {
|
/external/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 568 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement() 642 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 172 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherGen.cpp | 327 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 558 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialConstPlacement() 704 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
|