qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Proposal for amending TCG interface naming scheme
@ 2019-08-20 12:49 Aleksandar Markovic
  2019-08-20 13:21 ` Peter Maydell
  0 siblings, 1 reply; 19+ messages in thread
From: Aleksandar Markovic @ 2019-08-20 12:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Cornelia Huck, Eduardo Habkost, Sagar Karandikar,
	David Hildenbrand, Bastian Koppelmann, Palmer Dabbelt,
	Richard Henderson, Laurent Vivier, Max Filippov,
	Alistair Francis, Paolo Bonzini, Edgar E. Iglesias, Stefan Weil,
	aurelien, David Gibson

Hello, all.

I noticed certain barrier and difficulties wrt learning TCG interface by newcomers and to some extent oldcomers too. At least some of them can be attributed to not best choice of names for functions TCG exposes, especially in the area of extract and sextract. I have a quick idea on how to improve it using the following renaming scheme:

tcg_gen_extract_i32
tcg_gen_extract_i64
tcg_gen_extract_tl
tcg_gen_sextract_i32
tcg_gen_sextract_i64
tcg_gen_sextract_tl
tcg_gen_extract2_i32
tcg_gen_extract2_i64
tcg_gen_extract2_tl
tcg_gen_extrl_i64_i32
tcg_gen_extrh_i64_i32
tcg_gen_ext_i32_i64
tcg_gen_extu_i32_i64

could become:

tcg_gen_select_i32
tcg_gen_select_i64
tcg_gen_select_tl
tcg_gen_select_s_i32
tcg_gen_select_s_i64
tcg_gen_select_s_tl
tcg_gen_gather_i32
tcg_gen_gather_i64
tcg_gen_gather_tl
tcg_gen_extract_l_i64_i32
tcg_gen_extract_h_i64_i32
tcg_gen_extend_s_i32_i64
tcg_gen_extend_0_i32_i64

The idea is to provide significant "lexicographic" distance between those groups of functions, rather than having the similar name (wiht common root "ext) for all of them.

What do you think?

Sincerely,
Aleksandar







^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-09-09  9:11 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20 12:49 [Qemu-devel] Proposal for amending TCG interface naming scheme Aleksandar Markovic
2019-08-20 13:21 ` Peter Maydell
2019-08-20 13:49   ` [Qemu-devel] [EXTERNAL]Re: " Aleksandar Markovic
2019-08-20 15:37     ` Richard Henderson
2019-08-20 16:15       ` Aleksandar Markovic
2019-08-20 16:47         ` Richard Henderson
2019-08-20 16:21       ` BALATON Zoltan
2019-08-20 16:38         ` Aleksandar Markovic
2019-08-20 16:44           ` David Hildenbrand
2019-08-20 16:47             ` Peter Maydell
2019-08-20 17:57               ` Aleksandar Markovic
2019-08-20 16:48             ` Laurent Vivier
2019-08-20 16:52               ` Aleksandar Markovic
2019-08-20 17:02             ` Aleksandar Markovic
2019-08-20 18:08               ` David Hildenbrand
2019-08-21 16:29         ` Philippe Mathieu-Daudé
2019-08-20 16:46       ` David Hildenbrand
2019-08-21 16:15         ` Philippe Mathieu-Daudé
2019-09-09  9:10       ` Aleksandar Markovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).