[PATCH] D32537: [globalisel][tablegen] Fix vector element size

Igor Breger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 07:06:34 PDT 2017


igorb created this revision.
Herald added subscribers: kristof.beyls, rovka.

Fix vector element size.


https://reviews.llvm.org/D32537

Files:
  utils/TableGen/GlobalISelEmitter.cpp


Index: utils/TableGen/GlobalISelEmitter.cpp
===================================================================
--- utils/TableGen/GlobalISelEmitter.cpp
+++ utils/TableGen/GlobalISelEmitter.cpp
@@ -80,7 +80,7 @@
       return;
     }
     if (Ty.isVector()) {
-      OS << "LLT::vector(" << Ty.getNumElements() << ", " << Ty.getSizeInBits()
+      OS << "LLT::vector(" << Ty.getNumElements() << ", " << Ty.getScalarSizeInBits()
          << ")";
       return;
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32537.96732.patch
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170426/27b8a0ae/attachment.bin>


More information about the llvm-commits mailing list