1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
//===--- Debug.h - Requirement machine debugging flags ----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_RQM_DEBUG_H
#define SWIFT_RQM_DEBUG_H
#include "swift/Basic/OptionSet.h"
namespace swift {
namespace rewriting {
enum class DebugFlags : unsigned {
/// Print debug output when simplifying terms.
Simplify = (1<<0),
/// Print debug output when adding rules.
Add = (1<<1),
/// Print debug output from the Knuth-Bendix algorithm.
Completion = (1<<2),
/// Print debug output from property map construction.
PropertyMap = (1<<3),
/// Print debug output when unifying concrete types in the property map.
ConcreteUnification = (1<<4),
/// Print debug output when concretizing nested types in the property map.
ConcretizeNestedTypes = (1<<5),
/// Print debug output when inferring conditional requirements in the
/// property map.
ConditionalRequirements = (1<<6),
/// Print debug output from the homotopy reduction algorithm.
HomotopyReduction = (1<<7),
/// Print more detailed debug output from the homotopy reduction algorithm.
HomotopyReductionDetail = (1<<8),
/// Print debug output from the minimal conformances algorithm.
MinimalConformances = (1<<9),
/// Print more detailed debug output from the minimal conformances algorithm.
MinimalConformancesDetail = (1<<10),
/// Print debug output from the protocol dependency graph.
ProtocolDependencies = (1<<11),
/// Print debug output from generic signature minimization.
Minimization = (1<<12),
/// Print redundant rules and their replacement paths.
RedundantRules = (1<<13),
/// Print more detail about redundant rules.
RedundantRulesDetail = (1<<14),
/// Print debug output from the concrete contraction pre-processing pass.
ConcreteContraction = (1<<15),
/// Print a trace of requirement machines constructed and how long each took.
Timers = (1<<16),
/// Print conflicting rules.
ConflictingRules = (1<<17),
/// Print debug output from concrete equivalence class splitting during
/// minimization.
SplitConcreteEquivalenceClass = (1<<18),
};
using DebugOptions = OptionSet<DebugFlags>;
}
}
#endif
|