Issue 71618
Summary [C++20] [Modules] Record BMI Hash which is consistent if the interfaces doesn't change
Labels clang:modules
Assignees ChuanqiXu9
Reporter ChuanqiXu9
    The motivating example comes from https://github.com/llvm/llvm-project/issues/70569.

For example,

```C++
// a.cppm
export module a;
export int a() {
    return 43;
}

// use.cc
import a;
int use() {
 return a();
}
```

After we change the implementation of `a()` from `return 43;` to `return 44;`, we can avoid recompiling use.cc to use.o since the interface doesn't change.
This is pretty helpful to improve the user's experience by avoiding unnecessary recompilations as much as possible.

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to