9 #ifndef FIRM_BE_TEMPLATE_GEN_TEMPLATE_NEW_NODES_H
10 #define FIRM_BE_TEMPLATE_GEN_TEMPLATE_NEW_NODES_H
15 typedef enum TEMPLATE_opcodes {
43 int is_TEMPLATE_irn(
const ir_node *node);
44 int is_TEMPLATE_op(
const ir_op *op);
46 int get_TEMPLATE_irn_opcode(
const ir_node *node);
47 void TEMPLATE_create_opcodes(
void);
48 void TEMPLATE_free_opcodes(
void);
50 extern ir_op *op_TEMPLATE_Add;
52 static inline bool is_TEMPLATE_Add(
ir_node const *
const n)
62 extern ir_op *op_TEMPLATE_And;
64 static inline bool is_TEMPLATE_And(
ir_node const *
const n)
74 extern ir_op *op_TEMPLATE_Const;
76 static inline bool is_TEMPLATE_Const(
ir_node const *
const n)
86 extern ir_op *op_TEMPLATE_Jmp;
88 static inline bool is_TEMPLATE_Jmp(
ir_node const *
const n)
98 extern ir_op *op_TEMPLATE_Load;
100 static inline bool is_TEMPLATE_Load(
ir_node const *
const n)
110 extern ir_op *op_TEMPLATE_Minus;
112 static inline bool is_TEMPLATE_Minus(
ir_node const *
const n)
122 extern ir_op *op_TEMPLATE_Mul;
124 static inline bool is_TEMPLATE_Mul(
ir_node const *
const n)
134 extern ir_op *op_TEMPLATE_Not;
136 static inline bool is_TEMPLATE_Not(
ir_node const *
const n)
146 extern ir_op *op_TEMPLATE_Or;
148 static inline bool is_TEMPLATE_Or(
ir_node const *
const n)
158 extern ir_op *op_TEMPLATE_Return;
160 static inline bool is_TEMPLATE_Return(
ir_node const *
const n)
168 ir_node *new_bd_TEMPLATE_Return(
dbg_info *dbgi,
ir_node *block,
int const arity,
ir_node *
const *
const in, arch_register_req_t
const **
const in_reqs);
170 extern ir_op *op_TEMPLATE_Shl;
172 static inline bool is_TEMPLATE_Shl(
ir_node const *
const n)
182 extern ir_op *op_TEMPLATE_Shr;
184 static inline bool is_TEMPLATE_Shr(
ir_node const *
const n)
194 extern ir_op *op_TEMPLATE_Store;
196 static inline bool is_TEMPLATE_Store(
ir_node const *
const n)
206 extern ir_op *op_TEMPLATE_Sub;
208 static inline bool is_TEMPLATE_Sub(
ir_node const *
const n)
218 extern ir_op *op_TEMPLATE_Xor;
220 static inline bool is_TEMPLATE_Xor(
ir_node const *
const n)
230 extern ir_op *op_TEMPLATE_fAdd;
232 static inline bool is_TEMPLATE_fAdd(
ir_node const *
const n)
242 extern ir_op *op_TEMPLATE_fConst;
244 static inline bool is_TEMPLATE_fConst(
ir_node const *
const n)
254 extern ir_op *op_TEMPLATE_fDiv;
256 static inline bool is_TEMPLATE_fDiv(
ir_node const *
const n)
266 extern ir_op *op_TEMPLATE_fLoad;
268 static inline bool is_TEMPLATE_fLoad(
ir_node const *
const n)
278 extern ir_op *op_TEMPLATE_fMinus;
280 static inline bool is_TEMPLATE_fMinus(
ir_node const *
const n)
290 extern ir_op *op_TEMPLATE_fMul;
292 static inline bool is_TEMPLATE_fMul(
ir_node const *
const n)
302 extern ir_op *op_TEMPLATE_fStore;
304 static inline bool is_TEMPLATE_fStore(
ir_node const *
const n)
314 extern ir_op *op_TEMPLATE_fSub;
316 static inline bool is_TEMPLATE_fSub(
ir_node const *
const n)
327 typedef enum pn_TEMPLATE_Load {
328 pn_TEMPLATE_Load_res = 0,
329 pn_TEMPLATE_Load_M = 1,
332 typedef enum n_TEMPLATE_Load {
333 n_TEMPLATE_Load_mem = 0,
334 n_TEMPLATE_Load_ptr = 1,
337 typedef enum pn_TEMPLATE_Return {
338 pn_TEMPLATE_Return_X = 0,
339 } pn_TEMPLATE_Return;
341 typedef enum n_TEMPLATE_Return {
342 n_TEMPLATE_Return_mem = 0,
343 n_TEMPLATE_Return_stack = 1,
344 n_TEMPLATE_Return_first_result = 2,
347 typedef enum pn_TEMPLATE_Store {
348 pn_TEMPLATE_Store_M = 0,
351 typedef enum n_TEMPLATE_Store {
352 n_TEMPLATE_Store_mem = 0,
353 n_TEMPLATE_Store_ptr = 1,
354 n_TEMPLATE_Store_val = 2,
357 typedef enum pn_TEMPLATE_fLoad {
358 pn_TEMPLATE_fLoad_res = 0,
359 pn_TEMPLATE_fLoad_M = 1,
362 typedef enum n_TEMPLATE_fLoad {
363 n_TEMPLATE_fLoad_mem = 0,
364 n_TEMPLATE_fLoad_ptr = 1,
367 typedef enum pn_TEMPLATE_fStore {
368 pn_TEMPLATE_fStore_M = 0,
369 } pn_TEMPLATE_fStore;
371 typedef enum n_TEMPLATE_fStore {
372 n_TEMPLATE_fStore_mem = 0,
373 n_TEMPLATE_fStore_ptr = 1,
374 n_TEMPLATE_fStore_val = 2,
struct dbg_info dbg_info
Source Reference.
ir_op * get_irn_op(const ir_node *node)
Returns the opcode struct of the node.
struct ir_op ir_op
Node Opcode.
struct ir_entity ir_entity
Entity.
struct ir_tarval ir_tarval
Target Machine Value.
struct ir_node ir_node
Procedure Graph Node.