From d4d76c8d7695712d7ce6525db6795da3899b843a Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Mon, 3 Apr 2017 10:06:08 -0700 Subject: [PATCH] Give singleton type variables the type's doc string. This reads better than "typeof(b1)". --- lib/cretonne/meta/cdsl/typevar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cretonne/meta/cdsl/typevar.py b/lib/cretonne/meta/cdsl/typevar.py index 2c5141d78c..1dc8630f5f 100644 --- a/lib/cretonne/meta/cdsl/typevar.py +++ b/lib/cretonne/meta/cdsl/typevar.py @@ -285,7 +285,7 @@ class TypeVar(object): bools = (scalar.bits, scalar.bits) tv = TypeVar( - typ.name, 'typeof({})'.format(typ), + typ.name, typ.__doc__, ints, floats, bools, simd=lanes) tv.singleton_type = typ return tv