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

/freebsd-12-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.cpp339 << " ua=" << unsigned(BBI.Unalign) << " pa=" << Log2(BBI.PostAlign)
498 const unsigned MaxLogAlign = Log2(MaxAlign);
696 BBInfo.front().KnownBits = Log2(MF->getAlignment());
1051 UserOffset += Growth + UnknownPadding(MF->getAlignment(), Log2(CPEAlign));
1340 << " la=" << Log2(Align) << " kb=" << KnownBits
/freebsd-12-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-12-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-12-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h46 friend unsigned Log2(Align);
204 inline unsigned Log2(Align A) { return A.ShiftValue; }
208 inline unsigned Log2(MaybeAlign A) {
210 return Log2(A.getValue());
H A DMathExtras.h563 /// Compile time Log2.
574 inline double Log2(double Value) { function
821 // Log2(Z) would be either Log2Z or Log2Z + 1.
/freebsd-12-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,
575 for (unsigned a = LogAlign + 1; a <= Log2(MaxAlign); ++a)
1265 << " la=" << Log2(Align) << '\n');
H A DMipsSEISelLowering.cpp511 unsigned Log2 = Log2IfPositive; local
513 if ((Op0Opcode == MipsISD::VEXTRACT_ZEXT_ELT && Log2 >= ExtendTySize) ||
514 Log2 == ExtendTySize) {
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_primary64.h342 counter_size_bits_log = Log2(counter_size_bits);
347 packing_ratio_log = Log2(packing_ratio);
408 page_size_scaled_log(Log2(GetPageSizeCached() >> kCompactPtrScale)),
496 const uptr page_size_scaled_log = Log2(page_size_scaled);
H A Dsanitizer_common.h412 INLINE uptr Log2(uptr x) { function in namespace:__sanitizer
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsNaClELFStreamer.cpp273 S->EmitBundleAlignMode(Log2(MIPS_NACL_BUNDLE_ALIGN));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp554 IntrinsicInst *Log2 = nullptr; local
557 Log2 = cast<IntrinsicInst>(Op0);
562 Log2 = cast<IntrinsicInst>(Op1);
565 if (Log2) {
566 Log2->setArgOperand(0, X);
567 Log2->copyFastMathFlags(&I);
568 Value *LogXTimesY = Builder.CreateFMulFMF(Log2, Y, &I);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp194 unsigned LogA = Log2(BoundAlignment);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp62 Known.Zero.setLowBits(Log2(Alignment));
/freebsd-12-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-12-stable/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp491 assert(Log2(abi_align) < 16 && Log2(pref_align) < 16 && "Alignment too big");
H A DConstantFold.cpp1199 unsigned SrcWidth = std::min(DstWidth, Log2(*GVAlign));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/MC/
H A DMCAssembler.cpp969 return (StartAddr >> Log2(BoundaryAlignment)) !=
970 ((EndAddr - 1) >> Log2(BoundaryAlignment));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp1797 return ConstantFoldFP(Log2, V, Ty);
1902 return ConstantFoldFP(Log2, V, Ty);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineBasicBlock.cpp331 OS << "align " << Log2(getAlignment());
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAsmPrinter.cpp1280 Out.kernarg_segment_alignment = Log2(std::max(Align(16), MaxKernArgAlign));
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1525 int Log2 = DemandedBits.exactLogBase2(); local
1526 if (Log2 >= 0) {
1529 TLO.DAG.getConstant(BitWidth - 1 - Log2, dl, Op1.getValueType());

Completed in 466 milliseconds