Some extra header docs

This commit is contained in:
Ayke van Laethem
2018-08-30 02:36:13 +02:00
parent 0b372ba5bd
commit 6e0c60a7a1
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -9,6 +9,9 @@ import (
"golang.org/x/tools/go/ssa"
)
// This file provides a wrapper around go/ssa values and adds extra
// functionality to them.
// View on all functions, types, and globals in a program, with analysis
// results.
type Program struct {
+4
View File
@@ -5,6 +5,10 @@ import (
"golang.org/x/tools/go/ssa"
)
// This function implements several optimization passes (analysis + transform)
// to optimize code in SSA form before it is compiled to LLVM IR. It is based on
// the IR defined in ir.go.
// Make a readable version of the method signature (including the function name,
// excluding the receiver name). This string is used internally to match
// interfaces and to call the correct method on an interface. Examples: