ir,build: pragma support (#97)

Adds support for arbitrary compiler directives.

Fixes #15
This commit is contained in:
Michael McLoughlin
2019-09-16 11:01:48 -07:00
committed by GitHub
parent 0bcbe82731
commit c8004ba627
14 changed files with 161 additions and 1 deletions

7
examples/pragma/stub.go Normal file
View File

@@ -0,0 +1,7 @@
// Code generated by command: go run asm.go -out pragma.s -stubs stub.go. DO NOT EDIT.
package pragma
// Add adds the values at x and y and writes the result to z.
//go:noescape
func Add(z *uint64, x *uint64, y *uint64)