LLVM API Documentation
#include <TargetMachineRegistry.h>
Collaboration diagram for llvm::TargetMachineRegistry:
Static Public Member Functions | |
static const Entry * | getList () |
static const Entry * | getClosestStaticTargetForModule (const Module &M, std::string &Error) |
static const Entry * | getClosestTargetForJIT (std::string &Error) |
Classes | |
struct | Entry |
Definition at line 26 of file TargetMachineRegistry.h.
static const Entry* llvm::TargetMachineRegistry::getList | ( | ) | [inline, static] |
TargetMachineRegistry::getList - This static method returns the list of target machines that are registered with the system.
Definition at line 31 of file TargetMachineRegistry.h.
Referenced by getClosestStaticTargetForModule(), getClosestTargetForJIT(), and llvm::TargetNameParser::initialize().
const TargetMachineRegistry::Entry * TargetMachineRegistry::getClosestStaticTargetForModule | ( | const Module & | M, | |
std::string & | Error | |||
) | [static] |
getClosestStaticTargetForModule - Given an LLVM module, pick the best target that is compatible with the module. If no close target can be found, this returns null and sets the Error string to a reason.
Definition at line 53 of file TargetMachineRegistry.cpp.
const TargetMachineRegistry::Entry * TargetMachineRegistry::getClosestTargetForJIT | ( | std::string & | Error | ) | [static] |
getClosestTargetForJIT - Given an LLVM module, pick the best target that is compatible with the current host and the specified module. If no close target can be found, this returns null and sets the Error string to a reason.
Definition at line 83 of file TargetMachineRegistry.cpp.
References E, first, and getList().
Referenced by llvm::JIT::create().