[all-commits] [llvm/llvm-project] c162bc: Make TargetPassConfig and llc add pre/post passes ...

Daniel Sanders via All-commits all-commits at lists.llvm.org
Fri Apr 10 13:47:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c162bc2aedbe7412a56063cd2284d1c7b1858f05
      https://github.com/llvm/llvm-project/commit/c162bc2aedbe7412a56063cd2284d1c7b1858f05
  Author: Daniel Sanders <daniel_l_sanders at apple.com>
  Date:   2020-04-10 (Fri, 10 Apr 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetPassConfig.h
    M llvm/lib/CodeGen/TargetPassConfig.cpp
    M llvm/tools/llc/llc.cpp

  Log Message:
  -----------
  Make TargetPassConfig and llc add pre/post passes the same way. NFC

Summary:
At the moment, any changes we make to the passes that can be
injected before/after others (e.g. -verify-machineinstrs and
-print-after-all) have to be duplicated in both
TargetPassConfig (for normal execution, -start-before/
-stop-before/etc) and llc (for -run-pass). Unify this pass
injection into addMachinePrePass/addMachinePostPass that both
TargetPassConfig and llc can use.

Reviewers: vsk, aprantl, bogner

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list