Home
last modified time | relevance | path

Searched refs:AttrName (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DAttributes.cpp125 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 DAttributeCommonInfo.h83 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 DAttributes.h23 llvm::StringRef AttrName, const TargetInfo &Target,
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp147 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 DParseDeclCXX.cpp1431 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 DParseCXXInlineMethods.cpp773 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 DParseObjc.cpp808 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 DAttributes.cpp91 StringRef AttrName = Rule->getValueAsString("AttrName"); in emitFnAttrCompatCheck() local
92 if (!AttrName.empty()) in emitFnAttrCompatCheck()
93 OS << ", \"" << AttrName << "\""; in emitFnAttrCompatCheck()
H A DIntrinsicEmitter.cpp537 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 DTargetInfo.cpp268 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 DAssumeBundleQueries.cpp44 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 DParser.h1160 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 DDiagnosticInfo.cpp470 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 DAttributes.cpp313 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 DAssumeBundleQueries.h43 StringRef AttrName,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp811 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 DAMDGPUPromoteAlloca.cpp1161 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 DCommandFlags.cpp664 #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 DClangAttrEmitter.cpp166 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 DSemaStmtAttr.cpp785 const IdentifierInfo *AttrName, in BuildCXXAssumeExpr() argument
801 << AttrName << Range; in BuildCXXAssumeExpr()
H A DSemaDeclAttr.cpp1461 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 DAttributes.td434 string AttrName = "";
440 string AttrName = Attr;
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProf.h1103 const char *AttrName = "sample-profile-suffix-elision-policy";
1104 auto Attr = F.getFnAttribute(AttrName).getValueAsString();
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DJSONNodeDumper.cpp24 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 DLoopUtils.cpp297 StringRef AttrName = cast<MDString>(NameMD)->getString(); in makeFollowupLoopID() local
300 return !AttrName.starts_with(InheritOptionsExceptPrefix); in makeFollowupLoopID()

12