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

2020-04-13 Thread Ayke via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGcfc002714a20: [AVR] Support aliases in non-zero address space (authored by aykevl). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76182/new/ https://reviews

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

2020-04-13 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Thanks. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76182/new/ https://reviews.llvm.org/D76182

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

2020-04-13 Thread Ayke via Phabricator via cfe-commits
aykevl updated this revision to Diff 256977. aykevl added a comment. - added test - using `getPointerAddressSpace` instead of a cast This is now ready for review. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76182/new/ https://reviews.llvm.org/D7

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

2020-04-06 Thread John McCall via Phabricator via cfe-commits
rjmccall requested changes to this revision. rjmccall added a comment. This revision now requires changes to proceed. I agree this needs a test case. Comment at: clang/lib/CodeGen/CodeGenModule.cpp:4550 // Create the new alias itself, but don't set a name yet. + unsigned AS

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

2020-03-30 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay added a comment. Nice patch by the way, the code looks fine, if we can get a basic test in here then it's good to go Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D76182/new/ https://reviews.llvm.org/D76182 ___

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

2020-03-30 Thread Dylan McKay via Phabricator via cfe-commits
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

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

2020-03-14 Thread Ayke via Phabricator via cfe-commits
aykevl created this revision. aykevl added reviewers: dylanmckay, rsmith, rjmccall. Herald added subscribers: cfe-commits, Jim. Herald added a project: clang. This fixes code like the following on AVR: void foo(void) { } void bar(void) __attribute__((alias("foo"))); Code like this is prese