LLVM 20.0.0git
Functions
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 avgCompute (KnownBits LHS, KnownBits RHS, bool IsCeil, bool IsSigned)
 
static KnownBits divComputeLowBit (KnownBits Known, const KnownBits &LHS, const KnownBits &RHS, bool Exact)
 

Function Documentation

◆ avgCompute()

static KnownBits avgCompute ( KnownBits  LHS,
KnownBits  RHS,
bool  IsCeil,
bool  IsSigned 
)
static

◆ computeForAddCarry()

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

Definition at line 21 of file KnownBits.cpp.

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

Referenced by avgCompute().

◆ computeForSatAddSub()

static KnownBits computeForSatAddSub ( bool  Add,
bool  Signed,
const KnownBits LHS,
const KnownBits RHS 
)
static

◆ divComputeLowBit()

static KnownBits divComputeLowBit ( KnownBits  Known,
const KnownBits LHS,
const KnownBits RHS,
bool  Exact 
)
static

◆ getMaxShiftAmount()

static unsigned getMaxShiftAmount ( const APInt MaxValue,
unsigned  BitWidth 
)
static