llvm/llvm-project

MetaRenamer command line options should be replaced with pass parameters

開放

#133,875 建立於 2025年4月1日

 (4 則留言) (0 個反應) (1 位負責人)C++ (10,782 個分叉)batch import
good first issuellvm:transforms

倉庫指標

星標
 (26,378 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The metarenamer pass currently defines 5 cl::opts.

In general with the new pass manager, we should prefer to use named pass parameters and avoid using global options. For utility passes like this, which are only useful when manually running opt, there should be low friction to replacing them.

https://github.com/llvm/llvm-project/pull/133874 is an example of a simpler migration for another utility pass for reference.

貢獻者指南