benshi001 added a comment. In D96853#2577133 <https://reviews.llvm.org/D96853#2577133>, @aykevl wrote:
> I am not very familiar with Clang so I can't say much about it. Although I > wonder whether a macro is the right way to implement this? Is there something > similar in other targets? (GPUs tend to have lots of address spaces, you > could take a look there). A macro definition is the simplest way, an alias to `__attribute__((address_space(0)))`. I do not find any other easy way for a plain keyword `__flash`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96853/new/ https://reviews.llvm.org/D96853 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits