mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
TableGen: Refactor DAG patterns to enable parsing one pattern at a time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -778,7 +778,11 @@ public:
|
||||
ptm_iterator ptm_begin() const { return PatternsToMatch.begin(); }
|
||||
ptm_iterator ptm_end() const { return PatternsToMatch.end(); }
|
||||
|
||||
|
||||
/// Parse the Pattern for an instruction, and insert the result in DAGInsts.
|
||||
typedef std::map<Record*, DAGInstruction, LessRecordByID> DAGInstMap;
|
||||
const DAGInstruction &parseInstructionPattern(
|
||||
CodeGenInstruction &CGI, ListInit *Pattern,
|
||||
DAGInstMap &DAGInsts);
|
||||
|
||||
const DAGInstruction &getInstruction(Record *R) const {
|
||||
assert(Instructions.count(R) && "Unknown instruction!");
|
||||
|
||||
Reference in New Issue
Block a user