gallivm: Allow target specific intrinsics in lp_declare_intrinsic()
authorTom Stellard <thomas.stellard@amd.com>
Thu, 5 Jan 2012 15:18:54 +0000 (10:18 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 13 Jan 2012 16:45:49 +0000 (11:45 -0500)
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

index 518a01fdb9f1b7ecec1196ab3e3f7d648d6b1785..2323f124ae4c9d80d5dd0c2598109855f5d13cc6 100644 (file)
@@ -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;
 }