PIPS
replace.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "linear.h"
#include "genC.h"
#include "misc.h"
#include "ri.h"
#include "ri-util.h"
+ Include dependency graph for replace.c:

Go to the source code of this file.

Data Structures

struct  param
 

Functions

static void replace_entities_declaration_walker (statement s, hash_table ht)
 
static void replace_entities_call_walker (call c, hash_table ht)
 
static void replace_entities_expression_walker (expression parent, hash_table ht)
 
static void replace_entities_loop_walker (loop l, hash_table ht)
 
void replace_entities (void *s, hash_table ht)
 Recursively substitute a set of entities in a statement. More...
 
void replace_entity (void *s, entity old, entity new)
 per variable version of replace_entities. More...
 
void replace_reference (void *s, reference old, entity new)
 Replace an old reference by a reference to a new entity in a statement. More...
 
static void replace_entity_by_expression_expression_walker (expression e, struct param *p)
 
static void replace_entity_by_expression_entity_walker (entity e, struct param *p)
 
static void replace_entity_by_expression_declarations_walker (statement s, struct param *p)
 
static void replace_entity_by_expression_loop_walker (loop l, struct param *p)
 
void replace_entity_by_expression_with_filter (void *s, entity ent, expression exp, bool(*filter)(expression))
 
void replace_entity_by_expression (void *s, entity ent, expression exp)
 replace all reference to entity ent by expression exp in s. More...
 
void replace_entities_by_expression (void *s, hash_table ht)