ast2firm: Implement casting from complex to real types.
[cparser] / jump_target.h
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2012 Christoph Mallon <christoph.mallon@gmx.de>
4  */
5 #ifndef JUMP_TARGET_H
6 #define JUMP_TARGET_H
7
8 #include <libfirm/firm.h>
9 #include <stdbool.h>
10
11 typedef struct jump_target {
12  ir_node *block;
13  bool     first;
14 } jump_target;
15
16 static inline void init_jump_target(jump_target *const tgt, ir_node *const block)
17 {
18         tgt->block = block;
19         tgt->first = false;
20 }
21
22 void jump_from_block_to_target(jump_target *tgt, ir_node *block);
23
24 void jump_to_target(jump_target *tgt);
25
26 void add_pred_to_jump_target(jump_target *tgt, ir_node *pred);
27
28 ir_node *enter_jump_target(jump_target *tgt);
29
30 void enter_immature_jump_target(jump_target *tgt);
31
32 #endif