[all-commits] [llvm/llvm-project] ae1c1e: [CodeGen] Allow `CodeGenPassBuilder` to add module...

paperchalice via All-commits all-commits at lists.llvm.org
Thu Jan 11 16:37:24 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae1c1ed6af8dd7efeb284c23ee8694fad30fff1f
      https://github.com/llvm/llvm-project/commit/ae1c1ed6af8dd7efeb284c23ee8694fad30fff1f
  Author: paperchalice <liujunchang97 at outlook.com>
  Date:   2024-01-12 (Fri, 12 Jan 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/CodeGenPassBuilder.h
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/unittests/CodeGen/CMakeLists.txt
    A llvm/unittests/CodeGen/CodeGenPassBuilderTest.cpp

  Log Message:
  -----------
  [CodeGen] Allow `CodeGenPassBuilder` to add module pass after function pass (#77084)

In fact, there are several backends, e.g. AArch64, AMDGPU etc. add
module pass after function pass, this patch removes this constraint.
This patch also adds a simple unit test for `CodeGenPassBuilder`.




More information about the All-commits mailing list