[PATCH] D76182: [AVR] Support aliases in non-zero address space

Dylan McKay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 30 23:25:40 PDT 2020


dylanmckay added a comment.

I think we should add a test, it shouldn't be too hard I think.

Look in `clang/tests`, grep for `alias`. Look like it is `extern const int __mod_usb_device_table __attribute__ ((alias("wacom_usb_ids")));`. If you copy paste a new test (use `clang/test/CodeGen/alias.c` as a reference. You can also look for files with `avr` in the name under the `test` folder to see how to add an AVR-specific test.

You should be able to 1) define a function alias of another function and 2) `CHECK` that the final IR has address space attributes, even when the alias symbol is used instead of the original symbol.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76182/new/

https://reviews.llvm.org/D76182





More information about the cfe-commits mailing list