• Home
  • Raw
  • Download

Lines Matching refs:DemangledName

104     const std::string &DemangledName);
112 const std::string &DemangledName);
151 const std::string &DemangledName);
162 const std::string &DemangledName);
167 const std::string &DemangledName);
173 const std::string &DemangledName);
180 const std::string &DemangledName);
191 const std::string &DemangledName);
197 void visitCallNDRange(CallInst *CI, const std::string &DemangledName);
201 const std::string &DemangledName);
208 const std::string &DemangledName);
213 const std::string &DemangledName);
217 const std::string &DemangledName);
228 const std::string &DemangledName);
232 void visitCallRelational(CallInst *CI, const std::string &DemangledName);
239 const std::string &DemangledName);
246 void visitCallGetFence(CallInst *CI, StringRef MangledName, const std::string& DemangledName);
255 const std::string &DemangledName);
260 const std::string &DemangledName,
282 SPIRVWord getVecLoadWidth(const std::string& DemangledName) { in getVecLoadWidth() argument
284 if (DemangledName == "vloada_half") in getVecLoadWidth()
288 if (DemangledName.find("vload_half") == 0) in getVecLoadWidth()
290 else if (DemangledName.find("vloada_half") == 0) in getVecLoadWidth()
293 std::stringstream SS(DemangledName.substr(Loc)); in getVecLoadWidth()
300 void transVecLoadStoreName(std::string& DemangledName, in transVecLoadStoreName() argument
304 if (!AlwaysN && DemangledName == HalfStem) in transVecLoadStoreName()
306 if (!AlwaysN && DemangledName.find(HalfStemR) == 0) { in transVecLoadStoreName()
307 DemangledName = HalfStemR; in transVecLoadStoreName()
310 if (DemangledName.find(HalfStem) == 0) { in transVecLoadStoreName()
311 auto OldName = DemangledName; in transVecLoadStoreName()
312 DemangledName = HalfStem + "n"; in transVecLoadStoreName()
314 DemangledName += "_r"; in transVecLoadStoreName()
317 if (DemangledName.find(Stem) == 0) { in transVecLoadStoreName()
318 DemangledName = Stem + "n"; in transVecLoadStoreName()
373 std::string DemangledName; in visitCallInst() local
374 if (!oclIsBuiltin(MangledName, &DemangledName)) in visitCallInst()
377 DEBUG(dbgs() << "DemangledName: " << DemangledName << '\n'); in visitCallInst()
378 if (DemangledName.find(kOCLBuiltinName::NDRangePrefix) == 0) { in visitCallInst()
379 visitCallNDRange(&CI, DemangledName); in visitCallInst()
382 if (DemangledName == kOCLBuiltinName::All) { in visitCallInst()
386 if (DemangledName == kOCLBuiltinName::Any) { in visitCallInst()
390 if (DemangledName.find(kOCLBuiltinName::AsyncWorkGroupCopy) == 0 || in visitCallInst()
391 DemangledName.find(kOCLBuiltinName::AsyncWorkGroupStridedCopy) == 0) { in visitCallInst()
392 visitCallAsyncWorkGroupCopy(&CI, DemangledName); in visitCallInst()
395 if (DemangledName.find(kOCLBuiltinName::AtomicPrefix) == 0 || in visitCallInst()
396 DemangledName.find(kOCLBuiltinName::AtomPrefix) == 0) { in visitCallInst()
398 if (DemangledName == kOCLBuiltinName::AtomicInit) { in visitCallInst()
402 if (DemangledName == kOCLBuiltinName::AtomicWorkItemFence) { in visitCallInst()
406 if (DemangledName == kOCLBuiltinName::AtomicCmpXchgWeak || in visitCallInst()
407 DemangledName == kOCLBuiltinName::AtomicCmpXchgStrong || in visitCallInst()
408 DemangledName == kOCLBuiltinName::AtomicCmpXchgWeakExplicit || in visitCallInst()
409 DemangledName == kOCLBuiltinName::AtomicCmpXchgStrongExplicit) { in visitCallInst()
411 PCI = visitCallAtomicCmpXchg(PCI, DemangledName); in visitCallInst()
413 visitCallAtomicLegacy(PCI, MangledName, DemangledName); in visitCallInst()
414 visitCallAtomicCpp11(PCI, MangledName, DemangledName); in visitCallInst()
417 if (DemangledName.find(kOCLBuiltinName::ConvertPrefix) == 0) { in visitCallInst()
418 visitCallConvert(&CI, MangledName, DemangledName); in visitCallInst()
421 if (DemangledName == kOCLBuiltinName::GetImageWidth || in visitCallInst()
422 DemangledName == kOCLBuiltinName::GetImageHeight || in visitCallInst()
423 DemangledName == kOCLBuiltinName::GetImageDepth || in visitCallInst()
424 DemangledName == kOCLBuiltinName::GetImageDim || in visitCallInst()
425 DemangledName == kOCLBuiltinName::GetImageArraySize) { in visitCallInst()
426 visitCallGetImageSize(&CI, MangledName, DemangledName); in visitCallInst()
429 if ((DemangledName.find(kOCLBuiltinName::WorkGroupPrefix) == 0 && in visitCallInst()
430 DemangledName != kOCLBuiltinName::WorkGroupBarrier) || in visitCallInst()
431 DemangledName == kOCLBuiltinName::WaitGroupEvent || in visitCallInst()
432 (DemangledName.find(kOCLBuiltinName::SubGroupPrefix) == 0 && in visitCallInst()
433 DemangledName != kOCLBuiltinName::SubGroupBarrier)) { in visitCallInst()
434 visitCallGroupBuiltin(&CI, MangledName, DemangledName); in visitCallInst()
437 if (DemangledName.find(kOCLBuiltinName::Pipe) != std::string::npos) { in visitCallInst()
438 visitCallPipeBuiltin(&CI, MangledName, DemangledName); in visitCallInst()
441 if (DemangledName == kOCLBuiltinName::MemFence) { in visitCallInst()
445 if (DemangledName.find(kOCLBuiltinName::ReadImage) == 0) { in visitCallInst()
447 visitCallReadImageWithSampler(&CI, MangledName, DemangledName); in visitCallInst()
451 visitCallReadImageMSAA(&CI, MangledName, DemangledName); in visitCallInst()
455 if (DemangledName.find(kOCLBuiltinName::ReadImage) == 0 || in visitCallInst()
456 DemangledName.find(kOCLBuiltinName::WriteImage) == 0) { in visitCallInst()
457 visitCallReadWriteImage(&CI, MangledName, DemangledName); in visitCallInst()
460 if (DemangledName == kOCLBuiltinName::ToGlobal || in visitCallInst()
461 DemangledName == kOCLBuiltinName::ToLocal || in visitCallInst()
462 DemangledName == kOCLBuiltinName::ToPrivate) { in visitCallInst()
463 visitCallToAddr(&CI, MangledName, DemangledName); in visitCallInst()
466 if (DemangledName.find(kOCLBuiltinName::VLoadPrefix) == 0 || in visitCallInst()
467 DemangledName.find(kOCLBuiltinName::VStorePrefix) == 0) { in visitCallInst()
468 visitCallVecLoadStore(&CI, MangledName, DemangledName); in visitCallInst()
471 if (DemangledName == kOCLBuiltinName::IsFinite || in visitCallInst()
472 DemangledName == kOCLBuiltinName::IsInf || in visitCallInst()
473 DemangledName == kOCLBuiltinName::IsNan || in visitCallInst()
474 DemangledName == kOCLBuiltinName::IsNormal || in visitCallInst()
475 DemangledName == kOCLBuiltinName::Signbit) { in visitCallInst()
476 visitCallRelational(&CI, DemangledName); in visitCallInst()
479 if (DemangledName == kOCLBuiltinName::WorkGroupBarrier || in visitCallInst()
480 DemangledName == kOCLBuiltinName::Barrier) { in visitCallInst()
484 if (DemangledName == kOCLBuiltinName::GetFence) { in visitCallInst()
485 visitCallGetFence(&CI, MangledName, DemangledName); in visitCallInst()
488 if (DemangledName == kOCLBuiltinName::Dot && in visitCallInst()
493 if (DemangledName == kOCLBuiltinName::FMin || in visitCallInst()
494 DemangledName == kOCLBuiltinName::FMax || in visitCallInst()
495 DemangledName == kOCLBuiltinName::Min || in visitCallInst()
496 DemangledName == kOCLBuiltinName::Max || in visitCallInst()
497 DemangledName == kOCLBuiltinName::Step || in visitCallInst()
498 DemangledName == kOCLBuiltinName::SmoothStep || in visitCallInst()
499 DemangledName == kOCLBuiltinName::Clamp || in visitCallInst()
500 DemangledName == kOCLBuiltinName::Mix) { in visitCallInst()
501 visitCallScalToVec(&CI, MangledName, DemangledName); in visitCallInst()
504 if (DemangledName == kOCLBuiltinName::GetImageChannelDataType) { in visitCallInst()
505 visitCallGetImageChannel(&CI, MangledName, DemangledName, in visitCallInst()
509 if (DemangledName == kOCLBuiltinName::GetImageChannelOrder) { in visitCallInst()
510 visitCallGetImageChannel(&CI, MangledName, DemangledName, in visitCallInst()
514 visitCallBuiltinSimple(&CI, MangledName, DemangledName); in visitCallInst()
519 const std::string &DemangledName) { in visitCallNDRange() argument
520 assert(DemangledName.find(kOCLBuiltinName::NDRangePrefix) == 0); in visitCallNDRange()
521 std::string lenStr = DemangledName.substr(8, 1); in visitCallNDRange()
567 const std::string &DemangledName) { in visitCallAsyncWorkGroupCopy() argument
570 if (DemangledName == OCLUtil::kOCLBuiltinName::AsyncWorkGroupCopy) { in visitCallAsyncWorkGroupCopy()
580 const std::string& DemangledName) { in visitCallAtomicCmpXchg() argument
675 StringRef MangledName, const std::string& DemangledName) { in visitCallAtomicLegacy() argument
676 StringRef Stem = DemangledName; in visitCallAtomicLegacy()
731 StringRef MangledName, const std::string& DemangledName) { in visitCallAtomicCpp11() argument
732 StringRef Stem = DemangledName; in visitCallAtomicCpp11()
828 StringRef MangledName, const std::string& DemangledName) { in visitCallConvert() argument
829 if (eraseUselessConvert(CI, MangledName, DemangledName)) in visitCallConvert()
840 std::string TargetTyName = DemangledName.substr( in visitCallConvert()
847 std::string Sat = DemangledName.find("_sat") != std::string::npos ? in visitCallConvert()
849 auto TargetSigned = DemangledName[8] != 'u'; in visitCallConvert()
866 auto Loc = DemangledName.find("_rt"); in visitCallConvert()
870 Rounding = DemangledName.substr(Loc, 4); in visitCallConvert()
882 std::string DemangledName = OrigDemangledName; in visitCallGroupBuiltin() local
884 if (DemangledName == kOCLBuiltinName::WorkGroupBarrier) in visitCallGroupBuiltin()
886 if (DemangledName == kOCLBuiltinName::WaitGroupEvent) { in visitCallGroupBuiltin()
888 } else if (DemangledName.find(kOCLBuiltinName::WorkGroupPrefix) == 0) { in visitCallGroupBuiltin()
889 DemangledName.erase(0, strlen(kOCLBuiltinName::WorkPrefix)); in visitCallGroupBuiltin()
891 } else if (DemangledName.find(kOCLBuiltinName::SubGroupPrefix) == 0) { in visitCallGroupBuiltin()
892 DemangledName.erase(0, strlen(kOCLBuiltinName::SubPrefix)); in visitCallGroupBuiltin()
897 if (DemangledName != kOCLBuiltinName::WaitGroupEvent) { in visitCallGroupBuiltin()
898 StringRef GroupOp = DemangledName; in visitCallGroupBuiltin()
924 DemangledName = std::string(kSPIRVName::GroupPrefix) + OpTyC + Op.str(); in visitCallGroupBuiltin()
929 bool IsGroupAllAny = (DemangledName.find("_all") != std::string::npos || in visitCallGroupBuiltin()
930 DemangledName.find("_any") != std::string::npos); in visitCallGroupBuiltin()
936 Info.UniqName = DemangledName; in visitCallGroupBuiltin()
944 if (DemangledName == "group_broadcast" && E > 2) { in visitCallGroupBuiltin()
995 StringRef MangledName, const std::string& DemangledName) { in visitCallPipeBuiltin() argument
996 std::string NewName = DemangledName; in visitCallPipeBuiltin()
999 if ((DemangledName.find(kOCLBuiltinName::ReadPipe) == 0 || in visitCallPipeBuiltin()
1000 DemangledName.find(kOCLBuiltinName::WritePipe) == 0) in visitCallPipeBuiltin()
1002 NewName = std::string(kSPIRVName::ReservedPrefix) + DemangledName; in visitCallPipeBuiltin()
1009 const std::string &DemangledName) { in visitCallReadImageMSAA() argument
1024 CallInst *CI, StringRef MangledName, const std::string &DemangledName) { in visitCallReadImageWithSampler() argument
1079 StringRef MangledName, const std::string& DemangledName) { in visitCallGetImageSize() argument
1109 if (DemangledName == kOCLBuiltinName::GetImageDim) { in visitCallGetImageSize()
1126 unsigned I = StringSwitch<unsigned>(DemangledName) in visitCallGetImageSize()
1141 const std::string &DemangledName) { in eraseUselessConvert() argument
1150 DemangledName.find("_sat") != std::string::npos && in eraseUselessConvert()
1151 isLastFuncParamSigned(MangledName) != (DemangledName[8] != 'u')) in eraseUselessConvert()
1166 StringRef MangledName, const std::string& DemangledName) { in visitCallBuiltinSimple() argument
1169 Info.UniqName = DemangledName; in visitCallBuiltinSimple()
1180 std::string DemangledName; in transWorkItemBuiltinsToVariables() local
1181 if (!oclIsBuiltin(I->getName(), &DemangledName)) in transWorkItemBuiltinsToVariables()
1183 DEBUG(dbgs() << "Function demangled name: " << DemangledName << '\n'); in transWorkItemBuiltinsToVariables()
1186 if (!SPIRSPIRVBuiltinVariableMap::find(DemangledName, &BVKind)) in transWorkItemBuiltinsToVariables()
1231 StringRef MangledName, const std::string& DemangledName) { in visitCallReadWriteImage() argument
1233 if (DemangledName.find(kOCLBuiltinName::ReadImage) == 0) in visitCallReadWriteImage()
1236 if (DemangledName.find(kOCLBuiltinName::WriteImage) == 0) in visitCallReadWriteImage()
1255 const std::string &DemangledName) { in visitCallToAddr() argument
1259 Info.UniqName = DemangledName; in visitCallToAddr()
1274 const std::string &DemangledName) { in visitCallRelational() argument
1277 OCLSPIRVBuiltinMap::find(DemangledName, &OC); in visitCallRelational()
1318 std::string DemangledName = OrigDemangledName; in visitCallVecLoadStore() local
1319 if (DemangledName.find(kOCLBuiltinName::VLoadPrefix) == 0 && in visitCallVecLoadStore()
1320 DemangledName != kOCLBuiltinName::VLoadHalf) { in visitCallVecLoadStore()
1321 SPIRVWord Width = getVecLoadWidth(DemangledName); in visitCallVecLoadStore()
1323 DemangledName << " Width: " << Width << '\n'); in visitCallVecLoadStore()
1325 } else if (DemangledName.find(kOCLBuiltinName::RoundingPrefix) in visitCallVecLoadStore()
1327 auto R = SPIRSPIRVFPRoundingModeMap::map(DemangledName.substr( in visitCallVecLoadStore()
1328 DemangledName.find(kOCLBuiltinName::RoundingPrefix) + 1, 3)); in visitCallVecLoadStore()
1332 if (DemangledName.find(kOCLBuiltinName::VLoadAPrefix) == 0) in visitCallVecLoadStore()
1333 transVecLoadStoreName(DemangledName, kOCLBuiltinName::VLoadAPrefix, true); in visitCallVecLoadStore()
1335 transVecLoadStoreName(DemangledName, kOCLBuiltinName::VLoadPrefix, false); in visitCallVecLoadStore()
1337 if (DemangledName.find(kOCLBuiltinName::VStoreAPrefix) == 0) in visitCallVecLoadStore()
1338 transVecLoadStoreName(DemangledName, kOCLBuiltinName::VStoreAPrefix, true); in visitCallVecLoadStore()
1340 transVecLoadStoreName(DemangledName, kOCLBuiltinName::VStorePrefix, false); in visitCallVecLoadStore()
1346 Info.UniqName = DemangledName; in visitCallVecLoadStore()
1347 if (DemangledName.find(kOCLBuiltinName::VLoadPrefix) == 0) in visitCallVecLoadStore()
1357 const std::string &DemangledName) { in visitCallGetFence() argument
1360 OCLSPIRVBuiltinMap::find(DemangledName, &OC); in visitCallGetFence()
1379 const std::string &DemangledName) { in visitCallScalToVec() argument
1387 visitCallBuiltinSimple(CI, MangledName, DemangledName); in visitCallScalToVec()
1393 if (DemangledName == kOCLBuiltinName::FMin || in visitCallScalToVec()
1394 DemangledName == kOCLBuiltinName::FMax || in visitCallScalToVec()
1395 DemangledName == kOCLBuiltinName::Min || in visitCallScalToVec()
1396 DemangledName == kOCLBuiltinName::Max) { in visitCallScalToVec()
1399 } else if (DemangledName == kOCLBuiltinName::Clamp) { in visitCallScalToVec()
1403 } else if (DemangledName == kOCLBuiltinName::Mix) { in visitCallScalToVec()
1407 } else if (DemangledName == kOCLBuiltinName::Step) { in visitCallScalToVec()
1410 } else if (DemangledName == kOCLBuiltinName::SmoothStep) { in visitCallScalToVec()
1437 getExtOp(MangledName, DemangledName)); in visitCallScalToVec()
1443 const std::string &DemangledName, in visitCallGetImageChannel() argument
1447 OCLSPIRVBuiltinMap::find(DemangledName, &OC); in visitCallGetImageChannel()