/openbsd/gnu/llvm/clang/include/clang/Basic/ |
H A D | AttributeCommonInfo.h | 65 const IdentifierInfo *AttrName = nullptr; 87 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 90 : AttrName(AttrName), ScopeName(ScopeName), AttrRange(AttrRange), in AttributeCommonInfo() 92 AttrKind(getParsedKind(AttrName, ScopeName, SyntaxUsed)), in AttributeCommonInfo() 95 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 98 : AttrName(AttrName), ScopeName(ScopeName), AttrRange(AttrRange), in AttributeCommonInfo() 102 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 106 : AttrName(AttrName), ScopeName(ScopeName), AttrRange(AttrRange), in AttributeCommonInfo() 112 : AttrName(AttrName), ScopeName(nullptr), AttrRange(AttrRange), in AttributeCommonInfo() 131 const IdentifierInfo *getAttrName() const { return AttrName; } in getAttrName() [all …]
|
/openbsd/gnu/llvm/clang/lib/Basic/ |
H A D | Attributes.cpp | 75 StringRef AttrName = Name->getName(); in normalizeAttrName() local 76 if (ShouldNormalize && AttrName.size() >= 4 && AttrName.startswith("__") && in normalizeAttrName() 77 AttrName.endswith("__")) in normalizeAttrName() 78 AttrName = AttrName.slice(2, AttrName.size() - 2); in normalizeAttrName() 80 return AttrName; in normalizeAttrName() 97 StringRef AttrName = normalizeAttrName(Name, ScopeName, SyntaxUsed); in normalizeName() local 105 FullName += AttrName; in normalizeName()
|
/openbsd/gnu/llvm/clang/lib/Parse/ |
H A D | ParseDecl.cpp | 198 if (!AttrName) in ParseGNUAttributes() 353 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg() 468 << AttrName; in ParseAttributeArgsCommon() 529 } else if (attributeIsTypeArgAttr(*AttrName)) { in ParseGNUAttributeArgs() 608 if (AttrName->getName() == "property") { in ParseMicrosoftDeclSpecArgs() 778 IdentifierInfo *AttrName; in ParseMicrosoftDeclSpecs() local 788 AttrName = PP.getIdentifierInfo(Str); in ParseMicrosoftDeclSpecs() 791 AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftDeclSpecs() 803 << AttrName->getName(); in ParseMicrosoftDeclSpecs() 938 << AttrName; in ParseNullabilityTypeSpecifiers() [all …]
|
H A D | ParseDeclCXX.cpp | 1379 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftInheritanceClassAttributes() local 4265 if (AttrName->isStr("directive")) { in ParseOpenMPAttributeArgs() 4283 assert(AttrName->isStr("sequence") && in ParseOpenMPAttributeArgs() 4398 ParseOpenMPAttributeArgs(AttrName, OpenMPTokens); in ParseCXX11AttributeArgs() 4431 << AttrName in ParseCXX11AttributeArgs() 4519 AttrName = TryParseCXX11AttributeIdentifier( in ParseCXX11AttributeSpecifierInternal() 4521 if (!AttrName) in ParseCXX11AttributeSpecifierInternal() 4527 ScopeName = AttrName; in ParseCXX11AttributeSpecifierInternal() 4530 AttrName = TryParseCXX11AttributeIdentifier( in ParseCXX11AttributeSpecifierInternal() 4532 if (!AttrName) { in ParseCXX11AttributeSpecifierInternal() [all …]
|
H A D | ParseCXXInlineMethods.cpp | 750 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, nullptr, in ParseLexedAttribute() 759 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, nullptr, in ParseLexedAttribute() 764 Diag(Tok, diag::warn_attribute_no_decl) << LA.AttrName.getName(); in ParseLexedAttribute() 770 << &LA.AttrName; in ParseLexedAttribute()
|
H A D | ParseObjc.cpp | 899 SourceLocation AttrName = ConsumeToken(); // consume last attribute name in ParseObjCPropertyAttribute() local 1001 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyAttribute() 2434 SourceLocation AttrName = ConsumeToken(); // consume attribute name in ParseObjCPropertyDynamic() local 2443 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyDynamic()
|
H A D | ParsePragma.cpp | 1830 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in HandlePragmaAttribute() local 1834 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in HandlePragmaAttribute() 1837 ParseGNUAttributeArgs(AttrName, AttrNameLoc, Attrs, /*EndLoc=*/nullptr, in HandlePragmaAttribute()
|
H A D | ParseExprCXX.cpp | 1298 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseLambdaExpressionAfterIntroducer() local 1300 Attr.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseLambdaExpressionAfterIntroducer()
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | AssumeBundleQueries.cpp | 44 StringRef AttrName, uint64_t *ArgVal) { in hasAttributeInAssume() argument 45 assert(Attribute::isExistingAttribute(AttrName) && in hasAttributeInAssume() 48 Attribute::getAttrKindFromName(AttrName))) && in hasAttributeInAssume() 54 if (BOI.Tag->getKey() != AttrName) in hasAttributeInAssume()
|
/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | DiagnosticInfo.cpp | 426 auto AttrName = i == 0 ? "dontcall-error" : "dontcall-warn"; in diagnoseDontCall() local 429 if (F->hasFnAttribute(AttrName)) { in diagnoseDontCall() 431 auto A = F->getFnAttribute(AttrName); in diagnoseDontCall()
|
H A D | Attributes.cpp | 233 Attribute::AttrKind Attribute::getAttrKindFromName(StringRef AttrName) { in getAttrKindFromName() argument 234 return StringSwitch<Attribute::AttrKind>(AttrName) in getAttrKindFromName()
|
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/ |
H A D | AssumeBundleQueries.h | 42 bool hasAttributeInAssume(AssumeInst &Assume, Value *IsOn, StringRef AttrName,
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUPromoteAlloca.cpp | 301 StringRef AttrName; in getWorkitemID() local 307 AttrName = "amdgpu-no-workitem-id-x"; in getWorkitemID() 312 AttrName = "amdgpu-no-workitem-id-y"; in getWorkitemID() 318 AttrName = "amdgpu-no-workitem-id-z"; in getWorkitemID() 327 F->removeFnAttr(AttrName); in getWorkitemID()
|
/openbsd/gnu/llvm/clang/include/clang/Parse/ |
H A D | Parser.h | 1316 IdentifierInfo &AttrName; member 1323 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute() 2761 ParseAttributeArgsCommon(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2821 void ParseGNUAttributeArgs(IdentifierInfo *AttrName, 2829 ParseClangAttributeArgs(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2862 void ParseOpenMPAttributeArgs(IdentifierInfo *AttrName, 2877 bool ParseCXX11AttributeArgs(IdentifierInfo *AttrName, 2928 bool ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName, 2971 void ParseSwiftNewTypeAttribute(IdentifierInfo &AttrName, 2979 void ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, [all …]
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | CommandFlags.cpp | 629 #define HANDLE_BOOL_ATTR(CL, AttrName) \ argument 631 if (CL->getNumOccurrences() > 0 && !F.hasFnAttribute(AttrName)) \ 632 renderBoolStringAttr(NewAttrs, AttrName, *CL); \
|
/openbsd/gnu/llvm/clang/utils/TableGen/ |
H A D | ClangAttrEmitter.cpp | 143 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument 144 AttrName.consume_front("__"); in NormalizeAttrName() 145 AttrName.consume_back("__"); in NormalizeAttrName() 146 return AttrName; in NormalizeAttrName() 3624 static bool isArgVariadic(const Record &R, StringRef AttrName) { in isArgVariadic() argument 3625 return createArgument(R, AttrName)->isVariadic(); in isArgVariadic() 4233 const std::string &AttrName = I->first; in EmitClangAttrParsedAttrImpl() local 4277 OS << " /*AttrKind=*/ParsedAttr::AT_" << AttrName << ",\n"; in EmitClangAttrParsedAttrImpl() 4377 std::string AttrName; in EmitClangAttrParsedAttrKinds() local 4380 AttrName = std::string(Attr.getValueAsString("ParseKind")); in EmitClangAttrParsedAttrKinds() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/ProfileData/ |
H A D | SampleProf.h | 1029 auto AttrName = "sample-profile-suffix-elision-policy"; 1030 auto Attr = F.getFnAttribute(AttrName).getValueAsString();
|
/openbsd/gnu/llvm/clang/lib/AST/ |
H A D | JSONNodeDumper.cpp | 24 const char *AttrName = nullptr; in Visit() local 28 AttrName = #X"Attr"; \ in Visit() 34 JOS.attribute("kind", AttrName); in Visit()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | LoopUtils.cpp | 296 StringRef AttrName = cast<MDString>(NameMD)->getString(); in makeFollowupLoopID() local 299 return !AttrName.startswith(InheritOptionsExceptPrefix); in makeFollowupLoopID()
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | Attributes.h | 159 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName);
|
/openbsd/gnu/llvm/clang/lib/Sema/ |
H A D | SemaDeclAttr.cpp | 1797 static bool normalizeName(StringRef &AttrName) { in normalizeName() argument 1798 if (AttrName.size() > 4 && AttrName.startswith("__") && in normalizeName() 1799 AttrName.endswith("__")) { in normalizeName() 1800 AttrName = AttrName.drop_front(2).drop_back(2); in normalizeName() 8128 StringRef AttrName = AL.getAttrName()->getName(); in handleNoSanitizeSpecificAttr() local 8129 normalizeName(AttrName); in handleNoSanitizeSpecificAttr() 8130 StringRef SanitizerName = llvm::StringSwitch<StringRef>(AttrName) in handleNoSanitizeSpecificAttr()
|
H A D | SemaType.cpp | 8249 StringRef AttrName = Attr.getAttrName()->getName(); in HandleOpenCLAccessAttr() local 8250 if (PrevAccessQual == AttrName.ltrim("_")) { in HandleOpenCLAccessAttr() 8253 << AttrName << Attr.getRange(); in HandleOpenCLAccessAttr()
|
/openbsd/gnu/llvm/clang/lib/Serialization/ |
H A D | ASTReaderDecl.cpp | 3002 IdentifierInfo *AttrName = Record.readIdentifier(); in readAttr() local 3010 AttributeCommonInfo Info(AttrName, ScopeName, AttrRange, ScopeLoc, in readAttr()
|