]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/loong64: remove Optab.family and reorganize operand class fields
authorWANG Xuerui <git@xen0n.name>
Thu, 16 Mar 2023 10:18:04 +0000 (18:18 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 31 Mar 2023 02:57:51 +0000 (02:57 +0000)
commitc054f223e7d0480a4d1d037177608c09c86c2ddd
tree63a155734ca00be1b5ab2360d5026765076c9506
parent22f9317f205efc0c86ec5107a19a53150d02e439
cmd/internal/obj/loong64: remove Optab.family and reorganize operand class fields

There is currently no support for GOARCH=loong32, so the Optab.family
field is unused so far. Remove it to simplify the optab; the loong
assembler backend would likely already be overhauled into a sufficiently
different shape by the time we start to care for loong32, that the data
we have today would be useless anyway.

While at it, add a operand class slot for the 3rd source operand
(support for which will arrive in later commits), and rename the other
operand class fields to be self-documenting. The changes are being
merged into this patch for sake of reducing code churn.

Change-Id: Icf0988e34ff1c0f762c8e0708cfcef2e7954760c
Reviewed-on: https://go-review.googlesource.com/c/go/+/477715
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Run-TryBot: Ben Shi <powerman1st@163.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Wayne Zuo <wdvxdr@golangcn.org>
src/cmd/internal/obj/loong64/asm.go