Lines Matching defs:Postfix
278 /// \param Postfix contains postfixes extracted from the SPIR-V image
281 isSPIRVType(llvm::Type* Ty, StringRef BaseTyName, StringRef *Postfix) {
291 if (Postfix)
292 *Postfix = FullName.drop_front(N.size());
369 return std::string(kSPIRVName::Prefix) + S + kSPIRVName::Postfix;
376 auto End = S.rfind(kSPIRVName::Postfix);
387 SmallVectorImpl<StringRef> &Postfix) {
392 R.split(Postfix, "_", -1, false);
393 auto Name = Postfix.front();
394 Postfix.erase(Postfix.begin());
399 getSPIRVFuncName(Op OC, StringRef PostFix) {
400 return prefixSPIRVName(getName(OC) + PostFix.str());
411 StringRef PostFix) {
423 + '_' + ExtOpName + PostFix.str());
427 mapPostfixToDecorate(StringRef Postfix, SPIRVEntry *Target) {
428 if (Postfix == kSPIRVPostfix::Sat)
431 if (Postfix.startswith(kSPIRVPostfix::Rt))
433 map<SPIRVFPRoundingModeKind>(Postfix.str()));
472 SmallVector<StringRef, 2> Postfix;
477 R = dePrefixSPIRVName(R, Postfix);
481 for (auto &I:Postfix)
488 SmallVector<StringRef, 2> Postfix;
490 R = dePrefixSPIRVName(R, Postfix);
491 assert(Postfix.empty() && "Invalid SPIR-V builtin name");
1278 getLLVMTypeForSPIRVImageSampledTypePostfix(StringRef Postfix,
1280 if (Postfix == kSPIRVImageSampledTypeName::Void)
1282 if (Postfix == kSPIRVImageSampledTypeName::Float)
1284 if (Postfix == kSPIRVImageSampledTypeName::Half)
1286 if (Postfix == kSPIRVImageSampledTypeName::Int ||
1287 Postfix == kSPIRVImageSampledTypeName::UInt)
1289 llvm_unreachable("Invalid sampled type postfix");