dmd/changelog/druntime.expect-trap.dd
Nick Treleaven d6149fdf0f Fix TT
2024-10-25 15:20:54 +08:00

7 lines
371 B
Text

Adds `expect`, `[un]likely`, `trap` to `core.builtins`
Adds the functions `expect` and `likely`/`unlikely` for branch and value hints for the LDC/GDC compilers.
DMD ignores these hints.
Adds `trap` to lowered to the target dependent trap instruction.
If the target does not have a trap instruction, this intrinsic will be lowered to the call of the `abort()` function.