Closed ltratt closed 3 weeks ago
https://github.com/ykjit/yk/pull/1267/commits/e327e47a04d0d8e124ab32dff3f4fd05ed446f01 implements the rest of what is needed for float consts.
Lukas is away so we'll have to break our normal rule and I'll be the reviewer for your code, and you can review mine. I'm fine with your code; if so, please squash (but you should probably leave my commit as-is).
Squashed.
(we have to wait for the ykllvm change to merge)
I'm not happy with it. I'm ecstatic! I didn't know there was a non-unsafe way doing this, and I'm happy you are less ignorant than I am! Please squash.
Well, clippy caught it :P I only learned about it today!
Squashed, but, hah, partially verified commit.
If that bothers you, you can resign that and force push.
Otherwise ready to merge.
Kinda makes sense TBH.
This makes clear that
Const
can't beEq
because floats aren't. We therefore implement a new wrapper that is solely used for storingConst
s in anIndexSet
, without giving users the idea thatConst
can be compared for equailty.Note that this doesn't fully implement all the necessary bits, but it does enough that it should make clear what extra bits need doing.