LLVM 24.0.0git
llvm::SignBitsOps Namespace Reference

Functions

LLVM_ABI unsigned rot (unsigned SrcSignBits, unsigned BitWidth, std::optional< APInt > RotAmt, bool IsRotateRight)
 Compute the number of sign bits after rotating a value.

Function Documentation

◆ rot()

unsigned llvm::SignBitsOps::rot ( unsigned SrcSignBits,
unsigned BitWidth,
std::optional< APInt > RotAmt,
bool IsRotateRight )

Compute the number of sign bits after rotating a value.

Definition at line 1450 of file KnownBits.cpp.

References llvm::BitWidth.

Referenced by llvm::SelectionDAG::ComputeNumSignBits(), and llvm::GISelValueTracking::computeNumSignBits().