| 91 | } |
| 92 | |
| 93 | const char* getName(af_dtype type) { |
| 94 | switch (type) { |
| 95 | case f32: return "float"; |
| 96 | case f64: return "double"; |
| 97 | case c32: return "complex float"; |
| 98 | case c64: return "complex double"; |
| 99 | case u32: return "unsigned int"; |
| 100 | case s32: return "int"; |
| 101 | case u16: return "unsigned short"; |
| 102 | case s16: return "short"; |
| 103 | case u64: return "unsigned long long"; |
| 104 | case s64: return "long long"; |
| 105 | case u8: return "unsigned char"; |
| 106 | case s8: return "signed char"; |
| 107 | case b8: return "bool"; |
| 108 | default: return "unknown type"; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | void saveKernel(const string& funcName, const string& jit_ker, |
| 113 | const string& ext) { |
no outgoing calls
no test coverage detected