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)
346 static ir_ref ir_next_insn(ir_ctx *ctx)
357 void ir_truncate(ir_ctx *ctx)
368 void ir_init(ir_ctx *ctx, uint32_t flags, ir_ref consts_limit, ir_ref insns_limit)
399 void ir_free(ir_ctx *ctx)
459 ir_ref ir_unique_const_addr(ir_ctx *ctx, uintptr_t addr)
499 ir_ref ir_const_ex(ir_ctx *ctx, ir_val val, uint8_t type, uint32_t optx)
544 ir_ref ir_const(ir_ctx *ctx, ir_val val, uint8_t type)
549 ir_ref ir_const_i8(ir_ctx *ctx, int8_t c)
556 ir_ref ir_const_i16(ir_ctx *ctx, int16_t c)
563 ir_ref ir_const_i32(ir_ctx *ctx, int32_t c)
570 ir_ref ir_const_i64(ir_ctx *ctx, int64_t c)
577 ir_ref ir_const_u8(ir_ctx *ctx, uint8_t c)
584 ir_ref ir_const_u16(ir_ctx *ctx, uint16_t c)
591 ir_ref ir_const_u32(ir_ctx *ctx, uint32_t c)
598 ir_ref ir_const_u64(ir_ctx *ctx, uint64_t c)
605 ir_ref ir_const_bool(ir_ctx *ctx, bool c)
610 ir_ref ir_const_char(ir_ctx *ctx, char c)
617 ir_ref ir_const_float(ir_ctx *ctx, float c)
625 ir_ref ir_const_double(ir_ctx *ctx, double c)
632 ir_ref ir_const_addr(ir_ctx *ctx, uintptr_t c)
642 ir_ref ir_const_func_addr(ir_ctx *ctx, uintptr_t c, ir_ref proto)
653 ir_ref ir_const_func(ir_ctx *ctx, ir_ref str, ir_ref proto)
661 ir_ref ir_const_sym(ir_ctx *ctx, ir_ref str)
668 ir_ref ir_const_str(ir_ctx *ctx, ir_ref str)
675 ir_ref ir_str(ir_ctx *ctx, const char *s)
687 ir_ref ir_strl(ir_ctx *ctx, const char *s, size_t len)
696 const char *ir_get_str(const ir_ctx *ctx, ir_ref idx)
702 const char *ir_get_strl(const ir_ctx *ctx, ir_ref idx, size_t *len)
708 ir_ref ir_proto_0(ir_ctx *ctx, uint8_t flags, ir_type ret_type)
718 ir_ref ir_proto_1(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1)
729 ir_ref ir_proto_2(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2)
741 ir_ref ir_proto_3(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2, ir_type t3)
754 ir_ref ir_proto_4(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2, ir_type t3,
769 ir_ref ir_proto_5(ir_ctx *ctx, uint8_t flags, ir_type ret_type, ir_type t1, ir_type t2, ir_type t3,
785 ir_ref ir_proto(ir_ctx *ctx, uint8_t flags, ir_type ret_type, uint32_t params_count, uint8_t *param…
798 ir_ref ir_emit(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
811 ir_ref ir_emit0(ir_ctx *ctx, uint32_t opt)
816 ir_ref ir_emit1(ir_ctx *ctx, uint32_t opt, ir_ref op1)
821 ir_ref ir_emit2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2)
826 ir_ref ir_emit3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
831 static ir_ref _ir_fold_cse(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
919 ir_ref ir_folding(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3, ir_insn *op1_insn,…
1027 ir_ref ir_fold(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
1038 ir_ref ir_fold0(ir_ctx *ctx, uint32_t opt)
1043 ir_ref ir_fold1(ir_ctx *ctx, uint32_t opt, ir_ref op1)
1048 ir_ref ir_fold2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2)
1053 ir_ref ir_fold3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3)
1058 ir_ref ir_emit_N(ir_ctx *ctx, uint32_t opt, int32_t count)
1079 void ir_set_op(ir_ctx *ctx, ir_ref ref, int32_t n, ir_ref val)
1095 ir_ref ir_param(ir_ctx *ctx, ir_type type, ir_ref region, const char *name, int pos)
1100 ir_ref ir_var(ir_ctx *ctx, ir_type type, ir_ref region, const char *name)
1105 ir_ref ir_bind(ir_ctx *ctx, ir_ref var, ir_ref def)
1181 void ir_build_def_use_lists(ir_ctx *ctx)
1252 void ir_use_list_remove_all(ir_ctx *ctx, ir_ref from, ir_ref ref)
1279 void ir_use_list_remove_one(ir_ctx *ctx, ir_ref from, ir_ref ref)
1304 void ir_use_list_replace_one(ir_ctx *ctx, ir_ref ref, ir_ref use, ir_ref new_use)
1318 void ir_use_list_replace_all(ir_ctx *ctx, ir_ref ref, ir_ref use, ir_ref new_use)
1331 bool ir_use_list_add(ir_ctx *ctx, ir_ref to, ir_ref ref)
1788 static ir_alias ir_check_partial_aliasing(const ir_ctx *ctx, ir_ref addr1, ir_ref addr2, ir_type ty…
1854 static ir_ref ir_find_aliasing_load(ir_ctx *ctx, ir_ref ref, ir_type type, ir_ref addr)
1906 ir_ref _ir_PARAM(ir_ctx *ctx, ir_type type, const char* name, ir_ref num)
1914 ir_ref _ir_VAR(ir_ctx *ctx, ir_type type, const char* name)
1931 ir_ref _ir_PHI_2(ir_ctx *ctx, ir_type type, ir_ref src1, ir_ref src2)
1941 ir_ref _ir_PHI_N(ir_ctx *ctx, ir_type type, ir_ref n, ir_ref *inputs)
1973 void _ir_PHI_SET_OP(ir_ctx *ctx, ir_ref phi, ir_ref pos, ir_ref src)
1985 void _ir_START(ir_ctx *ctx)
1992 void _ir_ENTRY(ir_ctx *ctx, ir_ref src, ir_ref num)
2002 void _ir_BEGIN(ir_ctx *ctx, ir_ref src)
2016 ir_ref _ir_fold_condition(ir_ctx *ctx, ir_ref ref)
2030 ir_ref _ir_IF(ir_ctx *ctx, ir_ref condition)
2077 void _ir_IF_TRUE(ir_ctx *ctx, ir_ref if_ref)
2085 void _ir_IF_TRUE_cold(ir_ctx *ctx, ir_ref if_ref)
2094 void _ir_IF_FALSE(ir_ctx *ctx, ir_ref if_ref)
2102 void _ir_IF_FALSE_cold(ir_ctx *ctx, ir_ref if_ref)
2111 ir_ref _ir_END(ir_ctx *ctx)
2121 void _ir_MERGE_2(ir_ctx *ctx, ir_ref src1, ir_ref src2)
2127 void _ir_MERGE_N(ir_ctx *ctx, ir_ref n, ir_ref *inputs)
2145 void _ir_MERGE_SET_OP(ir_ctx *ctx, ir_ref merge, ir_ref pos, ir_ref src)
2155 ir_ref _ir_END_LIST(ir_ctx *ctx, ir_ref list)
2167 ir_ref _ir_END_PHI_LIST(ir_ctx *ctx, ir_ref list, ir_ref val)
2179 void _ir_MERGE_LIST(ir_ctx *ctx, ir_ref list)
2218 ir_ref _ir_PHI_LIST(ir_ctx *ctx, ir_ref list)
2253 ir_ref _ir_LOOP_BEGIN(ir_ctx *ctx, ir_ref src1)
2260 ir_ref _ir_LOOP_END(ir_ctx *ctx)
2270 ir_ref _ir_CALL(ir_ctx *ctx, ir_type type, ir_ref func)
2276 ir_ref _ir_CALL_1(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1)
2282 ir_ref _ir_CALL_2(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2)
2296 ir_ref _ir_CALL_3(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3)
2311 ir_ref _ir_CALL_4(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, ir…
2327 ir_ref _ir_CALL_5(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, ir…
2344 ir_ref _ir_CALL_N(ir_ctx *ctx, ir_type type, ir_ref func, uint32_t count, ir_ref *args)
2360 void _ir_UNREACHABLE(ir_ctx *ctx)
2368 void _ir_TAILCALL(ir_ctx *ctx, ir_type type, ir_ref func)
2379 void _ir_TAILCALL_1(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1)
2390 void _ir_TAILCALL_2(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2)
2408 void _ir_TAILCALL_3(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3)
2427 void _ir_TAILCALL_4(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, …
2447 void _ir_TAILCALL_5(ir_ctx *ctx, ir_type type, ir_ref func, ir_ref arg1, ir_ref arg2, ir_ref arg3, …
2468 void _ir_TAILCALL_N(ir_ctx *ctx, ir_type type, ir_ref func, uint32_t count, ir_ref *args)
2488 ir_ref _ir_SWITCH(ir_ctx *ctx, ir_ref val)
2498 void _ir_CASE_VAL(ir_ctx *ctx, ir_ref switch_ref, ir_ref val)
2504 void _ir_CASE_DEFAULT(ir_ctx *ctx, ir_ref switch_ref)
2510 void _ir_RETURN(ir_ctx *ctx, ir_ref val)
2524 void _ir_IJMP(ir_ctx *ctx, ir_ref addr)
2532 ir_ref _ir_ADD_OFFSET(ir_ctx *ctx, ir_ref addr, uintptr_t offset)
2540 void _ir_GUARD(ir_ctx *ctx, ir_ref condition, ir_ref addr)
2586 void _ir_GUARD_NOT(ir_ctx *ctx, ir_ref condition, ir_ref addr)
2632 ir_ref _ir_SNAPSHOT(ir_ctx *ctx, ir_ref n)
2643 void _ir_SNAPSHOT_SET_OP(ir_ctx *ctx, ir_ref snapshot, ir_ref pos, ir_ref val)
2655 ir_ref _ir_EXITCALL(ir_ctx *ctx, ir_ref func)
2661 ir_ref _ir_ALLOCA(ir_ctx *ctx, ir_ref size)
2667 void _ir_AFREE(ir_ctx *ctx, ir_ref size)
2673 ir_ref _ir_VLOAD(ir_ctx *ctx, ir_type type, ir_ref var)
2716 void _ir_VSTORE(ir_ctx *ctx, ir_ref var, ir_ref val)
2722 ir_ref _ir_TLS(ir_ctx *ctx, ir_ref index, ir_ref offset)
2728 ir_ref _ir_RLOAD(ir_ctx *ctx, ir_type type, ir_ref reg)
2734 void _ir_RSTORE(ir_ctx *ctx, ir_ref reg, ir_ref val)
2740 ir_ref _ir_LOAD(ir_ctx *ctx, ir_type type, ir_ref addr)
2751 void _ir_STORE(ir_ctx *ctx, ir_ref addr, ir_ref val)
2817 void _ir_VA_START(ir_ctx *ctx, ir_ref list)
2823 void _ir_VA_END(ir_ctx *ctx, ir_ref list)
2829 void _ir_VA_COPY(ir_ctx *ctx, ir_ref dst, ir_ref src)
2835 ir_ref _ir_VA_ARG(ir_ctx *ctx, ir_type type, ir_ref list)
2841 ir_ref _ir_BLOCK_BEGIN(ir_ctx *ctx)