(op_type)
| 176 | return dst_type, src_type |
| 177 | |
| 178 | def GetScalarType(op_type): |
| 179 | result = 'Undefined' |
| 180 | |
| 181 | if op_type in ['B8', 'B16', 'B32', "U8", "U16", "U24", "U32"]: |
| 182 | result = 'Uint32' |
| 183 | elif op_type in ['B64', 'U64']: |
| 184 | result = 'Uint64' |
| 185 | elif op_type in ['F16']: |
| 186 | result = 'Float16' |
| 187 | elif op_type in ['F32']: |
| 188 | result = 'Float32' |
| 189 | elif op_type in ['F64']: |
| 190 | result = 'Float64' |
| 191 | elif op_type in ['I4', 'I8', 'I16', "I24", 'I32']: |
| 192 | result = 'Sint32' |
| 193 | elif op_type in ['I64']: |
| 194 | result = 'Sint64' |
| 195 | elif op_type in ['B96', 'B128']: |
| 196 | result = 'Undefined' |
| 197 | elif op_type in ['Undefined']: |
| 198 | result = 'Undefined' |
| 199 | else: |
| 200 | input('error type {}'.format(op_type)) |
| 201 | |
| 202 | return result |
| 203 | |
| 204 | def GetInstCategory(ins_class): |
| 205 | category = '' |
no test coverage detected