LLVM 19.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 divComputeLowBit (KnownBits Known, const KnownBits &LHS, const KnownBits &RHS, bool Exact)
 

Function Documentation

◆ computeForAddCarry()

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

Definition at line 21 of file KnownBits.cpp.

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

◆ 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