Andrew Kelley 09e1f37cb6 stage2: implement union coercion to its own tag
* AIR: add `get_union_tag` instruction
   - implement in LLVM backend
 * Sema: implement == and != for union and enum literal
   - Also implement coercion from union to its own tag type
 * Value: implement hashing for union values

The motivating example is this snippet:

    comptime assert(@typeInfo(T) == .Float);

This was the next blocker for stage2 building compiler-rt.
Now it is switch at compile-time on an integer.
2021-09-27 23:11:00 -07:00
..
2021-09-24 13:39:20 -04:00
2021-09-01 17:54:07 -07:00
2020-10-31 12:21:49 +02:00
2021-09-24 13:39:20 -04:00
2021-09-24 13:39:20 -04:00