[PATCH] D96853: [clang][AVR] Support variable decorator '__flash'
Ben Shi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 20 17:50:24 PST 2021
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
More information about the cfe-commits
mailing list