ir3: Document RA-related register flags better

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12216>
This commit is contained in:
Connor Abbott 2021-08-05 16:54:17 +02:00 committed by Marge Bot
parent f7ee7112ec
commit e9d2d3ae17
1 changed files with 14 additions and 1 deletions

View File

@ -126,11 +126,24 @@ struct ir3_register {
/* meta-flags, for intermediate stages of IR, ie.
* before register assignment is done:
*/
IR3_REG_SSA = 0x4000, /* 'instr' is ptr to assigning instr */
IR3_REG_SSA = 0x4000, /* 'def' is ptr to assigning destination */
IR3_REG_ARRAY = 0x8000,
/* Set on a use whenever the SSA value becomes dead after the current
* instruction.
*/
IR3_REG_KILL = 0x10000,
/* Similar to IR3_REG_KILL, except that if there are multiple uses of the
* same SSA value in a single instruction, this is only set on the first
* use.
*/
IR3_REG_FIRST_KILL = 0x20000,
/* Set when a destination doesn't have any uses and is dead immediately
* after the instruction. This can happen even after optimizations for
* corner cases such as destinations of atomic instructions.
*/
IR3_REG_UNUSED = 0x40000,
} flags;