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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to