This commit is contained in:
Michael McLoughlin
2018-11-21 13:02:18 -06:00
parent cb259ce43b
commit 59e6af7d36
10 changed files with 553 additions and 2 deletions

20
internal/load/ifind.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
inst=$1
eval $(go env)
section() {
echo '------------------------------------------'
echo $1
echo '------------------------------------------'
}
section 'stdlib cmd/'
grep -iR ${inst} ${GOROOT}/src/cmd/{asm,internal/obj/x86}
section 'x/arch/x86 repo'
grep -iR ${inst} ${GOPATH}/src/golang.org/x/arch/x86/
section '*_amd64.s files in stdlib'
find ${GOROOT}/src -name '*_amd64.s' | xargs grep -i ${inst}