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
[PATCH API-NEXT v29] restructure headers for ABI-compat/platform-optimized modes #250
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
muvarov
changed the title
WIP: restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v1] WIP: restructure headers for ABI-compat/platform-optimized modes
Oct 22, 2017
muvarov
changed the title
[PATCH API-NEXT v1] WIP: restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v2] WIP: restructure headers for ABI-compat/platform-optimized modes
Oct 22, 2017
muvarov
changed the title
[PATCH API-NEXT v2] WIP: restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v3] WIP: restructure headers for ABI-compat/platform-optimized modes
Oct 23, 2017
muvarov
changed the title
[PATCH API-NEXT v3] WIP: restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v4] WIP: restructure headers for ABI-compat/platform-optimized modes
Oct 23, 2017
muvarov
changed the title
[PATCH API-NEXT v4] WIP: restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v5] WIP: restructure headers for ABI-compat/platform-optimized modes
Oct 23, 2017
muvarov
changed the title
[PATCH API-NEXT v5] WIP: restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v6] WIP: restructure headers for ABI-compat/platform-optimized modes
Oct 23, 2017
muvarov
changed the title
[PATCH API-NEXT v6] WIP: restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v7] WIP: restructure headers for ABI-compat/platform-optimized modes
Oct 23, 2017
muvarov
changed the title
[PATCH API-NEXT v27] restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v28] restructure headers for ABI-compat/platform-optimized modes
Jan 16, 2018
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
_ODP_CACHE_LINE_SIZE is only used to define ODP_CACHE_LINE_SIZE. Drop interim define and make cpu.h directly define ODP_CACHE_LINE_SIZE. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Minor cleanup of API headers: - remove empty Doxygen groups - rename guarding defines to follow ODP_API_FOO_H_ pattern Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Now that api header files consist only of generic includes, move them to generic locations, so that they can be reused by implementations. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Several files consist only (or mostly) of functions compiled only if ODP is compiled in ABI compatibility mode. Instead of having an ifdef inside, guard them with if ODP_ABI_COMPAT condition in Makefile.am Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Split away inclusion of API implementation to the files selected by Automake. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Replace static_inline.h header with unconditional defines of _ODP_INLINE macro (either to 'static inline' or to empty value) depending on the compilation place. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
There is no point in installing inline headers in ABI-compat mode anymore. They are not included by any other header. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
With static_inline.h gone, there is no need to AC_SUBST([ODP_ABI_COMPAT]). Drop it from configure.ac. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
compiler.h header contains one internal definition used only in platform-optimized headers. This definition, being internal, is not a part of the specification, so let's merge it into linux-gen plat file and drop compiler.h headers. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Provide formal description of files being part of ODP specification, platform-specific headers, substituting parts of ODP specification and additional headers supplementing ODP specification. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
There was an idea that platform might override visibility headers in platform-specific way. For the sake of providing full set of headers for ABI-compatibile case, move those headers to include/ dir. Platform can still override those headers when compiling in non-ABI-compatibile mode. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Fixed two checkpatch issues. Other seem to be invalid. |
muvarov
changed the title
[PATCH API-NEXT v28] restructure headers for ABI-compat/platform-optimized modes
[PATCH API-NEXT v29] restructure headers for ABI-compat/platform-optimized modes
Jan 17, 2018
I think it can go in to master I think. @psavol as I remember you were ok with most of the changes. |
@muvarov I'll create a separate PR, rebasing this on top of master |
I think that can be closed as #401 merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch serie is based on discussions during SFO17.
My main goals were:
ABI-compat and non-ABI-compat headers
preprocessor
non-ABI headers
With this patchset these goals are mostly accomplished. Remaining
headers to be reworked:
align.h: gcc/platform-specific implementation
cpu.h: platform-specific code, needs additional discussion
visibility_begin.h/_end.h: gcc specific, controls visibility of symbols. Used by both ODP and ODPH.