• Rob Pike's avatar
    cmd/internal/obj: make Rconv a global function · daddeb26
    Rob Pike authored
    Clean up the obj API by making Rconv (register pretty printer) a top-level
    function. This means that Dconv (operand pretty printer) doesn't need
    an Rconv argument.
    
    To do this, we make the register numbers, which are arbitrary inside an
    operand (obj.Addr), disjoint sets for each architecture. Each architecture
    registers (ha) a piece of the space and then the global Rconv knows which
    architecture-specific printer to use.
    
    Clean up all the code that uses Dconv.
    
    Now register numbers are large, so a couple of fields in Addr need to go
    from int8 to int16 because they sometimes hold register numbers. Clean
    up their uses, which meant regenerating the yacc grammars for the
    assemblers. There are changes in this CL triggered by earlier changes
    to yacc, which had not been run in this directory.
    
    There is still cleanup to do in Addr, but we're getting closer to that being
    easy to do.
    
    Change-Id: I9290ebee013b62f7d24e886743ea5a6b232990ab
    Reviewed-on: https://go-review.googlesource.com/6220Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    daddeb26
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...