Skip to content

Commit

Permalink
issue #169 MIR update
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Nov 6, 2020
1 parent a3bf9dc commit a82d42b
Show file tree
Hide file tree
Showing 18 changed files with 2,756 additions and 1,894 deletions.
3 changes: 3 additions & 0 deletions mir/c2mir/aarch64/caarch64-ABI-code.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ static void target_add_res_proto (c2m_ctx_t c2m_ctx, struct type *ret_type,

static int target_add_call_res_op (c2m_ctx_t c2m_ctx, struct type *ret_type,
target_arg_info_t *arg_info, size_t call_arg_area_offset) {
gen_ctx_t gen_ctx = c2m_ctx->gen_ctx;
MIR_context_t ctx = c2m_ctx->ctx;
int size;

Expand All @@ -52,6 +53,7 @@ static int target_add_call_res_op (c2m_ctx_t c2m_ctx, struct type *ret_type,

static op_t target_gen_post_call_res_code (c2m_ctx_t c2m_ctx, struct type *ret_type, op_t res,
MIR_insn_t call, size_t call_ops_start) {
gen_ctx_t gen_ctx = c2m_ctx->gen_ctx;
int size;

if ((size = reg_aggregate_size (c2m_ctx, ret_type)) < 0)
Expand All @@ -63,6 +65,7 @@ static op_t target_gen_post_call_res_code (c2m_ctx_t c2m_ctx, struct type *ret_t
}

static void target_add_ret_ops (c2m_ctx_t c2m_ctx, struct type *ret_type, op_t res) {
gen_ctx_t gen_ctx = c2m_ctx->gen_ctx;
int i, size;

if ((size = reg_aggregate_size (c2m_ctx, ret_type)) < 0) {
Expand Down
Loading

0 comments on commit a82d42b

Please sign in to comment.