| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | Attributes.cpp | 125 static StringRef normalizeAttrName(StringRef AttrName, in normalizeAttrName() argument 138 return canonicalizeAttrName(AttrName); in normalizeAttrName() 140 return AttrName; in normalizeAttrName() 164 static SmallString<64> normalizeName(StringRef AttrName, StringRef ScopeName, in normalizeName() argument 167 ? AttrName.lower() in normalizeName() 168 : AttrName.str(); in normalizeName() 183 StringRef AttrName = in normalizeName() local 185 return normalizeName(AttrName, ScopeName, SyntaxUsed); in normalizeName() 197 StringRef AttrName = normalizeAttrName( in getCXX11AttrArgsInfo() local 200 return llvm::StringSwitch<AttributeCommonInfo::AttrArgsInfo>(AttrName) in getCXX11AttrArgsInfo() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | AttributeCommonInfo.h | 83 const IdentifierInfo *AttrName = nullptr; 151 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 154 : AttrName(AttrName), AttrScope(AttrScope), AttrRange(AttrRange), in AttributeCommonInfo() 163 AttributeCommonInfo(const IdentifierInfo *AttrName, AttributeScopeInfo Scope, in AttributeCommonInfo() argument 166 AttrName, Scope, AttrRange, in AttributeCommonInfo() 167 getParsedKind(AttrName, Scope.getName(), FormUsed.getSyntax()), in AttributeCommonInfo() 170 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo() argument 172 : AttributeCommonInfo(AttrName, AttributeScopeInfo(), AttrRange, in AttributeCommonInfo() 192 const IdentifierInfo *getAttrName() const { return AttrName; } in getAttrName() 193 void setAttrName(const IdentifierInfo *AttrNameII) { AttrName = AttrNameII; } in setAttrName() [all …]
|
| H A D | Attributes.h | 23 llvm::StringRef AttrName, const TargetInfo &Target,
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseDecl.cpp | 147 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseSingleGNUAttribute() local 148 if (!AttrName) in ParseSingleGNUAttribute() 154 Attrs.addNew(AttrName, AttrNameLoc, AttributeScopeInfo(), nullptr, 0, in ParseSingleGNUAttribute() 167 IsAttributeLateParsedExperimentalExt(*AttrName); in ParseSingleGNUAttribute() 173 LateParse = IsAttributeLateParsedExperimentalExt(*AttrName) || in ParseSingleGNUAttribute() 174 IsAttributeLateParsedStandard(*AttrName); in ParseSingleGNUAttribute() 179 ParseGNUAttributeArgs(AttrName, AttrNameLoc, Attrs, &EndLoc, nullptr, in ParseSingleGNUAttribute() 186 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseSingleGNUAttribute() 379 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument 400 &AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()), in ParseAttributeWithTypeArg() [all …]
|
| H A D | ParseDeclCXX.cpp | 1431 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftInheritanceClassAttributes() local 1434 attrs.addNew(AttrName, AttrNameLoc, AttributeScopeInfo(), nullptr, 0, Kind); in ParseMicrosoftInheritanceClassAttributes() 1440 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseNullabilityClassAttributes() local 1443 attrs.addNew(AttrName, AttrNameLoc, AttributeScopeInfo(), nullptr, 0, Kind); in ParseNullabilityClassAttributes() 4368 void Parser::ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName, in ParseOpenMPAttributeArgs() argument 4378 if (AttrName->isStr("directive")) { in ParseOpenMPAttributeArgs() 4396 assert(AttrName->isStr("sequence") && in ParseOpenMPAttributeArgs() 4432 static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName, in IsBuiltInOrStandardCXX11Attribute() argument 4435 ParsedAttr::getParsedKind(AttrName, ScopeName, ParsedAttr::AS_CXX11)) { in IsBuiltInOrStandardCXX11Attribute() 4445 return !ScopeName && AttrName->getName() == "nodiscard"; in IsBuiltInOrStandardCXX11Attribute() [all …]
|
| H A D | ParseCXXInlineMethods.cpp | 773 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, nullptr, in ParseLexedAttribute() 782 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, nullptr, in ParseLexedAttribute() 787 Diag(Tok, diag::warn_attribute_no_decl) << LA.AttrName.getName(); in ParseLexedAttribute() 793 << &LA.AttrName; in ParseLexedAttribute()
|
| H A D | ParseObjc.cpp | 808 SourceLocation AttrName = ConsumeToken(); // consume last attribute name in ParseObjCPropertyAttribute() local 912 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyAttribute() 2146 SourceLocation AttrName = ConsumeToken(); // consume attribute name in ParseObjCPropertyDynamic() local 2155 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyDynamic()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/ |
| H A D | Attributes.cpp | 91 StringRef AttrName = Rule->getValueAsString("AttrName"); in emitFnAttrCompatCheck() local 92 if (!AttrName.empty()) in emitFnAttrCompatCheck() 93 OS << ", \"" << AttrName << "\""; in emitFnAttrCompatCheck()
|
| H A D | IntrinsicEmitter.cpp | 537 StringRef AttrName = getArgAttrEnumName(Attr.Kind); in EmitAttributes() local 541 AttrName, Attr.Value); in EmitAttributes() 552 AttrName, (int64_t)Attr.Value, (int64_t)Attr.Value2); in EmitAttributes() 554 OS << formatv(" Attribute::get(C, Attribute::{}),\n", AttrName); in EmitAttributes()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | TargetInfo.cpp | 268 auto UpdateAttr = [&F](bool AttrShouldExist, StringRef AttrName) { in setPointerAuthFnAttributes() argument 269 if (AttrShouldExist && !F.hasFnAttribute(AttrName)) in setPointerAuthFnAttributes() 270 F.addFnAttr(AttrName); in setPointerAuthFnAttributes() 271 if (!AttrShouldExist && F.hasFnAttribute(AttrName)) in setPointerAuthFnAttributes() 272 F.removeFnAttr(AttrName); in setPointerAuthFnAttributes()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
| H A D | Parser.h | 1160 IdentifierInfo &AttrName; member 1167 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute() 2118 ExprResult ParseUnevaluatedStringInAttribute(const IdentifierInfo &AttrName); 2121 ParseAttributeArgumentList(const clang::IdentifierInfo &AttrName, 2130 ParseAttributeArgsCommon(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2258 void ParseGNUAttributeArgs(IdentifierInfo *AttrName, 2266 ParseClangAttributeArgs(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2316 bool ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName, 2424 void ParseSwiftNewTypeAttribute(IdentifierInfo &AttrName, 2432 void ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DiagnosticInfo.cpp | 470 auto AttrName = i == 0 ? "dontcall-error" : "dontcall-warn"; in diagnoseDontCall() local 473 if (F->hasFnAttribute(AttrName)) { in diagnoseDontCall() 475 auto A = F->getFnAttribute(AttrName); in diagnoseDontCall()
|
| H A D | Attributes.cpp | 313 Attribute::AttrKind Attribute::getAttrKindFromName(StringRef AttrName) { in getAttrKindFromName() argument 314 return StringSwitch<Attribute::AttrKind>(AttrName) in getAttrKindFromName() 2518 const StringRef &AttrName) { in isEqual() argument 2519 return Caller.getFnAttribute(AttrName) == Callee.getFnAttribute(AttrName); in isEqual()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | AssumeBundleQueries.h | 43 StringRef AttrName,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAttributor.cpp | 811 StringRef AttrName; member 814 StringRef AttrName) in AAAMDSizeRangeAttribute() 815 : Base(IRP, 32), AttrName(AttrName) {} in AAAMDSizeRangeAttribute() 873 {Attribute::get(Ctx, AttrName, OS.str())}, in emitAttributeIfNotDefaultAfterClamp()
|
| H A D | AMDGPUPromoteAlloca.cpp | 1161 StringRef AttrName; in getWorkitemID() local 1167 AttrName = "amdgpu-no-workitem-id-x"; in getWorkitemID() 1172 AttrName = "amdgpu-no-workitem-id-y"; in getWorkitemID() 1178 AttrName = "amdgpu-no-workitem-id-z"; in getWorkitemID() 1187 F->removeFnAttr(AttrName); in getWorkitemID()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CommandFlags.cpp | 664 #define HANDLE_BOOL_ATTR(CL, AttrName) \ argument 666 if (CL->getNumOccurrences() > 0 && !F.hasFnAttribute(AttrName)) \ 667 renderBoolStringAttr(NewAttrs, AttrName, *CL); \
|
| /freebsd/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | ClangAttrEmitter.cpp | 166 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument 167 AttrName.consume_front("__"); in NormalizeAttrName() 168 AttrName.consume_back("__"); in NormalizeAttrName() 169 return AttrName; in NormalizeAttrName() 4146 for (const auto &AttrName : AttrSpellingList) { in EmitAttributeSpellingList() local 4147 OS << "ATTR_NAME(\"" << AttrName << "\")\n"; in EmitAttributeSpellingList() 4164 static bool isArgVariadic(const Record &R, StringRef AttrName) { in isArgVariadic() argument 4165 return createArgument(R, AttrName)->isVariadic(); in isArgVariadic() 4819 const std::string &AttrName = I->first; in EmitClangAttrParsedAttrImpl() local 4863 OS << " /*AttrKind=*/ParsedAttr::AT_" << AttrName << ",\n"; in EmitClangAttrParsedAttrImpl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmtAttr.cpp | 785 const IdentifierInfo *AttrName, in BuildCXXAssumeExpr() argument 801 << AttrName << Range; in BuildCXXAssumeExpr()
|
| H A D | SemaDeclAttr.cpp | 1461 static bool normalizeName(StringRef &AttrName) { in normalizeName() argument 1462 if (AttrName.size() > 4 && AttrName.starts_with("__") && in normalizeName() 1463 AttrName.ends_with("__")) { in normalizeName() 1464 AttrName = AttrName.drop_front(2).drop_back(2); in normalizeName() 6544 StringRef AttrName = AL.getAttrName()->getName(); in handleNoSanitizeSpecificAttr() local 6545 normalizeName(AttrName); in handleNoSanitizeSpecificAttr() 6546 StringRef SanitizerName = llvm::StringSwitch<StringRef>(AttrName) in handleNoSanitizeSpecificAttr() 8044 StringRef AttrName = AL.getNormalizedAttrName(ScopeName); in DiagnoseUnknownAttribute() local 8046 ScopeName, AttrName, Context.getTargetInfo(), getLangOpts()); in DiagnoseUnknownAttribute() 8048 AttrName = *CorrectedAttrName; in DiagnoseUnknownAttribute() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Attributes.td | 434 string AttrName = ""; 440 string AttrName = Attr;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | SampleProf.h | 1103 const char *AttrName = "sample-profile-suffix-elision-policy"; 1104 auto Attr = F.getFnAttribute(AttrName).getValueAsString();
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopUtils.cpp | 297 StringRef AttrName = cast<MDString>(NameMD)->getString(); in makeFollowupLoopID() local 300 return !AttrName.starts_with(InheritOptionsExceptPrefix); in makeFollowupLoopID()
|