public unsafe static bool TargetMachineEmitToMemoryBuffer(TargetMachineRef T, ModuleRef M, CodeGenFileType codegen, out string ErrorMessage, out MemoryBufferRef OutMemBuf) { bool ret = LLVMPINVOKE.TargetMachineEmitToMemoryBuffer(T.Value, M.Value, (int)codegen, out ErrorMessage, out OutMemBuf.Value); return ret; }
public unsafe static bool GetBitcodeModuleProvider(MemoryBufferRef MemBuf, out ModuleProviderRef OutMP, out string OutMessage) { bool ret = LLVMPINVOKE.GetBitcodeModuleProvider(MemBuf.Value, out OutMP.Value, out OutMessage); return ret; }
public unsafe static MemoryBufferRef WriteBitcodeToMemoryBuffer(ModuleRef M) { MemoryBufferRef ret = new MemoryBufferRef(LLVMPINVOKE.WriteBitcodeToMemoryBuffer(M.Value)); return ret; }
public unsafe static bool ParseBitcode(MemoryBufferRef MemBuf, out ModuleRef OutModule, out string OutMessage) { bool ret = LLVMPINVOKE.ParseBitcode(MemBuf.Value, out OutModule.Value, out OutMessage); return ret; }
public unsafe static bool GetBitcodeModuleInContext(ContextRef ContextRef, MemoryBufferRef MemBuf, out ModuleRef OutM, out string OutMessage) { bool ret = LLVMPINVOKE.GetBitcodeModuleInContext(ContextRef.Value, MemBuf.Value, out OutM.Value, out OutMessage); return ret; }
public unsafe static uint GetBufferSize(MemoryBufferRef MemBuf) { uint ret = LLVMPINVOKE.GetBufferSize(MemBuf.Value); return ret; }
public unsafe static void DisposeMemoryBuffer(MemoryBufferRef MemBuf) { LLVMPINVOKE.DisposeMemoryBuffer(MemBuf.Value); }
public unsafe static string GetBufferStart(MemoryBufferRef MemBuf) { string ret = LLVMPINVOKE.GetBufferStart(MemBuf.Value); return ret; }
public unsafe static MemoryBufferRef CreateMemoryBufferWithMemoryRangeCopy(string InputData, uint InputDataLength, string BufferName) { MemoryBufferRef ret = new MemoryBufferRef(LLVMPINVOKE.CreateMemoryBufferWithMemoryRangeCopy(InputData, InputDataLength, BufferName)); return ret; }
public unsafe static MemoryBufferRef CreateMemoryBufferWithMemoryRange(string InputData, uint InputDataLength, string BufferName, bool RequiresNullTerminator) { MemoryBufferRef ret = new MemoryBufferRef(LLVMPINVOKE.CreateMemoryBufferWithMemoryRange(InputData, InputDataLength, BufferName, RequiresNullTerminator)); return ret; }
public unsafe static bool CreateMemoryBufferWithSTDIN(out MemoryBufferRef OutMemBuf, out string OutMessage) { bool ret = LLVMPINVOKE.CreateMemoryBufferWithSTDIN(out OutMemBuf.Value, out OutMessage); return ret; }
public unsafe static bool CreateMemoryBufferWithContentsOfFile(string Path, out MemoryBufferRef OutMemBuf, out string OutMessage) { bool ret = LLVMPINVOKE.CreateMemoryBufferWithContentsOfFile(Path, out OutMemBuf.Value, out OutMessage); return ret; }