doc: add package-level doc comments (#9)
This commit is contained in:
2
build/doc.go
Normal file
2
build/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package build provides an assembly-like interface for incremental building of avo Files.
|
||||||
|
package build
|
||||||
2
doc.go
Normal file
2
doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package avo is a high-level x86 assembly generator.
|
||||||
|
package avo
|
||||||
2
examples/add/doc.go
Normal file
2
examples/add/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package add demonstrates an Add function in avo.
|
||||||
|
package add
|
||||||
2
examples/args/doc.go
Normal file
2
examples/args/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package args demonstrates how to load function arguments in avo.
|
||||||
|
package args
|
||||||
2
examples/complex/doc.go
Normal file
2
examples/complex/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package complex shows how to work with complex types in avo.
|
||||||
|
package complex
|
||||||
2
examples/data/doc.go
Normal file
2
examples/data/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package data shows how to define DATA sections in avo.
|
||||||
|
package data
|
||||||
2
examples/dot/doc.go
Normal file
2
examples/dot/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package dot implements vector dot product in avo.
|
||||||
|
package dot
|
||||||
2
examples/fnv1a/doc.go
Normal file
2
examples/fnv1a/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package fnv1a implements FNV-1a in avo.
|
||||||
|
package fnv1a
|
||||||
2
examples/geohash/doc.go
Normal file
2
examples/geohash/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package geohash implements integer geohash encoding in avo.
|
||||||
|
package geohash
|
||||||
2
examples/returns/doc.go
Normal file
2
examples/returns/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package returns demonstrates how to write function return values in avo.
|
||||||
|
package returns
|
||||||
2
examples/sha1/doc.go
Normal file
2
examples/sha1/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package sha1 implements the SHA-1 hash in avo.
|
||||||
|
package sha1
|
||||||
2
examples/sum/doc.go
Normal file
2
examples/sum/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package sum sums a slice in avo.
|
||||||
|
package sum
|
||||||
2
internal/gen/doc.go
Normal file
2
internal/gen/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package gen provides code generators based on the instruction database.
|
||||||
|
package gen
|
||||||
2
internal/inst/doc.go
Normal file
2
internal/inst/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package inst is the avo instruction database.
|
||||||
|
package inst
|
||||||
2
internal/load/doc.go
Normal file
2
internal/load/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package load loads the instruction database from external sources.
|
||||||
|
package load
|
||||||
2
internal/opcodescsv/doc.go
Normal file
2
internal/opcodescsv/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package opcodescsv extracts data from the Go x86.csv database.
|
||||||
|
package opcodescsv
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Package opcodesxml is a reader for the Opcodes XML database.
|
||||||
package opcodesxml
|
package opcodesxml
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Package prnt provides common functionality for code generators.
|
||||||
package prnt
|
package prnt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Package stack provides helpers for querying the callstack.
|
||||||
package stack
|
package stack
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// Package test provides testing utilities.
|
||||||
package test
|
package test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
2
operand/doc.go
Normal file
2
operand/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package operand provides types for instruction operands.
|
||||||
|
package operand
|
||||||
2
reg/doc.go
Normal file
2
reg/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package reg provides types for physical and virtual registers, and definitions of x86-64 register families.
|
||||||
|
package reg
|
||||||
2
tests/cast/doc.go
Normal file
2
tests/cast/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package cast tests casting virtual registers to different sizes.
|
||||||
|
package cast
|
||||||
2
tests/textflag/doc.go
Normal file
2
tests/textflag/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package textflag tests that avo attribute constants agree with textflag.h.
|
||||||
|
package textflag
|
||||||
2
x86/doc.go
Normal file
2
x86/doc.go
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Package x86 provides constructors for all x86-64 instructions.
|
||||||
|
package x86
|
||||||
Reference in New Issue
Block a user