mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Node arguments to type casts can have names too. This code
needs to be majorly refactored, but this spot bugfix allows things like: def vmrghw_shuffle : PatFrag<(ops node:$lhs, node:$rhs), (vector_shuffle (v4i32 node:$lhs), node:$rhs), [{ ... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97952 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e00ed57087
commit
43e4754817
@ -1238,6 +1238,14 @@ TreePatternNode *TreePattern::ParseTreePattern(DagInit *Dag) {
|
||||
std::vector<std::pair<Init*, std::string> >()));
|
||||
return ParseTreePattern(Dag);
|
||||
}
|
||||
|
||||
// Input argument?
|
||||
if (R->getName() == "node") {
|
||||
if (Dag->getArgName(0).empty())
|
||||
error("'node' argument requires a name to match with operand list");
|
||||
Args.push_back(Dag->getArgName(0));
|
||||
}
|
||||
|
||||
New = new TreePatternNode(DI);
|
||||
} else if (DagInit *DI = dynamic_cast<DagInit*>(Arg)) {
|
||||
New = ParseTreePattern(DI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user