MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / parse

Method parse

src/compiler/cbs/VectorShape.cpp:299–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299VectorShape 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

Callers

nothing calls this directly

Calls 2

ParseAlignmentFunction · 0.85
ParseIntFunction · 0.85

Tested by

no test coverage detected