[all-commits] [llvm/llvm-project] 297b6d: [Flang] Use PrintModulePass to print LLVM IR from ...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Wed Jun 12 03:41:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 297b6dea8c7652b62933e78ef79e60ce59fc1ec0
      https://github.com/llvm/llvm-project/commit/297b6dea8c7652b62933e78ef79e60ce59fc1ec0
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2024-06-12 (Wed, 12 Jun 2024)

  Changed paths:
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/test/Transforms/debug-local-var-2.f90

  Log Message:
  -----------
  [Flang] Use PrintModulePass to print LLVM IR from the frontend (#95142)

The Flang frontend currently prints LLVM IR modules using
llvm::Module::print(); this works for default cases, but skips some of
the logic that IR printer passes use, specifically the use of the
--write-experimental-debuginfo flag to control debug info format. This
patch replaces the use of print() with the PrintModulePass, bringing the
printing behaviour to parity with clang's frontend.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list