Questions tagged [mcjit]

6 questions
5
votes
2 answers

How can I disassemble the result of LLVM MCJIT compilation?

I have a program I wrote which uses LLVM 3.5 as a JIT compiler, which I'm trying to update to use MCJIT in LLVM 3.7. I have it mostly working, but I'm struggling to reproduce one debug-only feature I implemented with LLVM 3.5. I would like to be…
Steve F
  • 153
  • 5
1
vote
0 answers

segment fault when execute LLVM MCJIT generate machine code

check the _siginfo, si_code is 2 (gdb) p $_siginfo $2 = {si_signo = 11, si_errno = 0, si_code = 2, _sifields = {_pad = {1254290016, 32642, 0 }, _kill = { si_pid = 1254290016, si_uid = 32642}, _timer = {si_tid = 1254290016,…
KC_YCM
  • 11
  • 2
1
vote
0 answers

Calculate number of times each instruction could be called at run-time

I read the answer of this question How to calculate number of times each instruction could be called at run-time? I found at InstrProfiling.cpp file function called castToIncrementInst, but this function only calculate total number of instructions.…
R.Omar
  • 645
  • 1
  • 6
  • 18
1
vote
1 answer

LLVM - How to properly use globals with MCJIT

So I'm building a compiler which can invoke code at compile-time. After everything has successfully compiled, I create an llvm::ExecutionEngine and add each llvm::Module the program requires. Lastly I call llvm::ExecutionEngine::finalizeObject and…
caa515
  • 328
  • 2
  • 8
1
vote
0 answers

Calling Generic Function With LLVM MCJIT

So... I have recently (~2 weeks now) been diving into LLVM. I have read the docs, walked through the tutorials etc. I decided to try and take things a bit further, namely bring types into Kaleidoscope tutorial. Immediately I hit a wall when I…
Steffan
  • 200
  • 5
1
vote
0 answers

How to configure LLVM MCJIT for armhf?

I'm trying to build simple application with JIT based on LLVM 3.8 for Raspberry PI 2. I built LLVM for ARM and my application successfully jitted the code, but it seams that LLVM generates code for softfp instead of hardfp. How can I configure LLVM…
Evgeny Gavrin
  • 7,627
  • 1
  • 22
  • 27