|
LLVM
4.0.0
|
Provides information about what library functions are available for the current target. More...
#include <TargetLibraryInfo.h>
Friends | |
| class | TargetLibraryAnalysis |
| class | TargetLibraryInfoWrapperPass |
Provides information about what library functions are available for the current target.
This both allows optimizations to handle them specially and frontends to disable such optimizations through -fno-builtin etc.
Definition at line 203 of file TargetLibraryInfo.h.
|
inlineexplicit |
Definition at line 210 of file TargetLibraryInfo.h.
|
inline |
Definition at line 213 of file TargetLibraryInfo.h.
|
inline |
Definition at line 214 of file TargetLibraryInfo.h.
|
inline |
Returns extension attribute kind to be used for i32 parameters corresponding to C-level int or unsigned int.
May be zeroext, signext, or none.
Definition at line 295 of file TargetLibraryInfo.h.
References llvm::Attribute::None, and Signed.
Referenced by getOrInsertValueProfilingCall().
|
inline |
Returns extension attribute kind to be used for i32 return values corresponding to C-level int or unsigned int.
May be zeroext, signext, or none.
Definition at line 306 of file TargetLibraryInfo.h.
References llvm::Attribute::None, and Signed.
|
inline |
Searches 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 228 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::getLibFunc().
Referenced by emitCalloc(), FindCXAAtExit(), foldMallocMemset(), getAllocationDataForFunction(), llvm::MemoryLocation::getForArgument(), llvm::getIntrinsicForCallSite(), llvm::inferLibFuncAttributes(), llvm::isFreeCall(), llvm::isMathLibCallNoop(), isWriteOnlyParam(), llvm::maybeMarkSanitizerLibraryCallNoBuiltin(), llvm::FortifiedLibCallSimplifier::optimizeCall(), optimizeCall(), runPartiallyInlineLibCalls(), and llvm::FastISel::selectInstruction().
|
inline |
Definition at line 232 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::getLibFunc().
|
inline |
Definition at line 282 of file TargetLibraryInfo.h.
References assert(), F, and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find().
Referenced by llvm::emitFPutS(), llvm::emitFWrite(), FindCXAAtExit(), and hasMemoryWrite().
Definition at line 246 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::getVectorizedFunction().
|
inline |
Tests whether a library function is available.
Definition at line 237 of file TargetLibraryInfo.h.
Referenced by emitCalloc(), llvm::emitFPutC(), llvm::emitFPutS(), llvm::emitFWrite(), llvm::emitMemChr(), llvm::emitMemCmp(), llvm::emitMemCpyChk(), llvm::emitPutChar(), llvm::emitPutS(), llvm::emitStrChr(), llvm::emitStrCpy(), llvm::emitStrLen(), llvm::emitStrNCmp(), llvm::emitStrNCpy(), FindCXAAtExit(), foldMallocMemset(), getAllocationDataForFunction(), llvm::MemoryLocation::getForArgument(), hasMemoryWrite(), hasUnaryFloatFn(), llvm::inferLibFuncAttributes(), llvm::isFreeCall(), isWriteOnlyParam(), and llvm::MemCpyOptPass::runImpl().
|
inline |
Tests if the function is both available and a candidate for optimized code generation.
Definition at line 252 of file TargetLibraryInfo.h.
References round(), and fuzzer::strcmp.
Referenced by llvm::maybeMarkSanitizerLibraryCallNoBuiltin(), and llvm::FastISel::selectInstruction().
|
inline |
Handle invalidation from the pass manager.
If we try to invalidate this info, just return false. It cannot become invalid even if the module or function changes.
Definition at line 316 of file TargetLibraryInfo.h.
|
inline |
Definition at line 320 of file TargetLibraryInfo.h.
Definition at line 240 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::isFunctionVectorizable().
Referenced by getVectorCallCost().
Definition at line 243 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::isFunctionVectorizable().
|
inline |
Definition at line 215 of file TargetLibraryInfo.h.
|
inline |
Definition at line 219 of file TargetLibraryInfo.h.
|
friend |
Definition at line 204 of file TargetLibraryInfo.h.
|
friend |
Definition at line 205 of file TargetLibraryInfo.h.
1.8.6