Displaying 3 results from an estimated 3 matches for "llvmparsebitcod".
Did you mean:
llvmparsebitcode
2012 Dec 14
1
[LLVMdev] MemoryBuffer C Bindings - LLVMCreateMemoryBufferWithArray
...Since I would like to have D (with its own exception system) to handle
the IO, I need a new C API function (unless there is one and I haven't
found it):
LLVMBool LLVMCreateMemoryBufferWithArray(const char* Array, char**
OutMessage)
As the name suggests, create a MemoryBuffer for use with
LLVMParseBitcode so that one can parse bitcode already present in memory
(e.g. use D's capibilities for
loading files with its own exception system present, so it doesn't have
to be delegated down to LLVM).
I would write this myself, of course, but I'm wondering how the
procedure for getting code a...
2008 May 22
3
[LLVMdev] How to get a return type of a function with LLVM-C API
...ufferRef MemBuf;
LLVMValueRef F; // Function
LLVMTypeRef RetTy;
char *ErrStr;
//
// -- Load shader module
//
ret = LLVMCreateMemoryBufferWithContentsOfFile(
input,
&MemBuf, // [out]
&ErrStr); // [out]
ret = LLVMParseBitcode(
MemBuf,
&M, // [out]
&ErrStr); // [out]
F = LLVMGetFirstFunction(M);
RetTy = LLVMGetReturnType(F); // NG! Can't do this
----
How can I do that?
(I am using HEAD version of llvm)
And is there a tutorial or document for LLVM C API?
Thanks in a...
2013 Sep 30
1
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
Attached is what I got thus far.
What I'm struggling with is proper integration in build system. What
is in there is just wild guesses from my side, both on autoconf and
cmake variants. It would be great if someone with proper knowledge of
the buildsystems could have a look. Also I'm not sure how to properly
handle compilation on msvc - clearly "-std=c11 -Wstrict-prototypes" is