[all-commits] [llvm/llvm-project] 68a346: [CIR] Introduce cir::RecordKind::Class (#142690)
Andy Kaylor via All-commits
all-commits at lists.llvm.org
Wed Jun 4 10:12:29 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 68a346f71d9b54f2e439007336285420ece0de39
https://github.com/llvm/llvm-project/commit/68a346f71d9b54f2e439007336285420ece0de39
Author: Andy Kaylor <akaylor at nvidia.com>
Date: 2025-06-04 (Wed, 04 Jun 2025)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIRTypes.td
M clang/lib/CIR/CodeGen/CIRGenBuilder.h
M clang/lib/CIR/Dialect/IR/CIRTypes.cpp
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
A clang/test/CIR/CodeGen/class.cpp
M clang/test/CIR/IR/struct.cir
Log Message:
-----------
[CIR] Introduce cir::RecordKind::Class (#142690)
When cir::RecordType was initially upstreamed, we decided that there was
no reason to distinguish between RecordKind::Class and
RecordKind::Struct since they are semantically equivalent. I think this
was a mistake because classic codegen does preserve the distinction
(which is visible in the AST) and preserving the distinction in CIR will
aid the possibility of eventually using the classic codegen lit tests
with CIR.
This change introduces RecordKind::Class, which is already present in
the incubator implementation.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list