matchSimpleRecurrence overloads
Synopses
Declared in <llvm/Analysis/ValueTracking.h>
Analogous to the above, but starting from the binary operator
bool
matchSimpleRecurrence(
BinaryOperator const* I,
PHINode*& P,
Value*& Start,
Value*& Step);
Match a simple first‐order recurrence cycle from a phi node.
bool
matchSimpleRecurrence(
PHINode const* P,
BinaryOperator*& BO,
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. |
BO |
Output binary operator of the recurrence step. |
Created with MrDocs