/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Attributes.cpp | 109 StringRef AttrName = Name->getName(); in normalizeAttrName() local 110 if (ShouldNormalize && AttrName.size() >= 4 && AttrName.starts_with("__") && in normalizeAttrName() 111 AttrName.ends_with("__")) in normalizeAttrName() 112 AttrName = AttrName.slice(2, AttrName.size() - 2); in normalizeAttrName() 114 return AttrName; in normalizeAttrName() 131 StringRef AttrName = normalizeAttrName(Name, ScopeName, SyntaxUsed); in normalizeName() local 139 FullName += AttrName; in normalizeName()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | AttributeCommonInfo.h | 72 const IdentifierInfo *AttrName = nullptr; 140 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 143 : AttrName(AttrName), ScopeName(ScopeName), AttrRange(AttrRange), in AttributeCommonInfo() 153 AttributeCommonInfo(const IdentifierInfo *AttrName, in AttributeCommonInfo() argument 157 AttrName, ScopeName, AttrRange, ScopeLoc, in AttributeCommonInfo() 158 getParsedKind(AttrName, ScopeName, FormUsed.getSyntax()), in AttributeCommonInfo() 161 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo() argument 163 : AttributeCommonInfo(AttrName, nullptr, AttrRange, SourceLocation(), in AttributeCommonInfo() 179 const IdentifierInfo *getAttrName() const { return AttrName; } in getAttrName() 180 void setAttrName(const IdentifierInfo *AttrNameII) { AttrName = AttrNameII; } in setAttrName() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseDecl.cpp | 226 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseGNUAttributes() local 227 if (!AttrName) in ParseGNUAttributes() 233 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseGNUAttributes() 246 IsAttributeLateParsedExperimentalExt(*AttrName); in ParseGNUAttributes() 252 LateParse = IsAttributeLateParsedExperimentalExt(*AttrName) || in ParseGNUAttributes() 253 IsAttributeLateParsedStandard(*AttrName); in ParseGNUAttributes() 258 ParseGNUAttributeArgs(AttrName, AttrNameLoc, Attrs, &EndLoc, nullptr, in ParseGNUAttributes() 265 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes() 411 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument 431 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg() [all …]
|
H A D | ParseDeclCXX.cpp | 1547 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftInheritanceClassAttributes() local 1550 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, Kind); in ParseMicrosoftInheritanceClassAttributes() 1556 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseNullabilityClassAttributes() local 1559 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, Kind); in ParseNullabilityClassAttributes() 4522 void Parser::ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName, in ParseOpenMPAttributeArgs() argument 4532 if (AttrName->isStr("directive")) { in ParseOpenMPAttributeArgs() 4550 assert(AttrName->isStr("sequence") && in ParseOpenMPAttributeArgs() 4586 static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName, in IsBuiltInOrStandardCXX11Attribute() argument 4589 ParsedAttr::getParsedKind(AttrName, ScopeName, ParsedAttr::AS_CXX11)) { in IsBuiltInOrStandardCXX11Attribute() 4599 return !ScopeName && AttrName->getName() == "nodiscard"; in IsBuiltInOrStandardCXX11Attribute() [all …]
|
H A D | ParseCXXInlineMethods.cpp | 816 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, nullptr, in ParseLexedAttribute() 825 ParseGNUAttributeArgs(&LA.AttrName, LA.AttrNameLoc, Attrs, nullptr, in ParseLexedAttribute() 830 Diag(Tok, diag::warn_attribute_no_decl) << LA.AttrName.getName(); in ParseLexedAttribute() 836 << &LA.AttrName; in ParseLexedAttribute()
|
H A D | ParseObjc.cpp | 915 SourceLocation AttrName = ConsumeToken(); // consume last attribute name in ParseObjCPropertyAttribute() local 1019 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyAttribute() 2444 SourceLocation AttrName = ConsumeToken(); // consume attribute name in ParseObjCPropertyDynamic() local 2453 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyDynamic()
|
H A D | ParsePragma.cpp | 1941 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in HandlePragmaAttribute() local 1945 Attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in HandlePragmaAttribute() 1948 ParseGNUAttributeArgs(AttrName, AttrNameLoc, Attrs, /*EndLoc=*/nullptr, in HandlePragmaAttribute()
|
H A D | ParseExprCXX.cpp | 1376 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseLambdaExpressionAfterIntroducer() local 1378 Attributes.addNew(AttrName, AttrNameLoc, /*ScopeName=*/nullptr, in ParseLambdaExpressionAfterIntroducer()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | Attributes.cpp | 94 StringRef AttrName = Rule->getValueAsString("AttrName"); in emitFnAttrCompatCheck() local 95 if (!AttrName.empty()) in emitFnAttrCompatCheck() 96 OS << ", \"" << AttrName << "\""; in emitFnAttrCompatCheck()
|
/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 | 1372 IdentifierInfo &AttrName; member 1379 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute() 2876 ExprResult ParseUnevaluatedStringInAttribute(const IdentifierInfo &AttrName); 2879 ParseAttributeArgumentList(const clang::IdentifierInfo &AttrName, 2888 ParseAttributeArgsCommon(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2948 void ParseGNUAttributeArgs(IdentifierInfo *AttrName, 2956 ParseClangAttributeArgs(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, 2988 void ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName, 3003 bool ParseCXX11AttributeArgs(IdentifierInfo *AttrName, 3012 IdentifierInfo *AttrName, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | DiagnosticInfo.cpp | 431 auto AttrName = i == 0 ? "dontcall-error" : "dontcall-warn"; in diagnoseDontCall() local 434 if (F->hasFnAttribute(AttrName)) { in diagnoseDontCall() 436 auto A = F->getFnAttribute(AttrName); in diagnoseDontCall()
|
H A D | Attributes.cpp | 303 Attribute::AttrKind Attribute::getAttrKindFromName(StringRef AttrName) { in getAttrKindFromName() argument 304 return StringSwitch<Attribute::AttrKind>(AttrName) in getAttrKindFromName() 2219 const StringRef &AttrName) { in isEqual() argument 2220 return Caller.getFnAttribute(AttrName) == Callee.getFnAttribute(AttrName); in isEqual()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUAttributor.cpp | 694 StringRef AttrName; member 697 StringRef AttrName) in AAAMDSizeRangeAttribute() 698 : Base(IRP, 32), AttrName(AttrName) {} in AAAMDSizeRangeAttribute() 742 {Attribute::get(Ctx, AttrName, OS.str())}, in emitAttributeIfNotDefault()
|
H A D | AMDGPUPromoteAlloca.cpp | 1064 StringRef AttrName; in getWorkitemID() local 1070 AttrName = "amdgpu-no-workitem-id-x"; in getWorkitemID() 1075 AttrName = "amdgpu-no-workitem-id-y"; in getWorkitemID() 1081 AttrName = "amdgpu-no-workitem-id-z"; in getWorkitemID() 1090 F->removeFnAttr(AttrName); in getWorkitemID()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | AssumeBundleQueries.h | 42 bool hasAttributeInAssume(AssumeInst &Assume, Value *IsOn, StringRef AttrName,
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CommandFlags.cpp | 658 #define HANDLE_BOOL_ATTR(CL, AttrName) \ argument 660 if (CL->getNumOccurrences() > 0 && !F.hasFnAttribute(AttrName)) \ 661 renderBoolStringAttr(NewAttrs, AttrName, *CL); \
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | ClangAttrEmitter.cpp | 148 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument 149 AttrName.consume_front("__"); in NormalizeAttrName() 150 AttrName.consume_back("__"); in NormalizeAttrName() 151 return AttrName; in NormalizeAttrName() 2531 for (const auto &[AttrName, Attr] : Attrs) { in emitClangAttrUnevaluatedStringLiteralList() 4026 static bool isArgVariadic(const Record &R, StringRef AttrName) { in isArgVariadic() argument 4027 return createArgument(R, AttrName)->isVariadic(); in isArgVariadic() 4685 const std::string &AttrName = I->first; in EmitClangAttrParsedAttrImpl() local 4729 OS << " /*AttrKind=*/ParsedAttr::AT_" << AttrName << ",\n"; in EmitClangAttrParsedAttrImpl() 4831 std::string AttrName; in EmitClangAttrParsedAttrKinds() local [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaStmtAttr.cpp | 730 const IdentifierInfo *AttrName, in BuildCXXAssumeExpr() argument 747 << AttrName << Range; in BuildCXXAssumeExpr()
|
H A D | SemaDeclAttr.cpp | 1439 static bool normalizeName(StringRef &AttrName) { in normalizeName() argument 1440 if (AttrName.size() > 4 && AttrName.starts_with("__") && in normalizeName() 1441 AttrName.ends_with("__")) { in normalizeName() 1442 AttrName = AttrName.drop_front(2).drop_back(2); in normalizeName() 5800 StringRef AttrName = AL.getAttrName()->getName(); in handleNoSanitizeSpecificAttr() local 5801 normalizeName(AttrName); in handleNoSanitizeSpecificAttr() 5802 StringRef SanitizerName = llvm::StringSwitch<StringRef>(AttrName) in handleNoSanitizeSpecificAttr()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Attributes.td | 373 string AttrName = ""; 379 string AttrName = Attr;
|
H A D | Attributes.h | 171 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | SampleProf.h | 1091 const char *AttrName = "sample-profile-suffix-elision-policy"; 1092 auto Attr = F.getFnAttribute(AttrName).getValueAsString();
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | JSONNodeDumper.cpp | 25 const char *AttrName = nullptr; in Visit() local 29 AttrName = #X"Attr"; \ in Visit() 35 JOS.attribute("kind", AttrName); in Visit()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LoopUtils.cpp | 296 StringRef AttrName = cast<MDString>(NameMD)->getString(); in makeFollowupLoopID() local 299 return !AttrName.starts_with(InheritOptionsExceptPrefix); in makeFollowupLoopID()
|