class DemandedBits
Declaration
class DemandedBits { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Analysis/DemandedBits.h:40
Method Overview
- public DemandedBits(llvm::Function & F, llvm::AssumptionCache & AC, llvm::DominatorTree & DT)
- public llvm::APInt getDemandedBits(llvm::Instruction * I)
- public bool isInstructionDead(llvm::Instruction * I)
- public bool isUseDead(llvm::Use * U)
- public void print(llvm::raw_ostream & OS)
Methods
¶DemandedBits(llvm::Function& F,
llvm::AssumptionCache& AC,
llvm::DominatorTree& DT)
DemandedBits(llvm::Function& F,
llvm::AssumptionCache& AC,
llvm::DominatorTree& DT)
Declared at: llvm/include/llvm/Analysis/DemandedBits.h:42
Parameters
¶llvm::APInt getDemandedBits(llvm::Instruction* I)
llvm::APInt getDemandedBits(llvm::Instruction* I)
Description
Return the bits demanded from instruction I. For vector instructions individual vector elements are not distinguished: A bit is demanded if it is demanded for any of the vector elements. The size of the return value corresponds to the type size in bits of the scalar type. Instructions that do not have integer or vector of integer type are accepted, but will always produce a mask with all bits set.
Declared at: llvm/include/llvm/Analysis/DemandedBits.h:54
Parameters
¶bool isInstructionDead(llvm::Instruction* I)
bool isInstructionDead(llvm::Instruction* I)
Description
Return true if, during analysis, I could not be reached.
Declared at: llvm/include/llvm/Analysis/DemandedBits.h:57
Parameters
¶bool isUseDead(llvm::Use* U)
bool isUseDead(llvm::Use* U)
Description
Return whether this use is dead by means of not having any demanded bits.
Declared at: llvm/include/llvm/Analysis/DemandedBits.h:60
Parameters
- llvm::Use* U
¶void print(llvm::raw_ostream& OS)
void print(llvm::raw_ostream& OS)
Declared at: llvm/include/llvm/Analysis/DemandedBits.h:62