mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-28 06:58:19 +00:00
Rename var
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6e678b1c8
commit
f746a7d09b
@ -225,21 +225,21 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
|
|||||||
U.FVal = Val;
|
U.FVal = Val;
|
||||||
|
|
||||||
if (Data64bitsDirective)
|
if (Data64bitsDirective)
|
||||||
O << Data64bitsDirective << U.UVal << "\t" << CommentChar
|
O << Data64bitsDirective << U.UVal << "\t" << CommentString
|
||||||
<< " double value: " << Val << "\n";
|
<< " double value: " << Val << "\n";
|
||||||
else if (TD.isBigEndian()) {
|
else if (TD.isBigEndian()) {
|
||||||
O << Data32bitsDirective << unsigned(U.UVal >> 32)
|
O << Data32bitsDirective << unsigned(U.UVal >> 32)
|
||||||
<< "\t" << CommentChar << " double most significant word "
|
<< "\t" << CommentString << " double most significant word "
|
||||||
<< Val << "\n";
|
<< Val << "\n";
|
||||||
O << Data32bitsDirective << unsigned(U.UVal)
|
O << Data32bitsDirective << unsigned(U.UVal)
|
||||||
<< "\t" << CommentChar << " double least significant word "
|
<< "\t" << CommentString << " double least significant word "
|
||||||
<< Val << "\n";
|
<< Val << "\n";
|
||||||
} else {
|
} else {
|
||||||
O << Data32bitsDirective << unsigned(U.UVal)
|
O << Data32bitsDirective << unsigned(U.UVal)
|
||||||
<< "\t" << CommentChar << " double least significant word " << Val
|
<< "\t" << CommentString << " double least significant word " << Val
|
||||||
<< "\n";
|
<< "\n";
|
||||||
O << Data32bitsDirective << unsigned(U.UVal >> 32)
|
O << Data32bitsDirective << unsigned(U.UVal >> 32)
|
||||||
<< "\t" << CommentChar << " double most significant word " << Val
|
<< "\t" << CommentString << " double most significant word " << Val
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -250,7 +250,7 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
|
|||||||
} U;
|
} U;
|
||||||
U.FVal = Val;
|
U.FVal = Val;
|
||||||
|
|
||||||
O << Data32bitsDirective << U.UVal << "\t" << CommentChar
|
O << Data32bitsDirective << U.UVal << "\t" << CommentString
|
||||||
<< " float " << Val << "\n";
|
<< " float " << Val << "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -262,17 +262,17 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
|
|||||||
O << Data64bitsDirective << Val << "\n";
|
O << Data64bitsDirective << Val << "\n";
|
||||||
else if (TD.isBigEndian()) {
|
else if (TD.isBigEndian()) {
|
||||||
O << Data32bitsDirective << unsigned(Val >> 32)
|
O << Data32bitsDirective << unsigned(Val >> 32)
|
||||||
<< "\t" << CommentChar << " Double-word most significant word "
|
<< "\t" << CommentString << " Double-word most significant word "
|
||||||
<< Val << "\n";
|
<< Val << "\n";
|
||||||
O << Data32bitsDirective << unsigned(Val)
|
O << Data32bitsDirective << unsigned(Val)
|
||||||
<< "\t" << CommentChar << " Double-word least significant word "
|
<< "\t" << CommentString << " Double-word least significant word "
|
||||||
<< Val << "\n";
|
<< Val << "\n";
|
||||||
} else {
|
} else {
|
||||||
O << Data32bitsDirective << unsigned(Val)
|
O << Data32bitsDirective << unsigned(Val)
|
||||||
<< "\t" << CommentChar << " Double-word least significant word "
|
<< "\t" << CommentString << " Double-word least significant word "
|
||||||
<< Val << "\n";
|
<< Val << "\n";
|
||||||
O << Data32bitsDirective << unsigned(Val >> 32)
|
O << Data32bitsDirective << unsigned(Val >> 32)
|
||||||
<< "\t" << CommentChar << " Double-word most significant word "
|
<< "\t" << CommentString << " Double-word most significant word "
|
||||||
<< Val << "\n";
|
<< Val << "\n";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -45,7 +45,7 @@ namespace {
|
|||||||
|
|
||||||
PPC32AsmPrinter(std::ostream &O, TargetMachine &TM)
|
PPC32AsmPrinter(std::ostream &O, TargetMachine &TM)
|
||||||
: AsmPrinter(O, TM), LabelNumber(0) {
|
: AsmPrinter(O, TM), LabelNumber(0) {
|
||||||
CommentChar = ";";
|
CommentString = ";";
|
||||||
GlobalPrefix = "_";
|
GlobalPrefix = "_";
|
||||||
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
|
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
|
||||||
Data64bitsDirective = 0; // we can't emit a 64-bit unit
|
Data64bitsDirective = 0; // we can't emit a 64-bit unit
|
||||||
@ -123,7 +123,7 @@ void PPC32AsmPrinter::printConstantPool(MachineConstantPool *MCP) {
|
|||||||
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
||||||
O << "\t.const\n";
|
O << "\t.const\n";
|
||||||
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
||||||
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentChar
|
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
|
||||||
<< *CP[i] << "\n";
|
<< *CP[i] << "\n";
|
||||||
emitGlobalConstant(CP[i]);
|
emitGlobalConstant(CP[i]);
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ bool PPC32AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
// Print a label for the basic block.
|
// Print a label for the basic block.
|
||||||
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
|
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
|
||||||
<< CommentChar << " " << I->getBasicBlock()->getName() << "\n";
|
<< CommentString << " " << I->getBasicBlock()->getName() << "\n";
|
||||||
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
||||||
II != E; ++II) {
|
II != E; ++II) {
|
||||||
// Print the assembly for the instruction.
|
// Print the assembly for the instruction.
|
||||||
|
@ -45,7 +45,7 @@ namespace {
|
|||||||
|
|
||||||
PPC32AsmPrinter(std::ostream &O, TargetMachine &TM)
|
PPC32AsmPrinter(std::ostream &O, TargetMachine &TM)
|
||||||
: AsmPrinter(O, TM), LabelNumber(0) {
|
: AsmPrinter(O, TM), LabelNumber(0) {
|
||||||
CommentChar = ";";
|
CommentString = ";";
|
||||||
GlobalPrefix = "_";
|
GlobalPrefix = "_";
|
||||||
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
|
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
|
||||||
Data64bitsDirective = 0; // we can't emit a 64-bit unit
|
Data64bitsDirective = 0; // we can't emit a 64-bit unit
|
||||||
@ -123,7 +123,7 @@ void PPC32AsmPrinter::printConstantPool(MachineConstantPool *MCP) {
|
|||||||
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
||||||
O << "\t.const\n";
|
O << "\t.const\n";
|
||||||
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
||||||
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentChar
|
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
|
||||||
<< *CP[i] << "\n";
|
<< *CP[i] << "\n";
|
||||||
emitGlobalConstant(CP[i]);
|
emitGlobalConstant(CP[i]);
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ bool PPC32AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
// Print a label for the basic block.
|
// Print a label for the basic block.
|
||||||
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
|
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
|
||||||
<< CommentChar << " " << I->getBasicBlock()->getName() << "\n";
|
<< CommentString << " " << I->getBasicBlock()->getName() << "\n";
|
||||||
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
||||||
II != E; ++II) {
|
II != E; ++II) {
|
||||||
// Print the assembly for the instruction.
|
// Print the assembly for the instruction.
|
||||||
|
@ -150,7 +150,7 @@ void X86AsmPrinter::printConstantPool(MachineConstantPool *MCP) {
|
|||||||
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
||||||
O << "\t.section .rodata\n";
|
O << "\t.section .rodata\n";
|
||||||
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
|
||||||
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentChar
|
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
|
||||||
<< *CP[i] << "\n";
|
<< *CP[i] << "\n";
|
||||||
emitGlobalConstant(CP[i]);
|
emitGlobalConstant(CP[i]);
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
// Print a label for the basic block.
|
// Print a label for the basic block.
|
||||||
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
|
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
|
||||||
<< CommentChar << " " << I->getBasicBlock()->getName() << "\n";
|
<< CommentString << " " << I->getBasicBlock()->getName() << "\n";
|
||||||
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
||||||
II != E; ++II) {
|
II != E; ++II) {
|
||||||
// Print the assembly for the instruction.
|
// Print the assembly for the instruction.
|
||||||
|
Loading…
Reference in New Issue
Block a user