similar to: [LLVMdev] named address spaces

Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] named address spaces"

2009 Oct 16
0
[LLVMdev] named address spaces
On Oct 16, 2009, at 1:22 PM, Juan Carlos Martinez Santos wrote: > Hello, > > If my understand is correct, LLVM supports the address_space > qualifier; however, how I can add custom address spaces. Where I can > declare them? For clang (x86), I saw that address spaces #256 and > #257 works well (I see the generated code with the 'gs' and 'fs'), > but
2009 Oct 16
1
[LLVMdev] named address spaces
Hello, If I want implement other address spaces (for x86), can I modify my back-end (clang) to support other address spaces (at least two data segments, two heaps, and two stacks? How will be the mechanism? For example, for256/257, I see two reference points (FS and GP). Would I need to specify a different reference to each memory region? Where is the best site to add the modifications? Thanks
2009 Oct 19
2
[LLVMdev] Using address space attribute in LLVM
Hello, What is the correct way to use address_space attribute? For CLANG, I used the below code, but when I tried the same with LLVM, I got a warning. Thanks in advance, Juan Carlos ----------------------------- Code used: #define GS_RELATIVE __attribute__((address_space(256))) int foo(int GS_RELATIVE *P) { return *P; } int main(){ return (1); } ------------------------------
2009 Jun 30
2
[LLVMdev] Generatin code for an ARM-LINUX machine
Thanks Misha, However, I could not find the crosstool. Could you please check the name of the script? Regards, Juan Carlos On Mon, Jun 29, 2009 at 5:23 PM, Misha Brukman <brukman at gmail.com> wrote: > I have not used llvmc to build ARM binaries, but llvm-gcc does work.There's > a script to build llvm-gcc x86 -> ARM cross-compiler in > llvm/utils/crosstool/ARM/ . >
2009 Jul 06
2
[LLVMdev] Address Space
Hello, Looking the Language Reference, there is something called "addrspace". It can be used to allocate a global variable into a specific area (always that the target supports it). How I can modify the ARM back-end in order to support at least two memory sections for Global Variables in the BSS section. My idea is to split the uninitialized global variables in two sections and to
2009 Jun 25
2
[LLVMdev] Problems with lli and hello.c
Hello, I just install the new newest version of LLVM. When I ran the hello.c example I got the below message. Somebody has an idea what is wrong? The problem is just with lli, the other commands worked as I expected. ********************** :~/LLVM/my-test$ lli hello.bc Tried to execute an unknown external function: i32 (i8*)* puts 0 lli 0x0861fab8 Stack dump: 0. Program arguments: lli
2009 Jul 01
3
[LLVMdev] Generatin code for an ARM-LINUX machine
Hello Misha, I used the snapshots for the latest stable version (70786), and I followed the instructions inside of README file (very clear!!!) However, when I ran the hello program, I get an unrecognized option message. Bellow are the details. ============================================ jcmartin78 at jcmartin78-laptop:~/LLVM/my-test$ llvmc hello.c as: unrecognized option '-meabi=4'
2009 Oct 12
3
[LLVMdev] Options in OPT
Hello, There is an option that I don't know how to used it. *-S* Write output in LLVM intermediate language (instead of bitcode). The option appears in the documentation, but I try to use it... I get the next message: ~/test$ opt -analyze hello.ll -o hello.bc -S opt: Unknown command line argument '-S'. Try: 'opt --help' I also try 'opt --help'; but the option is
2009 Jun 19
2
[LLVMdev] Problems creating a pass
Hello, Following the tutorial for writing a pass, I found the next problem. ***************************** :~/llvm/test$ opt -load ../llvm/Debug/lib/mypass.so -mypass < hello.bc > /dev/null opt: Pass.cpp:151: void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"' failed. Aborted
2009 Jun 29
2
[LLVMdev] Generatin code for an ARM-LINUX machine
I am using the below configuration: ./configure --with-llvmgccdir=/home/jcmartin78/LLVM/llvm-gcc4.2 --prefix=/home/jcmartin78/local --enable-optimized=1 --enable-debug-runtime --enable-jit --enable-targets=arm --target=arm When I use LLVMC to compile a simple program I get this: $ llvmc hello.c llc: error auto-selecting target for module 'No available targets are compatible with this
2009 Jul 06
0
[LLVMdev] Address Space
On Mon, Jul 6, 2009 at 11:43 AM, Juan Carlos Martinez Santos<juanc.martinez.santos at gmail.com> wrote: > Looking the Language Reference, there is something called "addrspace". It > can be used to allocate a global variable into a specific area (always that > the target supports it). How I can modify the ARM back-end in order to > support at least two memory sections
2009 Jun 25
0
[LLVMdev] Problems with lli and hello.c
Jello Juan, The interpreter is quite useless in its current state. Try using a JIT compiler for you computer from the lli command and it should work. --Sam > >From: Juan Carlos Martinez Santos <juanc.martinez.santos at gmail.com> >To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> >Sent: Thursday, June 25, 2009 1:04:17 PM >Subject: [LLVMdev] Problems with lli
2009 Jun 30
0
[LLVMdev] Generatin code for an ARM-LINUX machine
llvm/utils/crosstool/ARM/build-install-linux.sh On Tue, Jun 30, 2009 at 11:18 AM, Juan Carlos Martinez Santos < juanc.martinez.santos at gmail.com> wrote: > Thanks Misha, > > However, I could not find the crosstool. Could you please check the name of > the script? > > Regards, > > Juan Carlos > > -------------- next part -------------- An HTML attachment was
2009 Jun 30
2
[LLVMdev] Generatin code for an ARM-LINUX machine
Thanks John, I just realized that I am not working on the same "branch" of LLVM. Looking the latest or the newest version I saw the folder with the script, but I did not see a README file. I ran the script, and I get: ********** chown: cannot access `/usr/local/codesourcery': No such file or directory ********** Therefore my question is if the script depends on others folders (or
2009 Jun 19
0
[LLVMdev] Problems creating a pass
Did you try changing the name from Hello to MyHello or something like that? I seem to remember having a similar problem. My tutorial code names the struct MyHello and then registers it as follows: RegisterPass<MyHello> X("myhello", "My Hello World Pass"); You will likely need to change the Makefile as well. Scott On Fri, Jun 19, 2009 at 11:15 AM, Juan Carlos Martinez
2009 Jul 01
0
[LLVMdev] Generatin code for an ARM-LINUX machine
On Wed, Jul 1, 2009 at 12:01 PM, Juan Carlos Martinez Santos<juanc.martinez.santos at gmail.com> wrote: >  as -meabi=4 -o /tmp/ccYxnIEs.o /tmp/ccy6iYri.s > as: unrecognized option '-meabi=4' [snip] > Any idea what could be wrong? It's probably not finding the right assembler (i.e. using the x86-64 as instead of the arm as). -Eli
2009 Jun 29
0
[LLVMdev] Generatin code for an ARM-LINUX machine
I have not used llvmc to build ARM binaries, but llvm-gcc does work.There's a script to build llvm-gcc x86 -> ARM cross-compiler in llvm/utils/crosstool/ARM/ . 2009/6/29 Juan Carlos Martinez Santos <juanc.martinez.santos at gmail.com> > I am using the below configuration: > > ./configure --with-llvmgccdir=/home/jcmartin78/LLVM/llvm-gcc4.2 >
2009 Sep 01
4
[LLVMdev] A simulation tool
Hello everybody, I am looking for a tool (in Linux or Windows) that allow me to get performance measures like cycle execution, cache accesses, etc. for an x86 architecture. I want to estimate the performance overhead due to the modification that I do using LLVM. Any suggestion is welcome. Thanks in advance, -- Juan Carlos -------------- next part -------------- An HTML attachment was
2009 Sep 01
0
[LLVMdev] A simulation tool
You mean 'cachegrind'? http://valgrind.org/info/tools.html#cachegrind I don't know any public tool better than this (but someone please tell me if I am misinformed). - Daniel On Tue, Sep 1, 2009 at 2:42 PM, Juan Carlos Martinez Santos<juanc.martinez.santos at gmail.com> wrote: > Hello everybody, > > I am looking for a tool (in Linux or Windows) that allow me to get
2009 Oct 20
4
[LLVMdev] Using address space attribute in LLVM
> llvm-gcc doesn't support address spaces. This is a clang-only feature. However it could be implemented in llvm-gcc. Ciao, Duncan.