mirror of
https://github.com/enso-org/enso.git
synced 2024-11-27 06:32:30 +03:00
Fix style guides (#62)
This commit is contained in:
parent
9c525edbb9
commit
da27ecbc72
@ -133,21 +133,21 @@ public SimplM<SimplEnv, OutExpr> prepRHS(SimplEnv env, OutExpr outExpr) {
|
||||
}
|
||||
|
||||
/* Note [Float Coercions]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
When we find the binding
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~
|
||||
* When we find the binding
|
||||
x = cast(e, co)
|
||||
we'd like to transform it to
|
||||
x' = e
|
||||
x = cast(x, co) // A trivial binding
|
||||
There's a chance that e will be a constructor application or function, or
|
||||
something like that, so moving the coercion to the usage site may well cancel
|
||||
the coercions and lead to further optimisation.
|
||||
...more stuff about coercion floating...
|
||||
|
||||
== Note [Float Coercions (Unlifted)]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
...explanations of floating for unlifted types...
|
||||
*/
|
||||
* we'd like to transform it to
|
||||
* x' = e
|
||||
* x = cast(x, co) // A trivial binding
|
||||
* There's a chance that e will be a constructor application or function, or
|
||||
* something like that, so moving the coercion to the usage site may well cancel
|
||||
* the coercions and lead to further optimisation.
|
||||
* ...more stuff about coercion floating...
|
||||
*
|
||||
* Note [Float Coercions (Unlifted)]
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
* ...explanations of floating for unlifted types...
|
||||
*/
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -145,21 +145,21 @@ def prepRHS (env : SimplEnv, outExpr : OutExpr) : SimplM[SimplEnv, OutExpr] = {
|
||||
}
|
||||
|
||||
/* Note [Float Coercions]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
When we find the binding
|
||||
x = cast(e, co)
|
||||
we'd like to transform it to
|
||||
x' = e
|
||||
x = cast(x, co) // A trivial binding
|
||||
There's a chance that e will be a constructor application or function, or
|
||||
something like that, so moving the coercion to the usage site may well cancel
|
||||
the coercions and lead to further optimisation.
|
||||
...more stuff about coercion floating...
|
||||
|
||||
== Note [Float Coercions (Unlifted)]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
...explanations of floating for unlifted types...
|
||||
*/
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~
|
||||
* When we find the binding
|
||||
* x = cast(e, co)
|
||||
* we'd like to transform it to
|
||||
* x' = e
|
||||
* x = cast(x, co) // A trivial binding
|
||||
* There's a chance that e will be a constructor application or function, or
|
||||
* something like that, so moving the coercion to the usage site may well cancel
|
||||
* the coercions and lead to further optimisation.
|
||||
* ...more stuff about coercion floating...
|
||||
*
|
||||
* Note [Float Coercions (Unlifted)]
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
* ...explanations of floating for unlifted types...
|
||||
*/
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user