ARM first & default LDC

Walter Bright newshound2 at digitalmars.com
Thu Dec 17 07:02:05 UTC 2020


On 12/14/2020 9:45 AM, Iain Buclaw wrote:
> I think your feelings are misguided, a primitive does not mean it must be 
> implemented in the compiler.  Take core.bitop.rol() and ror() as one example, 
> these are implemented as a function in druntime for DMD and LDC, but are 
> primitives to GDC (LROTATE_EXPR and RROTATE_EXPR respectively).

DMD recognizes the code pattern in rol() and ror() and replaces it with OProl 
and OPror intermediate code primitives.


More information about the Digitalmars-d mailing list