9 #ifndef FIRM_BE_TEMPLATE_GEN_TEMPLATE_NEW_NODES_H 10 #define FIRM_BE_TEMPLATE_GEN_TEMPLATE_NEW_NODES_H 14 #include "TEMPLATE_nodes_attr.h" 16 typedef enum TEMPLATE_opcodes {
44 int is_TEMPLATE_irn(
const ir_node *node);
45 int is_TEMPLATE_op(
const ir_op *op);
47 int get_TEMPLATE_irn_opcode(
const ir_node *node);
48 void TEMPLATE_create_opcodes(
void);
49 void TEMPLATE_free_opcodes(
void);
51 extern ir_op *op_TEMPLATE_Add;
53 static inline bool is_TEMPLATE_Add(
ir_node const *
const n)
63 extern ir_op *op_TEMPLATE_And;
65 static inline bool is_TEMPLATE_And(
ir_node const *
const n)
75 extern ir_op *op_TEMPLATE_Const;
77 static inline bool is_TEMPLATE_Const(
ir_node const *
const n)
87 extern ir_op *op_TEMPLATE_Jmp;
89 static inline bool is_TEMPLATE_Jmp(
ir_node const *
const n)
99 extern ir_op *op_TEMPLATE_Load;
101 static inline bool is_TEMPLATE_Load(
ir_node const *
const n)
111 extern ir_op *op_TEMPLATE_Minus;
113 static inline bool is_TEMPLATE_Minus(
ir_node const *
const n)
123 extern ir_op *op_TEMPLATE_Mul;
125 static inline bool is_TEMPLATE_Mul(
ir_node const *
const n)
135 extern ir_op *op_TEMPLATE_Not;
137 static inline bool is_TEMPLATE_Not(
ir_node const *
const n)
147 extern ir_op *op_TEMPLATE_Or;
149 static inline bool is_TEMPLATE_Or(
ir_node const *
const n)
159 extern ir_op *op_TEMPLATE_Return;
161 static inline bool is_TEMPLATE_Return(
ir_node const *
const n)
169 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);
171 extern ir_op *op_TEMPLATE_Shl;
173 static inline bool is_TEMPLATE_Shl(
ir_node const *
const n)
183 extern ir_op *op_TEMPLATE_Shr;
185 static inline bool is_TEMPLATE_Shr(
ir_node const *
const n)
195 extern ir_op *op_TEMPLATE_Store;
197 static inline bool is_TEMPLATE_Store(
ir_node const *
const n)
207 extern ir_op *op_TEMPLATE_Sub;
209 static inline bool is_TEMPLATE_Sub(
ir_node const *
const n)
219 extern ir_op *op_TEMPLATE_Xor;
221 static inline bool is_TEMPLATE_Xor(
ir_node const *
const n)
231 extern ir_op *op_TEMPLATE_fAdd;
233 static inline bool is_TEMPLATE_fAdd(
ir_node const *
const n)
243 extern ir_op *op_TEMPLATE_fConst;
245 static inline bool is_TEMPLATE_fConst(
ir_node const *
const n)
255 extern ir_op *op_TEMPLATE_fDiv;
257 static inline bool is_TEMPLATE_fDiv(
ir_node const *
const n)
267 extern ir_op *op_TEMPLATE_fLoad;
269 static inline bool is_TEMPLATE_fLoad(
ir_node const *
const n)
279 extern ir_op *op_TEMPLATE_fMinus;
281 static inline bool is_TEMPLATE_fMinus(
ir_node const *
const n)
291 extern ir_op *op_TEMPLATE_fMul;
293 static inline bool is_TEMPLATE_fMul(
ir_node const *
const n)
303 extern ir_op *op_TEMPLATE_fStore;
305 static inline bool is_TEMPLATE_fStore(
ir_node const *
const n)
315 extern ir_op *op_TEMPLATE_fSub;
317 static inline bool is_TEMPLATE_fSub(
ir_node const *
const n)
328 typedef enum pn_TEMPLATE_Load {
329 pn_TEMPLATE_Load_res = 0,
330 pn_TEMPLATE_Load_M = 1,
333 typedef enum n_TEMPLATE_Load {
334 n_TEMPLATE_Load_mem = 0,
335 n_TEMPLATE_Load_ptr = 1,
338 typedef enum pn_TEMPLATE_Return {
339 pn_TEMPLATE_Return_X = 0,
340 } pn_TEMPLATE_Return;
342 typedef enum n_TEMPLATE_Return {
343 n_TEMPLATE_Return_mem = 0,
344 n_TEMPLATE_Return_stack = 1,
345 n_TEMPLATE_Return_first_result = 2,
348 typedef enum pn_TEMPLATE_Store {
349 pn_TEMPLATE_Store_M = 0,
352 typedef enum n_TEMPLATE_Store {
353 n_TEMPLATE_Store_mem = 0,
354 n_TEMPLATE_Store_ptr = 1,
355 n_TEMPLATE_Store_val = 2,
358 typedef enum pn_TEMPLATE_fLoad {
359 pn_TEMPLATE_fLoad_res = 0,
360 pn_TEMPLATE_fLoad_M = 1,
363 typedef enum n_TEMPLATE_fLoad {
364 n_TEMPLATE_fLoad_mem = 0,
365 n_TEMPLATE_fLoad_ptr = 1,
368 typedef enum pn_TEMPLATE_fStore {
369 pn_TEMPLATE_fStore_M = 0,
370 } pn_TEMPLATE_fStore;
372 typedef enum n_TEMPLATE_fStore {
373 n_TEMPLATE_fStore_mem = 0,
374 n_TEMPLATE_fStore_ptr = 1,
375 n_TEMPLATE_fStore_val = 2,
struct ir_op ir_op
Node Opcode.
struct dbg_info dbg_info
Source Reference.
struct ir_tarval ir_tarval
Target Machine Value.
ir_op * get_irn_op(const ir_node *node)
Returns the opcode struct of the node.
struct ir_entity ir_entity
Entity.
struct ir_node ir_node
Procedure Graph Node.