mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Support var arg intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -176,7 +176,7 @@ using namespace llvm;
|
||||
|
||||
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 \"[^"]*\"
|
||||
|
||||
@@ -109,6 +109,11 @@ EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints,
|
||||
}
|
||||
|
||||
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"))
|
||||
|
||||
Reference in New Issue
Block a user