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
condformats_serialization_generate.py: support for aarch64 #3948
Conversation
A new Pull Request was created by @davidlt for CMSSW_7_2_X. condformats_serialization_generate.py: support for aarch64 It involves the following packages: CondFormats/Serialization @ggovi, @cmsbuild, @apfeiffer1, @Degano, @nclopezo can you please review it and eventually sign? Thanks. |
Pull request #3948 was updated. @apfeiffer1, @Dr15Jones, @vlimant, @davidlange6, @monttj, @cmsbuild, @franzoni, @thspeer, @StoyanStoynev, @slava77, @ggovi, @vadler, @Degano, @ktf, @nclopezo can you please check and sign again. |
LLVM/Clang on AArch64 will report that most AST nodes are not definition, which is not true. The following modifies script to check definition based on location information directly (file, line, and column). Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
Updated (missed two
No differences reported. |
+1 On Thu, May 22, 2014 at 11:32 AM, cmsbuild notifications@github.com wrote:
Thanks, |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes or unless it breaks tests. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine). |
ARM64 -- condformats_serialization_generate.py: support for aarch64
libClang
seems to act differently on AArch64 causingcondformats_serialization_generate.py
always to select 0 classes. It happens thatis_definition()
on AST node mostly returns false.Even on such small examples:
On Fedora 20 on x86_64
On Fedora 19 on aarch64
Change checks if node (declaration record) and it's definition location (file, line and column) match. If match is found, it's a definition.
Details from
libClang
side:data[1]
seems toSourceLocation.ID
.I compared md5 hashes of
Serialization.cc
files using untouched and modifiedcondformats_serialization_generate.py
. All were identical.This is my initial proposal until I understand better the difference in libClang behavior on aarch64 and x86_64, or it's fixed in upstream.