[PATCH] D18112: [OpenMP] Replace offloading option that start with -o with -fo.

Samuel Antao via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 11 17:33:33 PST 2016


sfantao created this revision.
sfantao added reviewers: ABataev, hfinkel, carlo.bertolli, arpith-jacob, kkwli0.
sfantao added subscribers: fraggamuffin, caomhin, cfe-commits.

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.

http://reviews.llvm.org/D18112

Files:
  include/clang/Driver/CC1Options.td
  include/clang/Driver/Options.td
  lib/Frontend/CompilerInvocation.cpp
  test/OpenMP/distribute_codegen.cpp
  test/OpenMP/target_codegen.cpp
  test/OpenMP/target_codegen_global_capture.cpp
  test/OpenMP/target_codegen_registration.cpp
  test/OpenMP/target_codegen_registration_naming.cpp
  test/OpenMP/target_map_codegen.cpp
  test/OpenMP/target_messages.cpp
  test/OpenMP/target_parallel_messages.cpp
  test/OpenMP/teams_codegen.cpp
  test/OpenMP/teams_firstprivate_codegen.cpp
  test/OpenMP/teams_private_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18112.50503.patch
Type: text/x-patch
Size: 98261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160312/96f6dfd3/attachment-0001.bin>


More information about the cfe-commits mailing list