LLVM 20.0.0git
Macros | Functions
DemandedBits.cpp File Reference
#include "llvm/Analysis/DemandedBits.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/PassManager.h"
#include "llvm/IR/PatternMatch.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Use.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/KnownBits.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cstdint>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "demanded-bits"
 

Functions

static bool isAlwaysLive (Instruction *I)
 
static APInt determineLiveOperandBitsAddCarry (unsigned OperandNo, const APInt &AOut, const KnownBits &LHS, const KnownBits &RHS, bool CarryZero, bool CarryOne)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "demanded-bits"

Definition at line 46 of file DemandedBits.cpp.

Function Documentation

◆ determineLiveOperandBitsAddCarry()

static APInt determineLiveOperandBitsAddCarry ( unsigned  OperandNo,
const APInt AOut,
const KnownBits LHS,
const KnownBits RHS,
bool  CarryZero,
bool  CarryOne 
)
static

◆ isAlwaysLive()

static bool isAlwaysLive ( Instruction I)
static

Definition at line 48 of file DemandedBits.cpp.

References I.

Referenced by llvm::DemandedBits::isInstructionDead(), and llvm::DemandedBits::isUseDead().