libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
gen_riscv_new_nodes.h
1 
9 #ifndef FIRM_BE_RISCV_GEN_RISCV_NEW_NODES_H
10 #define FIRM_BE_RISCV_GEN_RISCV_NEW_NODES_H
11 
12 #include "be_types.h"
13 #include "irnode_t.h"
14 #include "riscv_nodes_attr.h"
15 
16 typedef enum riscv_opcodes {
17  iro_riscv_add,
18  iro_riscv_addi,
19  iro_riscv_and,
20  iro_riscv_andi,
21  iro_riscv_bcc,
22  iro_riscv_div,
23  iro_riscv_divu,
24  iro_riscv_ijmp,
25  iro_riscv_j,
26  iro_riscv_jal,
27  iro_riscv_jalr,
28  iro_riscv_lb,
29  iro_riscv_lbu,
30  iro_riscv_lh,
31  iro_riscv_lhu,
32  iro_riscv_lui,
33  iro_riscv_lw,
34  iro_riscv_mul,
35  iro_riscv_mulh,
36  iro_riscv_mulhu,
37  iro_riscv_or,
38  iro_riscv_ori,
39  iro_riscv_rem,
40  iro_riscv_remu,
41  iro_riscv_ret,
42  iro_riscv_sb,
43  iro_riscv_sh,
44  iro_riscv_sll,
45  iro_riscv_slli,
46  iro_riscv_slt,
47  iro_riscv_sltiu,
48  iro_riscv_sltu,
49  iro_riscv_sra,
50  iro_riscv_srai,
51  iro_riscv_srl,
52  iro_riscv_srli,
53  iro_riscv_sub,
54  iro_riscv_sw,
55  iro_riscv_switch,
56  iro_riscv_xor,
57  iro_riscv_xori,
58  iro_riscv_last
59 } riscv_opcodes;
60 
61 
62 int is_riscv_irn(const ir_node *node);
63 int is_riscv_op(const ir_op *op);
64 
65 int get_riscv_irn_opcode(const ir_node *node);
66 void riscv_create_opcodes(void);
67 void riscv_free_opcodes(void);
68 
69 extern ir_op *op_riscv_add;
70 
71 static inline bool is_riscv_add(ir_node const *const n)
72 {
73  return get_irn_op(n) == op_riscv_add;
74 }
75 
79 ir_node *new_bd_riscv_add(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
80 
81 extern ir_op *op_riscv_addi;
82 
83 static inline bool is_riscv_addi(ir_node const *const n)
84 {
85  return get_irn_op(n) == op_riscv_addi;
86 }
87 
91 ir_node *new_bd_riscv_addi(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
92 
93 extern ir_op *op_riscv_and;
94 
95 static inline bool is_riscv_and(ir_node const *const n)
96 {
97  return get_irn_op(n) == op_riscv_and;
98 }
99 
103 ir_node *new_bd_riscv_and(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
104 
105 extern ir_op *op_riscv_andi;
106 
107 static inline bool is_riscv_andi(ir_node const *const n)
108 {
109  return get_irn_op(n) == op_riscv_andi;
110 }
111 
115 ir_node *new_bd_riscv_andi(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
116 
117 extern ir_op *op_riscv_bcc;
118 
119 static inline bool is_riscv_bcc(ir_node const *const n)
120 {
121  return get_irn_op(n) == op_riscv_bcc;
122 }
123 
127 ir_node *new_bd_riscv_bcc(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right, riscv_cond_t const cond);
128 
129 extern ir_op *op_riscv_div;
130 
131 static inline bool is_riscv_div(ir_node const *const n)
132 {
133  return get_irn_op(n) == op_riscv_div;
134 }
135 
139 ir_node *new_bd_riscv_div(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
140 
141 extern ir_op *op_riscv_divu;
142 
143 static inline bool is_riscv_divu(ir_node const *const n)
144 {
145  return get_irn_op(n) == op_riscv_divu;
146 }
147 
151 ir_node *new_bd_riscv_divu(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
152 
153 extern ir_op *op_riscv_ijmp;
154 
155 static inline bool is_riscv_ijmp(ir_node const *const n)
156 {
157  return get_irn_op(n) == op_riscv_ijmp;
158 }
159 
163 ir_node *new_bd_riscv_ijmp(dbg_info *dbgi, ir_node *block, ir_node *op0);
164 
165 extern ir_op *op_riscv_j;
166 
167 static inline bool is_riscv_j(ir_node const *const n)
168 {
169  return get_irn_op(n) == op_riscv_j;
170 }
171 
175 ir_node *new_bd_riscv_j(dbg_info *dbgi, ir_node *block);
176 
177 extern ir_op *op_riscv_jal;
178 
179 static inline bool is_riscv_jal(ir_node const *const n)
180 {
181  return get_irn_op(n) == op_riscv_jal;
182 }
183 
187 ir_node *new_bd_riscv_jal(dbg_info *dbgi, ir_node *block, int const arity, ir_node *const *const in, arch_register_req_t const **const in_reqs, int n_res, ir_entity *const ent, int32_t const val);
188 
189 extern ir_op *op_riscv_jalr;
190 
191 static inline bool is_riscv_jalr(ir_node const *const n)
192 {
193  return get_irn_op(n) == op_riscv_jalr;
194 }
195 
199 ir_node *new_bd_riscv_jalr(dbg_info *dbgi, ir_node *block, int const arity, ir_node *const *const in, arch_register_req_t const **const in_reqs, int n_res);
200 
201 extern ir_op *op_riscv_lb;
202 
203 static inline bool is_riscv_lb(ir_node const *const n)
204 {
205  return get_irn_op(n) == op_riscv_lb;
206 }
207 
211 ir_node *new_bd_riscv_lb(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_entity *const ent, int32_t const val);
212 
213 extern ir_op *op_riscv_lbu;
214 
215 static inline bool is_riscv_lbu(ir_node const *const n)
216 {
217  return get_irn_op(n) == op_riscv_lbu;
218 }
219 
223 ir_node *new_bd_riscv_lbu(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_entity *const ent, int32_t const val);
224 
225 extern ir_op *op_riscv_lh;
226 
227 static inline bool is_riscv_lh(ir_node const *const n)
228 {
229  return get_irn_op(n) == op_riscv_lh;
230 }
231 
235 ir_node *new_bd_riscv_lh(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_entity *const ent, int32_t const val);
236 
237 extern ir_op *op_riscv_lhu;
238 
239 static inline bool is_riscv_lhu(ir_node const *const n)
240 {
241  return get_irn_op(n) == op_riscv_lhu;
242 }
243 
247 ir_node *new_bd_riscv_lhu(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_entity *const ent, int32_t const val);
248 
249 extern ir_op *op_riscv_lui;
250 
251 static inline bool is_riscv_lui(ir_node const *const n)
252 {
253  return get_irn_op(n) == op_riscv_lui;
254 }
255 
259 ir_node *new_bd_riscv_lui(dbg_info *dbgi, ir_node *block, ir_entity *const ent, int32_t const val);
260 
261 extern ir_op *op_riscv_lw;
262 
263 static inline bool is_riscv_lw(ir_node const *const n)
264 {
265  return get_irn_op(n) == op_riscv_lw;
266 }
267 
271 ir_node *new_bd_riscv_lw(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_entity *const ent, int32_t const val);
272 
273 extern ir_op *op_riscv_mul;
274 
275 static inline bool is_riscv_mul(ir_node const *const n)
276 {
277  return get_irn_op(n) == op_riscv_mul;
278 }
279 
283 ir_node *new_bd_riscv_mul(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
284 
285 extern ir_op *op_riscv_mulh;
286 
287 static inline bool is_riscv_mulh(ir_node const *const n)
288 {
289  return get_irn_op(n) == op_riscv_mulh;
290 }
291 
295 ir_node *new_bd_riscv_mulh(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
296 
297 extern ir_op *op_riscv_mulhu;
298 
299 static inline bool is_riscv_mulhu(ir_node const *const n)
300 {
301  return get_irn_op(n) == op_riscv_mulhu;
302 }
303 
307 ir_node *new_bd_riscv_mulhu(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
308 
309 extern ir_op *op_riscv_or;
310 
311 static inline bool is_riscv_or(ir_node const *const n)
312 {
313  return get_irn_op(n) == op_riscv_or;
314 }
315 
319 ir_node *new_bd_riscv_or(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
320 
321 extern ir_op *op_riscv_ori;
322 
323 static inline bool is_riscv_ori(ir_node const *const n)
324 {
325  return get_irn_op(n) == op_riscv_ori;
326 }
327 
331 ir_node *new_bd_riscv_ori(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
332 
333 extern ir_op *op_riscv_rem;
334 
335 static inline bool is_riscv_rem(ir_node const *const n)
336 {
337  return get_irn_op(n) == op_riscv_rem;
338 }
339 
343 ir_node *new_bd_riscv_rem(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
344 
345 extern ir_op *op_riscv_remu;
346 
347 static inline bool is_riscv_remu(ir_node const *const n)
348 {
349  return get_irn_op(n) == op_riscv_remu;
350 }
351 
355 ir_node *new_bd_riscv_remu(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
356 
357 extern ir_op *op_riscv_ret;
358 
359 static inline bool is_riscv_ret(ir_node const *const n)
360 {
361  return get_irn_op(n) == op_riscv_ret;
362 }
363 
367 ir_node *new_bd_riscv_ret(dbg_info *dbgi, ir_node *block, int const arity, ir_node *const *const in, arch_register_req_t const **const in_reqs);
368 
369 extern ir_op *op_riscv_sb;
370 
371 static inline bool is_riscv_sb(ir_node const *const n)
372 {
373  return get_irn_op(n) == op_riscv_sb;
374 }
375 
379 ir_node *new_bd_riscv_sb(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_node *value, ir_entity *const ent, int32_t const val);
380 
381 extern ir_op *op_riscv_sh;
382 
383 static inline bool is_riscv_sh(ir_node const *const n)
384 {
385  return get_irn_op(n) == op_riscv_sh;
386 }
387 
391 ir_node *new_bd_riscv_sh(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_node *value, ir_entity *const ent, int32_t const val);
392 
393 extern ir_op *op_riscv_sll;
394 
395 static inline bool is_riscv_sll(ir_node const *const n)
396 {
397  return get_irn_op(n) == op_riscv_sll;
398 }
399 
403 ir_node *new_bd_riscv_sll(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
404 
405 extern ir_op *op_riscv_slli;
406 
407 static inline bool is_riscv_slli(ir_node const *const n)
408 {
409  return get_irn_op(n) == op_riscv_slli;
410 }
411 
415 ir_node *new_bd_riscv_slli(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
416 
417 extern ir_op *op_riscv_slt;
418 
419 static inline bool is_riscv_slt(ir_node const *const n)
420 {
421  return get_irn_op(n) == op_riscv_slt;
422 }
423 
427 ir_node *new_bd_riscv_slt(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
428 
429 extern ir_op *op_riscv_sltiu;
430 
431 static inline bool is_riscv_sltiu(ir_node const *const n)
432 {
433  return get_irn_op(n) == op_riscv_sltiu;
434 }
435 
439 ir_node *new_bd_riscv_sltiu(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
440 
441 extern ir_op *op_riscv_sltu;
442 
443 static inline bool is_riscv_sltu(ir_node const *const n)
444 {
445  return get_irn_op(n) == op_riscv_sltu;
446 }
447 
451 ir_node *new_bd_riscv_sltu(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
452 
453 extern ir_op *op_riscv_sra;
454 
455 static inline bool is_riscv_sra(ir_node const *const n)
456 {
457  return get_irn_op(n) == op_riscv_sra;
458 }
459 
463 ir_node *new_bd_riscv_sra(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
464 
465 extern ir_op *op_riscv_srai;
466 
467 static inline bool is_riscv_srai(ir_node const *const n)
468 {
469  return get_irn_op(n) == op_riscv_srai;
470 }
471 
475 ir_node *new_bd_riscv_srai(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
476 
477 extern ir_op *op_riscv_srl;
478 
479 static inline bool is_riscv_srl(ir_node const *const n)
480 {
481  return get_irn_op(n) == op_riscv_srl;
482 }
483 
487 ir_node *new_bd_riscv_srl(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
488 
489 extern ir_op *op_riscv_srli;
490 
491 static inline bool is_riscv_srli(ir_node const *const n)
492 {
493  return get_irn_op(n) == op_riscv_srli;
494 }
495 
499 ir_node *new_bd_riscv_srli(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
500 
501 extern ir_op *op_riscv_sub;
502 
503 static inline bool is_riscv_sub(ir_node const *const n)
504 {
505  return get_irn_op(n) == op_riscv_sub;
506 }
507 
511 ir_node *new_bd_riscv_sub(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
512 
513 extern ir_op *op_riscv_sw;
514 
515 static inline bool is_riscv_sw(ir_node const *const n)
516 {
517  return get_irn_op(n) == op_riscv_sw;
518 }
519 
523 ir_node *new_bd_riscv_sw(dbg_info *dbgi, ir_node *block, ir_node *mem, ir_node *base, ir_node *value, ir_entity *const ent, int32_t const val);
524 
525 extern ir_op *op_riscv_switch;
526 
527 static inline bool is_riscv_switch(ir_node const *const n)
528 {
529  return get_irn_op(n) == op_riscv_switch;
530 }
531 
535 ir_node *new_bd_riscv_switch(dbg_info *dbgi, ir_node *block, ir_node *op0, int n_res, const ir_switch_table *table, ir_entity *table_entity);
536 
537 extern ir_op *op_riscv_xor;
538 
539 static inline bool is_riscv_xor(ir_node const *const n)
540 {
541  return get_irn_op(n) == op_riscv_xor;
542 }
543 
547 ir_node *new_bd_riscv_xor(dbg_info *dbgi, ir_node *block, ir_node *left, ir_node *right);
548 
549 extern ir_op *op_riscv_xori;
550 
551 static inline bool is_riscv_xori(ir_node const *const n)
552 {
553  return get_irn_op(n) == op_riscv_xori;
554 }
555 
559 ir_node *new_bd_riscv_xori(dbg_info *dbgi, ir_node *block, ir_node *left, ir_entity *const ent, int32_t const val);
560 
561 
562 typedef enum pn_riscv_add {
563  pn_riscv_add_res = 0,
564 } pn_riscv_add;
565 
566 typedef enum n_riscv_add {
567  n_riscv_add_left = 0,
568  n_riscv_add_right = 1,
569 } n_riscv_add;
570 
571 typedef enum pn_riscv_addi {
572  pn_riscv_addi_res = 0,
573 } pn_riscv_addi;
574 
575 typedef enum n_riscv_addi {
576  n_riscv_addi_left = 0,
577 } n_riscv_addi;
578 
579 typedef enum pn_riscv_and {
580  pn_riscv_and_res = 0,
581 } pn_riscv_and;
582 
583 typedef enum n_riscv_and {
584  n_riscv_and_left = 0,
585  n_riscv_and_right = 1,
586 } n_riscv_and;
587 
588 typedef enum pn_riscv_andi {
589  pn_riscv_andi_res = 0,
590 } pn_riscv_andi;
591 
592 typedef enum n_riscv_andi {
593  n_riscv_andi_left = 0,
594 } n_riscv_andi;
595 
596 typedef enum pn_riscv_bcc {
597  pn_riscv_bcc_false = 0,
598  pn_riscv_bcc_true = 1,
599 } pn_riscv_bcc;
600 
601 typedef enum n_riscv_bcc {
602  n_riscv_bcc_left = 0,
603  n_riscv_bcc_right = 1,
604 } n_riscv_bcc;
605 
606 typedef enum pn_riscv_div {
607  pn_riscv_div_res = 0,
608 } pn_riscv_div;
609 
610 typedef enum n_riscv_div {
611  n_riscv_div_left = 0,
612  n_riscv_div_right = 1,
613 } n_riscv_div;
614 
615 typedef enum pn_riscv_divu {
616  pn_riscv_divu_res = 0,
617 } pn_riscv_divu;
618 
619 typedef enum n_riscv_divu {
620  n_riscv_divu_left = 0,
621  n_riscv_divu_right = 1,
622 } n_riscv_divu;
623 
624 typedef enum pn_riscv_jal {
625  pn_riscv_jal_M = 0,
626  pn_riscv_jal_stack = 1,
627  pn_riscv_jal_first_result = 2,
628 } pn_riscv_jal;
629 
630 typedef enum n_riscv_jal {
631  n_riscv_jal_mem = 0,
632  n_riscv_jal_stack = 1,
633  n_riscv_jal_first_argument = 2,
634 } n_riscv_jal;
635 
636 typedef enum pn_riscv_jalr {
637  pn_riscv_jalr_M = 0,
638  pn_riscv_jalr_stack = 1,
639  pn_riscv_jalr_first_result = 2,
640 } pn_riscv_jalr;
641 
642 typedef enum n_riscv_jalr {
643  n_riscv_jalr_mem = 0,
644  n_riscv_jalr_stack = 1,
645  n_riscv_jalr_first_argument = 2,
646 } n_riscv_jalr;
647 
648 typedef enum pn_riscv_lb {
649  pn_riscv_lb_M = 0,
650  pn_riscv_lb_res = 1,
651 } pn_riscv_lb;
652 
653 typedef enum n_riscv_lb {
654  n_riscv_lb_mem = 0,
655  n_riscv_lb_base = 1,
656 } n_riscv_lb;
657 
658 typedef enum pn_riscv_lbu {
659  pn_riscv_lbu_M = 0,
660  pn_riscv_lbu_res = 1,
661 } pn_riscv_lbu;
662 
663 typedef enum n_riscv_lbu {
664  n_riscv_lbu_mem = 0,
665  n_riscv_lbu_base = 1,
666 } n_riscv_lbu;
667 
668 typedef enum pn_riscv_lh {
669  pn_riscv_lh_M = 0,
670  pn_riscv_lh_res = 1,
671 } pn_riscv_lh;
672 
673 typedef enum n_riscv_lh {
674  n_riscv_lh_mem = 0,
675  n_riscv_lh_base = 1,
676 } n_riscv_lh;
677 
678 typedef enum pn_riscv_lhu {
679  pn_riscv_lhu_M = 0,
680  pn_riscv_lhu_res = 1,
681 } pn_riscv_lhu;
682 
683 typedef enum n_riscv_lhu {
684  n_riscv_lhu_mem = 0,
685  n_riscv_lhu_base = 1,
686 } n_riscv_lhu;
687 
688 typedef enum pn_riscv_lui {
689  pn_riscv_lui_res = 0,
690 } pn_riscv_lui;
691 
692 typedef enum pn_riscv_lw {
693  pn_riscv_lw_M = 0,
694  pn_riscv_lw_res = 1,
695 } pn_riscv_lw;
696 
697 typedef enum n_riscv_lw {
698  n_riscv_lw_mem = 0,
699  n_riscv_lw_base = 1,
700 } n_riscv_lw;
701 
702 typedef enum pn_riscv_mul {
703  pn_riscv_mul_res = 0,
704 } pn_riscv_mul;
705 
706 typedef enum n_riscv_mul {
707  n_riscv_mul_left = 0,
708  n_riscv_mul_right = 1,
709 } n_riscv_mul;
710 
711 typedef enum pn_riscv_mulh {
712  pn_riscv_mulh_res = 0,
713 } pn_riscv_mulh;
714 
715 typedef enum n_riscv_mulh {
716  n_riscv_mulh_left = 0,
717  n_riscv_mulh_right = 1,
718 } n_riscv_mulh;
719 
720 typedef enum pn_riscv_mulhu {
721  pn_riscv_mulhu_res = 0,
722 } pn_riscv_mulhu;
723 
724 typedef enum n_riscv_mulhu {
725  n_riscv_mulhu_left = 0,
726  n_riscv_mulhu_right = 1,
727 } n_riscv_mulhu;
728 
729 typedef enum pn_riscv_or {
730  pn_riscv_or_res = 0,
731 } pn_riscv_or;
732 
733 typedef enum n_riscv_or {
734  n_riscv_or_left = 0,
735  n_riscv_or_right = 1,
736 } n_riscv_or;
737 
738 typedef enum pn_riscv_ori {
739  pn_riscv_ori_res = 0,
740 } pn_riscv_ori;
741 
742 typedef enum n_riscv_ori {
743  n_riscv_ori_left = 0,
744 } n_riscv_ori;
745 
746 typedef enum pn_riscv_rem {
747  pn_riscv_rem_res = 0,
748 } pn_riscv_rem;
749 
750 typedef enum n_riscv_rem {
751  n_riscv_rem_left = 0,
752  n_riscv_rem_right = 1,
753 } n_riscv_rem;
754 
755 typedef enum pn_riscv_remu {
756  pn_riscv_remu_res = 0,
757 } pn_riscv_remu;
758 
759 typedef enum n_riscv_remu {
760  n_riscv_remu_left = 0,
761  n_riscv_remu_right = 1,
762 } n_riscv_remu;
763 
764 typedef enum n_riscv_ret {
765  n_riscv_ret_mem = 0,
766  n_riscv_ret_stack = 1,
767  n_riscv_ret_addr = 2,
768  n_riscv_ret_first_result = 3,
769 } n_riscv_ret;
770 
771 typedef enum pn_riscv_sb {
772  pn_riscv_sb_M = 0,
773 } pn_riscv_sb;
774 
775 typedef enum n_riscv_sb {
776  n_riscv_sb_mem = 0,
777  n_riscv_sb_base = 1,
778  n_riscv_sb_value = 2,
779 } n_riscv_sb;
780 
781 typedef enum pn_riscv_sh {
782  pn_riscv_sh_M = 0,
783 } pn_riscv_sh;
784 
785 typedef enum n_riscv_sh {
786  n_riscv_sh_mem = 0,
787  n_riscv_sh_base = 1,
788  n_riscv_sh_value = 2,
789 } n_riscv_sh;
790 
791 typedef enum pn_riscv_sll {
792  pn_riscv_sll_res = 0,
793 } pn_riscv_sll;
794 
795 typedef enum n_riscv_sll {
796  n_riscv_sll_left = 0,
797  n_riscv_sll_right = 1,
798 } n_riscv_sll;
799 
800 typedef enum pn_riscv_slli {
801  pn_riscv_slli_res = 0,
802 } pn_riscv_slli;
803 
804 typedef enum n_riscv_slli {
805  n_riscv_slli_left = 0,
806 } n_riscv_slli;
807 
808 typedef enum pn_riscv_slt {
809  pn_riscv_slt_res = 0,
810 } pn_riscv_slt;
811 
812 typedef enum n_riscv_slt {
813  n_riscv_slt_left = 0,
814  n_riscv_slt_right = 1,
815 } n_riscv_slt;
816 
817 typedef enum pn_riscv_sltiu {
818  pn_riscv_sltiu_res = 0,
819 } pn_riscv_sltiu;
820 
821 typedef enum n_riscv_sltiu {
822  n_riscv_sltiu_left = 0,
823 } n_riscv_sltiu;
824 
825 typedef enum pn_riscv_sltu {
826  pn_riscv_sltu_res = 0,
827 } pn_riscv_sltu;
828 
829 typedef enum n_riscv_sltu {
830  n_riscv_sltu_left = 0,
831  n_riscv_sltu_right = 1,
832 } n_riscv_sltu;
833 
834 typedef enum pn_riscv_sra {
835  pn_riscv_sra_res = 0,
836 } pn_riscv_sra;
837 
838 typedef enum n_riscv_sra {
839  n_riscv_sra_left = 0,
840  n_riscv_sra_right = 1,
841 } n_riscv_sra;
842 
843 typedef enum pn_riscv_srai {
844  pn_riscv_srai_res = 0,
845 } pn_riscv_srai;
846 
847 typedef enum n_riscv_srai {
848  n_riscv_srai_left = 0,
849 } n_riscv_srai;
850 
851 typedef enum pn_riscv_srl {
852  pn_riscv_srl_res = 0,
853 } pn_riscv_srl;
854 
855 typedef enum n_riscv_srl {
856  n_riscv_srl_left = 0,
857  n_riscv_srl_right = 1,
858 } n_riscv_srl;
859 
860 typedef enum pn_riscv_srli {
861  pn_riscv_srli_res = 0,
862 } pn_riscv_srli;
863 
864 typedef enum n_riscv_srli {
865  n_riscv_srli_left = 0,
866 } n_riscv_srli;
867 
868 typedef enum pn_riscv_sub {
869  pn_riscv_sub_res = 0,
870 } pn_riscv_sub;
871 
872 typedef enum n_riscv_sub {
873  n_riscv_sub_left = 0,
874  n_riscv_sub_right = 1,
875 } n_riscv_sub;
876 
877 typedef enum pn_riscv_sw {
878  pn_riscv_sw_M = 0,
879 } pn_riscv_sw;
880 
881 typedef enum n_riscv_sw {
882  n_riscv_sw_mem = 0,
883  n_riscv_sw_base = 1,
884  n_riscv_sw_value = 2,
885 } n_riscv_sw;
886 
887 typedef enum pn_riscv_xor {
888  pn_riscv_xor_res = 0,
889 } pn_riscv_xor;
890 
891 typedef enum n_riscv_xor {
892  n_riscv_xor_left = 0,
893  n_riscv_xor_right = 1,
894 } n_riscv_xor;
895 
896 typedef enum pn_riscv_xori {
897  pn_riscv_xori_res = 0,
898 } pn_riscv_xori;
899 
900 typedef enum n_riscv_xori {
901  n_riscv_xori_left = 0,
902 } n_riscv_xori;
903 
904 
905 #endif
struct dbg_info dbg_info
Source Reference.
Definition: firm_types.h:40
struct ir_node ir_node
Procedure Graph Node.
Definition: firm_types.h:53
struct ir_switch_table ir_switch_table
A switch table mapping integer numbers to proj-numbers of a Switch-node.
Definition: firm_types.h:105
struct ir_entity ir_entity
Entity.
Definition: firm_types.h:83
ir_op * get_irn_op(const ir_node *node)
Returns the opcode struct of the node.
struct ir_op ir_op
Node Opcode.
Definition: firm_types.h:56