LLVM: llvm::DemandedBits Class Reference (original) (raw)

#include "[llvm/Analysis/DemandedBits.h](DemandedBits%5F8h%5Fsource.html)"

Public Member Functions
DemandedBits (Function &F, AssumptionCache &AC, DominatorTree &DT)
LLVM_ABI APInt getDemandedBits (Instruction *I)
Return the bits demanded from instruction I.
LLVM_ABI APInt getDemandedBits (Use *U)
Return the bits demanded from use U.
LLVM_ABI bool isInstructionDead (Instruction *I)
Return true if, during analysis, I could not be reached.
LLVM_ABI bool isUseDead (Use *U)
Return whether this use is dead by means of not having any demanded bits.
LLVM_ABI void print (raw_ostream &OS)

Definition at line 41 of file DemandedBits.h.

determineLiveOperandBitsAdd()

determineLiveOperandBitsSub()

getDemandedBits() [1/2]

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.

Definition at line 467 of file DemandedBits.cpp.

References DL, llvm::APInt::getAllOnes(), and I.

Referenced by getDemandedBits(), and print().

getDemandedBits() [2/2]

APInt DemandedBits::getDemandedBits ( Use * U )

isInstructionDead()

isUseDead()

bool DemandedBits::isUseDead ( Use * U )

print()


The documentation for this class was generated from the following files: