Skip to content

Commit

Permalink
doc: add package-level doc comments (mmcloughlin#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Jan 6, 2019
1 parent 0989c0d commit 5c67547
Show file tree
Hide file tree
Showing 25 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package build provides an assembly-like interface for incremental building of avo Files.
package build
2 changes: 2 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package avo is a high-level x86 assembly generator.
package avo
2 changes: 2 additions & 0 deletions examples/add/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package add demonstrates an Add function in avo.
package add
2 changes: 2 additions & 0 deletions examples/args/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package args demonstrates how to load function arguments in avo.
package args
2 changes: 2 additions & 0 deletions examples/complex/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package complex shows how to work with complex types in avo.
package complex
2 changes: 2 additions & 0 deletions examples/data/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package data shows how to define DATA sections in avo.
package data
2 changes: 2 additions & 0 deletions examples/dot/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package dot implements vector dot product in avo.
package dot
2 changes: 2 additions & 0 deletions examples/fnv1a/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package fnv1a implements FNV-1a in avo.
package fnv1a
2 changes: 2 additions & 0 deletions examples/geohash/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package geohash implements integer geohash encoding in avo.
package geohash
2 changes: 2 additions & 0 deletions examples/returns/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package returns demonstrates how to write function return values in avo.
package returns
2 changes: 2 additions & 0 deletions examples/sha1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package sha1 implements the SHA-1 hash in avo.
package sha1
2 changes: 2 additions & 0 deletions examples/sum/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package sum sums a slice in avo.
package sum
2 changes: 2 additions & 0 deletions internal/gen/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package gen provides code generators based on the instruction database.
package gen
2 changes: 2 additions & 0 deletions internal/inst/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package inst is the avo instruction database.
package inst
2 changes: 2 additions & 0 deletions internal/load/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package load loads the instruction database from external sources.
package load
2 changes: 2 additions & 0 deletions internal/opcodescsv/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package opcodescsv extracts data from the Go x86.csv database.
package opcodescsv
1 change: 1 addition & 0 deletions internal/opcodesxml/opcodesxml.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package opcodesxml is a reader for the Opcodes XML database.
package opcodesxml

import (
Expand Down
1 change: 1 addition & 0 deletions internal/prnt/printer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package prnt provides common functionality for code generators.
package prnt

import (
Expand Down
1 change: 1 addition & 0 deletions internal/stack/stack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package stack provides helpers for querying the callstack.
package stack

import (
Expand Down
1 change: 1 addition & 0 deletions internal/test/utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package test provides testing utilities.
package test

import (
Expand Down
2 changes: 2 additions & 0 deletions operand/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package operand provides types for instruction operands.
package operand
2 changes: 2 additions & 0 deletions reg/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package reg provides types for physical and virtual registers, and definitions of x86-64 register families.
package reg
2 changes: 2 additions & 0 deletions tests/cast/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package cast tests casting virtual registers to different sizes.
package cast
2 changes: 2 additions & 0 deletions tests/textflag/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package textflag tests that avo attribute constants agree with textflag.h.
package textflag
2 changes: 2 additions & 0 deletions x86/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package x86 provides constructors for all x86-64 instructions.
package x86

0 comments on commit 5c67547

Please sign in to comment.