search for: somefunc2

Displaying 2 results from an estimated 2 matches for "somefunc2".

Did you mean: somefunc
2011 Jan 21
4
[LLVMdev] How to extend llvm IR and frontend?
...es 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 int*){...} Furthermore, if I wanted this keyword to be added as part of the LLVM IR in some manner such that the during the translation of LLVM IR to some target machine ASM it could be used to switch which address spaces are used (e.g. if I specify one of the keywords, I get some instruction...
2011 Jan 21
0
[LLVMdev] How to extend llvm IR and frontend?
...s 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 int*){...} How about putting #define foo __attribute__((address_space(256))) #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...