LLVM API Documentation
#include <TargetMachineRegistry.h>
Static Public Member Functions | |
| static const entry * | getClosestStaticTargetForModule (const Module &M, std::string &Error) |
| static const entry * | getClosestTargetForJIT (std::string &Error) |
Definition at line 52 of file TargetMachineRegistry.h.
| 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.
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 25 of file TargetMachineRegistry.cpp.
References llvm::Registry< T, U >::begin(), E, and llvm::Registry< T, U >::end().
| const TargetMachineRegistry::entry * TargetMachineRegistry::getClosestTargetForJIT | ( | std::string & | Error | ) | [static] |
getClosestTargetForJIT - Pick the best target that is compatible with the current host. If no close target can be found, this returns null and sets the Error string to a reason.
getClosestTargetForJIT - Pick the best target that is compatible with the current host. If no close target can be found, this returns null and sets the Error string to a reason.
Definition at line 54 of file TargetMachineRegistry.cpp.
References llvm::Registry< T, U >::begin(), E, llvm::Registry< T, U >::end(), and first.
Referenced by llvm::JIT::createJIT().