[all-commits] [llvm/llvm-project] 9cfab5: [Polly] Add support for -polly-dump-before/after w...

Michael Kruse via All-commits all-commits at lists.llvm.org
Sun Aug 22 18:53:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cfab5e2491ec1fbf8a3055453b3da08ecacc6a6
      https://github.com/llvm/llvm-project/commit/9cfab5e2491ec1fbf8a3055453b3da08ecacc6a6
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2021-08-22 (Sun, 22 Aug 2021)

  Changed paths:
    M polly/include/polly/LinkAllPasses.h
    A polly/include/polly/Support/DumpFunctionPass.h
    M polly/lib/CMakeLists.txt
    A polly/lib/Support/DumpFunctionPass.cpp
    M polly/lib/Support/RegisterPasses.cpp
    A polly/test/Support/dumpfunction.ll

  Log Message:
  -----------
  [Polly] Add support for -polly-dump-before/after with NPM.

The new pass manager does not allow adding module passes at the
-polly-position=before-vectorizer extension point. Introduce a
DumpFunctionPass that dumps only current function. In contrast to the
legacy pass manager's -polly-dump-before, each function will be dumped
into its own file. -polly-dump-before-file is still not supported.

The DumpFunctionPass uses llvm::CloneModule to copy the current function
into a new module and then write it into a file.




More information about the All-commits mailing list