Get the upper bound on bit size for this Value Op as a signed integer.
Declared in <llvm/Analysis/ValueTracking.h>
unsigned int
ComputeMaxSignificantBits(
Value const* Op,
DataLayout const& DL,
AssumptionCache* AC = nullptr,
Instruction const* CxtI = nullptr,
DominatorTree const* DT = nullptr,
unsigned int Depth = 0);
i.e. x == sext(trunc(x to MaxSignificantBits) to bitwidth(x)). Similar to the APInt::getSignificantBits function.
Upper bound on significant bits needed to represent Op.
| Name | Description |
|---|---|
| Op | Value whose maximum significant bit width is computed. |
| DL | Data layout used for type sizes and pointer widths. |
| AC | Optional assumption cache for context-sensitive facts. |
| CxtI | Optional context instruction for local analysis. |
| DT | Optional dominator tree for context-sensitive analysis. |
| Depth | Current recursion depth for this query. |