aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTom Eccles <tom.eccles@arm.com>2023-09-14 09:09:29 +0000
committerTom Eccles <tom.eccles@arm.com>2023-10-12 09:37:58 +0000
commitac0015fe21110700fb5e7e9f89b377e80fc843dd (patch)
treecee9e51757d8cbbdc1bbe9d964c876a89770fd20 /flang/lib/Frontend/CompilerInvocation.cpp
parent8a7e5477982bcbfd46495e8e5e404fe43ad22d97 (diff)
downloadllvm-ac0015fe21110700fb5e7e9f89b377e80fc843dd.zip
llvm-ac0015fe21110700fb5e7e9f89b377e80fc843dd.tar.gz
llvm-ac0015fe21110700fb5e7e9f89b377e80fc843dd.tar.bz2
[flang][driver] add command line arguments for alias tags pass
The ultimate intention is to have this pass enabled by default whenever we are optimizing for speed. But for now, just add the arguments so this can be more easily tested. PR: https://github.com/llvm/llvm-project/pull/68595
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 37315e0..ba2ecab 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -214,6 +214,11 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
clang::driver::options::OPT_fno_loop_versioning, false))
opts.LoopVersioning = 1;
+ opts.AliasAnalysis =
+ args.hasFlag(clang::driver::options::OPT_falias_analysis,
+ clang::driver::options::OPT_fno_alias_analysis,
+ /*default=*/false);
+
for (auto *a : args.filtered(clang::driver::options::OPT_fpass_plugin_EQ))
opts.LLVMPassPlugins.push_back(a->getValue());