Skip to content

Commit

Permalink
Change internal function prefix to d_r_
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgallagher-arm committed Mar 27, 2024
1 parent 6037129 commit 6b166b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/ir/aarch64/instr.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ instr_invert_predicate(dr_pred_type_t pred)
}

ptr_int_t
dr_compute_scaled_index_aarch64(opnd_t opnd, reg_t index_val)
d_r_compute_scaled_index_aarch64(opnd_t opnd, reg_t index_val)
{
bool scaled = false;
uint amount = 0;
Expand Down Expand Up @@ -848,7 +848,7 @@ instr_compute_vector_address(instr_t *instr, priv_mcontext_t *mc, size_t mc_size
}

*have_addr = true;
*addr += dr_compute_scaled_index_aarch64(curop, unscaled_index_val);
*addr += d_r_compute_scaled_index_aarch64(curop, unscaled_index_val);
*addr += opnd_get_disp(curop);

return addr_index < num_elements;
Expand Down
2 changes: 1 addition & 1 deletion core/ir/opnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ opnd_is_abs_base_disp(opnd_t opnd);
#if defined(AARCH64)
/* Internal function shared with vector address calculation */
ptr_int_t
dr_compute_scaled_index_aarch64(opnd_t opnd, reg_t index_val);
d_r_compute_scaled_index_aarch64(opnd_t opnd, reg_t index_val);
#endif

#ifndef STANDALONE_DECODER
Expand Down
2 changes: 1 addition & 1 deletion core/ir/opnd_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,7 @@ opnd_compute_address_priv(opnd_t opnd, priv_mcontext_t *mc)
scaled_index = scale * reg_get_value_priv(index, mc);
#elif defined(AARCH64)
scaled_index =
dr_compute_scaled_index_aarch64(opnd, reg_get_value_priv(index, mc));
d_r_compute_scaled_index_aarch64(opnd, reg_get_value_priv(index, mc));
#elif defined(ARM)
uint amount;
dr_shift_type_t type = opnd_get_index_shift(opnd, &amount);
Expand Down

0 comments on commit 6b166b7

Please sign in to comment.