The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LLVM::Module - LLVM module class

VERSION

version 0.05

DESCRIPTION

A LLVM::Module is the top-level container for all the LLVM IR objects.

METHODS

new( $ctx, $id )

Create a new LLVM::Module given its LLVM::Context and a string representing its id (name).

add_func( $func_name, $func_type )

Add a function named $func_name with LLVM::Type $func_type.

get_func( $func_name )

Retrieve the LLVM::Value corresponding to the given function.

del_func( $func )

Delete the given LLVM::Value representing a function.

add_global( $global_name, $global_type )

Add a global variable named $global_name with LLVM::Type $global_type.

get_global( $global_name )

Retrieve the LLVM::Value corresponding to the given global variable.

del_global( $global )

Delete the given LLVM::Value representing a global variable.

dump( )

Dump the compiled module to STDERR (useful for debug).

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.