Lines Matching refs:ir_ref

647 	ir_ref   *refs;
652 void ir_array_insert(ir_array *a, uint32_t i, ir_ref val);
657 a->refs = ir_mem_malloc(size * sizeof(ir_ref)); in ir_array_init()
673 IR_ALWAYS_INLINE ir_ref ir_array_get(const ir_array *a, uint32_t i) in ir_array_get()
678 IR_ALWAYS_INLINE ir_ref ir_array_at(const ir_array *a, uint32_t i) in ir_array_at()
684 IR_ALWAYS_INLINE void ir_array_set(ir_array *a, uint32_t i, ir_ref val) in ir_array_set()
692 IR_ALWAYS_INLINE void ir_array_set_unchecked(ir_array *a, uint32_t i, ir_ref val) in ir_array_set_unchecked()
704 bool ir_list_contains(const ir_list *l, ir_ref val);
705 void ir_list_insert(ir_list *l, uint32_t i, ir_ref val);
735 IR_ALWAYS_INLINE void ir_list_push(ir_list *l, ir_ref val) in ir_list_push()
740 IR_ALWAYS_INLINE void ir_list_push_unchecked(ir_list *l, ir_ref val) in ir_list_push_unchecked()
745 IR_ALWAYS_INLINE ir_ref ir_list_pop(ir_list *l) in ir_list_pop()
751 IR_ALWAYS_INLINE ir_ref ir_list_peek(const ir_list *l) in ir_list_peek()
757 IR_ALWAYS_INLINE ir_ref ir_list_at(const ir_list *l, uint32_t i) in ir_list_at()
763 IR_ALWAYS_INLINE void ir_list_set(ir_list *l, uint32_t i, ir_ref val) in ir_list_set()
803 IR_ALWAYS_INLINE bool ir_worklist_push(ir_worklist *w, ir_ref val) in ir_worklist_push()
815 IR_ALWAYS_INLINE ir_ref ir_worklist_pop(ir_worklist *w) in ir_worklist_pop()
820 IR_ALWAYS_INLINE ir_ref ir_worklist_peek(const ir_worklist *w) in ir_worklist_peek()
831 ir_ref val;
845 ir_ref ir_hashtab_find(const ir_hashtab *tab, uint32_t key);
846 bool ir_hashtab_add(ir_hashtab *tab, uint32_t key, ir_ref val);
852 ir_ref val;
858 ir_ref ir_addrtab_find(const ir_hashtab *tab, uint64_t key);
859 void ir_addrtab_set(ir_hashtab *tab, uint64_t key, ir_ref val);
875 ir_ref ir_const_ex(ir_ctx *ctx, ir_val val, uint8_t type, uint32_t optx);
894 IR_ALWAYS_INLINE bool ir_ref_is_true(ir_ctx *ctx, ir_ref ref) in ir_ref_is_true()
953 IR_ALWAYS_INLINE ir_ref ir_operands_count(const ir_ctx *ctx, const ir_insn *insn) in ir_operands_count()
965 IR_ALWAYS_INLINE ir_ref ir_input_edges_count(const ir_ctx *ctx, const ir_insn *insn) in ir_input_edges_count()
1017 IR_ALWAYS_INLINE ir_ref ir_binding_find(const ir_ctx *ctx, ir_ref ref) in ir_binding_find()
1019 ir_ref var = ir_hashtab_find(ctx->binding, ref); in ir_binding_find()
1020 return (var != (ir_ref)IR_INVALID_VAL) ? var : 0; in ir_binding_find()
1025 ir_ref refs; /* index in ir_ctx->use_edges[] array */
1026 ir_ref count;
1029 void ir_use_list_remove_all(ir_ctx *ctx, ir_ref from, ir_ref use);
1030 void ir_use_list_remove_one(ir_ctx *ctx, ir_ref from, ir_ref use);
1031 void ir_use_list_replace_all(ir_ctx *ctx, ir_ref ref, ir_ref use, ir_ref new_use);
1032 void ir_use_list_replace_one(ir_ctx *ctx, ir_ref ref, ir_ref use, ir_ref new_use);
1033 bool ir_use_list_add(ir_ctx *ctx, ir_ref to, ir_ref new_use);
1048 ir_ref _tmp = _ref1; \
1091 ir_ref start; /* index of first instruction */
1092 ir_ref end; /* index of last instruction */
1137 ir_ref ir_folding(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3, ir_insn *op1_insn,…
1140 typedef ir_ref ir_live_pos;
1184 ir_ref hint_ref; /* negative references are used for FUSION anf PHI */
1217 ir_ref tmp_op_num;
1227 typedef int (*emit_copy_t)(ir_ctx *ctx, uint8_t type, ir_ref from, ir_ref to);
1326 IR_ALWAYS_INLINE void ir_set_alocated_reg(ir_ctx *ctx, ir_ref ref, int op_num, int8_t reg) in ir_set_alocated_reg()
1337 IR_ALWAYS_INLINE int8_t ir_get_alocated_reg(const ir_ctx *ctx, ir_ref ref, int op_num) in ir_get_alocated_reg()
1367 int ir_get_target_constraints(ir_ctx *ctx, ir_ref ref, ir_target_constraints *constraints);