//===----------------------------------------------------------------------===//
// Helpers for working with extended types.
-/// Dependent variable map for CodeGenDAGPattern variant generation
+/// Dependent variable map for CodeGenDAGPattern variant generation.
typedef std::map<std::string, int> DepVarMap;
static void FindDepVarsOf(TreePatternNode *N, DepVarMap &DepMap) {
}
}
-/// Find dependent variables within child patterns
+/// Find dependent variables within child patterns.
static void FindDepVars(TreePatternNode *N, MultipleUseVarSet &DepVars) {
DepVarMap depcounts;
FindDepVarsOf(N, depcounts);
}
#ifndef NDEBUG
-/// Dump the dependent variable set:
+/// Dump the dependent variable set.
+LLVM_DUMP_METHOD
static void DumpDepVars(MultipleUseVarSet &DepVars) {
if (DepVars.empty()) {
DEBUG(errs() << "<empty set>");
PatternsToMatch.push_back(std::move(PTM));
}
-
-
void CodeGenDAGPatterns::InferInstructionFlags() {
ArrayRef<const CodeGenInstruction*> Instructions =
Target.getInstructionsByEnumValue();
CodeGenIntrinsicTable TgtIntrinsics;
std::map<Record*, SDNodeInfo, LessRecordByID> SDNodes;
- std::map<Record*, std::pair<Record*, std::string>, LessRecordByID> SDNodeXForms;
+ std::map<Record*, std::pair<Record*, std::string>, LessRecordByID>
+ SDNodeXForms;
std::map<Record*, ComplexPattern, LessRecordByID> ComplexPatterns;
std::map<Record *, std::unique_ptr<TreePattern>, LessRecordByID>
PatternFragments;