internal/gen: docstrings for instruction builders

Piggybacks off the docstrings for constructors in x64 package.

Closes #36
This commit is contained in:
Michael McLoughlin
2019-01-06 21:12:15 -08:00
parent 400288e4b6
commit 775226218c
3 changed files with 17447 additions and 4 deletions

View File

@@ -40,9 +40,7 @@ func (c *ctors) Generate(is []inst.Instruction) ([]byte, error) {
}
func (c *ctors) instruction(i inst.Instruction) {
for _, line := range doc(i) {
c.Printf("// %s\n", line)
}
c.Comment(doc(i)...)
s := params(i)