This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/H/YapOpcodes.h

414 lines
16 KiB
C
Raw Normal View History

2008-08-21 13:38:25 +01:00
/* This file was generated automatically by "yap -L misc/buildops"
please do not update */
OPCODE(Ystop ,l),
OPCODE(Nstop ,e),
OPCODE(try_me ,Otapl),
OPCODE(retry_me ,Otapl),
OPCODE(trust_me ,Otapl),
2008-08-21 13:38:25 +01:00
OPCODE(enter_profiling ,p),
OPCODE(retry_profiled ,p),
OPCODE(profiled_retry_me ,Otapl),
OPCODE(profiled_trust_me ,Otapl),
OPCODE(profiled_retry_logical ,OtaLl),
OPCODE(profiled_trust_logical ,OtILl),
2008-08-21 13:38:25 +01:00
OPCODE(count_call ,p),
OPCODE(count_retry ,p),
OPCODE(count_retry_me ,Otapl),
OPCODE(count_trust_me ,Otapl),
OPCODE(count_retry_logical ,OtaLl),
OPCODE(count_trust_logical ,OtILl),
OPCODE(lock_lu ,p),
2008-08-21 13:38:25 +01:00
OPCODE(unlock_lu ,e),
OPCODE(alloc_for_logical_pred ,L),
OPCODE(copy_idb_term ,e),
OPCODE(unify_idb_term ,e),
OPCODE(ensure_space ,Osbpa),
OPCODE(spy_or_trymark ,Otapl),
OPCODE(try_and_mark ,Otapl),
OPCODE(count_retry_and_mark ,Otapl),
OPCODE(profiled_retry_and_mark ,Otapl),
OPCODE(retry_and_mark ,Otapl),
2008-08-21 13:38:25 +01:00
OPCODE(trust_fail ,e),
OPCODE(op_fail ,e),
OPCODE(cut ,s),
OPCODE(cut_t ,s),
OPCODE(cut_e ,s),
2008-08-21 13:38:25 +01:00
OPCODE(save_b_x ,x),
OPCODE(save_b_y ,y),
OPCODE(commit_b_x ,xps),
OPCODE(commit_b_y ,yps),
2008-08-21 13:38:25 +01:00
OPCODE(execute ,pp),
OPCODE(dexecute ,pp),
OPCODE(fcall ,Osbpp),
OPCODE(call ,Osbpp),
2008-08-21 13:38:25 +01:00
OPCODE(procceed ,p),
OPCODE(allocate ,e),
OPCODE(deallocate ,p),
2008-08-21 13:38:25 +01:00
#ifdef BEAM
OPCODE(retry_eam ,e),
#endif
#ifdef BEAM
OPCODE(run_eam ,os),
#endif
OPCODE(get_x_var ,xx),
OPCODE(get_y_var ,yx),
OPCODE(get_yy_var ,yyxx),
2008-08-21 13:38:25 +01:00
OPCODE(get_x_val ,xx),
OPCODE(get_y_val ,yx),
OPCODE(get_atom ,xc),
OPCODE(get_2atoms ,cc),
OPCODE(get_3atoms ,ccc),
OPCODE(get_4atoms ,cccc),
OPCODE(get_5atoms ,ccccc),
OPCODE(get_6atoms ,cccccc),
OPCODE(get_list ,x),
OPCODE(get_struct ,xfa),
OPCODE(get_float ,xd),
OPCODE(get_longint ,xi),
2010-12-16 22:21:46 +00:00
OPCODE(get_bigint ,xN),
OPCODE(get_dbterm ,xD),
2008-08-21 13:38:25 +01:00
OPCODE(glist_valx ,xx),
OPCODE(glist_valy ,yx),
2008-08-21 13:38:25 +01:00
OPCODE(gl_void_varx ,xx),
OPCODE(gl_void_vary ,yx),
2008-08-21 13:38:25 +01:00
OPCODE(gl_void_valx ,xx),
OPCODE(gl_void_valy ,yx),
2008-08-21 13:38:25 +01:00
OPCODE(unify_x_var ,ox),
OPCODE(unify_x_var_write ,ox),
OPCODE(unify_l_x_var ,ox),
OPCODE(unify_l_x_var_write ,ox),
OPCODE(unify_x_var2 ,oxx),
OPCODE(unify_x_var2_write ,oxx),
OPCODE(unify_l_x_var2 ,oxx),
OPCODE(unify_l_x_var2_write ,oxx),
OPCODE(unify_y_var ,oy),
OPCODE(unify_y_var_write ,oy),
OPCODE(unify_l_y_var ,oy),
OPCODE(unify_l_y_var_write ,oy),
OPCODE(unify_x_val ,ox),
OPCODE(unify_x_val_write ,ox),
OPCODE(unify_l_x_val ,ox),
OPCODE(unify_l_x_val_write ,ox),
OPCODE(unify_y_val ,oy),
OPCODE(unify_y_val_write ,oy),
OPCODE(unify_l_y_val ,oy),
OPCODE(unify_l_y_val_write ,oy),
OPCODE(unify_x_loc ,ox),
OPCODE(unify_x_loc_write ,ox),
OPCODE(unify_l_x_loc ,ox),
OPCODE(unify_l_x_loc_write ,ox),
OPCODE(unify_y_loc ,oy),
OPCODE(unify_y_loc_write ,oy),
OPCODE(unify_l_y_loc ,oy),
OPCODE(unify_l_y_loc_write ,oy),
OPCODE(unify_void ,o),
OPCODE(unify_void_write ,o),
OPCODE(unify_l_void ,o),
OPCODE(unify_l_void_write ,o),
OPCODE(unify_n_voids ,os),
OPCODE(unify_n_voids_write ,os),
OPCODE(unify_l_n_voids ,os),
OPCODE(unify_l_n_voids_write ,os),
OPCODE(unify_atom ,oc),
OPCODE(unify_atom_write ,oc),
OPCODE(unify_l_atom ,oc),
OPCODE(unify_l_atom_write ,oc),
OPCODE(unify_n_atoms ,osc),
OPCODE(unify_n_atoms_write ,osc),
OPCODE(unify_float ,od),
OPCODE(unify_float_write ,od),
OPCODE(unify_l_float ,od),
OPCODE(unify_l_float_write ,od),
OPCODE(unify_longint ,oi),
OPCODE(unify_longint_write ,oi),
OPCODE(unify_l_longint ,oi),
OPCODE(unify_l_longint_write ,oi),
2010-12-16 22:21:46 +00:00
OPCODE(unify_bigint ,oN),
OPCODE(unify_l_bigint ,oN),
OPCODE(unify_dbterm ,oD),
OPCODE(unify_l_dbterm ,oD),
2008-08-21 13:38:25 +01:00
OPCODE(unify_list ,o),
OPCODE(unify_list_write ,o),
OPCODE(unify_l_list ,o),
OPCODE(unify_l_list_write ,o),
OPCODE(unify_struct ,ofa),
OPCODE(unify_struct_write ,ofa),
OPCODE(unify_l_struc ,ofa),
OPCODE(unify_l_struc_write ,ofa),
OPCODE(put_x_var ,xx),
OPCODE(put_y_var ,yx),
OPCODE(put_x_val ,xx),
OPCODE(put_xx_val ,xxxx),
OPCODE(put_y_val ,yx),
OPCODE(put_y_vals ,yyxx),
2008-08-21 13:38:25 +01:00
OPCODE(put_unsafe ,yx),
OPCODE(put_atom ,xc),
2010-12-16 22:21:46 +00:00
OPCODE(put_dbterm ,xD),
OPCODE(put_bigint ,xN),
2008-08-21 13:38:25 +01:00
OPCODE(put_float ,xd),
OPCODE(put_longint ,xi),
OPCODE(put_list ,x),
OPCODE(put_struct ,xfa),
OPCODE(write_x_var ,x),
OPCODE(write_void ,e),
OPCODE(write_n_voids ,s),
OPCODE(write_y_var ,y),
OPCODE(write_x_val ,x),
OPCODE(write_x_loc ,x),
OPCODE(write_y_val ,y),
OPCODE(write_y_loc ,y),
OPCODE(write_atom ,c),
2010-12-16 22:21:46 +00:00
OPCODE(write_bigint ,N),
OPCODE(write_dbterm ,D),
2008-08-21 13:38:25 +01:00
OPCODE(write_float ,d),
OPCODE(write_longint ,i),
OPCODE(write_n_atoms ,sc),
OPCODE(write_list ,e),
OPCODE(write_l_list ,e),
OPCODE(write_struct ,fa),
OPCODE(write_l_struc ,fa),
OPCODE(save_pair_x ,ox),
OPCODE(save_pair_x_write ,ox),
OPCODE(save_pair_y ,oy),
OPCODE(save_pair_y_write ,oy),
OPCODE(save_appl_x ,ox),
OPCODE(save_appl_x_write ,ox),
OPCODE(save_appl_y ,oy),
OPCODE(save_appl_y_write ,oy),
OPCODE(jump ,l),
OPCODE(move_back ,l),
OPCODE(skip ,l),
OPCODE(either ,Osblp),
OPCODE(or_else ,Osblp),
2008-08-21 13:38:25 +01:00
OPCODE(pop_n ,s),
OPCODE(pop ,e),
OPCODE(call_cpred ,Osbpp),
OPCODE(execute_cpred ,pp),
OPCODE(call_usercpred ,Osbpp),
OPCODE(call_c_wfail ,slp),
OPCODE(try_c ,OtapFs),
OPCODE(retry_c ,OtapFs),
#ifdef CUT_C
OPCODE(cut_c ,OtapFs),
2008-08-21 13:38:25 +01:00
#endif
OPCODE(try_userc ,OtapFs),
OPCODE(retry_userc ,OtapFs),
#ifdef CUT_C
OPCODE(cut_userc ,OtapFs),
2008-08-21 13:38:25 +01:00
#endif
OPCODE(lock_pred ,e),
OPCODE(index_pred ,e),
#ifdef THREADS
OPCODE(thread_local ,e),
#endif
OPCODE(expand_index ,e),
OPCODE(expand_clauses ,sssllp),
OPCODE(undef_p ,e),
OPCODE(spy_pred ,e),
OPCODE(try_clause ,Otapl),
2008-08-21 13:38:25 +01:00
OPCODE(try_clause2 ,l),
OPCODE(try_clause3 ,l),
OPCODE(try_clause4 ,l),
OPCODE(retry ,Otapl),
2008-08-21 13:38:25 +01:00
OPCODE(retry2 ,l),
OPCODE(retry3 ,l),
OPCODE(retry4 ,l),
OPCODE(trust ,Otapl),
2008-08-21 13:38:25 +01:00
OPCODE(try_in ,l),
OPCODE(enter_lu_pred ,Illss),
OPCODE(try_logical ,OtaLl),
OPCODE(retry_logical ,OtaLl),
OPCODE(trust_logical ,OtILl),
OPCODE(user_switch ,lp),
2008-08-21 13:38:25 +01:00
OPCODE(switch_on_type ,llll),
OPCODE(switch_list_nl ,ollll),
OPCODE(switch_on_arg_type ,xllll),
OPCODE(switch_on_sub_arg_type ,sllll),
OPCODE(jump_if_var ,l),
OPCODE(jump_if_nonvar ,xll),
OPCODE(if_not_then ,clll),
OPCODE(switch_on_func ,sssl),
OPCODE(switch_on_cons ,sssl),
OPCODE(go_on_func ,sssl),
OPCODE(go_on_cons ,sssl),
OPCODE(if_func ,sssl),
OPCODE(if_cons ,sssl),
OPCODE(index_dbref ,e),
OPCODE(index_blob ,e),
OPCODE(index_long ,e),
2009-04-07 23:55:16 +01:00
OPCODE(native_me ,aFlp),
2008-08-21 13:38:25 +01:00
OPCODE(p_atom_x ,xl),
OPCODE(p_atom_y ,yl),
OPCODE(p_atomic_x ,xl),
OPCODE(p_atomic_y ,yl),
OPCODE(p_integer_x ,xl),
OPCODE(p_integer_y ,yl),
OPCODE(p_nonvar_x ,xl),
OPCODE(p_nonvar_y ,yl),
OPCODE(p_number_x ,xl),
2008-10-07 22:32:15 +01:00
OPCODE(p_number_y ,yl),
2008-08-21 13:38:25 +01:00
OPCODE(p_var_x ,xl),
OPCODE(p_var_y ,yl),
OPCODE(p_db_ref_x ,xl),
OPCODE(p_db_ref_y ,yl),
OPCODE(p_primitive_x ,xl),
OPCODE(p_primitive_y ,yl),
OPCODE(p_compound_x ,xl),
OPCODE(p_compound_y ,yl),
OPCODE(p_float_x ,xl),
OPCODE(p_float_y ,yl),
OPCODE(p_plus_vv ,xxx),
OPCODE(p_plus_vc ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_plus_y_vv ,yxx),
OPCODE(p_plus_y_vc ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_minus_vv ,xxx),
OPCODE(p_minus_cv ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_minus_y_vv ,yxx),
OPCODE(p_minus_y_cv ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_times_vv ,xxx),
OPCODE(p_times_vc ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_times_y_vv ,yxx),
OPCODE(p_times_y_vc ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_div_vv ,xxx),
OPCODE(p_div_vc ,xxn),
OPCODE(p_div_cv ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_div_y_vv ,yxx),
OPCODE(p_div_y_vc ,yxn),
OPCODE(p_div_y_cv ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_and_vv ,xxx),
OPCODE(p_and_vc ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_and_y_vv ,yxx),
OPCODE(p_and_y_vc ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_or_vv ,xxx),
OPCODE(p_or_vc ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_or_y_vv ,yxx),
OPCODE(p_or_y_vc ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_sll_vv ,xxx),
OPCODE(p_sll_vc ,xxn),
OPCODE(p_sll_cv ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_sll_y_vv ,yxx),
OPCODE(p_sll_y_vc ,yxn),
OPCODE(p_sll_y_cv ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_slr_vv ,xxx),
OPCODE(p_slr_vc ,xxn),
OPCODE(p_slr_cv ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_slr_y_vv ,yxx),
OPCODE(p_slr_y_vc ,yxn),
OPCODE(p_slr_y_cv ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(call_bfunc_xx ,plxxs),
OPCODE(call_bfunc_yx ,plxys),
OPCODE(call_bfunc_xy ,plxys),
OPCODE(call_bfunc_yy ,plyys),
OPCODE(p_equal ,e),
OPCODE(p_dif ,l),
OPCODE(p_eq ,l),
OPCODE(p_arg_vv ,xxx),
OPCODE(p_arg_cv ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_arg_y_vv ,yxx),
OPCODE(p_arg_y_cv ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_func2s_vv ,xxx),
OPCODE(p_func2s_cv ,xxc),
OPCODE(p_func2s_vc ,xxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_func2s_y_vv ,yxx),
OPCODE(p_func2s_y_cv ,yxn),
OPCODE(p_func2s_y_vc ,yxn),
2008-08-21 13:38:25 +01:00
OPCODE(p_func2f_xx ,xxx),
OPCODE(p_func2f_xy ,xxy),
OPCODE(p_func2f_yx ,yxx),
OPCODE(p_func2f_yy ,yyx),
OPCODE(p_functor ,e),
OPCODE(p_execute2 ,Osbpp),
OPCODE(p_execute ,Osbmp),
OPCODE(p_execute_tail ,Osbpp),
#ifdef YAPOR
2008-08-21 13:38:25 +01:00
OPCODE(getwork_first_time ,e),
OPCODE(getwork ,Otapl),
OPCODE(getwork_seq ,Otapl),
OPCODE(sync ,Otapl),
#endif
2008-08-21 13:38:25 +01:00
#ifdef TABLING
#ifdef TABLING_INNER_CUTS
2008-08-21 13:38:25 +01:00
OPCODE(clause_with_cut ,e),
#endif
OPCODE(table_load_answer ,Otapl),
OPCODE(table_try_answer ,Otapl),
OPCODE(table_try_single ,Otapl),
OPCODE(table_try_me ,Otapl),
OPCODE(table_try ,Otapl),
OPCODE(table_retry_me ,Otapl),
OPCODE(table_retry ,Otapl),
OPCODE(table_trust_me ,Otapl),
OPCODE(table_trust ,Otapl),
2008-08-21 13:38:25 +01:00
OPCODE(table_new_answer ,s),
OPCODE(table_answer_resolution ,Otapl),
OPCODE(table_completion ,Otapl),
2008-08-21 13:38:25 +01:00
OPCODE(trie_do_var ,e),
OPCODE(trie_trust_var ,e),
2008-08-21 13:38:25 +01:00
OPCODE(trie_try_var ,e),
OPCODE(trie_retry_var ,e),
OPCODE(trie_do_var_in_pair ,e),
OPCODE(trie_trust_var_in_pair ,e),
OPCODE(trie_try_var_in_pair ,e),
OPCODE(trie_retry_var_in_pair ,e),
2008-08-21 13:38:25 +01:00
OPCODE(trie_do_val ,e),
OPCODE(trie_trust_val ,e),
2008-08-21 13:38:25 +01:00
OPCODE(trie_try_val ,e),
OPCODE(trie_retry_val ,e),
OPCODE(trie_do_val_in_pair ,e),
OPCODE(trie_trust_val_in_pair ,e),
OPCODE(trie_try_val_in_pair ,e),
OPCODE(trie_retry_val_in_pair ,e),
2008-08-21 13:38:25 +01:00
OPCODE(trie_do_atom ,e),
OPCODE(trie_trust_atom ,e),
2008-08-21 13:38:25 +01:00
OPCODE(trie_try_atom ,e),
OPCODE(trie_retry_atom ,e),
OPCODE(trie_do_atom_in_pair ,e),
OPCODE(trie_trust_atom_in_pair ,e),
OPCODE(trie_try_atom_in_pair ,e),
OPCODE(trie_retry_atom_in_pair ,e),
OPCODE(trie_do_null ,e),
OPCODE(trie_trust_null ,e),
OPCODE(trie_try_null ,e),
OPCODE(trie_retry_null ,e),
OPCODE(trie_do_null_in_pair ,e),
OPCODE(trie_trust_null_in_pair ,e),
OPCODE(trie_try_null_in_pair ,e),
OPCODE(trie_retry_null_in_pair ,e),
OPCODE(trie_do_pair ,e),
OPCODE(trie_trust_pair ,e),
OPCODE(trie_try_pair ,e),
OPCODE(trie_retry_pair ,e),
OPCODE(trie_do_appl ,e),
OPCODE(trie_trust_appl ,e),
OPCODE(trie_try_appl ,e),
OPCODE(trie_retry_appl ,e),
OPCODE(trie_do_appl_in_pair ,e),
OPCODE(trie_trust_appl_in_pair ,e),
OPCODE(trie_try_appl_in_pair ,e),
OPCODE(trie_retry_appl_in_pair ,e),
2008-08-21 13:38:25 +01:00
OPCODE(trie_do_extension ,e),
OPCODE(trie_trust_extension ,e),
2008-08-21 13:38:25 +01:00
OPCODE(trie_try_extension ,e),
OPCODE(trie_retry_extension ,e),
OPCODE(trie_do_double ,e),
OPCODE(trie_trust_double ,e),
OPCODE(trie_try_double ,e),
OPCODE(trie_retry_double ,e),
OPCODE(trie_do_longint ,e),
OPCODE(trie_trust_longint ,e),
OPCODE(trie_try_longint ,e),
OPCODE(trie_retry_longint ,e),
OPCODE(trie_do_gterm ,e),
OPCODE(trie_trust_gterm ,e),
OPCODE(trie_try_gterm ,e),
OPCODE(trie_retry_gterm ,e),
2008-08-21 13:38:25 +01:00
#endif
/* this instruction is hardwired */
#ifdef YAPOR
OPCODE(or_last ,sblp)
#else
OPCODE(or_last ,p)
#endif