-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Closed
Labels
ClangIRAnything related to the ClangIR projectAnything related to the ClangIR project
Description
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)
Metadata
Metadata
Assignees
Labels
ClangIRAnything related to the ClangIR projectAnything related to the ClangIR project