ΒΆbool decomposeBitTestICmp(
llvm::Value* LHS,
llvm::Value* RHS,
CmpInst::Predicate& Pred,
llvm::Value*& X,
llvm::APInt& Mask,
bool LookThroughTrunc = true)
bool decomposeBitTestICmp(
llvm::Value* LHS,
llvm::Value* RHS,
CmpInst::Predicate& Pred,
llvm::Value*& X,
llvm::APInt& Mask,
bool LookThroughTrunc = true)
Description
Decompose an icmp into the form ((X & Mask) pred 0) if possible. The returned predicate is either == or !=. Returns false if decomposition fails.
Declared at: llvm/include/llvm/Analysis/CmpInstAnalysis.h:64
Parameters
- llvm::Value* LHS
- llvm::Value* RHS
- CmpInst::Predicate& Pred
- llvm::Value*& X
- llvm::APInt& Mask
- bool LookThroughTrunc = true