[cfe-dev] question about adding qualifiers

John McCall rjmccall at apple.com
Sat May 15 14:14:45 PDT 2010


On May 15, 2010, at 12:13 PM, kartik kumar wrote:
> I know that these locations are accessed through the address space qualifiers of the language that we add to the existing compiler, but how are these qualifiers digested by a compiler frontend like clang. Do I just pick a number for following representation and tell clang that this is some location of the hardware that I am going to support and make it print some instructions in the LLVM IR ?

Yes, that is pretty much exactly what you should do.  You would then need to teach your backend how to deal with the address spaces you've chosen.

John.



More information about the cfe-dev mailing list