Lines Matching defs:ctx
117 void ir_print_const(const ir_ctx *ctx, const ir_insn *insn, FILE *f, bool quoted)
301 static void ir_grow_bottom(ir_ctx *ctx)
320 static ir_ref ir_next_const(ir_ctx *ctx)
331 static void ir_grow_top(ir_ctx *ctx)
353 static ir_ref ir_next_insn(ir_ctx *ctx)
364 void ir_truncate(ir_ctx *ctx)
375 void ir_init(ir_ctx *ctx, uint32_t flags, ir_ref consts_limit, ir_ref insns_limit)
406 void ir_free(ir_ctx *ctx)
466 ir_ref ir_unique_const_addr(ir_ctx *ctx, uintptr_t addr)
506 ir_ref ir_const_ex(ir_ctx *ctx, ir_val val, uint8_t type, uint32_t optx)
551 ir_ref ir_const(ir_ctx *ctx, ir_val val, uint8_t type)
556 ir_ref ir_const_i8(ir_ctx *ctx, int8_t c)
563 ir_ref ir_const_i16(ir_ctx *ctx, int16_t c)
570 ir_ref ir_const_i32(ir_ctx *ctx, int32_t c)
577 ir_ref ir_const_i64(ir_ctx *ctx, int64_t c)
584 ir_ref ir_const_u8(ir_ctx *ctx, uint8_t c)
591 ir_ref ir_const_u16(ir_ctx *ctx, uint16_t c)
598 ir_ref ir_const_u32(ir_ctx *ctx, uint32_t c)
605 ir_ref ir_const_u64(ir_ctx *ctx, uint64_t c)
612 ir_ref ir_const_bool(ir_ctx *ctx, bool c)
617 ir_ref ir_const_char(ir_ctx *ctx, char c)
624 ir_ref ir_const_float(ir_ctx *ctx, float c)
632 ir_ref ir_const_double(ir_ctx *ctx, double c)
639 ir_ref ir_const_addr(ir_ctx *ctx, uintptr_t c)
649 ir_ref ir_const_func_addr(ir_ctx *ctx, uintptr_t c, ir_ref proto)
660 ir_ref ir_const_func(ir_ctx *ctx, ir_ref str, ir_ref proto)
668 ir_ref ir_const_sym(ir_ctx *ctx, ir_ref str)
675 ir_ref ir_const_str(ir_ctx *ctx, ir_ref str)
682 ir_ref ir_str(ir_ctx *ctx, const char *s)
694 ir_ref ir_strl(ir_ctx *ctx, const char *s, size_t len)
703 const char *ir_get_str(const ir_ctx *ctx, ir_ref idx)
709 const char *ir_get_strl(const ir_ctx *ctx, ir_ref idx, size_t *len)
715 ir_ref ir_proto_0(ir_ctx *ctx, uint8_t flags, ir_type ret_type)
725 ir_ref ir_proto_1(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1)
736 ir_ref ir_proto_2(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2)
748 ir_ref ir_proto_3(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2, ir_type t3)
761 ir_ref ir_proto_4(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2, ir_type t3,
776 ir_ref ir_proto_5(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2, ir_type t3,
792 ir_ref ir_proto(ir_ctx *ctx, uint8_t flags, ir_type ret_type, uint32_t params_count, uint8_t *param…
805 ir_ref ir_emit(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
818 ir_ref ir_emit0(ir_ctx *ctx, uint32_t opt)
823 ir_ref ir_emit1(ir_ctx *ctx, uint32_t opt, ir_ref op1)
828 ir_ref ir_emit2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2)
833 ir_ref ir_emit3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
838 static ir_ref _ir_fold_cse(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
926 ir_ref ir_folding(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3, ir_insn *op1_insn,…
1034 ir_ref ir_fold(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
1045 ir_ref ir_fold0(ir_ctx *ctx, uint32_t opt)
1050 ir_ref ir_fold1(ir_ctx *ctx, uint32_t opt, ir_ref op1)
1055 ir_ref ir_fold2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2)
1060 ir_ref ir_fold3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
1065 ir_ref ir_emit_N(ir_ctx *ctx, uint32_t opt, int32_t count)
1086 void ir_set_op(ir_ctx *ctx, ir_ref ref, int32_t n, ir_ref val)
1102 ir_ref ir_get_op(ir_ctx *ctx, ir_ref ref, int32_t n)
1118 ir_ref ir_param(ir_ctx *ctx, ir_type type, ir_ref region, const char *name, int pos)
1124 ir_ref ir_var(ir_ctx *ctx, ir_type type, ir_ref region, const char *name)
1130 ir_ref ir_bind(ir_ctx *ctx, ir_ref var, ir_ref def)
1149 ir_ref ir_binding_find(const ir_ctx *ctx, ir_ref ref)
1212 void ir_build_def_use_lists(ir_ctx *ctx)
1283 void ir_use_list_remove_all(ir_ctx *ctx, ir_ref from, ir_ref ref)
1310 void ir_use_list_remove_one(ir_ctx *ctx, ir_ref from, ir_ref ref)
1335 void ir_use_list_replace_one(ir_ctx *ctx, ir_ref ref, ir_ref use, ir_ref new_use)
1349 void ir_use_list_replace_all(ir_ctx *ctx, ir_ref ref, ir_ref use, ir_ref new_use)
1362 bool ir_use_list_add(ir_ctx *ctx, ir_ref to, ir_ref ref)
1824 static ir_alias ir_check_partial_aliasing(const ir_ctx *ctx, ir_ref addr1, ir_ref addr2, ir_type ty…
1918 static ir_ref ir_find_aliasing_load(ir_ctx *ctx, ir_ref ref, ir_type type, ir_ref addr)
1970 ir_ref _ir_PARAM(ir_ctx *ctx, ir_type type, const char* name, ir_ref num)
1978 ir_ref _ir_VAR(ir_ctx *ctx, ir_type type, const char* name)
1995 ir_ref _ir_PHI_2(ir_ctx *ctx, ir_type type, ir_ref src1, ir_ref src2)
2005 ir_ref _ir_PHI_N(ir_ctx *ctx, ir_type type, ir_ref n, ir_ref *inputs)
2037 void _ir_PHI_SET_OP(ir_ctx *ctx, ir_ref phi, ir_ref pos, ir_ref src)
2049 void _ir_START(ir_ctx *ctx)
2056 void _ir_ENTRY(ir_ctx *ctx, ir_ref src, ir_ref num)
2066 void _ir_BEGIN(ir_ctx *ctx, ir_ref src)
2080 ir_ref _ir_fold_condition(ir_ctx *ctx, ir_ref ref)
2094 ir_ref _ir_IF(ir_ctx *ctx, ir_ref condition)
2141 void _ir_IF_TRUE(ir_ctx *ctx, ir_ref if_ref)
2149 void _ir_IF_TRUE_cold(ir_ctx *ctx, ir_ref if_ref)
2158 void _ir_IF_FALSE(ir_ctx *ctx, ir_ref if_ref)
2166 void _ir_IF_FALSE_cold(ir_ctx *ctx, ir_ref if_ref)
2175 ir_ref _ir_END(ir_ctx *ctx)
2185 void _ir_MERGE_2(ir_ctx *ctx, ir_ref src1, ir_ref src2)
2191 void _ir_MERGE_N(ir_ctx *ctx, ir_ref n, ir_ref *inputs)
2209 void _ir_MERGE_SET_OP(ir_ctx *ctx, ir_ref merge, ir_ref pos, ir_ref src)
2219 ir_ref _ir_END_LIST(ir_ctx *ctx, ir_ref list)
2231 ir_ref _ir_END_PHI_LIST(ir_ctx *ctx, ir_ref list, ir_ref val)
2243 void _ir_MERGE_LIST(ir_ctx *ctx, ir_ref list)
2282 ir_ref _ir_PHI_LIST(ir_ctx *ctx, ir_ref list)
2317 ir_ref _ir_LOOP_BEGIN(ir_ctx *ctx, ir_ref src1)
2324 ir_ref _ir_LOOP_END(ir_ctx *ctx)
2334 ir_ref _ir_CALL(ir_ctx *ctx, ir_type type, ir_ref func)
2340 ir_ref _ir_CALL_1(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1)
2346 ir_ref _ir_CALL_2(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2)
2360 ir_ref _ir_CALL_3(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3)
2375 ir_ref _ir_CALL_4(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, ir…
2391 ir_ref _ir_CALL_5(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, ir…
2408 ir_ref _ir_CALL_6(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, ir…
2426 ir_ref _ir_CALL_N(ir_ctx *ctx, ir_type type, ir_ref func, uint32_t count, ir_ref *args)
2442 void _ir_UNREACHABLE(ir_ctx *ctx)
2450 void _ir_TAILCALL(ir_ctx *ctx, ir_type type, ir_ref func)
2461 void _ir_TAILCALL_1(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1)
2472 void _ir_TAILCALL_2(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2)
2490 void _ir_TAILCALL_3(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3)
2509 void _ir_TAILCALL_4(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, …
2529 void _ir_TAILCALL_5(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, …
2550 void _ir_TAILCALL_6(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, …
2572 void _ir_TAILCALL_N(ir_ctx *ctx, ir_type type, ir_ref func, uint32_t count, ir_ref *args)
2592 ir_ref _ir_SWITCH(ir_ctx *ctx, ir_ref val)
2602 void _ir_CASE_VAL(ir_ctx *ctx, ir_ref switch_ref, ir_ref val)
2608 void _ir_CASE_DEFAULT(ir_ctx *ctx, ir_ref switch_ref)
2614 void _ir_RETURN(ir_ctx *ctx, ir_ref val)
2628 void _ir_IJMP(ir_ctx *ctx, ir_ref addr)
2636 ir_ref _ir_ADD_OFFSET(ir_ctx *ctx, ir_ref addr, uintptr_t offset)
2644 void _ir_GUARD(ir_ctx *ctx, ir_ref condition, ir_ref addr)
2690 void _ir_GUARD_NOT(ir_ctx *ctx, ir_ref condition, ir_ref addr)
2736 ir_ref _ir_SNAPSHOT(ir_ctx *ctx, ir_ref n)
2747 void _ir_SNAPSHOT_SET_OP(ir_ctx *ctx, ir_ref snapshot, ir_ref pos, ir_ref val)
2759 ir_ref _ir_EXITCALL(ir_ctx *ctx, ir_ref func)
2765 ir_ref _ir_ALLOCA(ir_ctx *ctx, ir_ref size)
2771 void _ir_AFREE(ir_ctx *ctx, ir_ref size)
2777 ir_ref _ir_VLOAD(ir_ctx *ctx, ir_type type, ir_ref var)
2820 void _ir_VSTORE(ir_ctx *ctx, ir_ref var, ir_ref val)
2876 ir_ref _ir_TLS(ir_ctx *ctx, ir_ref index, ir_ref offset)
2882 ir_ref _ir_RLOAD(ir_ctx *ctx, ir_type type, ir_ref reg)
2888 void _ir_RSTORE(ir_ctx *ctx, ir_ref reg, ir_ref val)
2894 ir_ref _ir_LOAD(ir_ctx *ctx, ir_type type, ir_ref addr)
2905 void _ir_STORE(ir_ctx *ctx, ir_ref addr, ir_ref val)
2975 void _ir_VA_START(ir_ctx *ctx, ir_ref list)
2981 void _ir_VA_END(ir_ctx *ctx, ir_ref list)
2987 void _ir_VA_COPY(ir_ctx *ctx, ir_ref dst, ir_ref src)
2993 ir_ref _ir_VA_ARG(ir_ctx *ctx, ir_type type, ir_ref list)
2999 ir_ref _ir_BLOCK_BEGIN(ir_ctx *ctx)