Analogous to the above, but starting from the binary operator
Synopsis
Declared in <llvm/Analysis/ValueTracking.h>
bool
matchSimpleRecurrence(
BinaryOperator const* I,
PHINode*& P,
Value*& Start,
Value*& Step);
Return Value
True if a simple recurrence was matched.
Parameters
Name |
Description |
I |
Binary operator that may be the recurrence step. |
P |
Output phi node of the matched recurrence. |
Start |
Output starting value of the recurrence. |
Step |
Output step operand of the recurrence. |
Created with MrDocs