[all-commits] [llvm/llvm-project] bae33a: IR printing for single function with the new pass ...

WenleiHe via All-commits all-commits at lists.llvm.org
Sun Feb 23 15:29:15 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bae33a7c5a1f220671e6d99cda21749afe2501a6
      https://github.com/llvm/llvm-project/commit/bae33a7c5a1f220671e6d99cda21749afe2501a6
  Author: Hongtao Yu <hoy at devvm4643.prn2.facebook.com>
  Date:   2020-02-23 (Sun, 23 Feb 2020)

  Changed paths:
    M llvm/lib/Passes/StandardInstrumentations.cpp
    M llvm/test/Other/module-pass-printer.ll

  Log Message:
  -----------
  IR printing for single function with the new pass manager.

Summary:
The IR printing always prints out all functions in a module with the new pass manager, even with -filter-print-funcs specified. This is being fixed in this change. However, there are two exceptions, i.e, with user-specified wildcast switch -filter-print-funcs=* or -print-module-scope, under which IR of all functions should be printed.

Test Plan:
make check-clang
make check-llvm

Reviewers: wenlei

Reviewed By: wenlei

Subscribers: wenlei, hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D74814




More information about the All-commits mailing list