Lines Matching refs:sbOut
772 void add_counter_update(IRSB* sbOut, Int n) in add_counter_update() argument
785 IRTemp t1 = newIRTemp(sbOut->tyenv, Ity_I64); in add_counter_update()
786 IRTemp t2 = newIRTemp(sbOut->tyenv, Ity_I64); in add_counter_update()
793 addStmtToIRSB( sbOut, st1 ); in add_counter_update()
794 addStmtToIRSB( sbOut, st2 ); in add_counter_update()
795 addStmtToIRSB( sbOut, st3 ); in add_counter_update()
799 void addMemEvent(IRSB* sbOut, Bool isWrite, Int szB, IRExpr* addr, in addMemEvent() argument
811 tyAddr = typeOfIRExpr( sbOut->tyenv, addr ); in addMemEvent()
837 IRTemp sp = newIRTemp(sbOut->tyenv, tyAddr); in addMemEvent()
838 addStmtToIRSB( sbOut, assign(sp, IRExpr_Get(goff_sp, tyAddr))); in addMemEvent()
840 IRTemp sp_minus_rz = newIRTemp(sbOut->tyenv, tyAddr); in addMemEvent()
842 sbOut, in addMemEvent()
849 IRTemp diff = newIRTemp(sbOut->tyenv, tyAddr); in addMemEvent()
851 sbOut, in addMemEvent()
858 IRTemp guard = newIRTemp(sbOut->tyenv, Ity_I1); in addMemEvent()
860 sbOut, in addMemEvent()
868 addStmtToIRSB( sbOut, IRStmt_Dirty(di) ); in addMemEvent()
880 IRSB* sbOut; in dh_instrument() local
890 sbOut = deepCopyIRSBExceptStmts(sbIn); in dh_instrument()
895 addStmtToIRSB( sbOut, sbIn->stmts[i] ); in dh_instrument()
914 add_counter_update(sbOut, n); in dh_instrument()
926 addMemEvent( sbOut, False/*!isWrite*/, in dh_instrument()
936 addMemEvent( sbOut, True/*isWrite*/, in dh_instrument()
955 addMemEvent( sbOut, False/*!isWrite*/, in dh_instrument()
958 addMemEvent( sbOut, True/*isWrite*/, in dh_instrument()
980 addMemEvent( sbOut, False/*!isWrite*/, in dh_instrument()
982 addMemEvent( sbOut, True/*isWrite*/, in dh_instrument()
992 addMemEvent( sbOut, False/*!isWrite*/, in dh_instrument()
998 addMemEvent( sbOut, True/*isWrite*/, in dh_instrument()
1009 addStmtToIRSB( sbOut, st ); in dh_instrument()
1014 add_counter_update(sbOut, n); in dh_instrument()
1016 return sbOut; in dh_instrument()