Files
wasmtime/cranelift/codegen
Trevor Elliott b58a197d33 cranelift: Add a conditional branch instruction with two targets (#5446)
Add a conditional branch instruction with two targets: brif. This instruction will eventually replace brz and brnz, as it encompasses the behavior of both.

This PR also changes the InstructionData layout for instruction formats that hold BlockCall values, taking the same approach we use for Value arguments. This allows branch_destination to return a slice to the BlockCall values held in the instruction, rather than requiring that we pattern match on InstructionData to fetch the then/else blocks.

Function generation for fuzzing has been updated to generate uses of brif, and I've run the cranelift-fuzzgen target locally for hours without triggering any new failures.
2023-01-24 14:37:16 -08:00
..
2021-10-10 14:19:08 +02:00
2023-01-05 09:46:01 -06:00
2023-01-05 09:46:01 -06:00

This crate contains the core Cranelift code generator. It translates code from an intermediate representation into executable machine code.