search for: gs_relat

Displaying 5 results from an estimated 5 matches for "gs_relat".

Did you mean: gs_read
2011 Jan 21
0
[LLVMdev] How to extend llvm IR and frontend?
...#define bar __attribute__((address_space(257))) in some header? (Or on the command line, or in clang's default #defines, ...) Though maybe they'd need to be in a slightly different place; the example in the documentation (http://clang.llvm.org/docs/LanguageExtensions.html) is #define GS_RELATIVE __attribute__((address_space(256))) int foo(int GS_RELATIVE *P) { return *P; } so maybe it won't work if they're in front of the declaration. And of course, they're not technically keywords... > Furthermore, if I wanted this keyword to be added as part of the LLVM IR in...
2011 Jan 21
4
[LLVMdev] How to extend llvm IR and frontend?
Hi all, Hypothetically, suppose I have a generic system with multiple address spaces such that each address space is accessed using different instructions. Now suppose, I wanted to add a new keywords 'foo' and 'bar' to the front of c variables and function return types such that the following would be valid: foo void* a; foo void* somefunc(){...} bar int b; int somefunc2(bar
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); } ------------------------------ LLVM messsage: ~/test$ llvm-gcc addrspace256.c -emit-llvm -o - addrspace256.c:2: warning: 'address_space' attribute directive ignored /tmp/...
2009 Oct 19
0
[LLVMdev] Using address space attribute in LLVM
...; used the below code, but when I tried the same with LLVM, I got a > warning. llvm-gcc doesn't support address spaces. This is a clang-only feature. -Chris > > 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:...
2014 Dec 06
2
[LLVMdev] instruction/intrinsic for segmented adressing
Thanks again for your help! > >> > >> Probably fairly minimal in most cases (on x86). On ARM there is > >> definitely a cost. > >> > > hm... why? You cannot have indexed addressing? > What I need is a way to force > The code that needs to be emitted is roughly: > [..."segment"-offset into x1...] > mrs x0, tpidr_el0 >