LLVM  13.0.0git
Macros | Functions | Variables
DemandedBits.cpp File Reference
#include "llvm/Analysis/DemandedBits.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Module.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/InitializePasses.h"
#include "llvm/Pass.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>
Include dependency graph for DemandedBits.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "demanded-bits"
 

Functions

 INITIALIZE_PASS_BEGIN (DemandedBitsWrapperPass, "demanded-bits", "Demanded bits analysis", false, false) INITIALIZE_PASS_END(DemandedBitsWrapperPass
 
static bool isAlwaysLive (Instruction *I)
 
static APInt determineLiveOperandBitsAddCarry (unsigned OperandNo, const APInt &AOut, const KnownBits &LHS, const KnownBits &RHS, bool CarryZero, bool CarryOne)
 

Variables

demanded bits
 
demanded Demanded bits analysis
 
demanded Demanded bits false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "demanded-bits"

Definition at line 55 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

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( DemandedBitsWrapperPass  ,
"demanded-bits ,
"Demanded bits analysis ,
false  ,
false   
)

◆ isAlwaysLive()

static bool isAlwaysLive ( Instruction I)
static

Definition at line 81 of file DemandedBits.cpp.

References I.

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

Variable Documentation

◆ analysis

demanded Demanded bits analysis

Definition at line 64 of file DemandedBits.cpp.

◆ bits

demanded bits

◆ false

demanded Demanded bits false

Definition at line 64 of file DemandedBits.cpp.