Mesa (master): gallivm: Allow target specific intrinsics in lp_declare_intrinsic()

Tom Stellard tstellar at kemper.freedesktop.org
Fri Jan 13 16:48:27 UTC 2012


Module: Mesa
Branch: master
Commit: 9611237051e32b912f17e2d6cd23528d66ad5d81
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9611237051e32b912f17e2d6cd23528d66ad5d81

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Thu Jan  5 10:18:54 2012 -0500

gallivm: Allow target specific intrinsics in lp_declare_intrinsic()

Target specific intrinsics are also prefixed with llvm, so this assert
was preventing us from using them.

---

 src/gallium/auxiliary/gallivm/lp_bld_intr.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_intr.c b/src/gallium/auxiliary/gallivm/lp_bld_intr.c
index 518a01f..2323f12 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_intr.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_intr.c
@@ -70,13 +70,6 @@ lp_declare_intrinsic(LLVMModuleRef module,
 
    assert(LLVMIsDeclaration(function));
 
-   if(name[0] == 'l' &&
-      name[1] == 'l' &&
-      name[2] == 'v' &&
-      name[3] == 'm' &&
-      name[4] == '.')
-      assert(LLVMGetIntrinsicID(function));
-
    return function;
 }
 




More information about the mesa-commit mailing list