Lines Matching refs:proto

642 ir_ref ir_const_func_addr(ir_ctx *ctx, uintptr_t c, ir_ref proto)  argument
649 IR_ASSERT(proto >= 0 && proto < 0xffff);
650 return ir_const_ex(ctx, val, IR_ADDR, IR_OPTX(IR_FUNC_ADDR, IR_ADDR, proto));
653 ir_ref ir_const_func(ir_ctx *ctx, ir_ref str, ir_ref proto) argument
657 IR_ASSERT(proto >= 0 && proto < 0xffff);
658 return ir_const_ex(ctx, val, IR_ADDR, IR_OPTX(IR_FUNC, IR_ADDR, proto));
710 ir_proto_t proto; local
712 proto.flags = flags;
713 proto.ret_type = ret_type;
714 proto.params_count = 0;
715 return ir_strl(ctx, (const char *)&proto, offsetof(ir_proto_t, param_types) + 0);
720 ir_proto_t proto; local
722 proto.flags = flags;
723 proto.ret_type = ret_type;
724 proto.params_count = 1;
725 proto.param_types[0] = t1;
726 return ir_strl(ctx, (const char *)&proto, offsetof(ir_proto_t, param_types) + 1);
731 ir_proto_t proto; local
733 proto.flags = flags;
734 proto.ret_type = ret_type;
735 proto.params_count = 2;
736 proto.param_types[0] = t1;
737 proto.param_types[1] = t2;
738 return ir_strl(ctx, (const char *)&proto, offsetof(ir_proto_t, param_types) + 2);
743 ir_proto_t proto; local
745 proto.flags = flags;
746 proto.ret_type = ret_type;
747 proto.params_count = 3;
748 proto.param_types[0] = t1;
749 proto.param_types[1] = t2;
750 proto.param_types[2] = t3;
751 return ir_strl(ctx, (const char *)&proto, offsetof(ir_proto_t, param_types) + 3);
757 ir_proto_t proto; local
759 proto.flags = flags;
760 proto.ret_type = ret_type;
761 proto.params_count = 4;
762 proto.param_types[0] = t1;
763 proto.param_types[1] = t2;
764 proto.param_types[2] = t3;
765 proto.param_types[3] = t4;
766 return ir_strl(ctx, (const char *)&proto, offsetof(ir_proto_t, param_types) + 4);
772 ir_proto_t proto; local
774 proto.flags = flags;
775 proto.ret_type = ret_type;
776 proto.params_count = 5;
777 proto.param_types[0] = t1;
778 proto.param_types[1] = t2;
779 proto.param_types[2] = t3;
780 proto.param_types[3] = t4;
781 proto.param_types[4] = t5;
782 return ir_strl(ctx, (const char *)&proto, offsetof(ir_proto_t, param_types) + 5);
787 ir_proto_t *proto = alloca(offsetof(ir_proto_t, param_types) + params_count); local
790 proto->flags = flags;
791 proto->ret_type = ret_type;
792 proto->params_count = params_count;
793 memcpy(proto->param_types, param_types, params_count);
794 return ir_strl(ctx, (const char *)proto, offsetof(ir_proto_t, param_types) + params_count);