This is an archive of the discontinued LLVM Phabricator instance.

[clang][test][LoongArch] Pre-commit test for empty struct in C++ mode
AbandonedPublic

Authored by wangleiat on May 23 2023, 11:47 PM.

Details

Summary

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.

Diff Detail

Event Timeline

wangleiat created this revision.May 23 2023, 11:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 11:47 PM
Herald added a subscriber: mstorsjo. · View Herald Transcript
wangleiat requested review of this revision.May 23 2023, 11:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 11:47 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
wangleiat edited the summary of this revision. (Show Details)May 23 2023, 11:49 PM
wangleiat abandoned this revision.Jul 20 2023, 6:07 AM