|
LLVM
5.0.0
|
Provides information about what library functions are available for the current target. More...
#include "llvm/Analysis/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 210 of file TargetLibraryInfo.h.
|
inlineexplicit |
Definition at line 217 of file TargetLibraryInfo.h.
|
inline |
Definition at line 220 of file TargetLibraryInfo.h.
|
inline |
Definition at line 221 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 309 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 320 of file TargetLibraryInfo.h.
References llvm::Attribute::None, and Signed.
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 235 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::getLibFunc().
Referenced by emitCalloc(), FindCXAAtExit(), foldMallocMemset(), getAllocationDataForFunction(), llvm::MemoryLocation::getForArgument(), llvm::getIntrinsicForCallSite(), getLibFunc(), llvm::inferLibFuncAttributes(), llvm::isFreeCall(), isKnownLibFunction(), llvm::isMathLibCallNoop(), isWriteOnlyParam(), llvm::maybeMarkSanitizerLibraryCallNoBuiltin(), llvm::FortifiedLibCallSimplifier::optimizeCall(), optimizeCall(), runPartiallyInlineLibCalls(), and llvm::FastISel::selectInstruction().
Definition at line 239 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::getLibFunc().
|
inline |
If a callsite does not have the 'nobuiltin' attribute, return if the called function is a known library function and set F to that function.
Definition at line 245 of file TargetLibraryInfo.h.
References llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::getCalledFunction(), getLibFunc(), and llvm::CallSiteBase< FunTy, BBTy, ValTy, UserTy, UseTy, InstrTy, CallTy, InvokeTy, IterTy >::isNoBuiltin().
Definition at line 296 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 260 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::getVectorizedFunction().
Returns the size of the wchar_t type in bytes.
Definition at line 327 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::getWCharSize().
Tests whether a library function is available.
Definition at line 251 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().
Tests if the function is both available and a candidate for optimized code generation.
Definition at line 266 of file TargetLibraryInfo.h.
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 335 of file TargetLibraryInfo.h.
|
inline |
Definition at line 339 of file TargetLibraryInfo.h.
Definition at line 254 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::isFunctionVectorizable().
Referenced by getVectorCallCost(), and isKnownLibFunction().
Definition at line 257 of file TargetLibraryInfo.h.
References llvm::TargetLibraryInfoImpl::isFunctionVectorizable().
|
inline |
Definition at line 222 of file TargetLibraryInfo.h.
|
inline |
Definition at line 226 of file TargetLibraryInfo.h.
|
friend |
Definition at line 211 of file TargetLibraryInfo.h.
|
friend |
Definition at line 212 of file TargetLibraryInfo.h.
1.8.6