LLVM API Documentation

Functions
Memory Buffers
LLVM-C: C interface to LLVM
Collaboration diagram for Memory Buffers:

Functions

LLVMBool LLVMCreateMemoryBufferWithContentsOfFile (const char *Path, LLVMMemoryBufferRef *OutMemBuf, char **OutMessage)
LLVMBool LLVMCreateMemoryBufferWithSTDIN (LLVMMemoryBufferRef *OutMemBuf, char **OutMessage)
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRange (const char *InputData, size_t InputDataLength, const char *BufferName, LLVMBool RequiresNullTerminator)
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy (const char *InputData, size_t InputDataLength, const char *BufferName)
const char * LLVMGetBufferStart (LLVMMemoryBufferRef MemBuf)
size_t LLVMGetBufferSize (LLVMMemoryBufferRef MemBuf)
void LLVMDisposeMemoryBuffer (LLVMMemoryBufferRef MemBuf)

Function Documentation

LLVMBool LLVMCreateMemoryBufferWithContentsOfFile ( const char *  Path,
LLVMMemoryBufferRef OutMemBuf,
char **  OutMessage 
)
LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRange ( const char *  InputData,
size_t  InputDataLength,
const char *  BufferName,
LLVMBool  RequiresNullTerminator 
)

Definition at line 2652 of file Core.cpp.

References llvm::MemoryBuffer::getMemBuffer(), and llvm::wrap().

LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCopy ( const char *  InputData,
size_t  InputDataLength,
const char *  BufferName 
)

Definition at line 2663 of file Core.cpp.

References llvm::MemoryBuffer::getMemBufferCopy(), and llvm::wrap().

Referenced by LLVMTargetMachineEmitToMemoryBuffer().

LLVMBool LLVMCreateMemoryBufferWithSTDIN ( LLVMMemoryBufferRef OutMemBuf,
char **  OutMessage 
)

Definition at line 2681 of file Core.cpp.

References llvm::unwrap().

Definition at line 2677 of file Core.cpp.

References llvm::unwrap().

Definition at line 2673 of file Core.cpp.

References llvm::unwrap().