[llvm-dev] About Error: Interpreter has not been linked in
Aaron via llvm-dev
llvm-dev at lists.llvm.org
Thu May 10 20:33:51 PDT 2018
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 "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/IR/Argument.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"
And here is the simple IR code that I'm trying to JIT compile and execute
in memory:
; ModuleID = 'Program'
source_filename = "Program"
define i32 @fib(i32) {
entry:
%i = alloca i32
store i32 %0, i32* %i
ret i32* %i
}
Could someone please tell the reason and how I can resolve this?
Thanks for helping!
Best,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180510/a3d32561/attachment.html>
More information about the llvm-dev
mailing list