[OpenMP][Fix] Make the arch selector for x86_64 work
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 23 Dec 2020 23:58:07 +0000 (17:58 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 7 Jan 2021 20:31:18 +0000 (14:31 -0600)
commitd970a285b8567b93aea39e7e4d10965fe8b7340c
tree01288ab89ee524e059ba2d2a86f1e47801d37a64
parent9ae171bcd38cdefa64c9dd5d763d16007eebcd0d
[OpenMP][Fix] Make the arch selector for x86_64 work

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.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D93786
clang/test/OpenMP/declare_variant_ast_x86_64.c [new file with mode: 0644]
llvm/lib/Frontend/OpenMP/OMPContext.cpp