llvm/llvm-project

MetaRenamer command line options should be replaced with pass parameters

Open

#133,875 创建于 2025年4月1日

在 GitHub 查看
 (4 评论) (0 反应) (1 负责人)C++ (10,782 fork)batch import
good first issuellvm:transforms

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 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.

贡献者指南