Skip to content

Commit 15bf001

Browse files
committed
RequirementMachine: Rename RewriteSystemCompletion.cpp to KnuthBendix.cpp
1 parent ecce9d2 commit 15bf001

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/AST/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ add_swift_host_library(swiftAST STATIC
7474
ProtocolConformance.cpp
7575
RawComment.cpp
7676
RequirementEnvironment.cpp
77-
RequirementMachine/HomotopyReduction.cpp
7877
RequirementMachine/GeneratingConformances.cpp
7978
RequirementMachine/GenericSignatureQueries.cpp
79+
RequirementMachine/HomotopyReduction.cpp
80+
RequirementMachine/KnuthBendix.cpp
8081
RequirementMachine/PropertyMap.cpp
8182
RequirementMachine/PropertyUnification.cpp
8283
RequirementMachine/RequirementMachine.cpp
8384
RequirementMachine/RequirementMachineRequests.cpp
8485
RequirementMachine/RewriteContext.cpp
8586
RequirementMachine/RewriteLoop.cpp
8687
RequirementMachine/RewriteSystem.cpp
87-
RequirementMachine/RewriteSystemCompletion.cpp
8888
RequirementMachine/Symbol.cpp
8989
RequirementMachine/Term.cpp
9090
SILLayout.cpp

lib/AST/RequirementMachine/RewriteSystemCompletion.cpp renamed to lib/AST/RequirementMachine/KnuthBendix.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- RewriteSystemCompletion.cpp - Confluent completion procedure -----===//
1+
//===--- KnuthBendix.cpp - Confluent completion procedure -----------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//
@@ -23,11 +23,13 @@
2323
// pair to the other. This can introduce more overlaps with existing rules, and
2424
// the process iterates until fixed point.
2525
//
26+
// This implementation also extends Knuth-Bendix to introduce new _generators_,
27+
// in addition to new relations as in the standard algorithm. See the comment at
28+
// the top of RewriteSystem::processMergedAssociatedTypes() for a description.
29+
//
2630
//===----------------------------------------------------------------------===//
2731

28-
#include "swift/Basic/Defer.h"
2932
#include "swift/Basic/Range.h"
30-
#include "llvm/ADT/FoldingSet.h"
3133
#include "llvm/Support/Debug.h"
3234
#include "llvm/Support/raw_ostream.h"
3335
#include <algorithm>

0 commit comments

Comments
 (0)