nir/algebraic: Use "uint" instead of "unsigned" for uint types
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 25 Apr 2016 19:00:12 +0000 (12:00 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 27 Apr 2016 18:21:06 +0000 (11:21 -0700)
This is consistent with the rename done for the rest of NIR.  Currently,
"bool" is the only type specifier used in nir_opt_algebraic.py so this is
really a no-op.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir_algebraic.py

index 921d32b582c62bc35d1e1119ef2f70f85f426063..565bee581bebe6b0a4f77a85bd452d8e4013d0bb 100644 (file)
@@ -136,14 +136,14 @@ class Variable(Value):
       self.required_type = m.group('type')
 
       if self.required_type is not None:
-         assert self.required_type in ('float', 'bool', 'int', 'unsigned')
+         assert self.required_type in ('float', 'bool', 'int', 'uint')
 
       self.index = varset[self.var_name]
 
    def type(self):
       if self.required_type == 'bool':
          return "nir_type_bool32"
-      elif self.required_type in ('int', 'unsigned'):
+      elif self.required_type in ('int', 'uint'):
          return "nir_type_int"
       elif self.required_type == 'float':
          return "nir_type_float"