mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Regenerating.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,9 @@
|
||||
/* A Bison parser, made by GNU Bison 1.875c. */
|
||||
/* A Bison parser, made by GNU Bison 2.3. */
|
||||
|
||||
/* Skeleton parser for Yacc-like parsing with Bison,
|
||||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||
/* Skeleton interface for Bison's Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -15,13 +17,21 @@
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* As a special exception, when this file is copied by Bison into a
|
||||
Bison output file, you may use that output file without restriction.
|
||||
This special exception was added by the Free Software Foundation
|
||||
in version 1.24 of Bison. */
|
||||
/* As a special exception, you may create a larger work that contains
|
||||
part or all of the Bison parser skeleton and distribute that work
|
||||
under terms of your choice, so long as that work isn't itself a
|
||||
parser generator using the skeleton or a modified version thereof
|
||||
as a parser skeleton. Alternatively, if you modify or redistribute
|
||||
the parser skeleton itself, you may (at your option) remove this
|
||||
special exception, which will cause the skeleton and the resulting
|
||||
Bison output files to be licensed under the GNU General Public
|
||||
License without this special exception.
|
||||
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
/* Tokens. */
|
||||
#ifndef YYTOKENTYPE
|
||||
@@ -180,6 +190,7 @@
|
||||
BITCAST = 406
|
||||
};
|
||||
#endif
|
||||
/* Tokens. */
|
||||
#define ESINT64VAL 258
|
||||
#define EUINT64VAL 259
|
||||
#define SINTVAL 260
|
||||
@@ -333,9 +344,10 @@
|
||||
|
||||
|
||||
|
||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||
#line 1776 "/users/dag/projects/cascade/llvm.modified/tools/llvm-upgrade/UpgradeParser.y"
|
||||
typedef union YYSTYPE {
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
#line 1748 "/home/chandlerc/code/compilers/llvm/tools/llvm-upgrade/UpgradeParser.y"
|
||||
{
|
||||
llvm::Module *ModuleVal;
|
||||
llvm::Function *FunctionVal;
|
||||
std::pair<llvm::PATypeInfo, char*> *ArgVal;
|
||||
@@ -375,9 +387,10 @@ typedef union YYSTYPE {
|
||||
llvm::ICmpInst::Predicate IPred;
|
||||
llvm::FCmpInst::Predicate FPred;
|
||||
llvm::Module::Endianness Endianness;
|
||||
} YYSTYPE;
|
||||
/* Line 1268 of yacc.c. */
|
||||
#line 381 "UpgradeParser.tab.h"
|
||||
}
|
||||
/* Line 1489 of yacc.c. */
|
||||
#line 393 "UpgradeParser.tab.h"
|
||||
YYSTYPE;
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
@@ -385,5 +398,3 @@ typedef union YYSTYPE {
|
||||
|
||||
extern YYSTYPE Upgradelval;
|
||||
|
||||
|
||||
|
||||
|
@@ -1472,34 +1472,6 @@ upgradeIntrinsicCall(const Type* RetTy, const ValID &ID,
|
||||
return new FCmpInst(FCmpInst::FCMP_UNO, Args[0], Args[1]);
|
||||
}
|
||||
break;
|
||||
case 'b':
|
||||
if (Name.length() == 14 && !memcmp(&Name[5], "bswap.i", 7)) {
|
||||
const Type* ArgTy = Args[0]->getType();
|
||||
Name += ".i" + utostr(cast<IntegerType>(ArgTy)->getBitWidth());
|
||||
Function *F = cast<Function>(
|
||||
CurModule.CurrentModule->getOrInsertFunction(Name, RetTy, ArgTy,
|
||||
(void*)0));
|
||||
return new CallInst(F, Args[0]);
|
||||
}
|
||||
break;
|
||||
case 'c':
|
||||
if ((Name.length() <= 14 && !memcmp(&Name[5], "ctpop.i", 7)) ||
|
||||
(Name.length() <= 13 && !memcmp(&Name[5], "ctlz.i", 6)) ||
|
||||
(Name.length() <= 13 && !memcmp(&Name[5], "cttz.i", 6))) {
|
||||
// These intrinsics changed their result type.
|
||||
const Type* ArgTy = Args[0]->getType();
|
||||
Function *OldF = CurModule.CurrentModule->getFunction(Name);
|
||||
if (OldF)
|
||||
OldF->setName("upgrd.rm." + Name);
|
||||
|
||||
Function *NewF = cast<Function>(
|
||||
CurModule.CurrentModule->getOrInsertFunction(Name, Type::Int32Ty,
|
||||
ArgTy, (void*)0));
|
||||
|
||||
Instruction *Call = new CallInst(NewF, Args[0], "", CurBB);
|
||||
return CastInst::createIntegerCast(Call, RetTy, false);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'v' : {
|
||||
const Type* PtrTy = PointerType::get(Type::Int8Ty);
|
||||
|
Reference in New Issue
Block a user