[all-commits] [llvm/llvm-project] 35b7b0: Allow MachineFunction to obtain non-const Function...

Daniel Sanders via All-commits all-commits at lists.llvm.org
Mon Apr 6 15:19:41 PDT 2020


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

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineFunction.h
    M llvm/include/llvm/CodeGen/MachineModuleInfo.h
    M llvm/lib/CodeGen/MachineFunction.cpp
    M llvm/lib/CodeGen/MachineModuleInfo.cpp

  Log Message:
  -----------
  Allow MachineFunction to obtain non-const Function (to enable MIR-level debugify)

Summary:
To debugify MIR, we need to be able to create metadata and to do that, we
need a non-const Module. However, MachineFunction only had a const reference
to the Function preventing this.

Reviewers: aprantl, bogner

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list