| /llvm-project-15.0.7/mlir/include/mlir/TableGen/ |
| H A D | GenInfo.h | 24 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 D | OpDocGen.cpp | 205 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 D | LLVMIRConversionGen.cpp | 169 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 D | OpGenHelpers.cpp | 43 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 D | SPIRVUtilsGen.cpp | 196 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 D | DirectiveCommonGen.cpp | 44 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 D | DialectGen.cpp | 231 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 D | PassDocGen.cpp | 59 static void emitDocs(const llvm::RecordKeeper &recordKeeper, raw_ostream &os) { in emitDocs() argument 61 auto passDefs = recordKeeper.getAllDerivedDefinitions("PassBase"); in emitDocs()
|
| H A D | PassGen.cpp | 202 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 D | OpGenHelpers.h | 25 getRequestedOpDefinitions(const llvm::RecordKeeper &recordKeeper);
|
| H A D | EnumsGen.cpp | 520 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 D | RewriterGen.cpp | 259 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 D | OpDefinitionsGen.cpp | 3003 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 D | OpInterfacesGen.cpp | 65 getAllOpInterfaceDefinitions(const llvm::RecordKeeper &recordKeeper) { in getAllOpInterfaceDefinitions() argument 67 recordKeeper.getAllDerivedDefinitions("OpInterface"); in getAllOpInterfaceDefinitions()
|
| /llvm-project-15.0.7/mlir/lib/TableGen/ |
| H A D | Operator.cpp | 319 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 D | TableGenServer.cpp | 295 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()
|