We do not support getelementptr for scalable struct. Avoid using getelementptr when dealing with scalable struct arguments.
Use multiple insertvalue and store the whole scalable struct at the end.
Differential D99482
[PoC][Clang][CodeGen] Do not use getelementptr for scalable struct. AbandonedPublic Authored by HsiangKai on Mar 28 2021, 9:17 PM.
Details Summary We do not support getelementptr for scalable struct. Avoid using getelementptr when dealing with scalable struct arguments. Use multiple insertvalue and store the whole scalable struct at the end.
Diff Detail
Event TimelineHsiangKai added a child revision: D99593: [Clang][RISCV] Implement vlseg builtins..Mar 30 2021, 7:02 AM Comment Actions Are there any tests for this?
Comment Actions
The only scalable struct types are Zvlsseg types in Clang. We have use cases in D99593. I have no separate test cases in this commit.
Revision Contents
Diff 334578 clang/lib/CodeGen/CGCall.cpp
|
This comment might need to be sunk as it doesn't apply to structs containing scalable vectors?