summaryrefslogtreecommitdiffhomepage
path: root/ir/opt/instrument.h
blob: 3f94a19f730e0141468efe446229dbe643fad512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief   Instrumentation of graphs.
 */
#ifndef FIRM_IR_INSTRUMENT_H
#define FIRM_IR_INSTRUMENT_H

#include "firm_types.h"

/**
 * Adds a Call at the beginning of the given irg.
 *
 * @param irg  the graph to instrument
 * @param ent  the entity to call
 */
void instrument_initcall(ir_graph *irg, ir_entity *ent);

#endif