[all-commits] [llvm/llvm-project] 4c58b0: [SelectionDAG] Propagate PCSections through SDNodes

Marco Elver via All-commits all-commits at lists.llvm.org
Wed Sep 7 02:24:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c58b00801add008e1f2bd0774d9a0d7297c3f93
      https://github.com/llvm/llvm-project/commit/4c58b00801add008e1f2bd0774d9a0d7297c3f93
  Author: Marco Elver <elver at google.com>
  Date:   2022-09-07 (Wed, 07 Sep 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
    M llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp

  Log Message:
  -----------
  [SelectionDAG] Propagate PCSections through SDNodes

Add a new entry to SDNodeExtraInfo to propagate PCSections through
SelectionDAG.

Reviewed By: vitalybuka

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


  Commit: da695de628d6507924f49b8088c812eeb908b2ee
      https://github.com/llvm/llvm-project/commit/da695de628d6507924f49b8088c812eeb908b2ee
  Author: Marco Elver <elver at google.com>
  Date:   2022-09-07 (Wed, 07 Sep 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineInstrBuilder.h
    M llvm/unittests/CodeGen/MachineInstrTest.cpp

  Log Message:
  -----------
  [MachineInstrBuilder] Introduce MIMetadata to simplify metadata propagation

In many places DebugLoc and PCSections metadata are just copied along to
propagate them through MachineInstrs. Simplify doing so by bundling them
up in a MIMetadata class that replaces the DebugLoc argument to most
BuildMI() variants.

The DebugLoc-only constructors allow implicit construction, so that
existing usage of `BuildMI(.., DL, ..)` works as before, and the rest of
the codebase using BuildMI() does not require changes.

NFC.

Reviewed By: vitalybuka

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


Compare: https://github.com/llvm/llvm-project/compare/5291c3dd3683...da695de628d6


More information about the All-commits mailing list