Closed leissa closed 1 year ago
Use implicit Dst type for %core.bitcast:
The source type is now implicit not the destination type, right? (The dst type could theoretically be implicit but could not be locally inferred; the information is only available in its usage context (Hindley–Milner style inference/unification))
Use implicit Dst type for %core.bitcast:
The source type is now implicit not the destination type, right? (The dst type could theoretically be implicit but could not be locally inferred; the information is only available in its usage context (Hindley–Milner style inference/unification))
correct.
Changes
%core.nop
->%core.nat
:nop
usually means sth entirely differently.D
st type for%core.bitcast
:.ax %core.bitcast: Π [D: *, S: *][S] -> D
->.ax %core.bitcast: Π.[S: *][D: *][S] -> D
lit/clos/malloc.thorin
.Idx
incore::bit1
&core::bit2
See Discord discussion. Instead of casting tobit_floor
or adding proof certificates, I just added the solution we already have for%core::wrap
: add another (.Nat
) flag that determines the overflow behavior. Rn, however, nobody is really doing anything with this flag. This is sth for future work.