Issue |
130199
|
Summary |
[CIR] Upstream support for structure types
|
Labels |
ClangIR
|
Assignees |
|
Reporter |
andykaylor
|
### Overview
Upstream the basic support for structure variable types. The initial change should just add support for declaring and initializing global variables that use a simple structure type. Follow-up patches can add support for local variables and accessing structs using the cir.get_member operation.
### Suggested minimal test case
```
// Global
struct S {
int a;
int b;
};
S s;
```
### Existing incubator tests
clang/test/CIR/CodeGen/struct.c
(clang/test/CIR/CodeGen/struct.cpp involves class support and should be deferred)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs