swr: [rasterizer jitter] Add DEBUGTRAP jit builder function

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
Tim Rowley 2017-01-24 13:30:05 -06:00
parent b01f26e005
commit 09c54cfd2d
2 changed files with 9 additions and 1 deletions

View file

@ -350,6 +350,13 @@ namespace SwrJit
}
#endif
//////////////////////////////////////////////////////////////////////////
Value *Builder::DEBUGTRAP()
{
Function *func = Intrinsic::getDeclaration(JM()->mpCurrentModule, Intrinsic::debugtrap);
return CALL(func);
}
Value *Builder::VRCP(Value *va)
{
return FDIV(VIMMED1(1.0f), va); // 1 / a

View file

@ -152,7 +152,8 @@ void STACKRESTORE(Value* pSaved);
Value* POPCNT(Value* a);
Value* INT3() { return INTERRUPT(C((uint8_t)3)); }
Value* DEBUGTRAP();
Value* INT3() { return DEBUGTRAP(); }
Value *VEXTRACTI128(Value* a, Constant* imm8);