LLVM 22.0.0git
KnownBits.cpp File Reference
#include "llvm/Support/KnownBits.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>

Go to the source code of this file.

Functions

static KnownBits computeForAddCarry (const KnownBits &LHS, const KnownBits &RHS, bool CarryZero, bool CarryOne)
static unsigned getMaxShiftAmount (const APInt &MaxValue, unsigned BitWidth)
static KnownBits computeForSatAddSub (bool Add, bool Signed, const KnownBits &LHS, const KnownBits &RHS)
static KnownBits avgComputeU (KnownBits LHS, KnownBits RHS, bool IsCeil)
static KnownBits divComputeLowBit (KnownBits Known, const KnownBits &LHS, const KnownBits &RHS, bool Exact)

Function Documentation

◆ avgComputeU()

KnownBits avgComputeU ( KnownBits LHS,
KnownBits RHS,
bool IsCeil )
static

Definition at line 774 of file KnownBits.cpp.

References llvm::BitWidth, computeForAddCarry(), LHS, and RHS.

Referenced by llvm::KnownBits::avgCeilU(), and llvm::KnownBits::avgFloorU().

◆ computeForAddCarry()

KnownBits computeForAddCarry ( const KnownBits & LHS,
const KnownBits & RHS,
bool CarryZero,
bool CarryOne )
static

Definition at line 30 of file KnownBits.cpp.

References LHS, llvm::move(), llvm::KnownBits::One, RHS, and llvm::KnownBits::Zero.

Referenced by avgComputeU().

◆ computeForSatAddSub()

◆ divComputeLowBit()

◆ getMaxShiftAmount()