[all-commits] [llvm/llvm-project] 6ea0c0: [NewPM][CodeGen] Add `MachineFunctionAnalysis` (#8...

paperchalice via All-commits all-commits at lists.llvm.org
Mon Apr 29 18:55:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ea0c0a28343b2676baf480db490b5a27fa11d7c
      https://github.com/llvm/llvm-project/commit/6ea0c0a28343b2676baf480db490b5a27fa11d7c
  Author: paperchalice <liujunchang97 at outlook.com>
  Date:   2024-04-30 (Tue, 30 Apr 2024)

  Changed paths:
    R llvm/include/llvm/CodeGen/FreeMachineFunction.h
    M llvm/include/llvm/CodeGen/MIRParser/MIRParser.h
    A llvm/include/llvm/CodeGen/MachineFunctionAnalysis.h
    M llvm/include/llvm/CodeGen/MachineModuleInfo.h
    M llvm/include/llvm/CodeGen/MachinePassManager.h
    M llvm/include/llvm/IR/LLVMContext.h
    M llvm/include/llvm/Passes/CodeGenPassBuilder.h
    M llvm/include/llvm/Passes/MachinePassRegistry.def
    M llvm/lib/CodeGen/CMakeLists.txt
    M llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
    R llvm/lib/CodeGen/FreeMachineFunction.cpp
    M llvm/lib/CodeGen/MIRParser/MIRParser.cpp
    A llvm/lib/CodeGen/MachineFunctionAnalysis.cpp
    M llvm/lib/CodeGen/MachinePassManager.cpp
    M llvm/lib/IR/LLVMContext.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/lib/Passes/StandardInstrumentations.cpp
    M llvm/test/tools/llc/new-pm/pipeline.ll
    M llvm/test/tools/llc/new-pm/pipeline.mir
    M llvm/test/tools/llc/new-pm/start-stop.ll
    M llvm/tools/llc/NewPMDriver.cpp
    M llvm/unittests/CodeGen/PassManagerTest.cpp
    M llvm/unittests/MIR/CMakeLists.txt
    R llvm/unittests/MIR/PassBuilderCallbacksTest.cpp

  Log Message:
  -----------
  [NewPM][CodeGen] Add `MachineFunctionAnalysis` (#88610)

In new pass system, `MachineFunction` could be an analysis result again,
machine module pass can now fetch them from analysis manager.
`MachineModuleInfo` no longer owns them.
Remove `FreeMachineFunctionPass`, replaced by
`InvalidateAnalysisPass<MachineFunctionAnalysis>`.

Now `FreeMachineFunction` is replaced by
`InvalidateAnalysisPass<MachineFunctionAnalysis>`, the workaround in
`MachineFunctionPassManager` is no longer needed, there is no difference
between `unittests/MIR/PassBuilderCallbacksTest.cpp` and
`unittests/IR/PassBuilderCallbacksTest.cpp`.



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