| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
This file is generated. Please update the generator instead.
"cmd/compile/internal/ssa/op"
oppkg "cmd/compile/internal/ssa/op"Why import a package twice? Seems pretty weird. (I see that op is used as local variable names in some places. That said, importing a package twice still seem weird. We could rename the local variable. Or, if we really don't want to do that, we probably should always use a renamed import.)
"cmd/compile/internal/ssa/op"
oppkg "cmd/compile/internal/ssa/op"Also here. And other files.
// Register allocation.I don't think we should copy this comment. The files probably should be regmask.go.
The file name is unfortunate. Maybe just put into op.go.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
"cmd/compile/internal/ssa/op"
oppkg "cmd/compile/internal/ssa/op"Why import a package twice? Seems pretty weird. (I see that op is used as local variable names in some places. That said, importing a package twice still seem weird. We could rename the local variable. Or, if we really don't want to do that, we probably should always use a renamed import.)
This was done automatically by rf because of the conflict. I think maybe the easiest thing to do for now is to name the package ssaop to avoid the conflict?
"cmd/compile/internal/ssa/op"
oppkg "cmd/compile/internal/ssa/op"Also here. And other files.
Renamed package.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Michael MatloobThis file is generated. Please update the generator instead.
Done
Michael MatloobAlso the file. It is generated.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// Register allocation.I don't think we should copy this comment. The files probably should be regmask.go.
still need to do this- the change is done by rf
| Code-Review | +1 |
// Register allocation.Michael MatloobI don't think we should copy this comment. The files probably should be regmask.go.
still need to do this- the change is done by rf
Done
Michael MatloobThe file name is unfortunate. Maybe just put into op.go.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
If you are unhappy about the compilation performance of that package still I've found that the compiler is not very good at handling never touched after `init` initializers particularly when they are big and long.
In some old project I've touched I've replaced a `go:generate` generating a million or so long initializer with one generating a binary file that then gets consumed by `//go:embed` into a `string`.
Then I had a function which used `binary` to map the manually packed binary data in the string into the return value.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
cmd/compile/internal/ssa: move Op to op package
This change makes an op package with the Op type, the op definitions, and
supporting types. It exports the names of the types and fields to make that
possible.
This CL adds name stutter just like the block one did. We'll want to fix
that in a later CL. Unfortunately it's not as easy as just removing the
op prefix because if we removed the Op in op.Op386ORL for instance the name
op.386ORL would start with a digit.
For #80409
[git-generate]
cd src/cmd/compile/internal/ssa
rf "mv AuxType_ AuxTypeNone Op OpInvalid OpInfo OutputInfo RegInfo OpcodeTable SymEffect SymRead RegMask InputInfo OutputInfo Register ./ssaop"
cd ssaop
rf '
mv AuxType_ AuxType
mv regalloc.go regmask.go
rm regmask.go:/Register allocation/-0,/TODO: maybe we should/+0
'
cd ../_gen
rf 'sub splitPhase var splitPhase = phase1Op'
sed 's/= Op/= ssaop.Op/g' -i *.rules
sed 's/\[Op/\[ssaop.Op/g' -i *.rules
# Update and re-run simdgen
cd ../../../../../simd/archsimd/_gen
sed -i 's/^var splitPhase = .*$/var splitPhase = phase1Op/' \
simdgen/main.go wasmgen/main.go tmplgen/main.go
sed 's/OpARM64LessThanU/ssaop.OpARM64LessThanU/g' -i simdgen/ops/ShiftRotate/go_arm64.yaml
go run . -tmplgen -simdgen -wasmgen
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |