From 7162f82f3da3da98bfafd3abdfc1fe6fa166487c Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Fri, 19 Jul 2013 18:44:08 +0800 Subject: [PATCH] Add misc builtin vector functions. Although we don't support them yet. Signed-off-by: Zhigang Gong Reviewed-by: He Junyan Reviewed-by: Simon Richter --- backend/src/gen_builtin_vector.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/src/gen_builtin_vector.py b/backend/src/gen_builtin_vector.py index fad18bc..c1a76f3 100755 --- a/backend/src/gen_builtin_vector.py +++ b/backend/src/gen_builtin_vector.py @@ -68,10 +68,15 @@ common_gentype = ["common_gentype", gen_vector_type(all_float_type)] common_gentypef = ["common_gentypef", gen_vector_type(["float"])] common_gentyped = ["common_gentyped", gen_vector_type(["double"])] -relational_gentype = ["relational_gentype", gen_vector_type((all_type))] +relational_gentype = ["relational_gentype", gen_vector_type(all_type)] relational_igentype = ["relational_igentype", gen_vector_type(all_itype)] relational_ugentype = ["relational_ugentype", gen_vector_type(all_utype)] +misc_gentypem = ["misc_gentypem", gen_vector_type(all_type, [2, 4, 8, 16])] +misc_gentypen = ["misc_gentypen", gen_vector_type(all_type, [2, 4, 8, 16])] +misc_ugentypem = ["misc_ugentypem", gen_vector_type(all_utype, [2, 4, 8, 16])] +misc_ugentypen = ["misc_ugentypen", gen_vector_type(all_utype, [2, 4, 8, 16])] + all_predefined_type = math_gentype, math_gentypef, math_gentyped, \ half_native_math_gentype, integer_gentype,integer_sgentype,\ integer_ugentype, charn, ucharn, shortn, ushortn, intn, \ @@ -79,7 +84,8 @@ all_predefined_type = math_gentype, math_gentypef, math_gentyped, fast_integer_gentype, common_gentype, common_gentypef, \ common_gentyped, relational_gentype, relational_igentype, \ relational_ugentype, schar, suchar, sshort, sint, suint, \ - slong, sulong, sfloat, sdouble + slong, sulong, sfloat, sdouble, misc_gentypem, \ + misc_ugentypem, misc_gentypen, misc_ugentypen # type dictionary contains all the predefined type sets. type_dict = {} -- 2.7.4