Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
194 views

Is it possible to add a new target to llvmlite (python library)? For a new hardware (e.g. ASIC), I need to have a new and custom LLVM target. This is not very clear from the documentation. If it is ...
Roy's user avatar
  • 187
0 votes
0 answers
81 views

I have to include some functions, that I have implemented in 8086 assembly, in my compilers project for a C-like programming language. That is, I have 6 .asm files. I have used so far llvmpy (a no ...
ddaedalus's user avatar
  • 131
0 votes
1 answer
996 views

I have some trouble installing llvmpy on ubuntu 14.04, i downloaded llvmpy from llvmpy.org and installed llvm 3.4 via apt-get, when I try to install it using python setup.py install I get this error: ...
CerealKiller's user avatar
1 vote
1 answer
803 views

I was trying to get llvm-py to install on my OSX 10.9 and I got the following error when trying to install it. % python setup.py build Error: could not invoke ['llvm-config', '--version'] Try setting ...
user avatar
1 vote
1 answer
1k views

I am using LLVM and the llvmpy library. My goal is to create something similar to the follow C code: int a[] = {1, 2}; int b[] = {1, 2, 3}; int c[] = {1}; int* ptrs[] = {a, b, c}; The following is ...
sdasdadas's user avatar
  • 25.5k
1 vote
1 answer
881 views

For some background, I am implementing a compiler using the llvmpy library which is a wrapper around the LLVM IR generation. I have created a character type which represents one or more UTF-8 code ...
sdasdadas's user avatar
  • 25.5k
0 votes
1 answer
2k views

I am using llvmpy to (attempt to) generate IR code. However, I am stuck using printf and an array of int8. The following is an excerpt of what is giving me issues: # Defining the print function. # --...
sdasdadas's user avatar
  • 25.5k
1 vote
1 answer
376 views

I am using Python's LLVM bindings to generate code for a custom language. Now I want to run programs and check if their output works correctly - but I am unable to figure out exactly how to output ...
sdasdadas's user avatar
  • 25.5k
0 votes
1 answer
214 views

I am using LLVM's Python bindings - and, so far, I've been able to generate Constant values using LLVM. However, I am confused as to how to store them within an address. This is probably a very basic ...
sdasdadas's user avatar
  • 25.5k
6 votes
2 answers
1k views

I write a language lexer/parser/compiler in python, that should run in the LLVM JIT-VM (using llvm-py) later. The first two steps are quite straightforward for now, but (even if I didn't start the ...
KingCrunch's user avatar
  • 133k
1 vote
1 answer
128 views

If I build a function with LLVM, like int sum(int a, int b) { return a + b; } using something like http://www.llvmpy.org/llvmpy-doc/dev/doc/firstexample.html, is possible to use that function ...
mamcx's user avatar
  • 16.3k
1 vote
1 answer
343 views

I am willing to use llvm to optimize my python code. I read some tutorials but I have not figured out how to, let's say, export class object from the python code to llvm. I learnt how to create a ...
Jendas's user avatar
  • 3,609
5 votes
2 answers
3k views

I was trying to build llvm-py on Mac OS X. This is what I tried to do, I needed to download 11vm-2.7, and the README file has this comment: Make sure '--enable-pic' is passed to LLVM's 'configure' ...
prosseek's user avatar
  • 193k