ssadump

command module
v0.0.0-...-459d5bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 10 Imported by: 0

README

ssadump

Dumps the SSA representation of a function to stdout.

Usage

ssadump filename function

Example

$ cat > hello.go
package main

import "fmt"

func main() {
    fmt.Println("Hello, world!")
}

$ ssadump hello.go main
block 0:
*ssa.Alloc              t0  :=  new [1]interface{} (varargs)
*ssa.IndexAddr          t1  :=  &t0[0:int]
*ssa.MakeInterface      t2  :=  make interface{} <- string ("Hello, world!":string)
*ssa.Store             N/A      *t1 = t2
*ssa.Slice              t3  :=  slice t0[:]
*ssa.Call               t4  :=  fmt.Println(t3...)
*ssa.Return            N/A      return

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL