| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | fixit-format-darwin.m | 28 #define Log2(...) \ macro 51 Log2("test 5: %s", getNSInteger()); 52 // CHECK: Log2("test 5: %ld", (long)getNSInteger()); 53 Log2("test 6: %s %s", getNSInteger(), getNSInteger()); 54 // CHECK: Log2("test 6: %ld %ld", (long)getNSInteger(), (long)getNSInteger());
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerTracePC.h | 275 auto Log2 = Log(A); in CollectFeatures() local 276 if (Log2 < 3) in CollectFeatures() 278 Log2 -= 3; in CollectFeatures() 279 return (Log2 + 1) * 8 + ((A >> Log2) & 7); in CollectFeatures()
|
| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | log2f_test.cpp | 41 EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Log2, x, in TEST() 61 ASSERT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Log2, x, in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZLongBranch.cpp | 184 if (Log2(Block.Alignment) > Position.KnownBits) { in skipNonTerminators() 189 Position.KnownBits = Log2(Block.Alignment); in skipNonTerminators() 294 BlockPosition Position(Log2(MF->getAlignment())); in initMBBInfo() 358 BlockPosition Position(Log2(MF->getAlignment())); in setWorstCaseAddresses() 459 BlockPosition Position(Log2(MF->getAlignment())); in relaxBranches()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMBasicBlockInfo.h | 34 if (KnownBits < Log2(Alignment)) in UnknownPadding() 105 return std::max(Log2(std::max(PostAlign, Align)), internalKnownBits());
|
| H A D | ARMConstantIslandPass.cpp | 339 << " ua=" << unsigned(BBI.Unalign) << " pa=" << Log2(BBI.PostAlign) in dumpBBs() 544 const unsigned MaxLogAlign = Log2(MaxAlign); in doInitialConstPlacement() 577 unsigned LogAlign = Log2(Alignment); in doInitialConstPlacement() 772 BBInfo.front().KnownBits = Log2(MF->getAlignment()); in initializeFunctionInfo() 874 const unsigned LogCPEAlign = Log2(CPEAlign); in initializeFunctionInfo() 1140 UserOffset += Growth + UnknownPadding(MF->getAlignment(), Log2(CPEAlign)); in isWaterInRange() 1429 << " la=" << Log2(Align) << " kb=" << KnownBits in createNewWater()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | log2_not_readnone.ll | 3 ; Log2 and exp2 are string-matched to intrinsics. If they are not declared
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | log2_not_readnone.ll | 3 ; Log2 and exp2 are string-matched to intrinsics. If they are not declared
|
| /llvm-project-15.0.7/libc/test/src/math/exhaustive/ |
| H A D | log2f_test.cpp | 28 result &= EXPECT_MPFR_MATCH(mpfr::Operation::Log2, x, in check()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFSelectionDAGInfo.cpp | 30 unsigned StoresNumEstimate = alignTo(CopyLen, Alignment) >> Log2(Alignment); in EmitTargetCodeForMemcpy()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblySetP2AlignOperands.cpp | 68 uint64_t P2Align = Log2((*MI.memoperands_begin())->getAlign()); in rewriteP2Align()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | AlignmentTest.cpp | 111 TEST(AlignmentTest, Log2) { in TEST() argument 113 EXPECT_EQ(Log2(Align(Value)), Log2_64(Value)); in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Alignment.h | 45 friend unsigned Log2(Align); 209 inline unsigned Log2(Align A) { return A.ShiftValue; } in Log2() function
|
| /llvm-project-15.0.7/libc/test/src/string/memory_utils/ |
| H A D | utils_test.cpp | 39 TEST(LlvmLibcUtilsTest, Log2) { in TEST() argument
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.h | 89 Known.Zero.setLowBits(Log2(Alignment)); in computeKnownBitsForAlignment()
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsSEISelDAGToDAG.cpp | 637 int32_t Log2 = ImmValue.exactLogBase2(); in selectVSplatUimmPow2() local 639 if (Log2 != -1) { in selectVSplatUimmPow2() 640 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2() 724 int32_t Log2 = (~ImmValue).exactLogBase2(); in selectVSplatUimmInvPow2() local 726 if (Log2 != -1) { in selectVSplatUimmInvPow2() 727 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmInvPow2()
|
| H A D | MipsConstantIslandPass.cpp | 546 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(Log2(MaxAlign) + 1, in doInitialPlacement() 563 unsigned LogAlign = Log2(Alignment); in doInitialPlacement() 574 for (unsigned a = LogAlign + 1; a <= Log2(MaxAlign); ++a) in doInitialPlacement() 1259 << " la=" << Log2(Align) << '\n'); in createNewWater()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_dense_map.h | 684 unsigned Log2 = MostSignificantSetBitIndex(GetPageSizeCached() / Size); in allocateBuckets() local 685 Size <<= Log2; in allocateBuckets() 686 NumBuckets <<= Log2; in allocateBuckets()
|
| H A D | sanitizer_allocator_primary64.h | 420 counter_size_bits_log = Log2(counter_size_bits); in PackedCounterArray() 425 packing_ratio_log = Log2(packing_ratio); in PackedCounterArray() 475 page_size_scaled_log(Log2(GetPageSizeCached() >> kCompactPtrScale)) {} in FreePagesRangeTracker() 563 const uptr page_size_scaled_log = Log2(page_size_scaled); in ReleaseFreeMemoryToOS()
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/ |
| H A D | CSKYConstantIslandPass.cpp | 388 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(Log2(MaxAlign) + 1, in doInitialPlacement() 405 unsigned LogAlign = Log2(Alignment); in doInitialPlacement() 418 for (unsigned A = LogAlign + 1; A <= Log2(MaxAlign); ++A) in doInitialPlacement() 1025 << " la=" << Log2(Align) << '\n'); in createNewWater()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | HIPUtility.cpp | 141 ObjStream << " .p2align " << llvm::Log2(llvm::Align(HIPCodeObjectAlign)) in constructGenerateObjFileFromHIPFatBinary()
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsNaClELFStreamer.cpp | 273 S->emitBundleAlignMode(Log2(MIPS_NACL_BUNDLE_ALIGN)); in createMipsNaClELFStreamer()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 656 IntrinsicInst *Log2 = nullptr; in visitFMul() local 659 Log2 = cast<IntrinsicInst>(Op0); in visitFMul() 664 Log2 = cast<IntrinsicInst>(Op1); in visitFMul() 667 if (Log2) { in visitFMul() 668 Value *Log2 = Builder.CreateUnaryIntrinsic(Intrinsic::log2, X, &I); in visitFMul() local 669 Value *LogXTimesY = Builder.CreateFMulFMF(Log2, Y, &I); in visitFMul()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 570 assert(Log2(abi_align) < 16 && Log2(pref_align) < 16 && "Alignment too big"); in setAlignment()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCMCTargetDesc.cpp | 292 return (int)Log2(Offset) << (int)ELF::STO_PPC64_LOCAL_BIT; in encodePPC64LocalEntryOffset()
|