[PATCH] D29342: TableGen: Add support for intrinsic patterns with vAny

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 11:49:25 PST 2017


tstellarAMD created this revision.
Herald added subscribers: tpr, wdng.

AMDGPU will start using the vAny type for some of its intrinsics.


https://reviews.llvm.org/D29342

Files:
  utils/TableGen/CodeGenDAGPatterns.cpp


Index: utils/TableGen/CodeGenDAGPatterns.cpp
===================================================================
--- utils/TableGen/CodeGenDAGPatterns.cpp
+++ utils/TableGen/CodeGenDAGPatterns.cpp
@@ -160,6 +160,11 @@
     return true;
   }
 
+  // Do nowthing if we are merging MVT::Any
+  if (InVT.TypeVec[0] == MVT::Any) {
+    return false;
+  }
+
   assert(!TypeVec.empty() && !InVT.TypeVec.empty() && "No unknowns");
 
   // Handle the abstract cases, seeing if we can resolve them better.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29342.86473.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170131/c5c6241d/attachment-0001.bin>


More information about the llvm-commits mailing list