mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

This exists mostly as a way to harmonise between the different spellings of the same concepts in LDC and GDC, rather than to provide a useful implementation from DMD.
7 lines
368 B
Text
7 lines
368 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.
|