comparison runtime/import/ldc/intrinsics.di @ 1359:34f2fd925de3

Intrinsics shouldn't see struct padding, so use a special TargetABI for them that removes it. This unbreaks the `llvm_*_with_overflow` intrinsics.
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 16 May 2009 13:06:49 +0200
parents 4e388d9d0e25
children
comparison
equal deleted inserted replaced
1357:48747003a5de 1359:34f2fd925de3
394 * Warning: 'llvm.umul.with.overflow' is badly broken. 394 * Warning: 'llvm.umul.with.overflow' is badly broken.
395 * It is actively being fixed, but it should not currently be used! 395 * It is actively being fixed, but it should not currently be used!
396 * 396 *
397 * See: http://llvm.org/docs/LangRef.html#int_umul_overflow 397 * See: http://llvm.org/docs/LangRef.html#int_umul_overflow
398 */ 398 */
399 pragma(intrinsic, "llvm.umul.with.overflow.i#") 399 //pragma(intrinsic, "llvm.umul.with.overflow.i#")
400 OverflowRet!(T) llvm_umul_with_overflow(T)(T lhs, T rhs); 400 // OverflowRet!(T) llvm_umul_with_overflow(T)(T lhs, T rhs);
401 401
402 402
403 // 403 //
404 // GENERAL INTRINSICS 404 // GENERAL INTRINSICS
405 // 405 //