Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ndloop.c #29

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Refactor ndloop.c #29

wants to merge 10 commits into from

Conversation

ohai
Copy link
Contributor

@ohai ohai commented Sep 9, 2016

A refactoring of ndoop.c.

Extract some function from ndloop_alloc
Extract the following functions from ndloop_alloc:
* ndloop_setup_lp_trans_map
* ndloop_setup_lp_reduce
* ndloop_set_trans_map_identity
* check_args_length
Extract the following functions from ndloop_init_args.
* ndloop_lp_has_an_empty_element
* ndloop_xarg_readwrite_flag
* ndloop_init_arg_by_narray
Extract get_pointer_for_rwflag from ndloop_set_stepidx.
refactroing ndloop_run
Extract the following functions from ndloop_init_args
* ndloop_set_noloop
* ndloop_init_arg_by_array
* ndloop_reject_no_data_array
* ndloop_set_step_for_linear_data
* ndloop_set_stepidx_for_view
New function: ndloop_max_nd
Modify ndloop_set_step_for_linear_data nhand ndloop_set_stepidx_for_view.
Refactor ndloop_set_output.
Extract ndloop_set_output_rarray function from ndloop_set_output.
Refactor ndloop_get_arg_type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant