From: Tom Stellard Date: Thu, 5 Jan 2012 15:18:54 +0000 (-0500) Subject: gallivm: Allow target specific intrinsics in lp_declare_intrinsic() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9611237051e32b912f17e2d6cd23528d66ad5d81;p=mesa.git 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. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_intr.c b/src/gallium/auxiliary/gallivm/lp_bld_intr.c index 518a01fdb9f..2323f124ae4 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; }