mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 03:32:21 +00:00
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e5affd263
commit
bb1fd5770d
File diff suppressed because it is too large
Load Diff
@ -51,7 +51,12 @@
|
|||||||
|
|
||||||
#define RET_TY(sym,NewTY,sign) \
|
#define RET_TY(sym,NewTY,sign) \
|
||||||
Upgradelval.PrimType.T = NewTY; \
|
Upgradelval.PrimType.T = NewTY; \
|
||||||
Upgradelval.PrimType.S = sign; \
|
switch (sign) { \
|
||||||
|
case 0: Upgradelval.PrimType.S.makeSignless(); break; \
|
||||||
|
case 1: Upgradelval.PrimType.S.makeUnsigned(); break; \
|
||||||
|
case 2: Upgradelval.PrimType.S.makeSigned(); break; \
|
||||||
|
default: assert(0 && "Invalid sign kind"); break; \
|
||||||
|
}\
|
||||||
return sym
|
return sym
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
@ -238,24 +243,24 @@ coldcc { return COLDCC_TOK; }
|
|||||||
x86_stdcallcc { return X86_STDCALLCC_TOK; }
|
x86_stdcallcc { return X86_STDCALLCC_TOK; }
|
||||||
x86_fastcallcc { return X86_FASTCALLCC_TOK; }
|
x86_fastcallcc { return X86_FASTCALLCC_TOK; }
|
||||||
|
|
||||||
sbyte { RET_TY(SBYTE, Type::Int8Ty, Signed); }
|
sbyte { RET_TY(SBYTE, Type::Int8Ty, 2); }
|
||||||
ubyte { RET_TY(UBYTE, Type::Int8Ty, Unsigned); }
|
ubyte { RET_TY(UBYTE, Type::Int8Ty, 1); }
|
||||||
i8 { RET_TY(UBYTE, Type::Int8Ty, Unsigned); }
|
i8 { RET_TY(UBYTE, Type::Int8Ty, 1); }
|
||||||
short { RET_TY(SHORT, Type::Int16Ty, Signed); }
|
short { RET_TY(SHORT, Type::Int16Ty, 2); }
|
||||||
ushort { RET_TY(USHORT, Type::Int16Ty, Unsigned); }
|
ushort { RET_TY(USHORT, Type::Int16Ty, 1); }
|
||||||
i16 { RET_TY(USHORT, Type::Int16Ty, Unsigned); }
|
i16 { RET_TY(USHORT, Type::Int16Ty, 1); }
|
||||||
int { RET_TY(INT, Type::Int32Ty, Signed); }
|
int { RET_TY(INT, Type::Int32Ty, 2); }
|
||||||
uint { RET_TY(UINT, Type::Int32Ty, Unsigned); }
|
uint { RET_TY(UINT, Type::Int32Ty, 1); }
|
||||||
i32 { RET_TY(UINT, Type::Int32Ty, Unsigned); }
|
i32 { RET_TY(UINT, Type::Int32Ty, 1); }
|
||||||
long { RET_TY(LONG, Type::Int64Ty, Signed); }
|
long { RET_TY(LONG, Type::Int64Ty, 2); }
|
||||||
ulong { RET_TY(ULONG, Type::Int64Ty, Unsigned); }
|
ulong { RET_TY(ULONG, Type::Int64Ty, 1); }
|
||||||
i64 { RET_TY(ULONG, Type::Int64Ty, Unsigned); }
|
i64 { RET_TY(ULONG, Type::Int64Ty, 1); }
|
||||||
void { RET_TY(VOID, Type::VoidTy, Signless ); }
|
void { RET_TY(VOID, Type::VoidTy, 0); }
|
||||||
bool { RET_TY(BOOL, Type::Int1Ty, Unsigned ); }
|
bool { RET_TY(BOOL, Type::Int1Ty, 1); }
|
||||||
i1 { RET_TY(BOOL, Type::Int1Ty, Unsigned ); }
|
i1 { RET_TY(BOOL, Type::Int1Ty, 1); }
|
||||||
float { RET_TY(FLOAT, Type::FloatTy, Signless ); }
|
float { RET_TY(FLOAT, Type::FloatTy, 0); }
|
||||||
double { RET_TY(DOUBLE, Type::DoubleTy,Signless); }
|
double { RET_TY(DOUBLE, Type::DoubleTy,0); }
|
||||||
label { RET_TY(LABEL, Type::LabelTy, Signless ); }
|
label { RET_TY(LABEL, Type::LabelTy, 0); }
|
||||||
type { return TYPE; }
|
type { return TYPE; }
|
||||||
opaque { return OPAQUE; }
|
opaque { return OPAQUE; }
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -335,13 +335,13 @@
|
|||||||
|
|
||||||
|
|
||||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||||
#line 1454 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
#line 1693 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
||||||
typedef union YYSTYPE {
|
typedef union YYSTYPE {
|
||||||
llvm::Module *ModuleVal;
|
llvm::Module *ModuleVal;
|
||||||
llvm::Function *FunctionVal;
|
llvm::Function *FunctionVal;
|
||||||
std::pair<llvm::PATypeInfo, char*> *ArgVal;
|
std::pair<llvm::PATypeInfo, char*> *ArgVal;
|
||||||
llvm::BasicBlock *BasicBlockVal;
|
llvm::BasicBlock *BasicBlockVal;
|
||||||
llvm::TerminatorInst *TermInstVal;
|
llvm::TermInstInfo TermInstVal;
|
||||||
llvm::InstrInfo InstVal;
|
llvm::InstrInfo InstVal;
|
||||||
llvm::ConstInfo ConstVal;
|
llvm::ConstInfo ConstVal;
|
||||||
llvm::ValueInfo ValueVal;
|
llvm::ValueInfo ValueVal;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user