[all-commits] [llvm/llvm-project] 0170d3: [Plugins] Address review comments on -plugin-arg (...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Sep 30 01:24:13 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0170d3c340a2e69c8a000f32f9f8c368e6ba13b0
      https://github.com/llvm/llvm-project/commit/0170d3c340a2e69c8a000f32f9f8c368e6ba13b0
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/docs/ReleaseNotes.md
    M llvm/examples/Bye/Bye.cpp
    M llvm/examples/IRTransforms/SimplifyCFG.cpp
    M llvm/include/llvm/Plugins/PassPlugin.h
    M llvm/lib/Plugins/PassPlugin.cpp
    M llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg-blockaddress.ll
    M llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg1.ll
    M llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg2-dead-block-order.ll
    M llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg3-phis.ll
    M llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg4-multiple-duplicate-cfg-updates.ll
    M llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg5-del-phis-for-dead-block.ll
    M llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg6-dead-self-loop.ll
    M llvm/test/Feature/load_extension.ll
    M llvm/test/lit.cfg.py
    M polly/docs/ReleaseNotes.rst
    M polly/lib/Support/RegisterPasses.cpp
    M polly/test/lit.site.cfg.in

  Log Message:
  -----------
  [Plugins] Address review comments on -plugin-arg (#227545)

Address comments after #226773:

* Accept an empty argument again (-plugin-arg=<plugin>,). Tested by
  tut-simplify-cfg1.ll
* Reject an argument for a name shared by several plugins.
* Remove parsePassPluginCommandLine. Polly and the Bye example, which
  keep cl::opt, call cl::ParseCommandLineOptions from ParseArguments.
* Drop cl::opt from the IRTransforms example: ParseArguments takes v1,
  v2 or v3.
* Test -plugin-arg diagnostics.

LLM-aided



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