Home
last modified time | relevance | path

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

12

/external/clang/include/clang/Basic/
DSanitizers.h53 assert(llvm::isPowerOf2_64(K)); in has()
62 assert(llvm::isPowerOf2_64(K)); in set()
DTargetInfo.h400 llvm::isPowerOf2_64(AtomicSizeInBits / getCharWidth())); in hasBuiltinAtomic()
/external/llvm/unittests/Support/
DMathExtrasTest.cpp127 TEST(MathExtras, isPowerOf2_64) { in TEST() argument
128 EXPECT_TRUE(isPowerOf2_64(1LL << 46)); in TEST()
129 EXPECT_TRUE(isPowerOf2_64(1LL << 12)); in TEST()
130 EXPECT_FALSE(isPowerOf2_64((1LL << 53) + 3)); in TEST()
131 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()
DVerifier.cpp3268 Assert(isPowerOf2_64(Align), in visitInstruction()
/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.h360 inline bool isPowerOf2_64(uint64_t Value) {
566 assert(Alignment && isPowerOf2_64((uint64_t)Alignment) &&
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp130 if (isPowerOf2_64(DiffUnitsAbs)) in getNewAlignmentDiff()
DDeadStoreElimination.cpp615 if (llvm::isPowerOf2_64(InstWriteOffset) || in runOnBasicBlock()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp433 cast<BinaryOperator>(I)->isExact() && isPowerOf2_64(Imm)) { in selectBinaryOp()
440 isPowerOf2_64(Imm)) { in selectBinaryOp()
1722 if (Opcode == ISD::MUL && isPowerOf2_64(Imm)) { in fastEmit_ri_()
1725 } else if (Opcode == ISD::UDIV && isPowerOf2_64(Imm)) { in fastEmit_ri_()
/external/llvm/lib/Analysis/
DVectorUtils.cpp553 if (!isPowerOf2_64((uint64_t)MinBW)) in computeMinimumValueSizes()
/external/llvm/lib/Target/Mips/
DMips64InstrInfo.td58 return isPowerOf2_64(Imm) && (Imm & 0xffffffff) == Imm;
68 return isPowerOf2_64(Imm) && (Imm & 0xffffffff00000000) == Imm;
DMipsSEISelLowering.cpp810 if (isPowerOf2_64(C)) in genConstMult()
/external/llvm/include/llvm/ADT/
DAPInt.h389 return isPowerOf2_64(VAL); in isPowerOf2()
/external/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp1160 (ValueVT == MVT::i64 && isPowerOf2_64(~Val))) in SelectBitOp()
1184 (ValueVT == MVT::i64 && !isPowerOf2_64(Val))) in SelectBitOp()
DHexagonHardwareLoops.cpp785 if (!isPowerOf2_64(std::abs(IVBump))) in computeCount()
/external/llvm/lib/Target/Hexagon/AsmParser/
DHexagonAsmParser.cpp1023 if (!isPowerOf2_64(ByteAlignment)) in ParseDirectiveComm()
1037 if (!isPowerOf2_64(AccessAlignment)) in ParseDirectiveComm()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp1889 assert(llvm::isPowerOf2_64(NewAlignment.getQuantity()) && in UpdateAlignment()
1895 assert(llvm::isPowerOf2_64(UnpackedNewAlignment.getQuantity()) && in UpdateAlignment()
DType.cpp88 if (llvm::isPowerOf2_64(ElementSize)) { in getNumAddressingBits()
/external/llvm/lib/MC/MCParser/
DAsmParser.cpp2848 if (!isPowerOf2_64(Alignment)) in parseDirectiveAlign()
3870 if (!isPowerOf2_64(Pow2Alignment)) in parseDirectiveComm()
4649 if (!isPowerOf2_64(IntValue)) in parseDirectiveMSAlign()
/external/clang/lib/CodeGen/
DCGStmt.cpp1663 if (Size <= 64 && llvm::isPowerOf2_64(Size)) { in EmitAsmInputLValue()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp818 if (!llvm::isPowerOf2_64(EnumVal)) in UseNSOptionsMacro()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp658 if (!isPowerOf2_64(NumBits)) in computeAddress()
742 if (!isPowerOf2_64(NumBits)) in computeAddress()
DAArch64ISelLowering.cpp3639 isPowerOf2_64(LHS.getConstantOperandVal(1))) { in LowerBR_CC()
3655 isPowerOf2_64(LHS.getConstantOperandVal(1))) { in LowerBR_CC()
7225 if (!isPowerOf2_64(NumBits)) in isLegalAddressingMode()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp14167 if (!isUInt<32>(AndRHSVal) && isPowerOf2_64(AndRHSVal)) { in LowerToBT()
24880 if (isPowerOf2_64(MulAmt) || MulAmt == 3 || MulAmt == 5 || MulAmt == 9) in PerformMulCombine()
24899 (isPowerOf2_64(MulAmt2) || MulAmt2 == 3 || MulAmt2 == 5 || MulAmt2 == 9)){ in PerformMulCombine()
24901 if (isPowerOf2_64(MulAmt2) && in PerformMulCombine()
24908 if (isPowerOf2_64(MulAmt1)) in PerformMulCombine()
24915 if (isPowerOf2_64(MulAmt2)) in PerformMulCombine()
24927 if (isPowerOf2_64(MulAmt - 1)) in PerformMulCombine()
24934 else if (isPowerOf2_64(MulAmt + 1)) in PerformMulCombine()

12