[OpenMP] Replace offloading option that start with -o with -fo.
authorSamuel Antao <sfantao@us.ibm.com>
Mon, 14 Mar 2016 15:57:41 +0000 (15:57 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Mon, 14 Mar 2016 15:57:41 +0000 (15:57 +0000)
commitaeb7b539f59cc9dd4e1a28c4cf841d19ba75e5a9
tree35f35a990523e5bee50bc0f8ceb7b345fcd68829
parented2213e6efc1cc71a323f49585e859d6e41853ed
[OpenMP] Replace offloading option that start with -o with -fo.

Summary:
The current offloading implementation is using -omptargets and -omp-host-ir-file-path options in the frontend. This causes the user a lot of trouble due to to the conflicts with the -o option. E.g. if the user misspells  omptargets he will end up with a file with a weird name.

This patches replaces these two options with  -fomptargets and -fomp-host-ir-file-path to avoid these issues, and it is also more consistent with the other options like -fopenmp.

Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev

Subscribers: cfe-commits, caomhin, fraggamuffin

Differential Revision: http://reviews.llvm.org/D18112

llvm-svn: 263442
14 files changed:
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Driver/Options.td
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/OpenMP/distribute_codegen.cpp
clang/test/OpenMP/target_codegen.cpp
clang/test/OpenMP/target_codegen_global_capture.cpp
clang/test/OpenMP/target_codegen_registration.cpp
clang/test/OpenMP/target_codegen_registration_naming.cpp
clang/test/OpenMP/target_map_codegen.cpp
clang/test/OpenMP/target_messages.cpp
clang/test/OpenMP/target_parallel_messages.cpp
clang/test/OpenMP/teams_codegen.cpp
clang/test/OpenMP/teams_firstprivate_codegen.cpp
clang/test/OpenMP/teams_private_codegen.cpp