Skip to content

Commit 5e72d69

Browse files
authored
Merge pull request swiftlang#39255 from slavapestov/rqm-homotopy-generators
RequirementMachine: Homotopy reduction
2 parents 212773e + 8850380 commit 5e72d69

19 files changed

+1259
-126
lines changed

lib/AST/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ add_swift_host_library(swiftAST STATIC
7474
ProtocolConformance.cpp
7575
RawComment.cpp
7676
RequirementEnvironment.cpp
77+
RequirementMachine/HomotopyReduction.cpp
7778
RequirementMachine/GenericSignatureQueries.cpp
7879
RequirementMachine/PropertyMap.cpp
7980
RequirementMachine/ProtocolGraph.cpp

lib/AST/RequirementMachine/Debug.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#ifndef SWIFT_RQM_DEBUG_H
1414
#define SWIFT_RQM_DEBUG_H
1515

16+
#include "swift/Basic/OptionSet.h"
17+
1618
namespace swift {
1719

1820
namespace rewriting {
@@ -34,7 +36,10 @@ enum class DebugFlags : unsigned {
3436
ConcreteUnification = (1<<4),
3537

3638
/// Print debug output when concretizing nested types in the property map.
37-
ConcretizeNestedTypes = (1<<5)
39+
ConcretizeNestedTypes = (1<<5),
40+
41+
/// Print debug output from the homotopy reduction algorithm.
42+
HomotopyReduction = (1<<6)
3843
};
3944

4045
using DebugOptions = OptionSet<DebugFlags>;
@@ -43,4 +48,4 @@ using DebugOptions = OptionSet<DebugFlags>;
4348

4449
}
4550

46-
#endif
51+
#endif

0 commit comments

Comments
 (0)