[all-commits] [llvm/llvm-project] 258296: [C++20] [Modules] [Reduced BMI] Generate the funct...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Thu Mar 14 00:32:28 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2582965c160486f9e3b0680f1cebc5ffdef9620c
https://github.com/llvm/llvm-project/commit/2582965c160486f9e3b0680f1cebc5ffdef9620c
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2024-03-14 (Thu, 14 Mar 2024)
Changed paths:
M clang/lib/Serialization/ASTWriterDecl.cpp
A clang/test/Modules/reduced-bmi-generating-codes.cppm
Log Message:
-----------
[C++20] [Modules] [Reduced BMI] Generate the function body from implicitly instantiated class and constant variables
After this patch, we will generate the function body from implicitly
instantiated class. This is important for consumers with same
template arguments. Otherwise the consumers won't see the function body.
Since the consumers won't instantiate the templates again if they find an
instantiation.
Also we will generate the variable definition if the variable is
non-inline but known as constant. Such variables may not affect the
ABI, but they may get involved into the compile time constant computation
in the consumer's code. So we have to generate such definitions.
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