Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[compiler] fix typo #438

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/include/byteir/Utils/OpInterfaceUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void OpInterfaceOverrider<Op, Interface, method>::apply(const Impl &impl) {
}
} // namespace detail

void registeOpInterfaceExtensions(DialectRegistry &registry);
void registerOpInterfaceExtensions(DialectRegistry &registry);
} // namespace mlir
#define RegisterOpInterfaceOverride2(op, interface, method, impl, N) \
template struct ::mlir::detail::OpInterfaceOverrider< \
Expand Down
2 changes: 1 addition & 1 deletion compiler/lib/CAPI/Dialects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(

void byteirRegisterDialectExtensions(MlirContext context) {
DialectRegistry registry;
registeOpInterfaceExtensions(registry);
registerOpInterfaceExtensions(registry);
registerPDLPatternHooksInterface(registry);
ccl::registerTransformDialectExtension(registry);
linalg_ext::registerTransformDialectExtension(registry);
Expand Down
4 changes: 2 additions & 2 deletions compiler/lib/Dialect/Byre/IR/Serialization/Versioning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ std::optional<Version> Version::parse(llvm::StringRef versionStr) {
}

LogicalResult
mlir::byre::serialization::verifySerializableIRVersion(Operation *topLvelOp,
mlir::byre::serialization::verifySerializableIRVersion(Operation *topLevelOp,
const Version &version) {
AttrTypeWalker typeAttrChecker;
typeAttrChecker.addWalk([&](SerializableTypeInterface type) {
Expand All @@ -92,7 +92,7 @@ mlir::byre::serialization::verifySerializableIRVersion(Operation *topLvelOp,
return WalkResult::advance();
});

WalkResult result = topLvelOp->walk([&](Operation *op) {
WalkResult result = topLevelOp->walk([&](Operation *op) {
if (auto iface = llvm::dyn_cast<SerializableOpInterface>(op)) {
if (version < iface.getMinVersion() || iface.getMaxVersion() < version) {
op->emitError() << " was not compatible with version "
Expand Down
2 changes: 1 addition & 1 deletion compiler/lib/Utils/OpInterfaceUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ void mlir::detail::addOpInterfaceExtension(
ExtensionRegistry::inst().insert(std::move(extensionFn), dialectName);
}

void mlir::registeOpInterfaceExtensions(DialectRegistry &registry) {
void mlir::registerOpInterfaceExtensions(DialectRegistry &registry) {
ExtensionRegistry::inst().apply(registry);
}
2 changes: 1 addition & 1 deletion compiler/tools/byteir-opt/byteir-opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ int main(int argc, char **argv) {
DialectRegistry registry;
registerAllDialects(registry);
registerAllExtensions(registry);
registeOpInterfaceExtensions(registry);
registerOpInterfaceExtensions(registry);

// register ByteIR's dialects here
mlir::stablehlo::registerAllDialects(registry);
Expand Down
Loading