Home
last modified time | relevance | path

Searched refs:dialectNamespace (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/mlir/lib/Bindings/Python/
DMainModule.cpp34 void PyGlobals::loadDialectModule(llvm::StringRef dialectNamespace) { in loadDialectModule() argument
36 if (loadedDialectModulesCache.contains(dialectNamespace)) in loadDialectModule()
43 moduleName.append(dialectNamespace.data(), dialectNamespace.size()); in loadDialectModule()
60 loadedDialectModulesCache.insert(dialectNamespace); in loadDialectModule()
63 void PyGlobals::registerDialectImpl(const std::string &dialectNamespace, in registerDialectImpl() argument
66 py::object &found = dialectClassMap[dialectNamespace]; in registerDialectImpl()
69 dialectNamespace + in registerDialectImpl()
90 PyGlobals::lookupDialectClass(const std::string &dialectNamespace) { in lookupDialectClass() argument
92 loadDialectModule(dialectNamespace); in lookupDialectClass()
94 const auto foundIt = dialectClassMap.find(dialectNamespace); in lookupDialectClass()
[all …]
DGlobals.h55 void loadDialectModule(llvm::StringRef dialectNamespace);
64 void registerDialectImpl(const std::string &dialectNamespace,
77 lookupDialectClass(const std::string &dialectNamespace);
DIRModules.cpp139 createCustomDialectWrapper(const std::string &dialectNamespace, in createCustomDialectWrapper() argument
141 auto dialectClass = PyGlobals::get().lookupDialectClass(dialectNamespace); in createCustomDialectWrapper()
/external/llvm-project/mlir/lib/IR/
DTypeDetail.h32 OpaqueTypeStorage(Identifier dialectNamespace, StringRef typeData) in OpaqueTypeStorage()
33 : dialectNamespace(dialectNamespace), typeData(typeData) {} in OpaqueTypeStorage()
38 return key == KeyTy(dialectNamespace, typeData);
49 Identifier dialectNamespace; member
DAttributeDetail.h243 OpaqueAttributeStorage(Identifier dialectNamespace, StringRef attrData, in OpaqueAttributeStorage()
245 : AttributeStorage(type), dialectNamespace(dialectNamespace), in OpaqueAttributeStorage()
251 return key == KeyTy(dialectNamespace, attrData, getType());
263 Identifier dialectNamespace; member
DMLIRContext.cpp461 MLIRContext::getOrLoadDialect(StringRef dialectNamespace, TypeID dialectID, in getOrLoadDialect() argument
465 std::unique_ptr<Dialect> &dialect = impl.loadedDialects[dialectNamespace]; in getOrLoadDialect()
469 << "Load new dialect in Context " << dialectNamespace << "\n"); in getOrLoadDialect()
473 "Loading a dialect (" + dialectNamespace + in getOrLoadDialect()
485 llvm::report_fatal_error("a dialect with namespace '" + dialectNamespace + in getOrLoadDialect()
DBuiltinTypes.cpp175 return getImpl()->dialectNamespace; in getDialectNamespace()
DBuiltinAttributes.cpp392 return getImpl()->dialectNamespace; in getDialectNamespace()
/external/llvm-project/mlir/include/mlir/IR/
DMLIRContext.h167 Dialect *getOrLoadDialect(StringRef dialectNamespace, TypeID dialectID,
/external/llvm-project/mlir/lib/CAPI/IR/
DBuiltinAttributes.cpp163 MlirAttribute mlirOpaqueAttrGet(MlirContext ctx, MlirStringRef dialectNamespace, in mlirOpaqueAttrGet() argument
167 OpaqueAttr::get(Identifier::get(unwrap(dialectNamespace), unwrap(ctx)), in mlirOpaqueAttrGet()
/external/llvm-project/mlir/include/mlir-c/
DBuiltinAttributes.h158 mlirOpaqueAttrGet(MlirContext ctx, MlirStringRef dialectNamespace,