Searched refs:isPowerOf2_32 (Results 1 - 25 of 41) sorted by relevance

12

/external/llvm/unittests/Support/
H A DMathExtrasTest.cpp120 TEST(MathExtras, isPowerOf2_32) {
121 EXPECT_TRUE(isPowerOf2_32(1 << 6));
122 EXPECT_TRUE(isPowerOf2_32(1 << 12));
123 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3));
124 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0));
/external/llvm/lib/Analysis/
H A DCostModel.cpp260 if (!isPowerOf2_32(NumVecElems))
324 if (!isPowerOf2_32(NumVecElems))
/external/llvm/lib/Transforms/Scalar/
H A DLoadCombine.cpp176 while (TotalSize != 0 && !isPowerOf2_32(TotalSize))
/external/llvm/lib/IR/
H A DAttributes.cpp79 assert(isPowerOf2_32(Align) && "Alignment must be a power of two.");
86 assert(isPowerOf2_32(Align) && "Alignment must be a power of two.");
1062 assert(isPowerOf2_32(Align) && "Alignment must be a power of two.");
1074 assert(isPowerOf2_32(Align) && "Alignment must be a power of two.");
H A DType.cpp324 return (BitWidth > 7) && isPowerOf2_32(BitWidth);
/external/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp132 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
H A DPPCISelDAGToDAG.cpp1040 if ((signed)Imm > 0 && isPowerOf2_32(Imm)) {
1046 } else if ((signed)Imm < 0 && isPowerOf2_32(-Imm)) {
/external/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp879 if (!isPowerOf2_32(NumElts)) {
901 if (!isPowerOf2_32(NewVTSize))
1231 if (!isPowerOf2_32(NumElts)) {
1256 if (!isPowerOf2_32(NewVTSize))
H A DExecutionDepsFix.cpp635 if (isPowerOf2_32(available)) {
/external/llvm/include/llvm/Support/
H A DMathExtras.h361 /// isPowerOf2_32 - This function returns true if the argument is a power of
362 /// two > 0. Ex. isPowerOf2_32(0x00100000U) == true (32 bit edition.)
363 inline bool isPowerOf2_32(uint32_t Value) { function in namespace:llvm
/external/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp288 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
/external/llvm/lib/MC/
H A DMCAsmStreamer.cpp534 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2");
754 if (isPowerOf2_32(ByteAlignment)) {
H A DMachObjectWriter.cpp236 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!");
/external/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp570 assert(isPowerOf2_32(Align) && "Invalid alignment");
646 assert(isPowerOf2_32(Align) && "Invalid CPE alignment");
/external/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp136 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2");
796 if (!isPowerOf2_32(NumElem)) {
/external/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp537 assert(isPowerOf2_32(Align) && "Invalid alignment");
612 assert(isPowerOf2_32(Align) && "Invalid CPE alignment");
H A DARMISelDAGToDAG.cpp583 if (isPowerOf2_32(RHSC)) {
682 if (isPowerOf2_32(RHSC)) {
2522 if (isPowerOf2_32(RHSV-1)) { // 2^n+1?
2538 if (isPowerOf2_32(RHSV+1)) { // 2^n-1?
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp753 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) {
/external/llvm/utils/TableGen/
H A DDAGISelMatcherGen.cpp327 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits.
/external/clang/lib/AST/
H A DRecordLayoutBuilder.cpp1842 assert(llvm::isPowerOf2_32(NewAlignment.getQuantity() &&
1848 assert(llvm::isPowerOf2_32(UnpackedNewAlignment.getQuantity() &&
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp609 if (!isPowerOf2_32(ScalarSize))
H A DLegalizeIntegerTypes.cpp632 assert(isPowerOf2_32(NumElts) &&
1418 assert(isPowerOf2_32(NVTBits) &&
1505 assert(isPowerOf2_32(NVTBits) &&
/external/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1059 if (isPowerOf2_32(Val) && Val <= MaxVectorWidth)
1064 if (isPowerOf2_32(Val) && Val <= MaxUnrollFactor)
2754 assert(isPowerOf2_32(VF) &&
5229 assert(isPowerOf2_32(UserVF) && "VF needs to be a power of two");
H A DSLPVectorizer.cpp2282 if (!isPowerOf2_32(Sz) || VF < 2)
2450 if (!isPowerOf2_32(OpsWidth) || OpsWidth < 2)
2811 assert(isPowerOf2_32(ReduxWidth) &&
/external/llvm/include/llvm/Target/
H A DTargetLowering.h1656 if (BitSize < 8 || !isPowerOf2_32(BitSize)) {

Completed in 321 milliseconds

12