llvm-project/llvm/lib/TableGen
Pete Cooper 99ad2a3b67 TableGen: Change { } to only accept bits<n> entries when n == 1.
Prior to this change, it was legal to do something like

  bits<2> opc = { 0, 1 };
  bits<2> opc2 = { 1, 0 };
  bits<2> a = { opc, opc2 };

This involved silently dropping bits from opc and opc2 which is very hard to debug.

Now the above test would be an error.  Having tested with an assert, none of LLVM/clang was relying on this behaviour.

Thanks to Adam Nemet for the above test.

llvm-svn: 215083
2014-08-07 05:46:57 +00:00
..
CMakeLists.txt Move SetTheory from utils/TableGen into lib/TableGen so Clang can use it. 2014-06-17 13:10:38 +00:00
Error.cpp tblgen: Twinify PrintFatalError. 2014-03-29 17:17:15 +00:00
LLVMBuild.txt
Main.cpp Update the MemoryBuffer API to use ErrorOr. 2014-07-06 17:43:13 +00:00
Makefile Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Record.cpp TableGen: Change { } to only accept bits<n> entries when n == 1. 2014-08-07 05:46:57 +00:00
SetTheory.cpp Revert "Introduce a string_ostream string builder facilty" 2014-06-26 22:52:05 +00:00
StringMatcher.cpp Emit memcmp directly from the StringMatcherEmitter. 2012-05-20 18:10:42 +00:00
TGLexer.cpp Allow binary and for tblgen math. 2014-08-05 09:43:25 +00:00
TGLexer.h Allow binary and for tblgen math. 2014-08-05 09:43:25 +00:00
TGParser.cpp Allow binary and for tblgen math. 2014-08-05 09:43:25 +00:00
TGParser.h Fix error in tablegen when either operand of !if is an empty list. 2014-06-10 20:10:08 +00:00
TableGenBackend.cpp A bugfix for tblgen, in the function ‘emitSourceFileHeader’. 2013-01-28 07:35:33 +00:00
module.modulemap [modules] Add module maps for LLVM. These are not quite ready for prime-time 2014-05-21 02:46:14 +00:00