[llvm-dev] Adding utility/debugging passes upstream
Mehdi Amini via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 30 13:27:37 PDT 2016
> On Sep 30, 2016, at 12:37 PM, Anna Thomas via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> I was wondering what’s the community guideline for adding new passes which are solely used for debugging/analysis purposes? Can this be in the upstream llvm, or such passes are more suitable in local downstream repository?
> In our case, the ‘utility (ease-of-analysis)’ pass is for transformation done by RewriteStatepointsForGC (RS4GC). Note that right now, RS4GC is not enabled in the opt pipeline upstream, but the utility pass would be for downstream users who have RS4GC enabled in their opt pipeline.
I think you should start by describing exactly what the pass is doing and how it is useful for working with/on RewriteStatepointsForGC.
If it is correctly tested and documented, I don’t see why it couldn’t be in-tree.
More information about the llvm-dev