LLVM  6.0.0svn
Namespaces | Functions
BuildLibCalls.h File Reference
#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
 Compute iterated dominance frontiers using a linear time algorithm.
 

Functions

bool llvm::inferLibFuncAttributes (Function &F, const TargetLibraryInfo &TLI)
 Analyze the name and prototype of the given function and set any applicable attributes. 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::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::emitFPutS (Value *Str, Value *File, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 Emit a call to the puts 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...