LLVM API Documentation

Public Member Functions | Static Public Attributes
llvm::TargetLibraryInfo Class Reference

#include <TargetLibraryInfo.h>

Inheritance diagram for llvm::TargetLibraryInfo:
Inheritance graph
[legend]
Collaboration diagram for llvm::TargetLibraryInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TargetLibraryInfo ()
 TargetLibraryInfo (const Triple &T)
 TargetLibraryInfo (const TargetLibraryInfo &TLI)
bool getLibFunc (StringRef funcName, LibFunc::Func &F) const
bool has (LibFunc::Func F) const
bool hasOptimizedCodeGen (LibFunc::Func F) const
StringRef getName (LibFunc::Func F) const
void setUnavailable (LibFunc::Func F)
void setAvailable (LibFunc::Func F)
void setAvailableWithName (LibFunc::Func F, StringRef Name)
void disableAllFunctions ()

Static Public Attributes

static char ID

Detailed Description

TargetLibraryInfo - This immutable pass captures information about what library functions are available for the current target, and allows a frontend to disable optimizations through -fno-builtin etc.

Definition at line 675 of file TargetLibraryInfo.h.


Constructor & Destructor Documentation

Definition at line 678 of file TargetLibraryInfo.cpp.

References initialize(), and llvm::LibFunc::memset.

Definition at line 685 of file TargetLibraryInfo.cpp.

References initialize(), and llvm::LibFunc::memset.

Definition at line 692 of file TargetLibraryInfo.cpp.

References llvm::LibFunc::memcpy.


Member Function Documentation

disableAllFunctions - This disables all builtins, which is used for options like -fno-builtin.

Definition at line 741 of file TargetLibraryInfo.cpp.

References llvm::LibFunc::memset.

getLibFunc - Search for a particular function name. If it is one of the known library functions, return true and set F to the corresponding value.

Definition at line 717 of file TargetLibraryInfo.cpp.

References llvm::StringRef::empty(), llvm::StringRef::find(), llvm::StringRef::front(), I, llvm::StringRef::npos, llvm::LibFunc::NumLibFuncs, and llvm::StringRef::substr().

Referenced by getAllocationData(), llvm::getIntrinsicIDForCall(), llvm::isFreeCall(), llvm::LibCallSimplifier::optimizeCall(), and llvm::FastISel::selectInstruction().

Definition at line 758 of file TargetLibraryInfo.h.

setUnavailable - this can be used by whatever sets up TargetLibraryInfo to ban use of specific library functions.

Definition at line 754 of file TargetLibraryInfo.h.

Referenced by initialize().


Member Data Documentation

Definition at line 695 of file TargetLibraryInfo.h.


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