hanchenye-llvm-project/llvm/lib/TableGen
Adam Nemet 017fca0272 [TableGen] Allow shift operators to take bits<n>
Convert the operand to int if possible, i.e. if the value is properly
initialized.  (I suppose there is further room for improvement here to also
peform the shift if the uninitialized bits are shifted out.)

With this little change we can now compute the scaling factor for compressed
displacement with pure tablegen code in the X86 backend.  This is useful
because both the X86-disassembler-specific part of tablegen and the assembler
need this and TD is the natural sharing place.

The patch also adds the missing documentation for the shift and add operator.

llvm-svn: 213277
2014-07-17 17:04:27 +00:00
..
CMakeLists.txt
Error.cpp
LLVMBuild.txt
Main.cpp
Makefile
Record.cpp [TableGen] Allow shift operators to take bits<n> 2014-07-17 17:04:27 +00:00
SetTheory.cpp
StringMatcher.cpp
TGLexer.cpp
TGLexer.h
TGParser.cpp
TGParser.h
TableGenBackend.cpp
module.modulemap