Skip to content

[C++] Support __builtin_observable_checkpointΒ #159287

@cor3ntin

Description

@cor3ntin

To support 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:codegenIR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"llvm:ir

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions