aboutsummaryrefslogtreecommitdiffstats
path: root/lib/TableGen/TGLexer.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-19 13:04:43 +0000
committerDavid Greene <greened@obbligato.org>2011-10-19 13:04:43 +0000
commitd3d1cad535d1c88e13e8e082c136260ee624967f (patch)
treea79a64b8631b09ed8a0b26b0c3c2250849255223 /lib/TableGen/TGLexer.h
parente5b252f9fe7a3dfc85ae25ca1603cb406071851b (diff)
downloadexternal_llvm-d3d1cad535d1c88e13e8e082c136260ee624967f.zip
external_llvm-d3d1cad535d1c88e13e8e082c136260ee624967f.tar.gz
external_llvm-d3d1cad535d1c88e13e8e082c136260ee624967f.tar.bz2
Implement Paste
Add a paste operator '#' to take two identifier-like strings and joint them. Internally paste gets represented as a !strconcat() with any necessary casts to string added. This will be used to implement basic for loop functionality as in: for i = [0, 1, 2, 3, 4, 5, 6, 7] { def R#i : Register<...> } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/TGLexer.h')
-rw-r--r--lib/TableGen/TGLexer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/TableGen/TGLexer.h b/lib/TableGen/TGLexer.h
index 24f8ea4..0246ab6 100644
--- a/lib/TableGen/TGLexer.h
+++ b/lib/TableGen/TGLexer.h
@@ -39,7 +39,8 @@ namespace tgtok {
colon, semi, // : ;
comma, period, // , .
equal, question, // = ?
-
+ paste, // #
+
// Keywords.
Bit, Bits, Class, Code, Dag, Def, Defm, Field, In, Int, Let, List,
MultiClass, String,