Displaying 6 results from an estimated 6 matches for "llvminitializenativeasmparser".
2017 Mar 09
2
LLVMGetBitcodeModuleInContext2 problem
Oops, missed initializing some stuff. Added:
LLVMLinkInMCJIT();
LLVMInitializeNativeTarget();
LLVMInitializeNativeAsmPrinter();
LLVMInitializeNativeAsmParser();
Now it crashes in LLVMGetFunctionAddress().
Hmm.
On Wed, Mar 8, 2017 at 5:14 PM, Toshiyasu Morita <toshi at tensyr.com> wrote:
> Made it a bit further. Here's the current code:
>
> void llvm_load_IR_library(char *path)
> {
> char *error;
> LLVMExe...
2018 May 11
0
About Error: Interpreter has not been linked in
Ok. I figured out. Following methods needs to be called. That fixed the
issue.
llvm::InitializeNativeTarget();
LLVMInitializeNativeAsmPrinter();
LLVMInitializeNativeAsmParser();
LLVMLinkInMCJIT();
Aaron
On Thu, May 10, 2018 at 8:33 PM, Aaron <acraft at gmail.com> wrote:
> Hello,
>
> When I try to create execution engine I do get "*Interpreter has not been
> linked in.*" error and EngineBuilder returns NULL.
>
> Here is the line I us...
2018 May 11
1
About Error: Interpreter has not been linked in
...d be similar for MCJIT
Zhang
> On 11 May 2018, at 05:21, Aaron via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Ok. I figured out. Following methods needs to be called. That fixed the issue.
>
> llvm::InitializeNativeTarget();
> LLVMInitializeNativeAsmPrinter();
> LLVMInitializeNativeAsmParser();
> LLVMLinkInMCJIT();
>
> Aaron
>
>
>> On Thu, May 10, 2018 at 8:33 PM, Aaron <acraft at gmail.com> wrote:
>> Hello,
>>
>> When I try to create execution engine I do get "Interpreter has not been linked in." error and EngineBuilder return...
2018 May 11
2
About Error: Interpreter has not been linked in
Hello,
When I try to create execution engine I do get "*Interpreter has not been
linked in.*" error and EngineBuilder returns NULL.
Here is the line I use to create execution engine:
auto executionEngine =
llvm::EngineBuilder(std::move(m_module)).setErrorStr(&error).create();
Here are all headers I have included:
#include "llvm/ADT/STLExtras.h"
#include
2017 Jan 25
2
mcjit C interface problems
...uot;tmp");
LLVMBuildRet(builder, tmp);
char* error = NULL;
LLVMVerifyModule(mod, LLVMAbortProcessAction, &error);
LLVMDisposeMessage(error);
LLVMExecutionEngineRef engine;
error = NULL;
LLVMLinkInMCJIT();
LLVMInitializeNativeTarget();
LLVMInitializeNativeAsmPrinter();
LLVMInitializeNativeAsmParser();
if (LLVMCreateExecutionEngineForModule(&engine, mod, &error) != 0) {
fprintf(stderr, "failed to create execution engine\n");
abort();
}
if (error) {
fprintf(stderr, "error: %s\n", error);
LLVMDisposeMessage(error);
exit(EXIT_FAILURE);
}...
2017 Mar 08
2
LLVMGetBitcodeModuleInContext2 problem
Or do you mean I need to load the module into memory before calling
LLVMGetBitcodeModuleInContext2?
> Yes, you need to load the module into memory first.
> LLVMCreateMemoryBufferWithContentsOfFile will do that for you.
Thanks!
On Wed, Mar 8, 2017 at 3:48 PM, Friedman, Eli <efriedma at codeaurora.org>
wrote:
> On 3/8/2017 3:44 PM, Toshiyasu Morita wrote:
>
>
>>