From: Johan Brandhorst-Satzkorn Date: Thu, 20 Oct 2022 04:24:52 +0000 (-0700) Subject: cmd/internal/ssa: correct references to _gen folder X-Git-Tag: go1.20rc1~565 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=85196fc982ead65ea56c377c2e381eabff329773;p=gostls13.git cmd/internal/ssa: correct references to _gen folder The gen folder was renamed to _gen in CL 435472, but references in code and docs were not updated. This updates the references. Change-Id: Ibadc0cdcb5bed145c3257b58465a8df370487ae5 Reviewed-on: https://go-review.googlesource.com/c/go/+/444355 Reviewed-by: Bryan Mills Reviewed-by: David Chase Run-TryBot: Johan Brandhorst-Satzkorn TryBot-Result: Gopher Robot --- diff --git a/src/cmd/compile/internal/ssa/README.md b/src/cmd/compile/internal/ssa/README.md index d695fda045..27ac02b4a2 100644 --- a/src/cmd/compile/internal/ssa/README.md +++ b/src/cmd/compile/internal/ssa/README.md @@ -34,7 +34,7 @@ value is defined exactly once, but it may be used any number of times. A value mainly consists of a unique identifier, an operator, a type, and some arguments. An operator or `Op` describes the operation that computes the value. The -semantics of each operator can be found in `gen/*Ops.go`. For example, `OpAdd8` +semantics of each operator can be found in `_gen/*Ops.go`. For example, `OpAdd8` takes two value arguments holding 8-bit integers and results in their addition. Here is a possible SSA representation of the addition of two `uint8` values: @@ -205,16 +205,16 @@ TODO: need more ideas for this section While most compiler passes are implemented directly in Go code, some others are code generated. This is currently done via rewrite rules, which have their own -syntax and are maintained in `gen/*.rules`. Simpler optimizations can be written +syntax and are maintained in `_gen/*.rules`. Simpler optimizations can be written easily and quickly this way, but rewrite rules are not suitable for more complex optimizations. To read more on rewrite rules, have a look at the top comments in -[gen/generic.rules](gen/generic.rules) and [gen/rulegen.go](gen/rulegen.go). +[_gen/generic.rules](_gen/generic.rules) and [_gen/rulegen.go](_gen/rulegen.go). Similarly, the code to manage operators is also code generated from -`gen/*Ops.go`, as it is easier to maintain a few tables than a lot of code. -After changing the rules or operators, see [gen/README](gen/README) for +`_gen/*Ops.go`, as it is easier to maintain a few tables than a lot of code. +After changing the rules or operators, see [_gen/README](_gen/README) for instructions on how to generate the Go code again.