[all-commits] [llvm/llvm-project] 3be3b4: [Attributor][NFCI] Introduce AttributorConfig to b...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Fri Apr 15 16:17:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3be3b401888ace347018abd077912868bbc416b3
      https://github.com/llvm/llvm-project/commit/3be3b401888ace347018abd077912868bbc416b3
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp

  Log Message:
  -----------
  [Attributor][NFCI] Introduce AttributorConfig to bundle all options

Instead of lengthy constructors we can now set the members of a
read-only struct before the Attributor is created. Should make it
clearer what is configurable and also help introducing new options in
the future. This actually added IsModulePass and avoids deduction
through the Function set size. No functional change was intended.




More information about the All-commits mailing list