[llvm] r315070 - Strip trailing whitespace
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 6 08:33:55 PDT 2017
Author: rksimon
Date: Fri Oct 6 08:33:55 2017
New Revision: 315070
URL: http://llvm.org/viewvc/llvm-project?rev=315070&view=rev
Log:
Strip trailing whitespace
Modified:
llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
llvm/trunk/utils/TableGen/FastISelEmitter.cpp
Modified: llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp?rev=315070&r1=315069&r2=315070&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp Fri Oct 6 08:33:55 2017
@@ -47,14 +47,14 @@ static cl::opt<bool> InstrumentCoverage(
namespace {
class MatcherTableEmitter {
const CodeGenDAGPatterns &CGP;
-
+
DenseMap<TreePattern *, unsigned> NodePredicateMap;
std::vector<TreePredicateFn> NodePredicates;
// We de-duplicate the predicates by code string, and use this map to track
// all the patterns with "identical" predicates.
StringMap<TinyPtrVector<TreePattern *>> NodePredicatesByCodeToRun;
-
+
StringMap<unsigned> PatternPredicateMap;
std::vector<std::string> PatternPredicates;
@@ -116,7 +116,7 @@ private:
}
return Entry-1;
}
-
+
unsigned getPatternPredicate(StringRef PredName) {
unsigned &Entry = PatternPredicateMap[PredName];
if (Entry == 0) {
@@ -773,13 +773,13 @@ void MatcherTableEmitter::EmitPredicateF
for (unsigned i = 0, e = NodePredicates.size(); i != e; ++i) {
// Emit the predicate code corresponding to this pattern.
TreePredicateFn PredFn = NodePredicates[i];
-
+
assert(!PredFn.isAlwaysTrue() && "No code in this predicate");
OS << " case " << i << ": { \n";
for (auto *SimilarPred :
NodePredicatesByCodeToRun[PredFn.getCodeToRunOnSDNode()])
OS << " // " << TreePredicateFn(SimilarPred).getFnName() <<'\n';
-
+
OS << PredFn.getCodeToRunOnSDNode() << "\n }\n";
}
OS << " }\n";
Modified: llvm/trunk/utils/TableGen/FastISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FastISelEmitter.cpp?rev=315070&r1=315069&r2=315070&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FastISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FastISelEmitter.cpp Fri Oct 6 08:33:55 2017
@@ -363,7 +363,7 @@ struct OperandsSignature {
namespace {
class FastISelMap {
- // A multimap is needed instead of a "plain" map because the key is
+ // A multimap is needed instead of a "plain" map because the key is
// the instruction's complexity (an int) and they are not unique.
typedef std::multimap<int, InstructionMemo> PredMap;
typedef std::map<MVT::SimpleValueType, PredMap> RetPredMap;
@@ -374,7 +374,7 @@ class FastISelMap {
OperandsOpcodeTypeRetPredMap SimplePatterns;
- // This is used to check that there are no duplicate predicates
+ // This is used to check that there are no duplicate predicates
typedef std::multimap<std::string, bool> PredCheckMap;
typedef std::map<MVT::SimpleValueType, PredCheckMap> RetPredCheckMap;
typedef std::map<MVT::SimpleValueType, RetPredCheckMap> TypeRetPredCheckMap;
@@ -395,10 +395,10 @@ public:
void collectPatterns(CodeGenDAGPatterns &CGP);
void printImmediatePredicates(raw_ostream &OS);
void printFunctionDefinitions(raw_ostream &OS);
-private:
- void emitInstructionCode(raw_ostream &OS,
+private:
+ void emitInstructionCode(raw_ostream &OS,
const OperandsSignature &Operands,
- const PredMap &PM,
+ const PredMap &PM,
const std::string &RetVTName);
};
} // End anonymous namespace
@@ -572,7 +572,7 @@ void FastISelMap::collectPatterns(CodeGe
PhysRegInputs,
PredicateCheck
};
-
+
int complexity = Pattern.getPatternComplexity(CGP);
if (SimplePatternsCheck[Operands][OpcodeName][VT]
@@ -612,9 +612,9 @@ void FastISelMap::printImmediatePredicat
OS << "\n\n";
}
-void FastISelMap::emitInstructionCode(raw_ostream &OS,
+void FastISelMap::emitInstructionCode(raw_ostream &OS,
const OperandsSignature &Operands,
- const PredMap &PM,
+ const PredMap &PM,
const std::string &RetVTName) {
// Emit code for each possible instruction. There may be
// multiple if there are subtarget concerns. A reverse iterator
More information about the llvm-commits
mailing list