/external/llvm-project/clang/include/clang/Basic/ |
D | AttributeCommonInfo.h | 62 const IdentifierInfo *AttrName = nullptr; 84 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 87 : AttrName(AttrName), ScopeName(ScopeName), AttrRange(AttrRange), in AttributeCommonInfo() 89 AttrKind(getParsedKind(AttrName, ScopeName, SyntaxUsed)), in AttributeCommonInfo() 92 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 95 : AttrName(AttrName), ScopeName(ScopeName), AttrRange(AttrRange), in AttributeCommonInfo() 99 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 103 : AttrName(AttrName), ScopeName(ScopeName), AttrRange(AttrRange), in AttributeCommonInfo() 107 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo() argument 109 : AttrName(AttrName), ScopeName(nullptr), AttrRange(AttrRange), in AttributeCommonInfo() [all …]
|
/external/clang/lib/Sema/ |
D | AttributeList.cpp | 112 static StringRef normalizeAttrName(StringRef AttrName, StringRef ScopeName, in normalizeAttrName() argument 118 if (IsGNU && AttrName.size() >= 4 && AttrName.startswith("__") && in normalizeAttrName() 119 AttrName.endswith("__")) in normalizeAttrName() 120 AttrName = AttrName.slice(2, AttrName.size() - 2); in normalizeAttrName() 122 return AttrName; in normalizeAttrName() 128 StringRef AttrName = Name->getName(); in getKind() local 134 AttrName = normalizeAttrName(AttrName, FullName, SyntaxUsed); in getKind() 140 FullName += AttrName; in getKind() 149 StringRef Name = normalizeAttrName(AttrName->getName(), Scope, in getAttributeSpellingListIndex()
|
/external/llvm-project/clang/lib/Basic/ |
D | Attributes.cpp | 68 StringRef AttrName = Name->getName(); in normalizeAttrName() local 69 if (ShouldNormalize && AttrName.size() >= 4 && AttrName.startswith("__") && in normalizeAttrName() 70 AttrName.endswith("__")) in normalizeAttrName() 71 AttrName = AttrName.slice(2, AttrName.size() - 2); in normalizeAttrName() 73 return AttrName; in normalizeAttrName() 86 StringRef AttrName = normalizeAttrName(Name, ScopeName, SyntaxUsed); in normalizeName() local 94 FullName += AttrName; in normalizeName()
|
/external/llvm-project/clang/test/Index/ |
D | recursive-cxx-member-calls.cpp | 101 llvm::StringRef AttrName = Name->getName(); in getKind() local 102 if (AttrName.startswith("__") && AttrName.endswith("__")) in getKind() 103 AttrName = AttrName.substr(2, AttrName.size() - 4); in getKind() 105 return llvm::StringSwitch < AttributeList::Kind > (AttrName) in getKind()
|
/external/clang/test/Index/ |
D | recursive-cxx-member-calls.cpp | 101 llvm::StringRef AttrName = Name->getName(); in getKind() local 102 if (AttrName.startswith("__") && AttrName.endswith("__")) in getKind() 103 AttrName = AttrName.substr(2, AttrName.size() - 4); in getKind() 105 return llvm::StringSwitch < AttributeList::Kind > (AttrName) in getKind()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAnnotateKernelFeatures.cpp | 210 for (StringRef AttrName : AttrNames) in copyFeaturesToFunction() local 211 handleAttr(Parent, Callee, AttrName); in copyFeaturesToFunction() 295 StringRef AttrName = intrinsicToAttrName(IID, in addFeatureAttributes() local 297 if (!AttrName.empty() && (IsFunc || !NonKernelOnly)) { in addFeatureAttributes() 298 F.addFnAttr(AttrName); in addFeatureAttributes()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAnnotateKernelFeatures.cpp | 223 for (StringRef AttrName : AttrNames) in copyFeaturesToFunction() local 224 handleAttr(Parent, Callee, AttrName); in copyFeaturesToFunction() 317 StringRef AttrName = intrinsicToAttrName(IID, NonKernelOnly, in addFeatureAttributes() local 319 if (!AttrName.empty() && (IsFunc || !NonKernelOnly)) { in addFeatureAttributes() 320 F.addFnAttr(AttrName); in addFeatureAttributes()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAnnotateKernelFeatures.cpp | 30 void addAttrToCallers(Function *Intrin, StringRef AttrName); 142 StringRef AttrName) { in addAttrToCallers() argument 151 CallingFunction->addFnAttr(AttrName); in addAttrToCallers()
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseDecl.cpp | 176 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseGNUAttributes() local 177 if (!AttrName) in ParseGNUAttributes() 183 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseGNUAttributes() 189 if (!LateAttrs || !isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes() 190 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, nullptr, in ParseGNUAttributes() 197 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes() 302 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument 323 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg() 327 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()), in ParseAttributeWithTypeArg() 332 IdentifierInfo *AttrName, SourceLocation AttrNameLoc, in ParseAttributeArgsCommon() argument [all …]
|
D | ParseDeclCXX.cpp | 1250 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftInheritanceClassAttributes() local 1252 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftInheritanceClassAttributes() 4042 static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName, in IsBuiltInOrStandardCXX11Attribute() argument 4045 ParsedAttr::getParsedKind(AttrName, ScopeName, ParsedAttr::AS_CXX11)) { in IsBuiltInOrStandardCXX11Attribute() 4055 return !ScopeName && AttrName->getName().equals("nodiscard"); in IsBuiltInOrStandardCXX11Attribute() 4057 return !ScopeName && AttrName->getName().equals("maybe_unused"); in IsBuiltInOrStandardCXX11Attribute() 4077 bool Parser::ParseCXX11AttributeArgs(IdentifierInfo *AttrName, in ParseCXX11AttributeArgs() argument 4092 AttrName, getTargetInfo(), getLangOpts())) { in ParseCXX11AttributeArgs() 4102 ParseGNUAttributeArgs(AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseCXX11AttributeArgs() 4110 NumArgs = ParseClangAttributeArgs(AttrName, AttrNameLoc, Attrs, EndLoc, in ParseCXX11AttributeArgs() [all …]
|
D | ParseCXXInlineMethods.cpp | 731 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc, in ParseLexedAttribute() 740 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, &endLoc, in ParseLexedAttribute() 745 Diag(Tok, diag::warn_attribute_no_decl) << LA.AttrName.getName(); in ParseLexedAttribute() 751 << &LA.AttrName; in ParseLexedAttribute()
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 150 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseGNUAttributes() local 151 if (!AttrName) in ParseGNUAttributes() 157 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseGNUAttributes() 163 if (!LateAttrs || !isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes() 164 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, nullptr, in ParseGNUAttributes() 171 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes() 242 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument 263 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg() 267 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()), in ParseAttributeWithTypeArg() 272 IdentifierInfo *AttrName, SourceLocation AttrNameLoc, in ParseAttributeArgsCommon() argument [all …]
|
D | ParseDeclCXX.cpp | 1071 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftInheritanceClassAttributes() local 1073 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftInheritanceClassAttributes() 3648 static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName, in IsBuiltInOrStandardCXX11Attribute() argument 3650 switch (AttributeList::getKind(AttrName, ScopeName, in IsBuiltInOrStandardCXX11Attribute() 3658 return !ScopeName && AttrName->getName().equals("nodiscard"); in IsBuiltInOrStandardCXX11Attribute() 3660 return !ScopeName && AttrName->getName().equals("maybe_unused"); in IsBuiltInOrStandardCXX11Attribute() 3680 bool Parser::ParseCXX11AttributeArgs(IdentifierInfo *AttrName, in ParseCXX11AttributeArgs() argument 3691 if (!hasAttribute(AttrSyntax::CXX, ScopeName, AttrName, in ParseCXX11AttributeArgs() 3702 ParseGNUAttributeArgs(AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseCXX11AttributeArgs() 3706 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, EndLoc, in ParseCXX11AttributeArgs() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | AssumeBundleQueries.cpp | 44 StringRef AttrName, uint64_t *ArgVal) { in hasAttributeInAssume() argument 50 assert(Attribute::isExistingAttribute(AttrName) && in hasAttributeInAssume() 53 Attribute::getAttrKindFromName(AttrName))) && in hasAttributeInAssume() 59 if (BOI.Tag->getKey() != AttrName) in hasAttributeInAssume()
|
/external/clang/include/clang/Sema/ |
D | AttributeList.h | 113 IdentifierInfo *AttrName; 241 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList() 261 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList() 281 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList() 298 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList() 316 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList() 330 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList() 351 IdentifierInfo *getName() const { return AttrName; } in getName()
|
/external/clang/utils/TableGen/ |
D | ClangAttrEmitter.cpp | 122 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument 123 if (AttrName.startswith("__")) in NormalizeAttrName() 124 AttrName = AttrName.substr(2, AttrName.size()); in NormalizeAttrName() 126 if (AttrName.endswith("__")) in NormalizeAttrName() 127 AttrName = AttrName.substr(0, AttrName.size() - 2); in NormalizeAttrName() 129 return AttrName; in NormalizeAttrName() 2523 static bool isArgVariadic(const Record &R, StringRef AttrName) { in isArgVariadic() argument 2524 return createArgument(R, AttrName)->isVariadic(); in isArgVariadic() 2994 std::string AttrName; in EmitClangAttrParsedAttrKinds() local 2997 AttrName = Attr.getValueAsString("ParseKind"); in EmitClangAttrParsedAttrKinds() [all …]
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | AssumeBundleQueries.h | 42 bool hasAttributeInAssume(CallInst &AssumeCI, Value *IsOn, StringRef AttrName,
|
/external/llvm-project/clang/utils/TableGen/ |
D | ClangAttrEmitter.cpp | 141 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument 142 AttrName.consume_front("__"); in NormalizeAttrName() 143 AttrName.consume_back("__"); in NormalizeAttrName() 144 return AttrName; in NormalizeAttrName() 3370 static bool isArgVariadic(const Record &R, StringRef AttrName) { in isArgVariadic() argument 3371 return createArgument(R, AttrName)->isVariadic(); in isArgVariadic() 3737 const std::string &AttrName = I->first; in EmitClangAttrParsedAttrImpl() local 3760 OS << " AttrKind = ParsedAttr::AT_" << AttrName << ";\n"; in EmitClangAttrParsedAttrImpl() 3824 std::string AttrName; in EmitClangAttrParsedAttrKinds() local 3827 AttrName = std::string(Attr.getValueAsString("ParseKind")); in EmitClangAttrParsedAttrKinds() [all …]
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 955 IdentifierInfo &AttrName; member 961 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute() 2128 ParseAttributeArgsCommon(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2152 void ParseGNUAttributeArgs(IdentifierInfo *AttrName, 2192 bool ParseCXX11AttributeArgs(IdentifierInfo *AttrName, 2215 bool ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName, 2255 void ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, 2263 void ParseAttributeWithTypeArg(IdentifierInfo &AttrName,
|
/external/llvm-project/clang/include/clang/Parse/ |
D | Parser.h | 1278 IdentifierInfo &AttrName; member 1285 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute() 2654 ParseAttributeArgsCommon(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2678 void ParseGNUAttributeArgs(IdentifierInfo *AttrName, 2686 ParseClangAttributeArgs(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2723 bool ParseCXX11AttributeArgs(IdentifierInfo *AttrName, 2747 bool ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName, 2798 void ParseSwiftNewTypeAttribute(IdentifierInfo &AttrName, 2806 void ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, 2815 ParseAttributeWithTypeArg(IdentifierInfo &AttrName,
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | CommandFlags.cpp | 625 #define HANDLE_BOOL_ATTR(CL, AttrName) \ argument 627 if (CL->getNumOccurrences() > 0 && !F.hasFnAttribute(AttrName)) \ 628 renderBoolStringAttr(NewAttrs, AttrName, *CL); \
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | SampleProf.h | 504 auto AttrName = "sample-profile-suffix-elision-policy"; 505 auto Attr = F.getFnAttribute(AttrName).getValueAsString();
|
/external/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/ |
D | Attributes.gen | 58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) { 59 return StringSwitch<Attribute::AttrKind>(AttrName)
|
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/ |
D | Attributes.gen | 58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) { 59 return StringSwitch<Attribute::AttrKind>(AttrName)
|
/external/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/IR/ |
D | Attributes.gen | 58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) { 59 return StringSwitch<Attribute::AttrKind>(AttrName)
|