[PATCH] D151297: [clang][test][LoongArch] Pre-commit test for empty struct in C++ mode

wanglei via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 23:47:05 PDT 2023


wangleiat created this revision.
wangleiat added reviewers: SixWeining, xen0n, xry111, gonglingqin.
Herald added a subscriber: mstorsjo.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is a preliminary patch that adds test cases for handling empty
structs in C++.

The current implementation for passing empty structs is inconsistent
with the calling convention description. For example, when there is only
one empty struct (it satisfies the condition `0 < WOA < GRLEN`),
according to the calling convention, it should be passed through a
GAR (if exists). However, the current implementation does not pass it.
Upcoming patch will address these inconsistencies.

Change-Id: Icc47e56ae7102dc1baebabd48ba93f562a8d5802


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151297

Files:
  clang/test/CodeGenCXX/LoongArch/abi-lp64d-empty-struct.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151297.525025.patch
Type: text/x-patch
Size: 5152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230524/8cb23dac/attachment-0001.bin>


More information about the cfe-commits mailing list