diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-06-25 01:49:44 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-06-25 01:49:44 +0000 |
commit | d3f3e4f04c1e51d012e0ae54c214c69e166bf937 (patch) | |
tree | 0cecc092458e2892aac39d59813006d4211c072b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5de91b58d0bd480d05d5cb7bbaa84ad7de38e2e6 (diff) | |
download | llvm-d3f3e4f04c1e51d012e0ae54c214c69e166bf937.zip llvm-d3f3e4f04c1e51d012e0ae54c214c69e166bf937.tar.gz llvm-d3f3e4f04c1e51d012e0ae54c214c69e166bf937.tar.bz2 |
Make -vectorize-... proper cc1 flags instead of abusing -backend-option. Fixes
usage of clang as a library.
llvm-svn: 184812
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index b699bb9..4986dac 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -399,6 +399,10 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.FunctionSections = Args.hasArg(OPT_ffunction_sections); Opts.DataSections = Args.hasArg(OPT_fdata_sections); + Opts.VectorizeBB = Args.hasArg(OPT_vectorize_slp_aggressive); + Opts.VectorizeLoop = Args.hasArg(OPT_vectorize_loops); + Opts.VectorizeSLP = Args.hasArg(OPT_vectorize_slp); + Opts.MainFileName = Args.getLastArgValue(OPT_main_file_name); Opts.VerifyModule = !Args.hasArg(OPT_disable_llvm_verifier); Opts.SanitizeRecover = !Args.hasArg(OPT_fno_sanitize_recover); |