llvm-6502/lib/TableGen
Pete Cooper 42c1227fd9 Change TableGen so that binary literals such as 0b001 are now sized.
Instead of these becoming an integer literal internally, they now become bits<n> values.

Prior to this change, 0b001 was 1 bit long.  This is confusing as clearly the user gave 3 bits.
This new type holds both the literal value and the size, and so can ensure sizes match on initializers.

For example, this used to be legal

bits<1> x = 0b00;

but now it must be written as

bits<2> x = 0b00;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215084 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-07 05:47:00 +00:00
..
CMakeLists.txt
Error.cpp
LLVMBuild.txt
Main.cpp
Makefile
module.modulemap
Record.cpp TableGen: Change { } to only accept bits<n> entries when n == 1. 2014-08-07 05:46:57 +00:00
SetTheory.cpp
StringMatcher.cpp
TableGenBackend.cpp
TGLexer.cpp Change TableGen so that binary literals such as 0b001 are now sized. 2014-08-07 05:47:00 +00:00
TGLexer.h Change TableGen so that binary literals such as 0b001 are now sized. 2014-08-07 05:47:00 +00:00
TGParser.cpp Change TableGen so that binary literals such as 0b001 are now sized. 2014-08-07 05:47:00 +00:00
TGParser.h