View definition

(Instruction).String

Defined in github.com/golang/tools/go/ssa/ssa.go

Description

String returns the disassembled form of this value.

Examples of Instructions that are Values:

"x + y"     (BinOp)
"len([])"   (Call)

Note that the name of the Value is not printed.

Examples of Instructions that are not Values:

"return x"  (Return)
"*y = x"    (Store)

(The separation Value.Name() from Value.String() is useful for some analyses which distinguish the operation from the value it defines, e.g., 'y = local int' is both an allocation of memory 'local int' and a definition of a pointer y.)

String is referenced in 4 repositories

github.com/golang/tools github.com/tardisgo/tardisgo github.com/go-interpreter/ssainterp

...