| 297 | } |
| 298 | |
| 299 | VectorShape VectorShape::parse(StringRef text, int &nextPos) { |
| 300 | switch (text[nextPos++]) { |
| 301 | case 'v': { |
| 302 | int a = ParseAlignment(text, nextPos); |
| 303 | return VectorShape::varying(a); |
| 304 | } break; |
| 305 | case 'l': { |
| 306 | int s = ParseInt(text, nextPos); |
| 307 | int a = ParseAlignment(text, nextPos); |
| 308 | return VectorShape::strided(s, a); |
| 309 | } |
| 310 | default: |
| 311 | abort(); |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | } // namespace hipsycl::compiler |
nothing calls this directly
no test coverage detected