swr: [rasterizer jitter] Add DEBUGTRAP jit builder function
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user