[llvm-commits] [PATCH] Add a !mul operator
David Greene
dag at cray.com
Wed Jan 16 07:10:32 PST 2013
Add a !mul operator that takes two integer values and yields the
product. We can use this to produce more readable TableGen files.
---
llvm/docs/TableGenFundamentals.rst | 3 +++
llvm/include/llvm/TableGen/Record.h | 2 +-
llvm/lib/TableGen/Record.cpp | 3 +++
llvm/lib/TableGen/TGLexer.cpp | 1 +
llvm/lib/TableGen/TGLexer.h | 2 +-
llvm/lib/TableGen/TGParser.cpp | 4 ++++
llvm/test/TableGen/mul.td | 32 ++++++++++++++++++++++++++++++++
7 files changed, 45 insertions(+), 2 deletions(-)
create mode 100644 llvm/test/TableGen/mul.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-mul-operator.patch
Type: text/x-patch
Size: 5718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130116/fd884947/attachment.bin>
More information about the llvm-commits
mailing list