llvm/llvm-project

MetaRenamer command line options should be replaced with pass parameters

Ouverte

#133 875 ouverte le 1 avr. 2025

 (4 commentaires) (0 réaction) (1 personne assignée)C++ (10 782 forks)batch import
good first issuellvm:transforms

Métriques du dépôt

Stars
 (26 378 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur