mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
move Node Transformation printing from CodeGenDAGPatterns -> DAGISelEmitter.
The only difference in output is that we now print them in alphabetical order instead of reverse alphabetical order. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -451,7 +451,7 @@ class CodegenDAGPatterns {
|
||||
/// emit.
|
||||
std::vector<PatternToMatch> PatternsToMatch;
|
||||
public:
|
||||
CodegenDAGPatterns(RecordKeeper &R, std::ostream &OS);
|
||||
CodegenDAGPatterns(RecordKeeper &R);
|
||||
~CodegenDAGPatterns();
|
||||
|
||||
const CodeGenTarget &getTargetInfo() const { return Target; }
|
||||
@ -463,11 +463,18 @@ public:
|
||||
return SDNodes.find(R)->second;
|
||||
}
|
||||
|
||||
const std::pair<Record*, std::string> &getSDNodeTransform(Record *R) const {
|
||||
// Node transformation lookups.
|
||||
typedef std::pair<Record*, std::string> NodeXForm;
|
||||
const NodeXForm &getSDNodeTransform(Record *R) const {
|
||||
assert(SDNodeXForms.count(R) && "Invalid transform!");
|
||||
return SDNodeXForms.find(R)->second;
|
||||
}
|
||||
|
||||
typedef std::map<Record*, NodeXForm>::const_iterator nx_iterator;
|
||||
nx_iterator nx_begin() const { return SDNodeXForms.begin(); }
|
||||
nx_iterator nx_end() const { return SDNodeXForms.end(); }
|
||||
|
||||
|
||||
const ComplexPattern &getComplexPattern(Record *R) const {
|
||||
assert(ComplexPatterns.count(R) && "Unknown addressing mode!");
|
||||
return ComplexPatterns.find(R)->second;
|
||||
@ -530,7 +537,7 @@ public:
|
||||
|
||||
private:
|
||||
void ParseNodeInfo();
|
||||
void ParseNodeTransforms(std::ostream &OS);
|
||||
void ParseNodeTransforms();
|
||||
void ParseComplexPatterns();
|
||||
void ParsePatternFragments();
|
||||
void ParseDefaultOperands();
|
||||
|
Reference in New Issue
Block a user