Displaying 12 results from an estimated 12 matches for "llvmpy".
2009 Sep 15
3
[LLVMdev] C API linking problem
Hello all,
Does anyone have any inside why I can't get the below simple C API test to
link? This is on a 32-bit Gentoo Linux system and LLVM TOT which was
compiled with enable-optimized, gcc is 4.3.2.
15:26|melis at juggle2:~/c/llvmpy> cat t.c
#include "llvm-c/Core.h"
int main()
{
LLVMContextRef ctx;
ctx = LLVMContextCreate();
return 0;
}
15:29|melis at juggle2:~/c/llvmpy> llvm-config --cflags --ldflags --libs all
-I/home/melis/llvm/include -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONS...
2014 Oct 13
5
[LLVMdev] writing llvm ir not in c++
Is it possible to write LLVM IR but not using C++?
I'm exceedingly terrible at C++.
I was thinking, isn't it possible to write the IR using Java? I effectively
have emit some sort of binary op codes to be passed into llvm right?
The same thing for if I wanted to integrate a GC? Could the interfacing be
done in any other language?
-------------- next part --------------
An HTML
2014 May 04
3
[LLVMdev] function pointer from name?
...> function, name of which
> is known only at runtime.
> I know that LLVM IR 'call' directive can accept function pointers, so the
> question is,
> is there a simple way to get a function pointer from a function name
> (represented as e.g. i8*)?
>
> BTW, I'm using llvmpy to generate LLVM IR, so if there is a way to do this
> using llvmpy tools, it would also do.
>
> Yours sincerely,
> Alexandr Popolitov
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>...
2009 Sep 15
0
[LLVMdev] C API linking problem
"Paul Melis" <llvm at assumetheposition.nl> writes:
> 15:29|melis at juggle2:~/c/llvmpy> gcc -W -Wall -o blah `llvm-config --cflags
> --ldflags --libs all` t.c
> /tmp/ccs4MbKp.o: In function `main':
> t.c:(.text+0x21): undefined reference to `LLVMContextCreate'
> collect2: ld returned 1 exit status
>
> 15:29|melis at juggle2:~/c/llvmpy> nm ~/llvm/lib/li...
2014 Oct 13
2
[LLVMdev] writing llvm ir not in c++
...AM, Dave Pitsbawn <dpitsbawn at gmail.com> wrote:
>
>> Is it possible to write LLVM IR but not using C++?
>>
>> I'm exceedingly terrible at C++.
>>
>> I was thinking, isn't it possible to write the IR using Java?
>>
>
>
> You can use llvmpy (Python bindings to LLVM) to create LLVM IR modules, if
> you'd like. [http://www.llvmpy.org/]
LLVM also has C bindings. I'm not aware of a tutorial specifically for these
bindings, but a great reference for things along the line of "how do use LLVM as
my language's backend"...
2009 Sep 15
0
[LLVMdev] C API linking problem
"Paul Melis" <llvm at assumetheposition.nl> writes:
>>> 15:29|melis at juggle2:~/c/llvmpy> gcc -W -Wall -o blah `llvm-config
>>> --cflags
>>> --ldflags --libs all` t.c
>>> /tmp/ccs4MbKp.o: In function `main':
>>> t.c:(.text+0x21): undefined reference to `LLVMContextCreate'
>>> collect2: ld returned 1 exit status
>>>
>&g...
2005 May 22
0
[LLVMdev] Python-LLVM bindings updated
...et
TOOLNAME which is for building an executable tool not a shared
library. You need to set LIBRARYNAME=..., not TOOLNAME=...
4. Fix the name of your project. It currently builds "llvm.so" which
is not correct by our naming standards. It should result to something
like "libLLVMpy.so" which will be obtained if you set LIBRARYNAME
to "LLVMpy"
5. Consider waiting for or modifying this python interface latter to
either directly use the (forthcoming) C interface or design the
interface to have a similar structure and naming convention.
6. I looked (briefl...
2005 May 23
1
[LLVMdev] Python-LLVM bindings updated
...on module with
LIBRARYNAME and SHARED_LIBRARY flags. Anyway, I cannot remember the details
now so will try again.
> 4. Fix the name of your project. It currently builds "llvm.so" which
> is not correct by our naming standards. It should result to something
> like "libLLVMpy.so" which will be obtained if you set LIBRARYNAME
> to "LLVMpy"
I'd like to challenge the usefulness of the naming standard here. I see its
value in case of system-wide C/C++ libraries (going to /usr/lib/*), but the
Python modules go into a Python-specific directory
(/usr...
2017 Jan 12
2
llvmcpy: yet another Python binding for LLVM
...and, for its
simplicity, does a good job. It also supports multiple LLVM
installations (it uses the one of the first llvm-config in path).
I'd be happy to have some feedback, give it a look:
https://rev.ng/llvmcpy
--
Alessandro Di Federico
PhD student at Politecnico di Milano
[1] http://www.llvmpy.org/
[2] https://github.com/numba/llvmlite
[3] https://github.com/numba/llvmlite/issues/157
[4] http://cffi.readthedocs.io/en/latest/
2005 May 22
4
[LLVMdev] Python-LLVM bindings updated
Hi,
I've updated the Python LLVM bindings for LLVM 1.5 (attached). I also
thought of setting up a CVS repository for this, but before I do that
I thought I'd ask if you want to take the Python bindings to the main
LLVM CVS? I noticed that the C language bindings would be maintained
there.
Changes in Python-LLVM:
- Updated to match LLVM 1.5 API
- Added Windows build support (created
2016 Mar 31
0
llvmlite 0.10.0
...daptation of the Kaleidoscope tutorial for llvmlite by Eli
Bendersky: https://github.com/eliben/pykaleidoscope
This new version supports LLVM 3.7 and features the following
fixes and enhancements.
Enhancements:
* PR #146: Improve ``setup.py clean`` to wipe more leftovers.
* PR #135: Remove some llvmpy compatibility APIs.
* PR #151: Always copy TargetData when adding to a pass manager.
* PR #148: Make errors more explicit on loading the binding DLL.
* PR #144: Allow overriding ``-flto`` in Linux builds.
* PR #136: Remove Python 2.6 and 3.3 compatibility.
* Issue #131: Allow easier creation of con...
2014 May 04
12
[LLVMdev] [RFC] Benchmarking subset of the test suite
At the LLVM Developers' Meeting in November, I promised to work on isolating a subset of the current test suite that is useful for benchmarking. Having looked at this in more detail, most of the applications and benchmarks in the test suite are useful for benchmarking, and so I think that a better way of phrasing it is that we should construct a list of programs in the test suite that are not