ΒΆunsigned int ComputeMaxSignificantBits(
    const llvm::Value* Op,
    const llvm::DataLayout& DL,
    unsigned int Depth = 0,
    llvm::AssumptionCache* AC = nullptr,
    const llvm::Instruction* CxtI = nullptr,
    const llvm::DominatorTree* DT = nullptr)

Description

Get the upper bound on bit size for this Value \p Op as a signed integer. i.e. x == sext(trunc(x to MaxSignificantBits) to bitwidth(x)). Similar to the APInt::getSignificantBits function.

Declared at: llvm/include/llvm/Analysis/ValueTracking.h:208

Parameters

const llvm::Value* Op
const llvm::DataLayout& DL
unsigned int Depth = 0
llvm::AssumptionCache* AC = nullptr
const llvm::Instruction* CxtI = nullptr
const llvm::DominatorTree* DT = nullptr