HIP ramifications: rename language_cplus to language_cplus_#112
HIP ramifications: rename language_cplus to language_cplus_#112amd-shahab wants to merge 1 commit intoamd-stagingfrom
Conversation
|
Is upstreaming the HIP language support a reasonable alternative to avoid having such a workaround downstream? |
lancesix
left a comment
There was a problem hiding this comment.
the __ in the middle looks like a typo (unless it is just not noticed), I'd probably prefer language_cplus_ so the trailing underscore looks more intentional.
If what we have seems acceptable upstream, sure! It won't be exercised properly until we have debug info that goes with the said language, but maybe upstream can be ok with that. |
Why would we really care of |
upstreaming and this can happen next to each other. even if we begin the process of upstraming today, it can take a while before it gets in. meanwhile, we will have spent more time on trying to catch the new changes. |
for analysis purposes. nonetheless, it can be achieved with word markers ( |
1dee972 to
82cf990
Compare
|
82cf990 to
a10343a
Compare
|
The commit message still says |
Also it's technically reserved to the language implementation: https://devblogs.microsoft.com/oldnewthing/20230109-00/?p=107685 |
a10343a to
f8b394d
Compare
|
f8b394d to
f62744b
Compare
|
f62744b to
667ab39
Compare
After the introduction of 63ebd1a gdb/language: add "is_cplus_dialect ()" check 8d269b6 gdb/language: add "strip_cplus_dialect ()" that for the benefit of the HIP language, try to group C++-like languages together, there can easily be an oversight when upstream changes introduce new instances of language_cplus into the code base. This patch renames the (downstream) language_cplus, so that such new instances are caught by build failures. When the build fails, given the context, there are 3 possible outcomes: 1) Using "is_cplus_dialect (...)" instead 2) Using "strip_cplus_dialect (...)", followed by a comparison against "language_cplus_" value 3) Renaming it to "language_cplus_" After this point, any instance of "langauge_cplus_" indicates that we have already examined the situation and it is supposed to be that way. The "language_cplus" instances in the comments are not touched for two reasons: 1) Less amount of changes to avoid likely conflicts in the future 2) When we will go back upstream and have to undo this patch, there will be a few less things to take care of. Change-Id: I3f380812c2748e7ae7cd1c67cfe45b4bdc25a083
667ab39 to
ed0ff6e
Compare
After the introduction of
63ebd1a gdb/language: add "is_cplus_dialect ()" check
8d269b6 gdb/language: add "strip_cplus_dialect ()"
that for the benefit of the HIP language try to group C++-like languages together, there can easily be an oversight when upstream changes introduce new instances of language_cplus into the code base. This patch renames the (downstream) language_cplus, so that such new instances are caught by build failures.
When the build fails, given the context, there are 3 possible outcomes:
After this point, any instance of "langauge_cplus_" indicates that we have already examined the situation and it is supposed to be that way.
The "language_cplus" instances in the comments are not touched for two reasons:
Change-Id: I3f380812c2748e7ae7cd1c67cfe45b4bdc25a083