LLVM  8.0.1
Namespaces | Functions
BuildLibCalls.h File Reference
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/IR/IRBuilder.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
 This class represents lattice values for constants.
 

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::hasUnaryFloatFn (const TargetLibraryInfo *TLI, Type *Ty, LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn)
 Check whether the overloaded unary floating point function corresponding to Ty is available. More...
 
StringRef llvm::getUnaryFloatFn (const TargetLibraryInfo *TLI, Type *Ty, LibFunc DoubleFn, LibFunc FloatFn, LibFunc LongDoubleFn)
 Get the name of the overloaded unary floating point function corresponding to Ty. More...
 
Valuellvm::castToCStr (Value *V, IRBuilder<> &B)
 Return V if it is an i8*, otherwise cast it to i8*. More...
 
Valuellvm::emitStrLen (Value *Ptr, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the strlen function to the builder, for the specified pointer. More...
 
Value * llvm::emitStrNLen (Value *Ptr, Value *MaxLen, IRBuilder<> &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, IRBuilder<> &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, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the strncmp function to the builder. More...
 
Valuellvm::emitStrCpy (Value *Dst, Value *Src, IRBuilder<> &B, const TargetLibraryInfo *TLI, StringRef Name="strcpy")
 Emit a call to the strcpy function to the builder, for the specified pointer arguments. More...
 
Valuellvm::emitStrNCpy (Value *Dst, Value *Src, Value *Len, IRBuilder<> &B, const TargetLibraryInfo *TLI, StringRef Name="strncpy")
 Emit a call to the strncpy function to the builder, for the specified pointer arguments and length. More...
 
Valuellvm::emitMemCpyChk (Value *Dst, Value *Src, Value *Len, Value *ObjSize, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the __memcpy_chk function to the builder. More...
 
Valuellvm::emitMemChr (Value *Ptr, Value *Val, Value *Len, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the memchr function. More...
 
Valuellvm::emitMemCmp (Value *Ptr1, Value *Ptr2, Value *Len, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the memcmp function. More...
 
Valuellvm::emitUnaryFloatFnCall (Value *Op, StringRef Name, IRBuilder<> &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, IRBuilder<> &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, IRBuilder<> &B, const AttributeList &Attrs)
 Emit a call to the binary function named 'Name' (e.g. More...
 
Valuellvm::emitPutChar (Value *Char, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the putchar function. This assumes that Char is an integer. More...
 
Valuellvm::emitPutS (Value *Str, IRBuilder<> &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, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the fputc function. More...
 
Valuellvm::emitFPutCUnlocked (Value *Char, Value *File, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the fputc_unlocked function. More...
 
Valuellvm::emitFPutS (Value *Str, Value *File, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the fputs function. More...
 
Valuellvm::emitFPutSUnlocked (Value *Str, Value *File, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the fputs_unlocked function. More...
 
Valuellvm::emitFWrite (Value *Ptr, Value *Size, Value *File, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the fwrite function. More...
 
Valuellvm::emitMalloc (Value *Num, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the malloc function. More...
 
Valuellvm::emitCalloc (Value *Num, Value *Size, const AttributeList &Attrs, IRBuilder<> &B, const TargetLibraryInfo &TLI)
 Emit a call to the calloc function. More...
 
Valuellvm::emitFWriteUnlocked (Value *Ptr, Value *Size, Value *N, Value *File, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the fwrite_unlocked function. More...
 
Valuellvm::emitFGetCUnlocked (Value *File, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the fgetc_unlocked function. File is a pointer to FILE. More...
 
Valuellvm::emitFGetSUnlocked (Value *Str, Value *Size, Value *File, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the fgets_unlocked function. More...
 
Valuellvm::emitFReadUnlocked (Value *Ptr, Value *Size, Value *N, Value *File, IRBuilder<> &B, const DataLayout &DL, const TargetLibraryInfo *TLI)
 Emit a call to the fread_unlocked function. More...