Home
last modified time | relevance | path

Searched refs:isPowerOf2_64 (Results 1 – 25 of 42) sorted by relevance

12

/external/swiftshader/third_party/LLVM/unittests/Support/
DMathExtrasTest.cpp24 TEST(MathExtras, isPowerOf2_64) { in TEST() argument
25 EXPECT_TRUE(isPowerOf2_64(1LL << 46)); in TEST()
26 EXPECT_TRUE(isPowerOf2_64(1LL << 12)); in TEST()
27 EXPECT_FALSE(isPowerOf2_64((1LL << 53) + 3)); in TEST()
28 EXPECT_FALSE(isPowerOf2_64(0xABCDEF0ABCDEF0LL)); in TEST()
/external/clang/include/clang/Basic/
DSanitizers.h51 assert(llvm::isPowerOf2_64(K)); in has()
60 assert(llvm::isPowerOf2_64(K)); in set()
DTargetInfo.h422 llvm::isPowerOf2_64(AtomicSizeInBits / getCharWidth())); in hasBuiltinAtomic()
/external/llvm/unittests/Support/
DMathExtrasTest.cpp156 TEST(MathExtras, isPowerOf2_64) { in TEST() argument
157 EXPECT_TRUE(isPowerOf2_64(1LL << 46)); in TEST()
158 EXPECT_TRUE(isPowerOf2_64(1LL << 12)); in TEST()
159 EXPECT_FALSE(isPowerOf2_64((1LL << 53) + 3)); in TEST()
160 EXPECT_FALSE(isPowerOf2_64(0xABCDEF0ABCDEF0LL)); in TEST()
/external/llvm/lib/IR/
DDataLayout.cpp272 if (!isPowerOf2_64(PointerABIAlign)) in parseSpecifier()
281 if (!isPowerOf2_64(PointerPrefAlign)) in parseSpecifier()
406 if (abi_align != 0 && !isPowerOf2_64(abi_align)) in setAlignment()
408 if (pref_align != 0 && !isPowerOf2_64(pref_align)) in setAlignment()
/external/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp80 assert(llvm::isPowerOf2_64(RL.getAlignment().getQuantity())); in visitRecord()
221 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad()
/external/llvm/include/llvm/Support/
DMathExtras.h383 inline bool isPowerOf2_64(uint64_t Value) {
589 assert(Alignment && isPowerOf2_64((uint64_t)Alignment) &&
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DMathExtras.h120 inline bool isPowerOf2_64(uint64_t Value) { in isPowerOf2_64() function
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DFastISel.cpp375 isPowerOf2_64(Imm)) { in SelectBinaryOp()
1066 if (Opcode == ISD::MUL && isPowerOf2_64(Imm)) { in FastEmit_ri_()
1069 } else if (Opcode == ISD::UDIV && isPowerOf2_64(Imm)) { in FastEmit_ri_()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp118 if (isPowerOf2_64(DiffUnitsAbs)) in getNewAlignmentDiff()
DDeadStoreElimination.cpp963 if ((llvm::isPowerOf2_64(InstWriteOffset) && in eliminateDeadStores()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp436 cast<BinaryOperator>(I)->isExact() && isPowerOf2_64(Imm)) { in selectBinaryOp()
443 isPowerOf2_64(Imm)) { in selectBinaryOp()
1745 if (Opcode == ISD::MUL && isPowerOf2_64(Imm)) { in fastEmit_ri_()
1748 } else if (Opcode == ISD::UDIV && isPowerOf2_64(Imm)) { in fastEmit_ri_()
/external/llvm/lib/Analysis/
DVectorUtils.cpp421 if (!isPowerOf2_64((uint64_t)MinBW)) in computeMinimumValueSizes()
/external/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp1028 (ValueVT == MVT::i64 && isPowerOf2_64(~Val))) in SelectBitOp()
1055 (ValueVT == MVT::i64 && !isPowerOf2_64(Val))) { in SelectBitOp()
DHexagonHardwareLoops.cpp787 if (!isPowerOf2_64(std::abs(IVBump))) in computeCount()
/external/llvm/lib/Target/Mips/
DMips64InstrInfo.td50 return isPowerOf2_64(Imm) && (Imm & 0xffffffff) == Imm;
60 return isPowerOf2_64(Imm) && (Imm & 0xffffffff00000000) == Imm;
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h369 return isPowerOf2_64(VAL); in isPowerOf2()
/external/llvm/include/llvm/ADT/
DAPInt.h389 return isPowerOf2_64(VAL); in isPowerOf2()
/external/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp1004 if (!isPowerOf2_64(ByteAlignment)) in ParseDirectiveComm()
1018 if (!isPowerOf2_64(AccessAlignment)) in ParseDirectiveComm()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp1902 assert(llvm::isPowerOf2_64(NewAlignment.getQuantity()) && in UpdateAlignment()
1908 assert(llvm::isPowerOf2_64(UnpackedNewAlignment.getQuantity()) && in UpdateAlignment()
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
DAlphaInstrInfo.td119 return isPowerOf2_64(getNearPower2((uint64_t)N->getZExtValue()) -
123 return isPowerOf2_64(N->getZExtValue() -
129 if (isPowerOf2_64(d)) return false;
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp2972 if (!isPowerOf2_64(Alignment)) in parseDirectiveAlign()
4237 if (!isPowerOf2_64(Pow2Alignment)) in parseDirectiveComm()
5025 if (!isPowerOf2_64(IntValue)) in parseDirectiveMSAlign()
/external/swiftshader/third_party/LLVM/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp1558 if (CI->getBitWidth() < 8 || !isPowerOf2_64(CI->getBitWidth())) return -1; in isRepeatedByteSequence()
/external/clang/lib/CodeGen/
DCGStmt.cpp1720 if (Size <= 64 && llvm::isPowerOf2_64(Size)) { in EmitAsmInputLValue()
/external/swiftshader/third_party/LLVM/lib/MC/MCParser/
DAsmParser.cpp2093 if (!isPowerOf2_64(Pow2Alignment)) in ParseDirectiveComm()

12