Documentation ¶
Index ¶
- func AsmBlockHTML(b *asm.Block) string
- func AsmFuncHTML(f *asm.Func) string
- func BlockHTML(b *ir.Block) string
- func FuncHTML(f *ir.Func, phase string) string
- func LongAsmInstrHTML(v *asm.Instr) string
- func LongBlockHTML(b *ir.Block) string
- func LongValueHTML(v *ir.Value) string
- type ByTopo
- type FuncLines
- type HTMLWriter
- func (w *HTMLWriter) Close()
- func (w *HTMLWriter) Fatalf(msg string, args ...interface{})
- func (w *HTMLWriter) Logf(msg string, args ...interface{})
- func (w *HTMLWriter) Printf(msg string, v ...interface{})
- func (w *HTMLWriter) WriteAST(phase string, buf *bytes.Buffer)
- func (w *HTMLWriter) WriteAsm(phase string, fn *asm.Func)
- func (w *HTMLWriter) WriteAsmBuf(phase string, buf *bytes.Buffer)
- func (w *HTMLWriter) WriteColumn(phase, title, class, html string)
- func (w *HTMLWriter) WriteMultiTitleColumn(phase string, titles []string, class, html string)
- func (w *HTMLWriter) WritePhase(phase, title string)
- func (w *HTMLWriter) WriteSources(phase string, fn string, lines []string, startline int)
- func (w *HTMLWriter) WriteString(s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsmBlockHTML ¶
func AsmFuncHTML ¶
func LongAsmInstrHTML ¶
func LongBlockHTML ¶
func LongValueHTML ¶
Types ¶
type ByTopo ¶
type ByTopo []FuncLines
ByTopo sorts topologically: target function is on top, followed by inlined functions sorted by filename and line numbers.
type HTMLWriter ¶
func NewHTMLWriter ¶
func NewHTMLWriter(path string, f *ir.Func) *HTMLWriter
func (*HTMLWriter) Close ¶
func (w *HTMLWriter) Close()
func (*HTMLWriter) Fatalf ¶
func (w *HTMLWriter) Fatalf(msg string, args ...interface{})
Fatalf reports an error and exits.
func (*HTMLWriter) Logf ¶
func (w *HTMLWriter) Logf(msg string, args ...interface{})
Logf calls the (w *HTMLWriter).Func's Logf method passing along a msg and args.
func (*HTMLWriter) Printf ¶
func (w *HTMLWriter) Printf(msg string, v ...interface{})
func (*HTMLWriter) WriteAsmBuf ¶
func (w *HTMLWriter) WriteAsmBuf(phase string, buf *bytes.Buffer)
func (*HTMLWriter) WriteColumn ¶
func (w *HTMLWriter) WriteColumn(phase, title, class, html string)
WriteColumn writes raw HTML in a column headed by title. It is intended for pre- and post-compilation log output.
func (*HTMLWriter) WriteMultiTitleColumn ¶
func (w *HTMLWriter) WriteMultiTitleColumn(phase string, titles []string, class, html string)
func (*HTMLWriter) WritePhase ¶
func (w *HTMLWriter) WritePhase(phase, title string)
WritePhase writes f in a column headed by title. phase is used for collapsing columns and should be unique across the table.
func (*HTMLWriter) WriteSources ¶
func (w *HTMLWriter) WriteSources(phase string, fn string, lines []string, startline int)
WriteSources writes lines as source code in a column headed by title. phase is used for collapsing columns and should be unique across the table.
func (*HTMLWriter) WriteString ¶
func (w *HTMLWriter) WriteString(s string)
Click to show internal directories.
Click to hide internal directories.