3 ms·
Awesome. Am I right in understanding that LLVM IR should be LLVM IF or LLVM assembly? The generated code is most extremely simplistic. An example would be:
by lliiffee 15y ago
Awesome. Am I right in understanding that LLVM IR should be LLVM IF or LLVM assembly? The generated code is most extremely simplistic. An example would be:
A[12800]=A[0] * A[6400];
A[12801]=A[1] * A[6480];
A[12802]=A[12800] + A[12801];
A[12803]=A[2] * A[6560];
A[12804]=A[12802] + A[12803];
A[12805]=A[3] * A[6640];
Which would be very easy to deal with. The only problem is that I sometimes call out to libraries for exp, log, sin, cos, etc.
- sjs 15y agoThat's right it's a platform independent representation. I think LLVM assembly is really low level, I'm pretty sure you want to generate IR. You should be able to link the math lib. py2llvm looks pretty interesting. http://code.google.com/p/py2llvm/ http://code.google.com/p/py2llvm/ http://code.google.com/p/py2llvm/source/browse/trunk/CodeGenLLVM.py http://code.google.com/p/py2llvm/source/browse/trunk/CodeGen...