[NFC] [C++20] [Modules] Test if the functions in importee are generated
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 18 Oct 2022 03:32:34 +0000 (11:32 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 18 Oct 2022 03:40:49 +0000 (11:40 +0800)
commitdb82096ff0aaadd4ce9b76ea3ffb188c9e5a0a64
treef9d1948d1534c67e606c906ccd7966a8ae7ea1e3
parent7caae244730eb49b9e3f632225f53902fd956940
[NFC] [C++20] [Modules] Test if the functions in importee are generated

In O0, all the functions (except the always-inline-functions) in the importee
shouldn't be imported for compilation speeds.

But with optimizations, all the potentially called function in the
importee should be imported to not prevent any inter-procedural
optimizations (primarily inline), which is pretty important for runtime
performances.

This patch adds the tests for the feature.
clang/test/CodeGenCXX/module-funcs-from-imports.cppm [new file with mode: 0644]