Home
last modified time | relevance | path

Searched refs:Rules (Results 1 – 25 of 57) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DRefactoringActions.cpp40 RefactoringActionRules Rules; in createActionRules() local
41 Rules.push_back(createRefactoringActionRule<ExtractFunction>( in createActionRules()
44 return Rules; in createActionRules()
85 RefactoringActionRules Rules; in createActionRules() local
86 Rules.push_back(createRefactoringActionRule<RenameOccurrences>( in createActionRules()
89 Rules.push_back(createRefactoringActionRule<QualifiedRenameRule>( in createActionRules()
92 return Rules; in createActionRules()
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/grammar/
H A DGrammarBNF.cpp92 T->Rules.reserve(Specs.size()); in build()
104 T->Rules.push_back(Rule(Lookup(Spec.Target), Symbols)); in build()
105 applyAttributes(Spec, *T, T->Rules.back()); in build()
108 assert(T->Rules.size() < (1 << RuleBits) && in build()
112 T->Rules, [&SymbolOrder](const Rule &Left, const Rule &Right) { in build()
120 RuleID Start = StartIt - T->Rules.begin(); in build()
122 while (End < T->Rules.size() && T->Rules[End].Target == SID) in build()
140 for (const auto &Rule : T->Rules) { in getTopologicalOrder()
330 for (RuleID RID = 0; RID + 1u < T.Rules.size(); ++RID) { in diagnoseGrammar()
331 if (T.Rules[RID] == T.Rules[RID + 1]) in diagnoseGrammar()
[all …]
H A DGrammar.cpp33 assert(R.End <= T->Rules.size()); in rulesFor()
34 return llvm::makeArrayRef(&T->Rules[R.Start], R.End - R.Start); in rulesFor()
38 assert(RID < T->Rules.size()); in lookupRule()
39 return T->Rules[RID]; in lookupRule()
82 const Rule &R = T->Rules[RID]; in dumpRule()
110 for (RuleID RID = 0; RID < T->Rules.size(); ++RID) in dump()
139 for (const auto &R : G.table().Rules) in firstSets()
171 for (const auto &R : G.table().Rules) { in followSets()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DCompileCommands.cpp497 llvm::SmallVector<Rule> Rules; in rulesFor() local
513 Rules.emplace_back(); in rulesFor()
514 Rule &R = Rules.back(); in rulesFor()
527 for (const auto &R : Rules) in rulesFor()
528 Result->find(R.Text)->second.append(Rules.begin(), Rules.end()); in rulesFor()
557 Rules.emplace_back(); in strip()
558 Rules.back().Text = Storage.back(); in strip()
559 Rules.back().ExactArgs = 1; in strip()
561 Rules.back().PrefixArgs = 1; in strip()
562 Rules.back().Modes = DM_All; in strip()
[all …]
H A DCompileCommands.h95 llvm::SmallVector<Rule> Rules; variable
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DGenericTaintChecker.cpp320 RulesContTy &Rules) const;
322 RulesContTy &Rules) const;
325 RulesContTy &Rules) const;
470 Rules); in parseConfig()
478 Rules); in parseConfig()
501 RulesContTy Rules; in parseConfiguration() local
504 parseConfig(Option, std::move(F), Rules); in parseConfiguration()
507 parseConfig(Option, std::move(S), Rules); in parseConfiguration()
510 parseConfig(Option, std::move(P), Rules); in parseConfiguration()
512 return Rules; in parseConfiguration()
[all …]
/llvm-project-15.0.7/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h409 applyFirst(ArrayRef<RewriteRuleWith<MetadataT>> Rules) {
411 for (auto &Rule : Rules) {
421 RewriteRuleWith<void> applyFirst(ArrayRef<RewriteRuleWith<void>> Rules);
425 applyFirst(const std::vector<RewriteRuleWith<MetadataT>> &Rules) {
426 return applyFirst(llvm::makeArrayRef(Rules));
431 applyFirst(std::initializer_list<RewriteRuleWith<MetadataT>> Rules) {
432 return applyFirst(llvm::makeArrayRef(Rules.begin(), Rules.end()));
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAttr.cpp948 for (const auto &Rule : Rules) { in ActOnPragmaAttributeAttribute()
954 auto It = Rules.find(*ParentRule); in ActOnPragmaAttributeAttribute()
955 if (It != Rules.end()) { in ActOnPragmaAttributeAttribute()
972 for (const auto &Rule : Rules) { in ActOnPragmaAttributeAttribute()
998 for (const auto &Rule : Rules) in ActOnPragmaAttributeAttribute()
1001 for (const auto &Rule : Rules) { in ActOnPragmaAttributeAttribute()
1006 Rules.clear(); in ActOnPragmaAttributeAttribute()
1023 auto RulesToCheck = Rules; in ActOnPragmaAttributeAttribute()
1033 Rules.erase(MatchRule); in ActOnPragmaAttributeAttribute()
1039 if (!Rules.empty()) { in ActOnPragmaAttributeAttribute()
[all …]
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DGICombinerEmitter.cpp596 std::vector<std::unique_ptr<CombineRule>> Rules; member in __anoncdaa66640111::GICombinerEmitter
629 Cases.reserve(Rules.size()); in emitNameMatcher()
631 for (const CombineRule &EnumeratedRule : make_pointee_range(Rules)) { in emitNameMatcher()
850 gatherRules(Rules, Combiner->getValueAsListOfDefs("Rules")); in run()
859 LLVM_DEBUG(dbgs() << "Optimizing tree for " << Rules.size() << " rules\n"); in run()
864 for (const auto &Rule : Rules) { in run()
944 << " return {{0, " << Rules.size() << "}};\n" in run()
1023 for (const auto &Rule : Rules) in run()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerInfo.cpp186 if (Rules.empty()) { in apply()
190 for (const LegalizeRule &Rule : Rules) { in apply()
209 if (Rules.empty()) { in verifyTypeIdxsCoverage()
232 if (Rules.empty()) { in verifyImmIdxsCoverage()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DTrigramIndexTest.cpp23 std::vector<std::string> Rules) { in makeTrigramIndex() argument
26 for (auto &Rule : Rules) in makeTrigramIndex()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSarifDiagnostics.cpp341 json::Array Rules; in createRules() local
348 RuleMapping[RuleID] = Rules.size(); // Maps RuleID to an Array Index. in createRules()
349 Rules.push_back(createRule(*D)); in createRules()
353 return Rules; in createRules()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSarif.cpp254 json::Array Rules; in endRun() local
262 Rules.emplace_back(std::move(Rule)); in endRun()
265 Driver["rules"] = std::move(Rules); in endRun()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsCombine.td1 //=- MipsCombine.td - Define Mips Combine Rules --------------*- tablegen -*-=//
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/
H A Dmagic-numbers.rst14 * Item 17 in "C++ Coding Standards: 101 Rules, Guidelines and Best
18 * Rule 20701 in "TRAIN REAL TIME DATA PROTOCOL Coding Rules" by Armin-Hagen
/llvm-project-15.0.7/clang/utils/TableGen/
H A DClangAttrEmitter.cpp1810 std::vector<AttributeSubjectMatchRule> Rules; member
1813 std::vector<AttributeSubjectMatchRule> Rules; member in __anon2ca3fa2f0311::PragmaClangAttributeSupport::RuleOrAggregateRuleSet
1817 : Rules(Rules), IsRule(IsRule) {} in RuleOrAggregateRuleSet()
1824 return Rules[0]; in getRule()
1828 return Rules; in getAggregateRuleSet()
1887 Rules.emplace_back(MetaSubject, Constraint); in PragmaClangAttributeSupport()
1920 std::vector<AttributeSubjectMatchRule> Rules; in PragmaClangAttributeSupport() local
1928 Rules.push_back(It->second.getRule()); in PragmaClangAttributeSupport()
1956 for (const auto &Rule : Rules) { in emitMatchRuleList()
2072 for (const auto &Rule : Rules) { in generateParsingHelpers()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/
H A DToyCombine.td10 // Declarative Rewrite Rules (DRR) specified using TableGen records.
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DToyCombine.td10 // Declarative Rewrite Rules (DRR) specified using TableGen records.
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DToyCombine.td10 // Declarative Rewrite Rules (DRR) specified using TableGen records.
/llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/
H A DToyCombine.td10 // Declarative Rewrite Rules (DRR) specified using TableGen records.
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DToyCombine.td10 // Declarative Rewrite Rules (DRR) specified using TableGen records.
/llvm-project-15.0.7/clang-tools-extra/pseudo/gen/
H A DMain.cpp97 for (clang::pseudo::RuleID RID = 0; RID < G.table().Rules.size(); ++RID) in main()
/llvm-project-15.0.7/utils/bazel/llvm-project-overlay/mlir/
H A Dbuild_defs.bzl5 """Rules and macros for MLIR"""
/llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/grammar/
H A DGrammar.h230 std::vector<Rule> Rules; member
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCScheduleP9.td132 // Dispatch Rules: '-' or 'V'
140 // Dispatch Rules: 'E'
147 // Dispatch Rules: 'P'

123