Home
last modified time | relevance | path

Searched refs:recordKeeper (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/mlir/include/mlir/TableGen/
H A DGenInfo.h24 using GenFunction = std::function<bool(const llvm::RecordKeeper &recordKeeper,
37 bool invoke(const llvm::RecordKeeper &recordKeeper, raw_ostream &os) const { in invoke() argument
39 return generator(recordKeeper, os); in invoke()
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DOpDocGen.cpp205 static void emitOpDoc(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitOpDoc() argument
206 auto opDefs = getRequestedOpDefinitions(recordKeeper); in emitOpDoc()
291 static void emitAttrOrTypeDefDoc(const RecordKeeper &recordKeeper, in emitAttrOrTypeDefDoc() argument
294 recordKeeper.getAllDerivedDefinitions(recordTypeName); in emitAttrOrTypeDefDoc()
351 static bool emitDialectDoc(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitDialectDoc() argument
352 std::vector<Record *> opDefs = getRequestedOpDefinitions(recordKeeper); in emitDialectDoc()
354 recordKeeper.getAllDerivedDefinitionsIfDefined("DialectAttr"); in emitDialectDoc()
356 recordKeeper.getAllDerivedDefinitionsIfDefined("DialectType"); in emitDialectDoc()
358 recordKeeper.getAllDerivedDefinitionsIfDefined("TypeDef"); in emitDialectDoc()
360 recordKeeper.getAllDerivedDefinitionsIfDefined("AttrDef"); in emitDialectDoc()
H A DLLVMIRConversionGen.cpp169 static bool emitBuilders(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitBuilders() argument
170 for (const auto *def : recordKeeper.getAllDerivedDefinitions("LLVM_OpBase")) { in emitBuilders()
362 static bool emitEnumConversionDefs(const RecordKeeper &recordKeeper, in emitEnumConversionDefs() argument
364 for (const auto *def : recordKeeper.getAllDerivedDefinitions("LLVM_EnumAttr")) in emitEnumConversionDefs()
371 recordKeeper.getAllDerivedDefinitions("LLVM_CEnumAttr")) in emitEnumConversionDefs()
386 static bool emitIntrOpPairs(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitIntrOpPairs() argument
388 recordKeeper.getAllDerivedDefinitions("LLVM_IntrOpBase")) in emitIntrOpPairs()
H A DOpGenHelpers.cpp43 mlir::tblgen::getRequestedOpDefinitions(const RecordKeeper &recordKeeper) { in getRequestedOpDefinitions() argument
44 Record *classDef = recordKeeper.getClass("Op"); in getRequestedOpDefinitions()
50 for (const auto &def : recordKeeper.getDefs()) { in getRequestedOpDefinitions()
H A DSPIRVUtilsGen.cpp196 static bool emitInterfaceDefs(const RecordKeeper &recordKeeper, in emitInterfaceDefs() argument
200 auto defs = recordKeeper.getAllDerivedDefinitions("Availability"); in emitInterfaceDefs()
282 static bool emitInterfaceDecls(const RecordKeeper &recordKeeper, in emitInterfaceDecls() argument
286 auto defs = recordKeeper.getAllDerivedDefinitions("Availability"); in emitInterfaceDecls()
1136 static bool emitSerializationFns(const RecordKeeper &recordKeeper, in emitSerializationFns() argument
1144 Record *attrClass = recordKeeper.getClass("Attr"); in emitSerializationFns()
1153 auto defs = recordKeeper.getAllDerivedDefinitions("SPV_Op"); in emitSerializationFns()
1168 emitExtendedSetDeserializationDispatch(recordKeeper, dDesFn); in emitSerializationFns()
1357 static bool emitAvailabilityImpl(const RecordKeeper &recordKeeper, in emitAvailabilityImpl() argument
1361 auto defs = recordKeeper.getAllDerivedDefinitions("SPV_Op"); in emitAvailabilityImpl()
[all …]
H A DDirectiveCommonGen.cpp44 static bool emitDecls(const RecordKeeper &recordKeeper, llvm::StringRef dialect, in emitDecls() argument
53 recordKeeper.getAllDerivedDefinitions("DirectiveLanguage"); in emitDecls()
56 const auto &clauses = recordKeeper.getAllDerivedDefinitions("Clause"); in emitDecls()
H A DDialectGen.cpp231 static bool emitDialectDecls(const llvm::RecordKeeper &recordKeeper, in emitDialectDecls() argument
235 auto dialectDefs = recordKeeper.getAllDerivedDefinitions("Dialect"); in emitDialectDecls()
302 static bool emitDialectDefs(const llvm::RecordKeeper &recordKeeper, in emitDialectDefs() argument
306 auto dialectDefs = recordKeeper.getAllDerivedDefinitions("Dialect"); in emitDialectDefs()
H A DPassDocGen.cpp59 static void emitDocs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os) { in emitDocs() argument
61 auto passDefs = recordKeeper.getAllDerivedDefinitions("PassBase"); in emitDocs()
H A DPassGen.cpp202 static void emitDecls(const llvm::RecordKeeper &recordKeeper, raw_ostream &os) { in emitDecls() argument
205 for (const auto *def : recordKeeper.getAllDerivedDefinitions("PassBase")) in emitDecls()
H A DOpGenHelpers.h25 getRequestedOpDefinitions(const llvm::RecordKeeper &recordKeeper);
H A DEnumsGen.cpp520 static bool emitEnumDecls(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitEnumDecls() argument
523 auto defs = recordKeeper.getAllDerivedDefinitions("EnumAttrInfo"); in emitEnumDecls()
558 static bool emitEnumDefs(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitEnumDefs() argument
561 auto defs = recordKeeper.getAllDerivedDefinitions("EnumAttrInfo"); in emitEnumDefs()
H A DRewriterGen.cpp259 StaticMatcherHelper(raw_ostream &os, const RecordKeeper &recordKeeper,
1690 const RecordKeeper &recordKeeper, in StaticMatcherHelper() argument
1692 : opMap(mapper), staticVerifierEmitter(os, recordKeeper) {} in StaticMatcherHelper()
1755 static void emitRewriters(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitRewriters() argument
1758 const auto &patterns = recordKeeper.getAllDerivedDefinitions("Pattern"); in emitRewriters()
1765 StaticMatcherHelper staticMatcher(os, recordKeeper, recordOpMap); in emitRewriters()
H A DOpDefinitionsGen.cpp3003 static void emitOpClasses(const RecordKeeper &recordKeeper, in emitOpClasses() argument
3024 StaticVerifierFunctionEmitter staticVerifierEmitter(os, recordKeeper); in emitOpClasses()
3069 static bool emitOpDecls(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitOpDecls() argument
3072 std::vector<Record *> defs = getRequestedOpDefinitions(recordKeeper); in emitOpDecls()
3073 emitOpClasses(recordKeeper, defs, os, /*emitDecl=*/true); in emitOpDecls()
3078 static bool emitOpDefs(const RecordKeeper &recordKeeper, raw_ostream &os) { in emitOpDefs() argument
3081 std::vector<Record *> defs = getRequestedOpDefinitions(recordKeeper); in emitOpDefs()
3083 emitOpClasses(recordKeeper, defs, os, /*emitDecl=*/false); in emitOpDefs()
H A DOpInterfacesGen.cpp65 getAllOpInterfaceDefinitions(const llvm::RecordKeeper &recordKeeper) { in getAllOpInterfaceDefinitions() argument
67 recordKeeper.getAllDerivedDefinitions("OpInterface"); in getAllOpInterfaceDefinitions()
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DOperator.cpp319 auto &recordKeeper = def.getRecords(); in populateTypeInferenceInfo() local
320 auto *inferTrait = recordKeeper.getDef(inferTypeOpInterface); in populateTypeInferenceInfo()
417 auto &recordKeeper = def.getRecords(); in populateOpStructure() local
418 auto *typeConstraintClass = recordKeeper.getClass("TypeConstraint"); in populateOpStructure()
419 auto *attrClass = recordKeeper.getClass("Attr"); in populateOpStructure()
420 auto *derivedAttrClass = recordKeeper.getClass("DerivedAttr"); in populateOpStructure()
421 auto *opVarClass = recordKeeper.getClass("OpVariable"); in populateOpStructure()
/llvm-project-15.0.7/mlir/lib/Tools/tblgen-lsp-server/
H A DTableGenServer.cpp295 std::unique_ptr<llvm::RecordKeeper> recordKeeper; member in __anond136bf7d0411::TableGenTextFile
340 recordKeeper = std::make_unique<llvm::RecordKeeper>(); in initialize()
366 bool failedToParse = llvm::TableGenParseFile(sourceMgr, *recordKeeper); in initialize()
374 index.initialize(*recordKeeper); in initialize()