[go-nuts] Re: SSA back-translation / destruction

2016-08-19 Thread adonovan via golang-nuts
On Wednesday, 17 August 2016 12:00:46 UTC-4, HWJ wrote: > > TL;DR: what's the best way to do SSA back-translation when using > x/tools/go/ssa? > > I'm thinking about a Go compiler which accepts a subset of Go and emits > assembly for a microcontroller. Instead of going all the way from >

[go-nuts] Re: SSA back-translation / destruction

2016-08-18 Thread Elliott Stoneham
> > > In order to generate assembly code I need to remove the Phi functions > and rename the registers accordingly. The register field in SSA is not > exported and can be accessed read-only by Name(). This makes SSA > back-translation cumbersome. > My experience in TARDISgo was that Name()