Questions tagged [lli]

`lli` is a command-line tool for executing [tag:llvm-ir] modules.

lli is a command-line tool for executing modules. It is part of the broader project.

21 questions
0
votes
2 answers

GDB display LLVM IR variables fails

I build a simple application: hello.c #include void foo(int x) { printf("%d", x); } int main() { printf("Hello\n"); foo(6+5); return 0; } With an LLVM IR representation: ; ModuleID = 'hello.ll' source_filename =…
ar2015
  • 5,558
  • 8
  • 53
  • 110
0
votes
0 answers

clang interpreter failed to materialize symbols

I am new to LLVM suite of tools and what I am trying to do is to get a very simple “hello-world” C++ program to compile to LLVM IR and then to run it using lli tool. So here is the program code (hello.cpp): #include int main (int argc,…
0
votes
1 answer

Disabling Memory Exceptions on LLVM LLI interpreter

Is there a way to disable exceptions when running the lli interpreter? I would like to disable the following from crashing so I can do memory analysis--it currently aborts after a free-after-free error: The program I am working with is: #include…
0
votes
0 answers

Finding a variable name while using LLVM Interpreter

When using LLVM Interpreter(Aka lli), an Instruction object is run in Interpreter::run() function like as in the code. void Interpreter::run() { while (!ECStack.empty()) { // Interpret a single instruction & increment the "PC". …
nightshift
  • 41
  • 1
  • 2
0
votes
1 answer

How to get lli execution trace

Is there any way to get an lli execution trace. As an example for a given program: define dso_local i32 @main() { %1 = alloca i32, align 4 store i32 1, i32* %1, align 4 %2 = load i32, i32* %1, align 4 ret i32 %2 } I would like to have some…
alexanius
  • 402
  • 2
  • 11
0
votes
0 answers

bash: /usr/local/bin/lli: cannot execute binary file: Exec format error

I'm trying to use lli file.ll but this error appeared bash: /usr/local/bin/lli: cannot execute binary file: Exec format error What could be the problem?
R.Omar
  • 645
  • 1
  • 6
  • 18
1
2