[Issue 16558] [Mir] Generic unaligned load/store like (like LDC loadUnaligned and storeUnaligned)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Oct 10 07:41:00 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16558
--- Comment #8 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
I completely forgot that loadUnaligned is inlineIR alias.
So, LDC can just use an alias for loadUnaligned. So, it can to be generic
function, which will an alias for LDC Druntime.
Walter, sorry for the noise!
template loadUnaligned(V)
if(is(typeof(llvmVecType!V)))
{
...
alias inlineIR!(ir, V, const(T)*) loadUnaligned;
}
--
More information about the Digitalmars-d-bugs
mailing list