[all-commits] [llvm/llvm-project] 553885: [PassManager] Support MachineFunctionProperties (#...

paperchalice via All-commits all-commits at lists.llvm.org
Fri Mar 29 18:55:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5538853f9abb559ff4bb7ff598535041d91d97d7
      https://github.com/llvm/llvm-project/commit/5538853f9abb559ff4bb7ff598535041d91d97d7
  Author: paperchalice <liujunchang97 at outlook.com>
  Date:   2024-03-30 (Sat, 30 Mar 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachinePassManager.h
    M llvm/include/llvm/Passes/MachinePassRegistry.def
    M llvm/lib/Passes/PassBuilder.cpp
    A llvm/test/tools/llc/new-pm/machine-function-properties.mir

  Log Message:
  -----------
  [PassManager] Support MachineFunctionProperties (#83668)

This pull request adds `MachineFunctionProperties` support. If a pass
wants to modify machine function properties, it must derive from
`MachinePassInfoMixin` and define some static methods like in legacy
pass manager. A test pass `RequireAllMachineFunctionPropertiesPass` is
also added here, which could be a example.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list