| Issue |
159287
|
| Summary |
[C++] Support `__builtin_observable_checkpoint`
|
| Labels |
clang:frontend,
clang:codegen,
llvm:ir
|
| Assignees |
|
| Reporter |
cor3ntin
|
To support [P1494](wg21.link/P1494) we need a built-in that lowers to an IR instruction that would behave like an opaque function and would resist time travel UB during optimisation.
`__builtin_observable_checkpoint` is the name that has been chosen by GCC.
I'm happy to implement the builtin in clang once we know what to lower it too.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs