LLVM::Module - LLVM module class
version 0.10
A LLVM::Module is the top-level container for all the LLVM IR objects.
LLVM::Module
Create a new LLVM::Module given a string representing its id (name).
Add a function named $func_name with LLVM::Type $func_type.
$func_name
$func_type
Retrieve the LLVM::Value corresponding to the given function.
Delete the given LLVM::Value representing a function.
Add a global variable named $global_name with LLVM::Type $global_type.
$global_name
$global_type
Retrieve the LLVM::Value corresponding to the given global variable.
Delete the given LLVM::Value representing a global variable.
Dump the compiled module to STDERR (useful for debug).
STDERR
Alessandro Ghedini <alexbio@cpan.org>
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.
To install LLVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LLVM
CPAN shell
perl -MCPAN -e shell install LLVM
For more information on module installation, please visit the detailed CPAN module installation guide.