nir/vtn: add support for phi nodes
This commit is contained in:
@@ -60,6 +60,8 @@ struct vtn_function {
|
||||
|
||||
nir_function_overload *overload;
|
||||
struct vtn_block *start_block;
|
||||
|
||||
const uint32_t *end;
|
||||
};
|
||||
|
||||
typedef bool (*vtn_instruction_handler)(struct vtn_builder *, uint32_t,
|
||||
@@ -118,6 +120,12 @@ struct vtn_builder {
|
||||
*/
|
||||
struct hash_table *const_table;
|
||||
|
||||
/*
|
||||
* Map from nir_block to the vtn_block which ends with it -- used for
|
||||
* handling phi nodes.
|
||||
*/
|
||||
struct hash_table *block_table;
|
||||
|
||||
unsigned value_id_bound;
|
||||
struct vtn_value *values;
|
||||
|
||||
|
Reference in New Issue
Block a user