nv50/ir: add isUnsignedIntType() and isIntType() helpers
authorDanilo Krummrich <dakr@redhat.com>
Tue, 16 Aug 2022 13:55:05 +0000 (15:55 +0200)
committerDanilo Krummrich <dakr@redhat.com>
Fri, 9 Sep 2022 15:32:13 +0000 (17:32 +0200)
commit78fc5e37738f495048d54c1d9c6f119c3e949059
treea0ac0a9e4dc82daff40ff0f5b426df6d183e4ab9
parentec60dcd870608b8208778f41745d750bca54b62c
nv50/ir: add isUnsignedIntType() and isIntType() helpers

Add helper functions to check whether a DataType is an unsigned integer
type and whether a DataType is either an unsigned or signed integer
type.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18109>
src/nouveau/codegen/nv50_ir_inlines.h