Lines Matching refs:StringRef
42 void MetadataStreamerV2::dump(StringRef HSAMetadataString) const {
46 void MetadataStreamerV2::verify(StringRef HSAMetadataString) const {
70 MetadataStreamerV2::getAccessQualifier(StringRef AccQual) const {
102 ValueKind MetadataStreamerV2::getValueKind(Type *Ty, StringRef TypeQual,
103 StringRef BaseTypeName) const {
104 if (TypeQual.find("pipe") != StringRef::npos)
282 StringRef Name;
289 StringRef TypeName;
294 StringRef BaseTypeName;
299 StringRef AccQual;
309 StringRef TypeQual;
331 MaybeAlign PointeeAlign, StringRef Name,
332 StringRef TypeName,
333 StringRef BaseTypeName,
334 StringRef AccQual, StringRef TypeQual) {
352 SmallVector<StringRef, 1> SplitTypeQuals;
354 for (StringRef Key : SplitTypeQuals) {
462 void MetadataStreamerV3::dump(StringRef HSAMetadataString) const {
466 void MetadataStreamerV3::verify(StringRef HSAMetadataString) const {
487 Optional<StringRef>
488 MetadataStreamerV3::getAccessQualifier(StringRef AccQual) const {
489 return StringSwitch<Optional<StringRef>>(AccQual)
490 .Case("read_only", StringRef("read_only"))
491 .Case("write_only", StringRef("write_only"))
492 .Case("read_write", StringRef("read_write"))
496 Optional<StringRef>
500 return StringRef("private");
502 return StringRef("global");
504 return StringRef("constant");
506 return StringRef("local");
508 return StringRef("generic");
510 return StringRef("region");
516 StringRef MetadataStreamerV3::getValueKind(Type *Ty, StringRef TypeQual,
517 StringRef BaseTypeName) const {
518 if (TypeQual.find("pipe") != StringRef::npos)
521 return StringSwitch<StringRef>(BaseTypeName)
670 StringRef Name;
677 StringRef TypeName;
682 StringRef BaseTypeName;
687 StringRef AccQual;
697 StringRef TypeQual;
720 StringRef ValueKind, unsigned &Offset,
722 MaybeAlign PointeeAlign, StringRef Name,
723 StringRef TypeName,
724 StringRef BaseTypeName,
725 StringRef AccQual, StringRef TypeQual) {
751 SmallVector<StringRef, 1> SplitTypeQuals;
753 for (StringRef Key : SplitTypeQuals) {