compiler/passes/normalize.cpp
//
// handle reduce specs of shadow vars
//
handle reduce specs of shadow vars
handle reduce specs of shadow vars
static void insertCallTempsForRiSpecs(BaseAST* base) {
  std::vector<ForallStmt*> forallStmts;
  collectForallStmts(base, forallStmts);
  for_vector(ForallStmt, fs, forallStmts) {
    for_shadow_vars(svar, temp, fs) {
      if (CallExpr* specCall = toCallExpr(svar->reduceOpExpr())) {
        insertCallTempsWithStmt(specCall, fs);
      }
    }
  }
}
static void insertCallTempsForRiSpecs ( BaseAST * base ) { std :: vector < ForallStmt * > forallStmts ; collectForallStmts ( base , forallStmts ) ; for_vector ( ForallStmt , fs , forallStmts ) { for_shadow_vars ( svar , temp , fs ) { if ( CallExpr * specCall = toCallExpr ( svar -> reduceOpExpr ( ) ) ) { insertCallTempsWithStmt ( specCall , fs ) ; } } } }
handle reduce specs of shadow vars
handle reduce specs of shadow vars