This commit is contained in:
Nick Treleaven 2024-10-24 20:20:10 +01:00 committed by Nicholas Wilson
parent 817ecde722
commit d6149fdf0f

View file

@ -1,7 +1,7 @@
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.
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.
If the target does not have a trap instruction, this intrinsic will be lowered to the call of the `abort()` function.