This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][Fix] Make the arch selector for x86_64 work
ClosedPublic

Authored by jdoerfert on Dec 23 2020, 4:27 PM.

Details

Summary

The triple uses a bar "x86-64" instead of an underscore. Since we
have troubles accepting x86-64 as an identifier, we stick with
x86_64 in the frontend and translate it explicitly.

Diff Detail

Event Timeline

jdoerfert created this revision.Dec 23 2020, 4:27 PM
jdoerfert requested review of this revision.Dec 23 2020, 4:27 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 23 2020, 4:27 PM
tianshilei1992 accepted this revision.Dec 23 2020, 4:57 PM

Is it because the triple is separated by -?

This revision is now accepted and ready to land.Dec 23 2020, 4:57 PM

Is it because the triple is separated by -?

x86 and 64 is separated by - in the architecture list so getArchTypeForLLVMName will not recognize "x86_64".

This revision was automatically updated to reflect the committed changes.