LLVM  13.0.0git
Namespaces | Functions
BuildLibCalls.h File Reference
#include "llvm/Analysis/TargetLibraryInfo.h"
Include dependency graph for BuildLibCalls.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 llvm
 ---------------------— PointerInfo ------------------------------------—
 

Functions

bool llvm::inferLibFuncAttributes (Function &F, const TargetLibraryInfo &TLI)
 Analyze the name and prototype of the given function and set any applicable attributes. More...
 
bool llvm::inferLibFuncAttributes (Module *M, StringRef Name, const TargetLibraryInfo &TLI)
 
bool llvm::hasFloatFn (const TargetLibraryInfo *TLI, Type *Ty, LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn)
 Check whether the overloaded floating point function corresponding to Ty is available. More...
 
StringRef llvm::getFloatFnName (const TargetLibraryInfo *TLI, Type *Ty, LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn)
 Get the name of the overloaded floating point function corresponding to Ty. More...
 
Valuellvm::castToCStr (Value *V, IRBuilderBase &B)
 Return V if it is an i8*, otherwise cast it to i8*. More...
 
Valuellvm::emitStrLen (Value *Ptr, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the strlen function to the builder, for the specified pointer. More...
 
Valuellvm::emitStrDup (Value *Ptr, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strdup function to the builder, for the specified pointer. More...
 
Value * llvm::emitStrNLen (Value *Ptr, Value *MaxLen, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the strnlen function to the builder, for the specified pointer. More...
 
Valuellvm::emitStrChr (Value *Ptr, char C, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strchr function to the builder, for the specified pointer and character. More...
 
Valuellvm::emitStrNCmp (Value *Ptr1, Value *Ptr2, Value *Len, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the strncmp function to the builder. More...
 
Valuellvm::emitStrCpy (Value *Dst, Value *Src, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strcpy function to the builder, for the specified pointer arguments. More...
 
Valuellvm::emitStpCpy (Value *Dst, Value *Src, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the stpcpy function to the builder, for the specified pointer arguments. More...
 
Valuellvm::emitStrNCpy (Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strncpy function to the builder, for the specified pointer arguments and length. More...
 
Valuellvm::emitStpNCpy (Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the stpncpy function to the builder, for the specified pointer arguments and length. More...
 
Valuellvm::emitMemCpyChk (Value *Dst, Value *Src, Value *Len, Value *ObjSize, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the __memcpy_chk function to the builder. More...
 
Valuellvm::emitMemPCpy (Value *Dst, Value *Src, Value *Len, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the mempcpy function. More...
 
Valuellvm::emitMemChr (Value *Ptr, Value *Val, Value *Len, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the memchr function. More...
 
Valuellvm::emitMemCmp (Value *Ptr1, Value *Ptr2, Value *Len, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the memcmp function. More...
 
Valuellvm::emitBCmp (Value *Ptr1, Value *Ptr2, Value *Len, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the bcmp function. More...
 
Valuellvm::emitMemCCpy (Value *Ptr1, Value *Ptr2, Value *Val, Value *Len, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the memccpy function. More...
 
Valuellvm::emitSNPrintf (Value *Dest, Value *Size, Value *Fmt, ArrayRef< Value * > Args, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the snprintf function. More...
 
Valuellvm::emitSPrintf (Value *Dest, Value *Fmt, ArrayRef< Value * > VariadicArgs, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the sprintf function. More...
 
Valuellvm::emitStrCat (Value *Dest, Value *Src, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strcat function. More...
 
Valuellvm::emitStrLCpy (Value *Dest, Value *Src, Value *Size, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strlcpy function. More...
 
Valuellvm::emitStrLCat (Value *Dest, Value *Src, Value *Size, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strlcat function. More...
 
Valuellvm::emitStrNCat (Value *Dest, Value *Src, Value *Size, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the strncat function. More...
 
Valuellvm::emitVSNPrintf (Value *Dest, Value *Size, Value *Fmt, Value *VAList, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the vsnprintf function. More...
 
Valuellvm::emitVSPrintf (Value *Dest, Value *Fmt, Value *VAList, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the vsprintf function. More...
 
Valuellvm::emitUnaryFloatFnCall (Value *Op, StringRef Name, IRBuilderBase &B, const AttributeList &Attrs)
 Emit a call to the unary function named 'Name' (e.g. More...
 
Valuellvm::emitUnaryFloatFnCall (Value *Op, const TargetLibraryInfo *TLI, LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn, IRBuilderBase &B, const AttributeList &Attrs)
 Emit a call to the unary function DoubleFn, FloatFn or LongDoubleFn, depending of the type of Op. More...
 
Valuellvm::emitBinaryFloatFnCall (Value *Op1, Value *Op2, StringRef Name, IRBuilderBase &B, const AttributeList &Attrs)
 Emit a call to the binary function named 'Name' (e.g. More...
 
Valuellvm::emitBinaryFloatFnCall (Value *Op1, Value *Op2, const TargetLibraryInfo *TLI, LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn, IRBuilderBase &B, const AttributeList &Attrs)
 Emit a call to the binary function DoubleFn, FloatFn or LongDoubleFn, depending of the type of Op1. More...
 
Valuellvm::emitPutChar (Value *Char, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the putchar function. This assumes that Char is an integer. More...
 
Valuellvm::emitPutS (Value *Str, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the puts function. This assumes that Str is some pointer. More...
 
Valuellvm::emitFPutC (Value *Char, Value *File, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the fputc function. More...
 
Valuellvm::emitFPutS (Value *Str, Value *File, IRBuilderBase &B, const TargetLibraryInfo *TLI)
 Emit a call to the fputs function. More...
 
Valuellvm::emitFWrite (Value *Ptr, Value *Size, Value *File, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the fwrite function. More...
 
Valuellvm::emitMalloc (Value *Num, IRBuilderBase &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the malloc function. More...
 
Valuellvm::emitCalloc (Value *Num, Value *Size, const AttributeList &Attrs, IRBuilderBase &B, const TargetLibraryInfo &TLI)
 Emit a call to the calloc function. More...