[llvm-commits] CVS: llvm/utils/TableGen/FileLexer.l IntrinsicEmitter.cpp
Jim Laskey
jlaskey at apple.com
Tue Feb 6 10:03:17 PST 2007
Changes in directory llvm/utils/TableGen:
FileLexer.l updated: 1.33 -> 1.34
IntrinsicEmitter.cpp updated: 1.22 -> 1.23
---
Log message:
Support var arg intrinsics.
---
Diffs of the changes: (+6 -1)
FileLexer.l | 2 +-
IntrinsicEmitter.cpp | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/utils/TableGen/FileLexer.l
diff -u llvm/utils/TableGen/FileLexer.l:1.33 llvm/utils/TableGen/FileLexer.l:1.34
--- llvm/utils/TableGen/FileLexer.l:1.33 Thu Dec 7 16:21:48 2006
+++ llvm/utils/TableGen/FileLexer.l Tue Feb 6 12:02:54 2007
@@ -176,7 +176,7 @@
Comment \/\/.*
-Identifier [a-zA-Z_][0-9a-zA-Z_]*
+Identifier [a-zA-Z_][0-9a-zA-Z_]*|\.\.\.
Integer [-+]?[0-9]+|0x[0-9a-fA-F]+|0b[01]+
CodeFragment \[\{([^}]+|\}[^\]])*\}\]
StringVal \"[^"]*\"
Index: llvm/utils/TableGen/IntrinsicEmitter.cpp
diff -u llvm/utils/TableGen/IntrinsicEmitter.cpp:1.22 llvm/utils/TableGen/IntrinsicEmitter.cpp:1.23
--- llvm/utils/TableGen/IntrinsicEmitter.cpp:1.22 Fri Jan 12 01:05:14 2007
+++ llvm/utils/TableGen/IntrinsicEmitter.cpp Tue Feb 6 12:02:54 2007
@@ -109,6 +109,11 @@
}
static void EmitTypeVerify(std::ostream &OS, Record *ArgType) {
+ if (ArgType->getValueAsString("TypeVal") == "...") {
+ OS << "-2, ";
+ return;
+ }
+
OS << "(int)" << ArgType->getValueAsString("TypeVal") << ", ";
// If this is an integer type, check the width is correct.
if (ArgType->isSubClassOf("LLVMIntegerType"))
More information about the llvm-commits
mailing list