mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +00:00
Patches towards fixing PR341
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14841 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30b4344767
commit
76e2df2645
@ -273,7 +273,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
|
||||
case Type::FloatTyID: return Out << "float " << NameSoFar;
|
||||
case Type::DoubleTyID: return Out << "double " << NameSoFar;
|
||||
default :
|
||||
std::cerr << "Unknown primitive type: " << Ty << "\n";
|
||||
std::cerr << "Unknown primitive type: " << *Ty << "\n";
|
||||
abort();
|
||||
}
|
||||
|
||||
@ -517,7 +517,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
|
||||
default:
|
||||
std::cerr << "CWriter Error: Unhandled constant expression: "
|
||||
<< CE << "\n";
|
||||
<< *CE << "\n";
|
||||
abort();
|
||||
}
|
||||
}
|
||||
@ -626,7 +626,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
}
|
||||
// FALL THROUGH
|
||||
default:
|
||||
std::cerr << "Unknown constant type: " << CPV << "\n";
|
||||
std::cerr << "Unknown constant type: " << *CPV << "\n";
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ std::ostream &CWriter::printType(std::ostream &Out, const Type *Ty,
|
||||
case Type::FloatTyID: return Out << "float " << NameSoFar;
|
||||
case Type::DoubleTyID: return Out << "double " << NameSoFar;
|
||||
default :
|
||||
std::cerr << "Unknown primitive type: " << Ty << "\n";
|
||||
std::cerr << "Unknown primitive type: " << *Ty << "\n";
|
||||
abort();
|
||||
}
|
||||
|
||||
@ -517,7 +517,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
|
||||
default:
|
||||
std::cerr << "CWriter Error: Unhandled constant expression: "
|
||||
<< CE << "\n";
|
||||
<< *CE << "\n";
|
||||
abort();
|
||||
}
|
||||
}
|
||||
@ -626,7 +626,7 @@ void CWriter::printConstant(Constant *CPV) {
|
||||
}
|
||||
// FALL THROUGH
|
||||
default:
|
||||
std::cerr << "Unknown constant type: " << CPV << "\n";
|
||||
std::cerr << "Unknown constant type: " << *CPV << "\n";
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,8 @@
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
LEVEL = ../../..
|
||||
LIBRARYNAME = powerpc
|
||||
LIBRARYNAME = powerpc2
|
||||
SHARED_LIBRARY=1
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
# Make sure that tblgen is run, first thing.
|
||||
|
@ -529,7 +529,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
unsigned AddrReg = getReg(CPR->getValue(), MBB, IP);
|
||||
BuildMI(*MBB, IP, PPC32::OR, 2, R).addReg(AddrReg).addReg(AddrReg);
|
||||
} else {
|
||||
std::cerr << "Offending constant: " << C << "\n";
|
||||
std::cerr << "Offending constant: " << *C << "\n";
|
||||
assert(0 && "Type not handled yet!");
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ using namespace llvm;
|
||||
|
||||
namespace {
|
||||
// Register the target.
|
||||
RegisterTarget<PowerPCTargetMachine> X("powerpc", " PowerPC (experimental)");
|
||||
RegisterTarget<PowerPCTargetMachine> X("powerpc2", " PowerPC X (experimental)");
|
||||
}
|
||||
|
||||
unsigned PowerPCTargetMachine::getJITMatchQuality() {
|
||||
|
@ -529,7 +529,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
unsigned AddrReg = getReg(CPR->getValue(), MBB, IP);
|
||||
BuildMI(*MBB, IP, PPC32::OR, 2, R).addReg(AddrReg).addReg(AddrReg);
|
||||
} else {
|
||||
std::cerr << "Offending constant: " << C << "\n";
|
||||
std::cerr << "Offending constant: " << *C << "\n";
|
||||
assert(0 && "Type not handled yet!");
|
||||
}
|
||||
}
|
||||
|
@ -124,21 +124,21 @@ void
|
||||
VRegNode::dumpNode(int indent) const {
|
||||
for (int i=0; i < indent; i++)
|
||||
std::cerr << " ";
|
||||
std::cerr << "VReg " << getValue() << "\n";
|
||||
std::cerr << "VReg " << *getValue() << "\n";
|
||||
}
|
||||
|
||||
void
|
||||
ConstantNode::dumpNode(int indent) const {
|
||||
for (int i=0; i < indent; i++)
|
||||
std::cerr << " ";
|
||||
std::cerr << "Constant " << getValue() << "\n";
|
||||
std::cerr << "Constant " << *getValue() << "\n";
|
||||
}
|
||||
|
||||
void LabelNode::dumpNode(int indent) const {
|
||||
for (int i=0; i < indent; i++)
|
||||
std::cerr << " ";
|
||||
|
||||
std::cerr << "Label " << getValue() << "\n";
|
||||
std::cerr << "Label " << *getValue() << "\n";
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
@ -507,7 +507,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
return;
|
||||
|
||||
default:
|
||||
std::cerr << "Offending expr: " << C << "\n";
|
||||
std::cerr << "Offending expr: " << *C << "\n";
|
||||
assert(0 && "Constant expression not yet handled!\n");
|
||||
}
|
||||
}
|
||||
@ -557,7 +557,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
} else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(C)) {
|
||||
BuildMI(*MBB, IP, X86::MOV32ri, 1, R).addGlobalAddress(CPR->getValue());
|
||||
} else {
|
||||
std::cerr << "Offending constant: " << C << "\n";
|
||||
std::cerr << "Offending constant: " << *C << "\n";
|
||||
assert(0 && "Type not handled yet!");
|
||||
}
|
||||
}
|
||||
|
@ -507,7 +507,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
return;
|
||||
|
||||
default:
|
||||
std::cerr << "Offending expr: " << C << "\n";
|
||||
std::cerr << "Offending expr: " << *C << "\n";
|
||||
assert(0 && "Constant expression not yet handled!\n");
|
||||
}
|
||||
}
|
||||
@ -557,7 +557,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
} else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(C)) {
|
||||
BuildMI(*MBB, IP, X86::MOV32ri, 1, R).addGlobalAddress(CPR->getValue());
|
||||
} else {
|
||||
std::cerr << "Offending constant: " << C << "\n";
|
||||
std::cerr << "Offending constant: " << *C << "\n";
|
||||
assert(0 && "Type not handled yet!");
|
||||
}
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
return;
|
||||
|
||||
default:
|
||||
std::cerr << "Offending expr: " << C << "\n";
|
||||
std::cerr << "Offending expr: " << *C << "\n";
|
||||
assert(0 && "Constant expression not yet handled!\n");
|
||||
}
|
||||
}
|
||||
@ -483,7 +483,7 @@ void ISel::copyConstantToRegister(MachineBasicBlock *MBB,
|
||||
} else if (ConstantPointerRef *CPR = dyn_cast<ConstantPointerRef>(C)) {
|
||||
BuildMI(*MBB, IP, X86::MOV32ri, 1, R).addGlobalAddress(CPR->getValue());
|
||||
} else {
|
||||
std::cerr << "Offending constant: " << C << "\n";
|
||||
std::cerr << "Offending constant: " << *C << "\n";
|
||||
assert(0 && "Type not handled yet!");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user