compiler/AST/ForallStmt.cpp
// If 'var' is listed in this's with-clause with a reduce intent,
// return its position in the with-clause, otherwise return -1.
// Used in preFold for PRIM_REDUCE_ASSIGN, set up in normalize.
If 'var' is listed in this's with-clause with a reduce intent,
return its position in the with-clause, otherwise return -1.
Used in preFold for PRIM_REDUCE_ASSIGN, set up in normalize.
If ' var ' is listed in this ' s with - clause with a reduce intent return its position in the with - clause otherwise return - 1 . Used in preFold for PRIM_REDUCE_ASSIGN set up in normalize .
int ForallStmt::reduceIntentIdx(Symbol* var) {
  int idx = 0;
  for_shadow_vars(sv, temp, this) {
    idx++;
    if (sv->isReduce())
      if (sv == var)
        return idx;
  }
  return -1;
}
int ForallStmt :: reduceIntentIdx ( Symbol * var ) { int idx = 0 ; for_shadow_vars ( sv , temp , this ) { idx ++ ; if ( sv -> isReduce ( ) ) if ( sv == var ) return idx ; } return -1 ; }
If 'var' is listed in this's with-clause with a reduce intent,
return its position in the with-clause, otherwise return -1.
If ' var ' is listed in this ' s with - clause with a reduce intent return its position in the with - clause otherwise return - 1 .
// Did not see 'var' with a reduce intent.