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 2615 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 2627 of file Core.cpp.

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

Referenced by LLVMTargetMachineEmitToMemoryBuffer().

LLVMBool LLVMCreateMemoryBufferWithSTDIN ( LLVMMemoryBufferRef OutMemBuf,
char **  OutMessage 
)

Definition at line 2645 of file Core.cpp.

References llvm::unwrap().

Definition at line 2641 of file Core.cpp.

References llvm::unwrap().

Definition at line 2637 of file Core.cpp.

References llvm::unwrap().