@@ -29,7 +29,9 @@ impl FromStr for TypeKind {
2929 match s {
3030 "bfloat" => Ok ( Self :: BFloat ) ,
3131 "float" => Ok ( Self :: Float ) ,
32- "int" => Ok ( Self :: Int ( true ) ) ,
32+ "double" => Ok ( Self :: Double ) ,
33+ "int" | "long" => Ok ( Self :: Int ( true ) ) ,
34+ "short" => Ok ( Self :: Short ( true ) ) ,
3335 "poly" => Ok ( Self :: Poly ) ,
3436 "char" => Ok ( Self :: Char ( true ) ) ,
3537 "uint" | "unsigned" => Ok ( Self :: Int ( false ) ) ,
@@ -70,7 +72,6 @@ impl TypeKind {
7072 Self :: Int ( false ) => "uint" ,
7173 Self :: Poly => "poly" ,
7274 Self :: Char ( true ) => "char" ,
73- Self :: Char ( false ) => "unsigned char" ,
7475 _ => unreachable ! ( "Not used: {:#?}" , self ) ,
7576 }
7677 }
@@ -143,15 +144,15 @@ impl IntrinsicType {
143144 pub fn is_ptr ( & self ) -> bool {
144145 self . ptr
145146 }
146-
147+
147148 pub fn set_bit_len ( & mut self , value : Option < u32 > ) {
148149 self . bit_len = value;
149150 }
150-
151+
151152 pub fn set_simd_len ( & mut self , value : Option < u32 > ) {
152153 self . simd_len = value;
153154 }
154-
155+
155156 pub fn set_vec_len ( & mut self , value : Option < u32 > ) {
156157 self . vec_len = value;
157158 }
@@ -209,7 +210,7 @@ impl IntrinsicType {
209210 match self {
210211 IntrinsicType {
211212 bit_len : Some ( bit_len @ ( 8 | 16 | 32 | 64 ) ) ,
212- kind : kind @ ( TypeKind :: Int ( _) | TypeKind :: Poly ) ,
213+ kind : kind @ ( TypeKind :: Int ( _) | TypeKind :: Poly | TypeKind :: Char ( _ ) ) ,
213214 simd_len,
214215 vec_len,
215216 ..
0 commit comments