• Rob Pike's avatar
    cmd/internal/obj: switch to one global Aconv · 74e88dfd
    Rob Pike authored
    Aconv is the pretty-printer for instruction opcodes like AMOVQ.
    There was one for each architecture.
    Make the space of A names have a different region for each architecture,
    much as we did for the registers, so a single global Aconv function can
    do the work. Each architecture registers its region as a slice of names
    at a given offset.
    
    The global names like CALL and JMP are now defined only once.
    
    The A values are used for indexing tables, so make it easy to do the
    indexing by making the offset maskable.
    
    Remove a bunch of now-duplicated architecture-specific code.
    
    Change-Id: Ib15647b7145a1c089e21e36543691a19e146b60e
    Reviewed-on: https://go-review.googlesource.com/6620Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    Run-TryBot: Rob Pike <r@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    74e88dfd
Name
Last commit
Last update
..
cgen.go Loading commit data...
cgen64.go Loading commit data...
galign.go Loading commit data...
gg.go Loading commit data...
ggen.go Loading commit data...
gsubr.go Loading commit data...
peep.go Loading commit data...
prog.go Loading commit data...
reg.go Loading commit data...
util.go Loading commit data...