mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
* Remove trailing whitespace
* Convert tabs to spaces git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21418 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -168,7 +168,7 @@ inline void BytecodeWriter::output_double(double& DoubleVal) {
|
||||
}
|
||||
|
||||
inline BytecodeBlock::BytecodeBlock(unsigned ID, BytecodeWriter& w,
|
||||
bool elideIfEmpty, bool hasLongFormat )
|
||||
bool elideIfEmpty, bool hasLongFormat )
|
||||
: Id(ID), Writer(w), ElideIfEmpty(elideIfEmpty), HasLongFormat(hasLongFormat){
|
||||
|
||||
if (HasLongFormat) {
|
||||
@@ -181,7 +181,7 @@ inline BytecodeBlock::BytecodeBlock(unsigned ID, BytecodeWriter& w,
|
||||
}
|
||||
|
||||
inline BytecodeBlock::~BytecodeBlock() { // Do backpatch when block goes out
|
||||
// of scope...
|
||||
// of scope...
|
||||
if (Loc == Writer.size() && ElideIfEmpty) {
|
||||
// If the block is empty, and we are allowed to, do not emit the block at
|
||||
// all!
|
||||
@@ -497,9 +497,9 @@ void BytecodeWriter::outputInstructionFormat0(const Instruction *I,
|
||||
// Format: [opcode] [type] [numargs] [arg0] [arg1] ... [arg<numargs-1>]
|
||||
//
|
||||
void BytecodeWriter::outputInstrVarArgsCall(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
const SlotCalculator &Table,
|
||||
unsigned Type) {
|
||||
unsigned Opcode,
|
||||
const SlotCalculator &Table,
|
||||
unsigned Type) {
|
||||
assert(isa<CallInst>(I) || isa<InvokeInst>(I));
|
||||
// Opcode must have top two bits clear...
|
||||
output_vbr(Opcode << 2); // Instruction Opcode ID
|
||||
@@ -548,9 +548,9 @@ void BytecodeWriter::outputInstrVarArgsCall(const Instruction *I,
|
||||
// operand index is >= 2^12.
|
||||
//
|
||||
inline void BytecodeWriter::outputInstructionFormat1(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) {
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) {
|
||||
// bits Instruction format:
|
||||
// --------------------------
|
||||
// 01-00: Opcode type, fixed to 1.
|
||||
@@ -566,9 +566,9 @@ inline void BytecodeWriter::outputInstructionFormat1(const Instruction *I,
|
||||
// operand index is >= 2^8.
|
||||
//
|
||||
inline void BytecodeWriter::outputInstructionFormat2(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) {
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) {
|
||||
// bits Instruction format:
|
||||
// --------------------------
|
||||
// 01-00: Opcode type, fixed to 2.
|
||||
@@ -586,8 +586,8 @@ inline void BytecodeWriter::outputInstructionFormat2(const Instruction *I,
|
||||
//
|
||||
inline void BytecodeWriter::outputInstructionFormat3(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) {
|
||||
unsigned *Slots,
|
||||
unsigned Type) {
|
||||
// bits Instruction format:
|
||||
// --------------------------
|
||||
// 01-00: Opcode type, fixed to 3.
|
||||
|
@@ -47,24 +47,24 @@ private:
|
||||
void outputInstructions(const Function *F);
|
||||
void outputInstruction(const Instruction &I);
|
||||
void outputInstructionFormat0(const Instruction *I, unsigned Opcode,
|
||||
const SlotCalculator &Table,
|
||||
unsigned Type);
|
||||
const SlotCalculator &Table,
|
||||
unsigned Type);
|
||||
void outputInstrVarArgsCall(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
const SlotCalculator &Table,
|
||||
unsigned Type) ;
|
||||
unsigned Opcode,
|
||||
const SlotCalculator &Table,
|
||||
unsigned Type) ;
|
||||
inline void outputInstructionFormat1(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) ;
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) ;
|
||||
inline void outputInstructionFormat2(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) ;
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) ;
|
||||
inline void outputInstructionFormat3(const Instruction *I,
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) ;
|
||||
unsigned Opcode,
|
||||
unsigned *Slots,
|
||||
unsigned Type) ;
|
||||
|
||||
void outputModuleInfoBlock(const Module *C);
|
||||
void outputSymbolTable(const SymbolTable &ST);
|
||||
|
Reference in New Issue
Block a user