LLVM API Documentation

llvm::TargetMachineRegistry Struct Reference

#include <TargetMachineRegistry.h>

Collaboration diagram for llvm::TargetMachineRegistry:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static const EntrygetList ()
static const EntrygetClosestStaticTargetForModule (const Module &M, std::string &Error)
static const EntrygetClosestTargetForJIT (std::string &Error)

Classes

struct  Entry

Detailed Description

Definition at line 26 of file TargetMachineRegistry.h.


Member Function Documentation

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.

References E, getList(), M, and llvm::TargetMachineRegistry::Entry::Name.

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().

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().


The documentation for this struct was generated from the following files: