LLVM API Documentation

llvm::TargetMachineRegistry Struct Reference

#include <TargetMachineRegistry.h>

Inheritance diagram for llvm::TargetMachineRegistry:
[legend]
Collaboration diagram for llvm::TargetMachineRegistry:
[legend]

List of all members.

Static Public Member Functions

static const entry * getClosestStaticTargetForModule (const Module &M, std::string &Error)
static const entry * getClosestTargetForJIT (std::string &Error)


Detailed Description

Definition at line 52 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.

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


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