Skip to main content

instrlist_set_auto_predicate

Function instrlist_set_auto_predicate 

Source
pub unsafe extern "C" fn instrlist_set_auto_predicate(
    ilist: *mut instrlist_t,
    pred: dr_pred_type_t,
)
Expand description

All future instructions inserted into \p ilist will be predicated with \p pred. This is a convenience routine to make it easy to have emitted code from internal DR components predicated.

\note only has an effect on ARM

\note clients may not emit instrumentation that writes to flags, nor may clients insert cti’s. Internal DR components such as \p dr_insert_clean_call() handle auto predication gracefully and are thus safe for use with auto predication.