NAME

LLVM::PassManager - LLVM pass manager class

VERSION

version 0.09

DESCRIPTION

A LLVM::PassManager holds and optimizes the execution of passes. A pass performs the transformations and optimizations that make up the compiler.

Have a look at LLVM::Transform to see what passes are available.

METHODS

new( )

Create a new whole-module LLVM::PassManager.

add( $pass )

Schedule the given pass. See LLVM::Transform for a list of available passes.

run( $mod )

Run all the passes scheduled on the given LLVM::Module. Returns true if any of the passes modified the module, false otherwise.

AUTHOR

Alessandro Ghedini <alexbio@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2012 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.