
LLVM::TargetMachine - LLVM target machine class

version 0.10

A LLVM::TargetMachine can be used to generate assembly or object files.

Create a new LLVM::TargetMachine given a LLVM::Target,
a string representing the platform's triple (e.g.
'x86_64-linux-gnu'),
a string representing a CPU (e,g,
'athlon') and a list of CPU features.
To see what CPUs and features are supported for given target, run, from the command-line:
llvm-as < /dev/null | llc -march=xyz -mcpu=help
replacing xyz with the desired target (e.g. 'x86-64').
Emit an object (if $to_object is true) or ASM file for the given LLVM::Module to $file.

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.