mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 03:33:42 +00:00
valgrind clean version of llvm-upgrade
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32090 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e77e35e8b1
commit
d154b57ab4
@ -26,5 +26,8 @@ test:
|
||||
llvm-dis > upgrade.ll -f
|
||||
diff source.ll upgrade.ll > diff.out
|
||||
|
||||
valgrind:
|
||||
valgrind ../../Debug/bin/llvm-upgrade -o /dev/null -f $(TESTCASE)
|
||||
|
||||
$(PROJ_SRC_DIR)/UpgradeParser.h: $(PROJ_SRC_DIR)/UpgradeParser.y
|
||||
$(PROJ_SRC_DIR)/UpgradeParser.cpp: $(PROJ_SRC_DIR)/UpgradeParser.y
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -280,8 +280,10 @@ Types : UpRTypes ;
|
||||
//
|
||||
PrimType : BOOL | SBYTE | UBYTE | SHORT | USHORT | INT | UINT ;
|
||||
PrimType : LONG | ULONG | FLOAT | DOUBLE | LABEL;
|
||||
UpRTypes : OPAQUE | PrimType | SymbolicValueRef {
|
||||
$$.newTy = $1; };
|
||||
UpRTypes : OPAQUE | PrimType
|
||||
| SymbolicValueRef {
|
||||
$$.newTy = $1; $$.oldTy = OpaqueTy;
|
||||
};
|
||||
|
||||
// Include derived types in the Types production.
|
||||
//
|
||||
@ -549,12 +551,13 @@ DefinitionList : DefinitionList Function {
|
||||
}
|
||||
| DefinitionList MODULE ASM_TOK AsmBlock {
|
||||
*O << "module asm " << " " << *$4 << "\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| DefinitionList IMPLEMENTATION {
|
||||
*O << "implementation\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| ConstPool {
|
||||
};
|
||||
| ConstPool;
|
||||
|
||||
// ConstPool - Constants with optional names assigned to them.
|
||||
ConstPool : ConstPool OptAssign TYPE TypesV {
|
||||
@ -690,9 +693,7 @@ ArgList : ArgListH {
|
||||
| DOTDOTDOT {
|
||||
$$ = $1;
|
||||
}
|
||||
| /* empty */ {
|
||||
$$ = new std::string();
|
||||
};
|
||||
| /* empty */ { $$ = new std::string(); };
|
||||
|
||||
FunctionHeaderH : OptCallingConv TypesV Name '(' ArgList ')'
|
||||
OptSection OptAlign {
|
||||
@ -760,10 +761,8 @@ FunctionProto
|
||||
// Rules to match Basic Blocks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
OptSideEffect : /* empty */ {
|
||||
}
|
||||
| SIDEEFFECT {
|
||||
};
|
||||
OptSideEffect : /* empty */ { $$ = new std::string(); }
|
||||
| SIDEEFFECT;
|
||||
|
||||
ConstValueRef
|
||||
: ESINT64VAL { $$ = $1.cnst; }
|
||||
|
@ -280,8 +280,10 @@ Types : UpRTypes ;
|
||||
//
|
||||
PrimType : BOOL | SBYTE | UBYTE | SHORT | USHORT | INT | UINT ;
|
||||
PrimType : LONG | ULONG | FLOAT | DOUBLE | LABEL;
|
||||
UpRTypes : OPAQUE | PrimType | SymbolicValueRef {
|
||||
$$.newTy = $1; };
|
||||
UpRTypes : OPAQUE | PrimType
|
||||
| SymbolicValueRef {
|
||||
$$.newTy = $1; $$.oldTy = OpaqueTy;
|
||||
};
|
||||
|
||||
// Include derived types in the Types production.
|
||||
//
|
||||
@ -549,12 +551,13 @@ DefinitionList : DefinitionList Function {
|
||||
}
|
||||
| DefinitionList MODULE ASM_TOK AsmBlock {
|
||||
*O << "module asm " << " " << *$4 << "\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| DefinitionList IMPLEMENTATION {
|
||||
*O << "implementation\n";
|
||||
$$ = 0;
|
||||
}
|
||||
| ConstPool {
|
||||
};
|
||||
| ConstPool;
|
||||
|
||||
// ConstPool - Constants with optional names assigned to them.
|
||||
ConstPool : ConstPool OptAssign TYPE TypesV {
|
||||
@ -690,9 +693,7 @@ ArgList : ArgListH {
|
||||
| DOTDOTDOT {
|
||||
$$ = $1;
|
||||
}
|
||||
| /* empty */ {
|
||||
$$ = new std::string();
|
||||
};
|
||||
| /* empty */ { $$ = new std::string(); };
|
||||
|
||||
FunctionHeaderH : OptCallingConv TypesV Name '(' ArgList ')'
|
||||
OptSection OptAlign {
|
||||
@ -760,10 +761,8 @@ FunctionProto
|
||||
// Rules to match Basic Blocks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
OptSideEffect : /* empty */ {
|
||||
}
|
||||
| SIDEEFFECT {
|
||||
};
|
||||
OptSideEffect : /* empty */ { $$ = new std::string(); }
|
||||
| SIDEEFFECT;
|
||||
|
||||
ConstValueRef
|
||||
: ESINT64VAL { $$ = $1.cnst; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user