nv50/ir: display OP_BAR subops in debug mode

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Samuel Pitoiset 2016-10-24 16:55:17 +02:00
parent 537dce06ec
commit d588e4f192

View file

@ -236,6 +236,11 @@ static const char *cctlOpStr[] =
"", "", "", "", "", "iv", "ivall"
};
static const char *barOpStr[] =
{
"sync", "arrive", "red and", "red or", "red popc"
};
static const char *DataTypeStr[] =
{
"-",
@ -611,6 +616,10 @@ void Instruction::print() const
if (subOp < ARRAY_SIZE(cctlOpStr))
PRINT("%s ", cctlOpStr[subOp]);
break;
case OP_BAR:
if (subOp < ARRAY_SIZE(barOpStr))
PRINT("%s ", barOpStr[subOp]);
break;
default:
if (subOp)
PRINT("(SUBOP:%u) ", subOp);