Skip to content

Commit

Permalink
omp: Reorder call for TARGET_SIMD_CLONE_ADJUST
Browse files Browse the repository at this point in the history
This patch moves the call to TARGET_SIMD_CLONE_ADJUST until after the arguments
and return types have been transformed into vector types.  It also constructs
the adjuments and retval modifications after this call, allowing targets to
alter the types of the arguments and return of the clone prior to the
modifications to the function definition.

gcc/ChangeLog:

	* omp-simd-clone.cc (simd_clone_adjust_return_type): Hoist out code to
	create return array and don't return new type.
	(simd_clone_adjust_argument_types): Hoist out code that creates
	ipa_param_body_adjustments and don't return them.
	(simd_clone_adjust): Call TARGET_SIMD_CLONE_ADJUST after return and
	argument types have been vectorized, create adjustments and return array
	after the hook.
	(expand_simd_clones): Call TARGET_SIMD_CLONE_ADJUST after return and
	argument types have been vectorized.
  • Loading branch information
avieira-arm committed Nov 1, 2023
1 parent 64f3a19 commit ea4a3d0
Showing 1 changed file with 145 additions and 96 deletions.
Loading

0 comments on commit ea4a3d0

Please sign in to comment.