[TableGen] Handle ValueType in CodeGenDAGPatterns GetNumNodeResults
authorHal Finkel <hfinkel@anl.gov>
Thu, 2 Jan 2014 20:47:05 +0000 (20:47 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 2 Jan 2014 20:47:05 +0000 (20:47 +0000)
commit49f1c2a73395439eadf5e04631c1b750f9fd31ca
treed9819a01ad41e5915ee01fb4eb5a1262ad137352
parent461c8e0a8cc4cb145a02d785440834975bb56947
[TableGen] Handle ValueType in CodeGenDAGPatterns GetNumNodeResults

A ValueType in a pattern dag is a type cast, and GetNumNodeResults should
handle it (the type cast has only one result).

This comes up, for example, during the type checking of pattern fragments, for
example, AArch64's Neon_combine_2d fragment is:
  dag Operands = (ops node:$Rm, node:$Rn);
  dag Fragment = (v2f64 (concat_vectors (v1f64 node:$Rm), (v1f64 node:$Rn)));

llvm-svn: 198347
llvm/utils/TableGen/CodeGenDAGPatterns.cpp