[PATCH] D133338: [clang][PowerPC] PPC64 VAArg use coerced integer type for direct aggregate fits in register

Ting Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 7 21:37:43 PDT 2022


tingwang added a comment.

> It looks like the only change needed for ppc would be to remove the `!DirectTy->isStructTy()` check here?   (I guess to avoid inadvertently change other targets, this might need to be triggered by a flag passed as argument.  On the other hand, maybe there is no other big-endian platform using `emitVoidPtrVAArg` anyway?)

Thank you! Looked a little bit into history: the `!DirectTy->isStructTy()` check is specifically added in https://reviews.llvm.org/D21611. I will update patch to add a flag for PPC64 passed as argument.

During investigate, I noticed an issue caused by transition to opaque-pointer in test case introduced by D21611 <https://reviews.llvm.org/D21611>: the case CHECK-NOT contains typed pointer will not match clang generated opaque-pointer in any way, so these tests are invalidated and here is risk until these test cases are updated.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133338



More information about the cfe-commits mailing list