diff options
author | Tarun Prabhu <tarun@lanl.gov> | 2024-08-29 16:21:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-29 16:21:43 -0600 |
commit | a1441ca74708a557606bf68d42fca40bb03dbd74 (patch) | |
tree | 909bcee0f9f4280e1b4c28a38cebb8626287c23e /clang/lib/CodeGen/BackendUtil.cpp | |
parent | cc943a67d114e28c28f561c3b1a48ff2003264ce (diff) | |
download | llvm-a1441ca74708a557606bf68d42fca40bb03dbd74.zip llvm-a1441ca74708a557606bf68d42fca40bb03dbd74.tar.gz llvm-a1441ca74708a557606bf68d42fca40bb03dbd74.tar.bz2 |
[flang][Driver] Add support for -mllvm -print-pipeline-passes
The behavior deliberately mimics that of clang. Ideally, -print-pipeline-passes
should be a first-class driver option. Notes to this effect have been added in
the appropriate places in both flang and clang.
---------
Co-authored-by: Tarun Prabhu <tarun.prabhu@gmail.com>
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 026f164..564efa3 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -1095,6 +1095,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline( TheModule->addModuleFlag(llvm::Module::Error, "UnifiedLTO", uint32_t(1)); } + // FIXME: This should eventually be replaced by a first-class driver option. + // This should be done for both clang and flang simultaneously. // Print a textual, '-passes=' compatible, representation of pipeline if // requested. if (PrintPipelinePasses) { |