Searched refs:Log2 (Results 1 - 25 of 43) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFSelectionDAGInfo.cpp30 unsigned StoresNumEstimate = alignTo(CopyLen, Alignment) >> Log2(Alignment);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMBasicBlockInfo.h34 if (KnownBits < Log2(Alignment))
105 return std::max(Log2(std::max(PostAlign, Align)), internalKnownBits());
H A DARMConstantIslandPass.cpp334 << " ua=" << unsigned(BBI.Unalign) << " pa=" << Log2(BBI.PostAlign)
487 const unsigned MaxLogAlign = Log2(MaxAlign);
516 unsigned LogAlign = Log2(Alignment);
684 BBInfo.front().KnownBits = Log2(MF->getAlignment());
1039 UserOffset += Growth + UnknownPadding(MF->getAlignment(), Log2(CPEAlign));
1328 << " la=" << Log2(Align) << " kb=" << KnownBits
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblySetP2AlignOperands.cpp68 uint64_t P2Align = Log2((*MI.memoperands_begin())->getAlign());
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerTracePC.h272 uint32_t Log2 = Log(A);
273 if (Log2 < 3) return A;
274 Log2 -= 3;
275 return (Log2 + 1) * 8 + ((A >> Log2) & 7);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZLongBranch.cpp182 if (Log2(Block.Alignment) > Position.KnownBits) {
187 Position.KnownBits = Log2(Block.Alignment);
278 BlockPosition Position(Log2(MF->getAlignment()));
342 BlockPosition Position(Log2(MF->getAlignment()));
443 BlockPosition Position(Log2(MF->getAlignment()));
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DGISelKnownBits.h84 Known.Zero.setLowBits(Log2(Alignment));
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h45 friend unsigned Log2(Align);
217 inline unsigned Log2(Align A) { return A.ShiftValue; }
H A DMathExtras.h575 /// Compile time Log2.
586 inline double Log2(double Value) { function
832 // Log2(Z) would be either Log2Z or Log2Z + 1.
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_primary64.h346 counter_size_bits_log = Log2(counter_size_bits);
351 packing_ratio_log = Log2(packing_ratio);
412 page_size_scaled_log(Log2(GetPageSizeCached() >> kCompactPtrScale)),
500 const uptr page_size_scaled_log = Log2(page_size_scaled);
H A Dsanitizer_common.h413 INLINE uptr Log2(uptr x) { function in namespace:__sanitizer
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsNaClELFStreamer.cpp273 S->emitBundleAlignMode(Log2(MIPS_NACL_BUNDLE_ALIGN));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp637 int32_t Log2 = ImmValue.exactLogBase2(); local
639 if (Log2 != -1) {
640 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy);
724 int32_t Log2 = (~ImmValue).exactLogBase2(); local
726 if (Log2 != -1) {
727 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy);
H A DMipsConstantIslandPass.cpp546 SmallVector<MachineBasicBlock::iterator, 8> InsPoint(Log2(MaxAlign) + 1,
563 unsigned LogAlign = Log2(Alignment);
574 for (unsigned a = LogAlign + 1; a <= Log2(MaxAlign); ++a)
1264 << " la=" << Log2(Align) << '\n');
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.cpp258 return (int)Log2(Offset) << (int)ELF::STO_PPC64_LOCAL_BIT;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp620 IntrinsicInst *Log2 = nullptr; local
623 Log2 = cast<IntrinsicInst>(Op0);
628 Log2 = cast<IntrinsicInst>(Op1);
631 if (Log2) {
632 Value *Log2 = Builder.CreateUnaryIntrinsic(Intrinsic::log2, X, &I); local
633 Value *LogXTimesY = Builder.CreateFMulFMF(Log2, Y, &I);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h599 return Log2(getPreferredAlign(GV));
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_thread.cpp207 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size));
H A Dasan_allocator.cpp46 u32 res = Log2(rz_size) - 4;
369 return Log2(user_requested_alignment) - 2;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp200 unsigned LogA = Log2(BoundAlignment);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp496 assert(Log2(abi_align) < 16 && Log2(pref_align) < 16 && "Alignment too big");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/LTO/
H A DLTOModule.cpp418 uint32_t attr = go ? Log2(go->getAlign().valueOrOne()) : 0;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCAssembler.cpp991 return (StartAddr >> Log2(BoundaryAlignment)) !=
992 ((EndAddr - 1) >> Log2(BoundaryAlignment));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCFrameLowering.cpp899 assert(Log2(MaxAlign) < 16 && "Invalid alignment!");
1060 .addImm(64 - Log2(MaxAlign));
1065 .addImm(32 - Log2(MaxAlign))
1462 .addImm(64 - Log2(MaxAlign));
1467 .addImm(32 - Log2(MaxAlign))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp796 DstPtr = MIRBuilder.buildMaskLowPtrBits(PtrTy, ListTmp, Log2(Alignment));

Completed in 167 milliseconds

12