mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
GCC 3.1 changes, finally the burm file builds the FIRST time a clean directory is built.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b1443b1749
commit
b82d97ebc3
@ -1,14 +1,21 @@
|
|||||||
LEVEL = ../../..
|
LEVEL = ../../..
|
||||||
LIBRARYNAME = sparc
|
LIBRARYNAME = sparc
|
||||||
|
ExtraSource = Debug/Sparc.burm.cpp
|
||||||
|
|
||||||
ExtraSource = Sparc.burm.cpp
|
#all:: Debug/Sparc.burg
|
||||||
|
#all:: Sparc.burm.cpp
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
|
Debug/Sparc.burm.cpp: Debug/Sparc.burm
|
||||||
|
$(RunBurg) $< -o $@
|
||||||
|
|
||||||
|
Debug/Sparc.burm.o: Debug/Sparc.burm.cpp
|
||||||
|
$(CompileG) $< -o $@
|
||||||
|
|
||||||
Debug/Sparc.burg.in1 : Sparc.burg.in Debug/.dir
|
Debug/Sparc.burg.in1 : Sparc.burg.in Debug/.dir
|
||||||
g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Ydefine/#define/' > $@
|
g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Ydefine/#define/' > $@
|
||||||
|
|
||||||
Debug/Sparc.burg : Debug/Sparc.burg.in1 Debug/.dir
|
Debug/Sparc.burm : Debug/Sparc.burg.in1 Debug/.dir
|
||||||
g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Xinclude/#include/g' | sed 's/Xdefine/#define/g' > $@
|
g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Xinclude/#include/g' | sed 's/Xdefine/#define/g' > $@
|
||||||
|
|
||||||
Depend/Sparc.burm.d:
|
Depend/Sparc.burm.d:
|
||||||
|
@ -236,7 +236,7 @@ CreateUIntSetInstruction(const TargetMachine& target,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif SIGN_EXTEND_FOR_UNSIGNED_DEST
|
#endif /*SIGN_EXTEND_FOR_UNSIGNED_DEST*/
|
||||||
|
|
||||||
CreateSETUWConst(target, C, dest, mvec);
|
CreateSETUWConst(target, C, dest, mvec);
|
||||||
}
|
}
|
||||||
|
@ -418,6 +418,7 @@ public:
|
|||||||
else if (ureg < 1 +100) { regClassID = IntCCRegClassID; return ureg-100;}
|
else if (ureg < 1 +100) { regClassID = IntCCRegClassID; return ureg-100;}
|
||||||
else if (ureg == InvalidRegNum) { return InvalidRegNum; }
|
else if (ureg == InvalidRegNum) { return InvalidRegNum; }
|
||||||
else { assert(0 && "Invalid unified register number"); }
|
else { assert(0 && "Invalid unified register number"); }
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the assembly-language name of the specified machine register.
|
// Returns the assembly-language name of the specified machine register.
|
||||||
|
@ -168,6 +168,7 @@ UltraSparcRegInfo::regNumForFPArg(unsigned regType,
|
|||||||
InvalidRegNum : SparcFloatRegOrder::f0 + (argNo * 2);
|
InvalidRegNum : SparcFloatRegOrder::f0 + (argNo * 2);
|
||||||
else
|
else
|
||||||
assert(0 && "Illegal FP register type");
|
assert(0 && "Illegal FP register type");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,7 +225,7 @@ int UltraSparcRegInfo::getRegType(int unifiedRegNum) const {
|
|||||||
// To find the register class used for a specified Type
|
// To find the register class used for a specified Type
|
||||||
//
|
//
|
||||||
unsigned UltraSparcRegInfo::getRegClassIDOfType(const Type *type,
|
unsigned UltraSparcRegInfo::getRegClassIDOfType(const Type *type,
|
||||||
bool isCCReg = false) const {
|
bool isCCReg) const {
|
||||||
Type::PrimitiveID ty = type->getPrimitiveID();
|
Type::PrimitiveID ty = type->getPrimitiveID();
|
||||||
unsigned res;
|
unsigned res;
|
||||||
|
|
||||||
@ -1116,7 +1117,7 @@ UltraSparcRegInfo::cpReg2MemMI(vector<MachineInstr*>& mvec,
|
|||||||
unsigned SrcReg,
|
unsigned SrcReg,
|
||||||
unsigned DestPtrReg,
|
unsigned DestPtrReg,
|
||||||
int Offset, int RegType,
|
int Offset, int RegType,
|
||||||
int scratchReg = -1) const {
|
int scratchReg) const {
|
||||||
MachineInstr * MI = NULL;
|
MachineInstr * MI = NULL;
|
||||||
switch( RegType ) {
|
switch( RegType ) {
|
||||||
case IntRegType:
|
case IntRegType:
|
||||||
@ -1185,7 +1186,7 @@ UltraSparcRegInfo::cpMem2RegMI(vector<MachineInstr*>& mvec,
|
|||||||
int Offset,
|
int Offset,
|
||||||
unsigned DestReg,
|
unsigned DestReg,
|
||||||
int RegType,
|
int RegType,
|
||||||
int scratchReg = -1) const {
|
int scratchReg) const {
|
||||||
MachineInstr * MI = NULL;
|
MachineInstr * MI = NULL;
|
||||||
switch (RegType) {
|
switch (RegType) {
|
||||||
case IntRegType:
|
case IntRegType:
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "llvm/CodeGen/MachineCodeForInstruction.h"
|
#include "llvm/CodeGen/MachineCodeForInstruction.h"
|
||||||
#include "llvm/CodeGen/MachineCodeForMethod.h"
|
#include "llvm/CodeGen/MachineCodeForMethod.h"
|
||||||
#include "llvm/CodeGen/RegisterAllocation.h"
|
#include "llvm/CodeGen/RegisterAllocation.h"
|
||||||
#include "llvm/CodeGen/MappingInfo.h"
|
//#include "llvm/CodeGen/MappingInfo.h"
|
||||||
#include "llvm/Function.h"
|
#include "llvm/Function.h"
|
||||||
#include "llvm/BasicBlock.h"
|
#include "llvm/BasicBlock.h"
|
||||||
#include "llvm/PassManager.h"
|
#include "llvm/PassManager.h"
|
||||||
@ -197,7 +197,7 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
|
|||||||
|
|
||||||
PM.add(createPrologEpilogCodeInserter(*this));
|
PM.add(createPrologEpilogCodeInserter(*this));
|
||||||
|
|
||||||
PM.add(MappingInfoForFunction(Out));
|
//PM.add(MappingInfoForFunction(Out));
|
||||||
|
|
||||||
// Output assembly language to the .s file. Assembly emission is split into
|
// Output assembly language to the .s file. Assembly emission is split into
|
||||||
// two parts: Function output and Global value output. This is because
|
// two parts: Function output and Global value output. This is because
|
||||||
|
Loading…
x
Reference in New Issue
Block a user