mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
Refactor Record* by-ID comparator to Record.h
This is a generally useful utility; there's no reason to have it hidden in CodeGenDAGPatterns.cpp. Also, rename it to fit the other comparators in Record.h Review by Jakob. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164189 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -574,10 +574,6 @@ bool EEVT::TypeSet::EnforceVectorSubVectorTypeIs(EEVT::TypeSet &VTOperand,
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Helpers for working with extended types.
|
||||
|
||||
bool RecordPtrCmp::operator()(const Record *LHS, const Record *RHS) const {
|
||||
return LHS->getID() < RHS->getID();
|
||||
}
|
||||
|
||||
/// Dependent variable map for CodeGenDAGPattern variant generation
|
||||
typedef std::map<std::string, int> DepVarMap;
|
||||
|
||||
@@ -2748,7 +2744,7 @@ void CodeGenDAGPatterns::ParseInstructions() {
|
||||
}
|
||||
|
||||
// If we can, convert the instructions to be patterns that are matched!
|
||||
for (std::map<Record*, DAGInstruction, RecordPtrCmp>::iterator II =
|
||||
for (std::map<Record*, DAGInstruction, LessRecordByID>::iterator II =
|
||||
Instructions.begin(),
|
||||
E = Instructions.end(); II != E; ++II) {
|
||||
DAGInstruction &TheInst = II->second;
|
||||
|
||||
Reference in New Issue
Block a user