fix cases where compoundlits are constant/get an entity
[cparser] / jump_target.h
1 #ifndef JUMP_TARGET_H
2 #define JUMP_TARGET_H
3
4 #include <libfirm/firm.h>
5 #include <stdbool.h>
6
7 typedef struct jump_target {
8  ir_node *block;
9  bool     first;
10 } jump_target;
11
12 static inline void init_jump_target(jump_target *const tgt, ir_node *const block)
13 {
14         tgt->block = block;
15         tgt->first = false;
16 }
17
18 void jump_from_block_to_target(jump_target *tgt, ir_node *block);
19
20 void jump_to_target(jump_target *tgt);
21
22 void add_pred_to_jump_target(jump_target *tgt, ir_node *pred);
23
24 ir_node *enter_jump_target(jump_target *tgt);
25
26 void enter_immature_jump_target(jump_target *tgt);
27
28 #endif