/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | MathExtrasTest.cpp | 24 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/ |
D | Sanitizers.h | 51 assert(llvm::isPowerOf2_64(K)); in has() 60 assert(llvm::isPowerOf2_64(K)); in set()
|
D | TargetInfo.h | 422 llvm::isPowerOf2_64(AtomicSizeInBits / getCharWidth())); in hasBuiltinAtomic()
|
/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 156 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/ |
D | DataLayout.cpp | 272 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/ |
D | PaddingChecker.cpp | 80 assert(llvm::isPowerOf2_64(RL.getAlignment().getQuantity())); in visitRecord() 221 assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity())); in calculateOptimalPad()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 383 inline bool isPowerOf2_64(uint64_t Value) { 589 assert(Alignment && isPowerOf2_64((uint64_t)Alignment) &&
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | MathExtras.h | 120 inline bool isPowerOf2_64(uint64_t Value) { in isPowerOf2_64() function
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 375 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/ |
D | AlignmentFromAssumptions.cpp | 118 if (isPowerOf2_64(DiffUnitsAbs)) in getNewAlignmentDiff()
|
D | DeadStoreElimination.cpp | 963 if ((llvm::isPowerOf2_64(InstWriteOffset) && in eliminateDeadStores()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 436 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/ |
D | VectorUtils.cpp | 421 if (!isPowerOf2_64((uint64_t)MinBW)) in computeMinimumValueSizes()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelDAGToDAG.cpp | 1028 (ValueVT == MVT::i64 && isPowerOf2_64(~Val))) in SelectBitOp() 1055 (ValueVT == MVT::i64 && !isPowerOf2_64(Val))) { in SelectBitOp()
|
D | HexagonHardwareLoops.cpp | 787 if (!isPowerOf2_64(std::abs(IVBump))) in computeCount()
|
/external/llvm/lib/Target/Mips/ |
D | Mips64InstrInfo.td | 50 return isPowerOf2_64(Imm) && (Imm & 0xffffffff) == Imm; 60 return isPowerOf2_64(Imm) && (Imm & 0xffffffff00000000) == Imm;
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 369 return isPowerOf2_64(VAL); in isPowerOf2()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 389 return isPowerOf2_64(VAL); in isPowerOf2()
|
/external/llvm/lib/Target/Hexagon/AsmParser/ |
D | HexagonAsmParser.cpp | 1004 if (!isPowerOf2_64(ByteAlignment)) in ParseDirectiveComm() 1018 if (!isPowerOf2_64(AccessAlignment)) in ParseDirectiveComm()
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 1902 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/ |
D | AlphaInstrInfo.td | 119 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/ |
D | AsmParser.cpp | 2972 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/ |
D | AsmPrinter.cpp | 1558 if (CI->getBitWidth() < 8 || !isPowerOf2_64(CI->getBitWidth())) return -1; in isRepeatedByteSequence()
|
/external/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1720 if (Size <= 64 && llvm::isPowerOf2_64(Size)) { in EmitAsmInputLValue()
|
/external/swiftshader/third_party/LLVM/lib/MC/MCParser/ |
D | AsmParser.cpp | 2093 if (!isPowerOf2_64(Pow2Alignment)) in ParseDirectiveComm()
|