diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2016-03-14 15:57:41 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2016-03-14 15:57:41 +0000 |
commit | aeb7b539f59cc9dd4e1a28c4cf841d19ba75e5a9 (patch) | |
tree | 35f35a990523e5bee50bc0f8ceb7b345fcd68829 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ed2213e6efc1cc71a323f49585e859d6e41853ed (diff) | |
download | bcm5719-llvm-aeb7b539f59cc9dd4e1a28c4cf841d19ba75e5a9.tar.gz bcm5719-llvm-aeb7b539f59cc9dd4e1a28c4cf841d19ba75e5a9.zip |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index df32ca3e0f1..eccf5976cd2 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1884,7 +1884,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, } // Get the OpenMP target triples if any. - if (Arg *A = Args.getLastArg(options::OPT_omptargets_EQ)) { + if (Arg *A = Args.getLastArg(options::OPT_fomptargets_EQ)) { for (unsigned i = 0; i < A->getNumValues(); ++i) { llvm::Triple TT(A->getValue(i)); @@ -1898,7 +1898,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, // Get OpenMP host file path if any and report if a non existent file is // found - if (Arg *A = Args.getLastArg(options::OPT_omp_host_ir_file_path)) { + if (Arg *A = Args.getLastArg(options::OPT_fomp_host_ir_file_path)) { Opts.OMPHostIRFile = A->getValue(); if (!llvm::sys::fs::exists(Opts.OMPHostIRFile)) Diags.Report(clang::diag::err_drv_omp_host_ir_file_not_found) |