/llvm-project/clang/lib/InstallAPI/ |
H A D | FileList.cpp | 70 auto TypeStr = in parseType() local 72 if (!TypeStr) in parseType() 73 return TypeStr.takeError(); in parseType() 75 if (*TypeStr == "public") in parseType() 77 else if (*TypeStr == "private") in parseType() 79 else if (*TypeStr == "project" && Version >= 2) in parseType()
|
/llvm-project/llvm/lib/Target/Mips/ |
H A D | MicroMipsInstrFPU.td | 307 multiclass C_COND_MM<string TypeStr, RegisterOperand RC, bits<2> fmt, 309 def C_F_#NAME#_MM : MMRel, C_COND_FT<"f", TypeStr, RC, itin>, 314 def C_UN_#NAME#_MM : MMRel, C_COND_FT<"un", TypeStr, RC, itin>, 319 def C_EQ_#NAME#_MM : MMRel, C_COND_FT<"eq", TypeStr, RC, itin>, 324 def C_UEQ_#NAME#_MM : MMRel, C_COND_FT<"ueq", TypeStr, RC, itin>, 329 def C_OLT_#NAME#_MM : MMRel, C_COND_FT<"olt", TypeStr, RC, itin>, 333 def C_ULT_#NAME#_MM : MMRel, C_COND_FT<"ult", TypeStr, RC, itin>, 337 def C_OLE_#NAME#_MM : MMRel, C_COND_FT<"ole", TypeStr, RC, itin>, 341 def C_ULE_#NAME#_MM : MMRel, C_COND_FT<"ule", TypeStr, RC, itin>, 345 def C_SF_#NAME#_MM : MMRel, C_COND_FT<"sf", TypeStr, RC, itin>, [all …]
|
H A D | MipsInstrFPU.td | 284 multiclass C_COND_M<string TypeStr, RegisterOperand RC, bits<5> fmt, 286 def C_F_#NAME : MMRel, C_COND_FT<"f", TypeStr, RC, itin>, 291 def C_UN_#NAME : MMRel, C_COND_FT<"un", TypeStr, RC, itin>, 296 def C_EQ_#NAME : MMRel, C_COND_FT<"eq", TypeStr, RC, itin>, 301 def C_UEQ_#NAME : MMRel, C_COND_FT<"ueq", TypeStr, RC, itin>, 306 def C_OLT_#NAME : MMRel, C_COND_FT<"olt", TypeStr, RC, itin>, 310 def C_ULT_#NAME : MMRel, C_COND_FT<"ult", TypeStr, RC, itin>, 314 def C_OLE_#NAME : MMRel, C_COND_FT<"ole", TypeStr, RC, itin>, 318 def C_ULE_#NAME : MMRel, C_COND_FT<"ule", TypeStr, RC, itin>, 322 def C_SF_#NAME : MMRel, C_COND_FT<"sf", TypeStr, RC, itin>, [all …]
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaPPC.cpp | 335 const char *TypeStr) { in BuiltinPPCMMACall() 337 assert((TypeStr[0] != '\0') && in BuiltinPPCMMACall() 344 // The first type in TypeStr is the type of the value returned by the in BuiltinPPCMMACall() 346 QualType type = DecodePPCMMATypeFromStr(Context, TypeStr, Mask); in BuiltinPPCMMACall() 349 while (*TypeStr != '\0') { in BuiltinPPCMMACall() 351 QualType ExpectedType = DecodePPCMMATypeFromStr(Context, TypeStr, Mask); in BuiltinPPCMMACall() 387 // read from TypeStr. So we need to read them all to ensure we have the right in BuiltinPPCMMACall() 390 while (*TypeStr != '\0') { in BuiltinPPCMMACall() 391 (void)DecodePPCMMATypeFromStr(Context, TypeStr, Mask); in BuiltinPPCMMACall() 332 BuiltinPPCMMACall(CallExpr * TheCall,unsigned BuiltinID,const char * TypeStr) BuiltinPPCMMACall() argument
|
H A D | SemaOverload.cpp | 6562 std::string TypeStr; in PerformContextualImplicitConversion() 6563 ConvTy.getAsStringInternal(TypeStr, SemaRef.getPrintingPolicy()); in PerformContextualImplicitConversion() 6567 "static_cast<" + TypeStr + ">(") in PerformContextualImplicitConversion() 12306 std::string TypeStr("operator"); in operator ()() 12307 TypeStr += Opc; in operator ()() 12308 TypeStr += "("; in operator ()() 12309 TypeStr += Cand->BuiltinParamTypes[0].getAsString(); in operator ()() 12311 TypeStr += ")"; in operator ()() 12312 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr; in operator ()() 12314 TypeStr in operator ()() 6432 std::string TypeStr; diagnoseNoViableConversion() local 12136 std::string TypeStr("operator"); NoteBuiltinOperatorCandidate() local [all...] |
/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVGlobalRegistry.cpp | 1420 StringRef TypeStr, MachineIRBuilder &MIRBuilder, in getOrCreateSPIRVPointerType() 1427 if (hasBuiltinTypePrefix(TypeStr)) in getOrCreateSPIRVPointerType() 1429 TypeStr.str(), MIRBuilder.getContext()), in getOrCreateUndef() 1436 Ty = parseBasicTypeName(TypeStr, Ctx); in getOrCreateUndef() 1444 if (TypeStr.starts_with("*")) { in getOrCreateUndef() 1446 TypeStr = TypeStr.substr(strlen("*")); in getOrCreateUndef() 1450 bool IsPtrToVec = TypeStr.consume_back("*"); in getOrCreateUndef() 1452 if (TypeStr.consume_front(" vector[")) { in getOrCreateUndef() 1453 TypeStr in getOrCreateUndef() 1226 getOrCreateSPIRVTypeByName(StringRef TypeStr,MachineIRBuilder & MIRBuilder,SPIRV::StorageClass::StorageClass SC,SPIRV::AccessQualifier::AccessQualifier AQ) getOrCreateSPIRVTypeByName() argument [all...] |
H A D | SPIRVBuiltins.cpp | 2683 Type *parseBuiltinCallArgumentType(StringRef TypeStr, LLVMContext &Ctx) { in getPipeType() 2685 if (hasBuiltinTypePrefix(TypeStr)) { in getPipeType() 2688 [[maybe_unused]] bool IsOCLBuiltinType = TypeStr.consume_front("ocl_"); in getPipeType() 2696 if (TypeStr.ends_with("*")) in getCoopMatrType() 2697 TypeStr = TypeStr.slice(0, TypeStr.find_first_of(" *")); in getCoopMatrType() 2699 return parseBuiltinTypeNameToTargetExtType("opencl." + TypeStr.str() + "_t", in getCoopMatrType() 2708 BaseType = parseBasicTypeName(TypeStr, Ctx); in getCoopMatrType() 2714 TypeStr in getImageType() 2582 StringRef TypeStr = BuiltinArgsTypeStrs[ArgIdx].trim(); parseBuiltinCallArgumentBaseType() local [all...] |
H A D | SPIRVGlobalRegistry.h | 364 // Return nullptr if unable to recognize SPIRV type name from `TypeStr`. 366 StringRef TypeStr, MachineIRBuilder &MIRBuilder,
|
/llvm-project/llvm/lib/ObjectYAML/ |
H A D | ELFYAML.cpp | 41 constexpr StringRef SectionHeaderTable::TypeStr; member in llvm::ELFYAML::SectionHeaderTable 1592 StringRef TypeStr; in mapping() 1597 TypeStr = SHT->TypeStr; in mapping() 1601 TypeStr = getStringValue(IO, "Type"); in mapping() 1602 if (TypeStr.starts_with("SHT_") || isInteger(TypeStr)) in mapping() 1606 if (TypeStr == "Fill") { in mapping() 1613 if (TypeStr == ELFYAML::SectionHeaderTable::TypeStr) { in mapping() 1571 StringRef TypeStr; mapping() local [all...] |
/llvm-project/clang/lib/CodeGen/ |
H A D | CGObjCGNU.cpp | 231 std::string TypeStr = in MakePropertyEncodingString() 234 NameAndAttributes += TypeStr.length() + 3; in MakePropertyEncodingString() 235 NameAndAttributes += TypeStr; in MakePropertyEncodingString() 300 std::string TypeStr = Context.getObjCEncodingForMethodDecl(accessor); in PushProperty() 301 llvm::Constant *TypeEncoding = MakeConstantString(TypeStr); in PushProperty() local 1153 std::string TypeStr = in PushProperty() 1155 Fields.add(MakeConstantString(TypeStr)); in PushProperty() 1161 std::string TypeStr = Context.getObjCEncodingForMethodDecl(accessor); in PushProperty() 1162 Fields.add(GetConstantSelector(accessor->getSelector(), TypeStr)); in PushProperty() 1863 std::string TypeStr; in GenerateClass() 232 std::string TypeStr = MakePropertyEncodingString() local 1152 std::string TypeStr = PushProperty() local 1160 std::string TypeStr = Context.getObjCEncodingForMethodDecl(accessor); PushProperty() local 1855 std::string TypeStr; GenerateClass() local 3658 std::string TypeStr; GenerateClass() local [all...] |
H A D | CGObjCMac.cpp | 5616 std::string TypeStr; in GetMethodVarName() 5617 CGM.getContext().getObjCEncodingForType(Field->getType(), TypeStr, Field); in GetMethodVarName() 5619 llvm::GlobalVariable *&Entry = MethodVarTypes[TypeStr]; in GetMethodVarType() 5621 Entry = CreateCStringLiteral(TypeStr, ObjCLabelType::MethodVarType); in GetMethodVarType() 5627 std::string TypeStr = in GetMethodVarType() 5630 llvm::GlobalVariable *&Entry = MethodVarTypes[TypeStr]; in GetMethodVarType() 5632 Entry = CreateCStringLiteral(TypeStr, ObjCLabelType::MethodVarType); in GetMethodVarType() 5649 std::string TypeStr = 5651 return GetPropertyName(&CGM.getContext().Idents.get(TypeStr)); in GetPropertyTypeString() 5620 std::string TypeStr; GetMethodVarType() local 5631 std::string TypeStr = GetMethodVarType() local 5653 std::string TypeStr = GetPropertyTypeString() local
|
/llvm-project/clang/lib/Support/ |
H A D | RISCVVIntrinsicUtils.cpp | 265 auto getTypeString = [&](StringRef TypeStr) { in initTypeStr() argument 267 return Twine(TypeStr + Twine(ElementBitwidth) + "_t").str(); in initTypeStr() 268 return Twine("v" + TypeStr + Twine(ElementBitwidth) + LMUL.str() + in initTypeStr()
|
/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXIntrinsics.td | 1916 string SpaceStr, string TypeStr, string OpcStr, PatFrag IntOp, 1920 !strconcat("atom", SpaceStr, OpcStr, TypeStr, " \t$dst, [$addr], $b;"), 1924 !strconcat("atom", SpaceStr, OpcStr, TypeStr, " \t$dst, [$addr], $b;", ""), 1926 Requires<!if(!or(!eq(TypeStr, ".f16"), !eq(TypeStr, ".bf16")), [Predicate<"false">], Pred)>; 1929 multiclass F_ATOMIC_2<ValueType regT, NVPTXRegClass regclass, string SpaceStr, string TypeStr, 1932 defm p32 : F_ATOMIC_2_imp<i32, Int32Regs, regT, regclass, SpaceStr, TypeStr, OpcStr, 1934 defm p64 : F_ATOMIC_2_imp<i64, Int64Regs, regT, regclass, SpaceStr, TypeStr, OpcStr, 1941 string SpaceStr, string TypeStr, string OpcStr, PatFrag IntOp, 1947 ".reg \t.s", TypeStr, " tem [all...] |
H A D | NVPTXInstrInfo.td | 797 multiclass SELP<string TypeStr, RegisterClass RC, Operand ImmCls> { 800 !strconcat("selp.", TypeStr, " \t$dst, $a, $b, $p;"), []>; 803 !strconcat("selp.", TypeStr, " \t$dst, $a, $b, $p;"), []>; 806 !strconcat("selp.", TypeStr, " \t$dst, $a, $b, $p;"), []>; 809 !strconcat("selp.", TypeStr, " \t$dst, $a, $b, $p;"), []>; 812 multiclass SELP_PATTERN<string TypeStr, ValueType T, RegisterClass RC, 817 !strconcat("selp.", TypeStr, " \t$dst, $a, $b, $p;"), 822 !strconcat("selp.", TypeStr, " \t$dst, $a, $b, $p;"), 827 !strconcat("selp.", TypeStr, " \t$dst, $a, $b, $p;"), 832 !strconcat("selp.", TypeStr, " \ [all...] |
/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | MemProfiler.cpp | 610 const std::string TypeStr = AccessIsWrite ? "store" : "load"; in instrumentFunction() 615 ClMemoryAccessCallbackPrefix + HistPrefix + TypeStr, in instrumentFunction() 564 const std::string TypeStr = AccessIsWrite ? "store" : "load"; initializeCallbacks() local
|
H A D | HWAddressSanitizer.cpp | 770 const std::string TypeStr = AccessIsWrite ? "store" : "load"; in getShadowNonTls() 774 ClMemoryAccessCallbackPrefix + TypeStr + "N" + MatchAllStr + EndingStr, in ignoreAccessWithoutRemark() 780 M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr + in ignoreAccessWithoutRemark() 697 const std::string TypeStr = AccessIsWrite ? "store" : "load"; initializeCallbacks() local
|
H A D | AddressSanitizer.cpp | 2795 const std::string TypeStr = AccessIsWrite ? "store" : "load"; in initializeCallbacks() 2813 kAsanReportErrorTemplate + ExpStr + TypeStr + "_n" + EndingStr, in initializeCallbacks() 2817 ClMemoryAccessCallbackPrefix + ExpStr + TypeStr + "N" + EndingStr, in initializeCallbacks() 2822 const std::string Suffix = TypeStr + itostr(1ULL << AccessSizeIndex); in initializeCallbacks() 2791 const std::string TypeStr = AccessIsWrite ? "store" : "load"; initializeCallbacks() local
|
/llvm-project/clang/lib/AST/ |
H A D | DeclPrinter.cpp | 1691 std::string TypeStr = PDecl->getASTContext().getUnqualifiedObjCPointerType(T). in VisitObjCPropertyDecl() 1693 Out << ' ' << TypeStr; in VisitObjCPropertyDecl() 1694 if (!StringRef(TypeStr).ends_with("*")) in VisitObjCPropertyDecl() 1690 std::string TypeStr = PDecl->getASTContext().getUnqualifiedObjCPointerType(T). VisitObjCPropertyDecl() local
|
H A D | ASTContext.cpp | 12452 const char *TypeStr = BuiltinInfo.getTypeString(Id); in getStringLiteralArrayType() 12453 if (TypeStr[0] == '\0') { in getStringLiteralArrayType() 12462 QualType ResType = DecodeTypeFromStr(TypeStr, *this, Error, 12469 while (TypeStr[0] && TypeStr[0] != '.') { in getPredefinedStringLiteralFromCache() 12470 QualType Ty = DecodeTypeFromStr(TypeStr, *this, Error, RequiresICE, true); in getPredefinedStringLiteralFromCache() 12489 assert((TypeStr[0] != '.' || TypeStr[1] == 0) && in getMSGuidDecl() 12492 bool Variadic = (TypeStr[0] == '.'); in getUnnamedGlobalConstantDecl() 11750 const char *TypeStr = BuiltinInfo.getTypeString(Id); GetBuiltinType() local
|
/llvm-project/llvm/lib/CodeGen/MIRParser/ |
H A D | MIParser.cpp | 2023 StringRef TypeStr = Token.range(); in parseTypedImmediateOperand() 2024 if (TypeStr.front() != 'i' && TypeStr.front() != 's' && in parseTypedImmediateOperand() 2025 TypeStr.front() != 'p') in parseTypedImmediateOperand() 2016 StringRef TypeStr = Token.range(); parseTypedImmediateOperand() local
|
/llvm-project/clang/lib/Parse/ |
H A D | Parser.cpp | 76 [this](StringRef TypeStr, StringRef Context, SourceLocation IncludeLoc) { in Parser() argument 77 return this->ParseTypeFromString(TypeStr, Context, IncludeLoc); in Parser()
|
H A D | ParseDecl.cpp | 8609 TypeResult Parser::ParseTypeFromString(StringRef TypeStr, StringRef Context, 8617 llvm::MemoryBuffer::getMemBufferCopy(TypeStr, Context), SrcMgr::C_User, 8638 EndToken.setEofData(TypeStr.data()); 8659 (Tok.isNot(tok::eof) || Tok.getEofData() != TypeStr.data())) { 8669 if (Tok.is(tok::eof) && Tok.getEofData() == TypeStr.data()) 8499 ParseTypeFromString(StringRef TypeStr,StringRef Context,SourceLocation IncludeLoc) ParseTypeFromString() argument
|
/llvm-project/llvm/include/llvm/ObjectYAML/ |
H A D | ELFYAML.h | 340 static constexpr StringRef TypeStr = "SectionHeaderTable"; member
|
/llvm-project/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 7078 std::string TypeStr; in printFileHeaders() 7080 TypeStr = Ent->Name.str(); in printFileHeaders() 7083 TypeStr = "Processor Specific"; in printFileHeaders() 7085 TypeStr = "OS Specific"; in printFileHeaders() 7087 TypeStr = "Unknown"; in printFileHeaders() 7089 W.printString("Type", TypeStr + " (0x" + utohexstr(E.e_type) + ")"); in printFileHeaders() 7052 std::string TypeStr; printFileHeaders() local
|
/llvm-project/llvm/bindings/ocaml/llvm/ |
H A D | llvm_ocaml.c | 440 value TypeStr = caml_copy_string(TypeCStr); in llvm_string_of_lltype() local 443 return TypeStr; in llvm_string_of_lltype()
|