ΒΆbool ComputeMultiple(llvm::Value* V,
unsigned int Base,
llvm::Value*& Multiple,
bool LookThroughSExt = false,
unsigned int Depth = 0)
bool ComputeMultiple(llvm::Value* V,
unsigned int Base,
llvm::Value*& Multiple,
bool LookThroughSExt = false,
unsigned int Depth = 0)
Description
This function computes the integer multiple of Base that equals V. If successful, it returns true and returns the multiple in Multiple. If unsuccessful, it returns false. Also, if V can be simplified to an integer, then the simplified V is returned in Val. Look through sext only if LookThroughSExt=true.
Declared at: llvm/include/llvm/Analysis/ValueTracking.h:182
Parameters
- llvm::Value* V
- unsigned int Base
- llvm::Value*& Multiple
- bool LookThroughSExt = false
- unsigned int Depth = 0