mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile/internal/ssa: Split OpConst into an OpConst8, OpConst16, ...
Convert the polymorphic OpConst into monomorphic variants. Change-Id: I90bb8894fbac04ca5e5484ea260c131ef8b506fb Reviewed-on: https://go-review.googlesource.com/12798 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
25d1916816
commit
9cb332efd4
16 changed files with 546 additions and 313 deletions
|
|
@ -115,7 +115,15 @@ var genericOps = []opData{
|
|||
// in the AuxInt field as an int64 (including int, uint64, etc.).
|
||||
// For integer types smaller than 64 bits, only the low-order
|
||||
// bits of the AuxInt field matter.
|
||||
{name: "Const"},
|
||||
{name: "ConstBool"},
|
||||
{name: "ConstString"},
|
||||
{name: "ConstNil"},
|
||||
{name: "Const8"},
|
||||
{name: "Const16"},
|
||||
{name: "Const32"},
|
||||
{name: "Const64"},
|
||||
{name: "ConstPtr"}, // pointer-sized integer constant
|
||||
// TODO: Const32F, ...
|
||||
|
||||
// Constant-like things
|
||||
{name: "Arg"}, // memory input to the function.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue