platinor
platinor

Reputation: 857

Available Analysis and Transform passes for LLVM

Is there any document on the list of Analysis and Transform passes available for use in the AnalysisUsage::addRequired<> and Pass::geAnalysis<> functions?

I can get a list of passes in http://llvm.org/docs/Passes.html, but it only shows the command line names for the passes. How can I know the underlying pass classes?

Upvotes: 1

Views: 494

Answers (1)

Eli Bendersky
Eli Bendersky

Reputation: 273456

Not really, no. Just look at the source. The header files in include/llvm/Analysis/ and include/llvm/Transforms/ will tell you everything you need to know.

Moreover, grepping over the source for getAnalysis< will tell you which passes are used as analyses inside the LLVM source code.

Upvotes: 1

Related Questions