Formatting changes, add LLVM_DUMP_METHOD to a dump function, NFC

llvm-svn: 313037
This commit is contained in:
Krzysztof Parzyszek 2017-09-12 15:31:26 +00:00
parent 2d4e6504af
commit 426bf3642e
2 changed files with 6 additions and 6 deletions

View File

@ -713,7 +713,7 @@ bool EEVT::TypeSet::EnforceSameSize(EEVT::TypeSet &VTOperand,
//===----------------------------------------------------------------------===//
// 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) {
@ -726,7 +726,7 @@ 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);
@ -737,7 +737,8 @@ static void FindDepVars(TreePatternNode *N, MultipleUseVarSet &DepVars) {
}
#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>");
@ -3262,8 +3263,6 @@ void CodeGenDAGPatterns::AddPatternToMatch(TreePattern *Pattern,
PatternsToMatch.push_back(std::move(PTM));
}
void CodeGenDAGPatterns::InferInstructionFlags() {
ArrayRef<const CodeGenInstruction*> Instructions =
Target.getInstructionsByEnumValue();

View File

@ -720,7 +720,8 @@ class CodeGenDAGPatterns {
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;