[LLVMdev] Using address space attribute in LLVM
Juan Carlos Martinez Santos
juanc.martinez.santos at gmail.com
Mon Oct 19 08:40:17 PDT 2009
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);
}
------------------------------
LLVM messsage:
~/test$ llvm-gcc addrspace256.c -emit-llvm -o -
addrspace256.c:2: warning: 'address_space' attribute directive ignored
/tmp/ccpdq1E2.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
--
Juan Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091019/bec9082e/attachment.html>
More information about the llvm-dev
mailing list