/* vsetvl_def class. */
struct vsetvl_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* vsetvl* instruction doesn't have C++ overloaded functions. */
if (overloaded_p)
/* loadstore_def class. */
struct loadstore_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
}
}
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
}
}
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
}
}
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
/* alu_def class. */
struct alu_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* alu_frm_def class. */
struct alu_frm_def : public build_frm_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
char base_name[BASE_NAME_MAX_LEN] = {};
/* widen_alu_frm_def class. */
struct widen_alu_frm_def : public build_frm_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
char base_name[BASE_NAME_MAX_LEN] = {};
/* narrow_alu_frm_def class. */
struct narrow_alu_frm_def : public build_frm_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
char base_name[BASE_NAME_MAX_LEN] = {};
/* reduc_alu_frm_def class. */
struct reduc_alu_frm_def : public build_frm_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
char base_name[BASE_NAME_MAX_LEN] = {};
'OP' suffix in overloaded API. */
struct widen_alu_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
doesn't need mask policy. */
struct no_mask_policy_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
is returning mask value. */
struct return_mask_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
/* narrow_alu_def class. Handle narrowing instructions like vnsrl.wv. */
struct narrow_alu_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
/* move_def class. Handle vmv.v.v/vmv.v.x. */
struct move_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* vmv.v.x/vfmv.v.f (PRED_none) can not be overloaded. */
if ((instance.op_info->op == OP_TYPE_x || instance.op_info->op == OP_TYPE_f)
/* mask_alu_def class. */
struct mask_alu_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* reduc_alu_def class. */
struct reduc_alu_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
/* th_extract_def class. */
struct th_extract_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_name ("__riscv_th_");
b.append_name (instance.base_name);
/* scalar_move_def class. */
struct scalar_move_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
if (overloaded_p)
/* vundefined_def class. */
struct vundefined_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
if (overloaded_p)
return nullptr;
/* misc_def class. */
struct misc_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
/* vset_def class. */
struct vset_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
}
}
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
if (overloaded_p)
return nullptr;
group.required_extensions);
}
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
if (overloaded_p)
return nullptr;
/* fault_load_def class. */
struct fault_load_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
return nullptr;
group.required_extensions);
}
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
if (overloaded_p)
return nullptr;
/* seg_loadstore_def class. */
struct seg_loadstore_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* seg_indexed_loadstore_def class. */
struct seg_indexed_loadstore_def : public indexed_loadstore_def
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* seg_fault_load_def class. */
struct seg_fault_load_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* vsm4r/vaes* class. */
struct crypto_vv_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* vaeskf1/vaeskf2/vsm4k/vsm3c class. */
struct crypto_vi_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* vaesz class. */
struct crypto_vv_no_op_type_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
/* Return nullptr if it can not be overloaded. */
if (overloaded_p && !instance.base->can_be_overloaded_p (instance.pred))
/* sf_vqmacc_def class. */
struct sf_vqmacc_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);
/* sf_vfnrclip_def class. Handle instructions like vfnrclip. */
struct sf_vfnrclip_def : public build_base
{
- const char *get_name (function_builder &b, const function_instance &instance,
- bool overloaded_p) const override
+ char *get_name (function_builder &b, const function_instance &instance,
+ bool overloaded_p) const override
{
b.append_base_name (instance.base_name);