mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Fix coding style violations. Remove white spaces and tabs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1418045472
commit
864f66085c
@ -115,7 +115,8 @@ public:
|
||||
CurVal |= (uint64_t)((uint8_t)Data[Offset + Idx]) << (i*8);
|
||||
}
|
||||
|
||||
uint64_t Mask = ((uint64_t)(-1) >> (64 - getFixupKindInfo(Kind).TargetSize));
|
||||
uint64_t Mask = ((uint64_t)(-1) >>
|
||||
(64 - getFixupKindInfo(Kind).TargetSize));
|
||||
CurVal |= Value & Mask;
|
||||
|
||||
// Write out the fixed up bytes back to the code/data bits.
|
||||
|
@ -144,7 +144,8 @@ void MipsDAGToDAGISel::InitGlobalBaseReg(MachineFunction &MF) {
|
||||
const GlobalValue *FName = MF.getFunction();
|
||||
BuildMI(MBB, I, DL, TII.get(Mips::LUi64), V0)
|
||||
.addGlobalAddress(FName, 0, MipsII::MO_GPOFF_HI);
|
||||
BuildMI(MBB, I, DL, TII.get(Mips::DADDu), V1).addReg(V0).addReg(Mips::T9_64);
|
||||
BuildMI(MBB, I, DL, TII.get(Mips::DADDu), V1).addReg(V0)
|
||||
.addReg(Mips::T9_64);
|
||||
BuildMI(MBB, I, DL, TII.get(Mips::DADDiu), GlobalBaseReg).addReg(V1)
|
||||
.addGlobalAddress(FName, 0, MipsII::MO_GPOFF_LO);
|
||||
MII->storeRegToStackSlot(MBB, I, GlobalBaseReg, false, FI, RC,
|
||||
@ -352,7 +353,8 @@ SelectAddr(SDNode *Parent, SDValue Addr, SDValue &Base, SDValue &Offset) {
|
||||
}
|
||||
|
||||
// If an indexed floating point load/store can be emitted, return false.
|
||||
if (LS && (LS->getMemoryVT() == MVT::f32 || LS->getMemoryVT() == MVT::f64) &&
|
||||
if (LS &&
|
||||
(LS->getMemoryVT() == MVT::f32 || LS->getMemoryVT() == MVT::f64) &&
|
||||
Subtarget.hasMips32r2Or64())
|
||||
return false;
|
||||
}
|
||||
|
@ -2051,8 +2051,8 @@ SDValue MipsTargetLowering::LowerShiftLeftParts(SDValue Op,
|
||||
SDValue ShiftLeftLo = DAG.getNode(ISD::SHL, DL, MVT::i32, Lo, Shamt);
|
||||
SDValue Cond = DAG.getNode(ISD::AND, DL, MVT::i32, Shamt,
|
||||
DAG.getConstant(0x20, MVT::i32));
|
||||
Lo = DAG.getNode(ISD::SELECT, DL, MVT::i32, Cond, DAG.getConstant(0, MVT::i32),
|
||||
ShiftLeftLo);
|
||||
Lo = DAG.getNode(ISD::SELECT, DL, MVT::i32, Cond,
|
||||
DAG.getConstant(0, MVT::i32), ShiftLeftLo);
|
||||
Hi = DAG.getNode(ISD::SELECT, DL, MVT::i32, Cond, ShiftLeftLo, Or);
|
||||
|
||||
SDValue Ops[2] = {Lo, Hi};
|
||||
|
@ -146,7 +146,8 @@ namespace llvm {
|
||||
SDValue LowerMEMBARRIER(SDValue Op, SelectionDAG& DAG) const;
|
||||
SDValue LowerATOMIC_FENCE(SDValue Op, SelectionDAG& DAG) const;
|
||||
SDValue LowerShiftLeftParts(SDValue Op, SelectionDAG& DAG) const;
|
||||
SDValue LowerShiftRightParts(SDValue Op, SelectionDAG& DAG, bool IsSRA) const;
|
||||
SDValue LowerShiftRightParts(SDValue Op, SelectionDAG& DAG,
|
||||
bool IsSRA) const;
|
||||
SDValue LowerLOAD(SDValue Op, SelectionDAG &DAG) const;
|
||||
SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const;
|
||||
|
||||
|
@ -105,8 +105,8 @@ MCOperand MipsMCInstLower::LowerSymbolOperand(const MachineOperand &MO,
|
||||
assert(Offset > 0);
|
||||
|
||||
const MCConstantExpr *OffsetExpr = MCConstantExpr::Create(Offset, *Ctx);
|
||||
const MCBinaryExpr *AddExpr = MCBinaryExpr::CreateAdd(MCSym, OffsetExpr, *Ctx);
|
||||
return MCOperand::CreateExpr(AddExpr);
|
||||
const MCBinaryExpr *Add = MCBinaryExpr::CreateAdd(MCSym, OffsetExpr, *Ctx);
|
||||
return MCOperand::CreateExpr(Add);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -55,8 +55,7 @@ unsigned MipsRegisterInfo::getPICCallReg() { return Mips::T9; }
|
||||
|
||||
/// Mips Callee Saved Registers
|
||||
const uint16_t* MipsRegisterInfo::
|
||||
getCalleeSavedRegs(const MachineFunction *MF) const
|
||||
{
|
||||
getCalleeSavedRegs(const MachineFunction *MF) const {
|
||||
if (Subtarget.isSingleFloat())
|
||||
return CSR_SingleFloatOnly_SaveList;
|
||||
else if (!Subtarget.hasMips64())
|
||||
@ -69,8 +68,7 @@ getCalleeSavedRegs(const MachineFunction *MF) const
|
||||
}
|
||||
|
||||
const uint32_t*
|
||||
MipsRegisterInfo::getCallPreservedMask(CallingConv::ID) const
|
||||
{
|
||||
MipsRegisterInfo::getCallPreservedMask(CallingConv::ID) const {
|
||||
if (Subtarget.isSingleFloat())
|
||||
return CSR_SingleFloatOnly_RegMask;
|
||||
else if (!Subtarget.hasMips64())
|
||||
|
@ -69,9 +69,7 @@ namespace llvm {
|
||||
|
||||
// Pass Pipeline Configuration
|
||||
virtual TargetPassConfig *createPassConfig(PassManagerBase &PM);
|
||||
virtual bool addCodeEmitter(PassManagerBase &PM,
|
||||
JITCodeEmitter &JCE);
|
||||
|
||||
virtual bool addCodeEmitter(PassManagerBase &PM, JITCodeEmitter &JCE);
|
||||
};
|
||||
|
||||
/// MipsebTargetMachine - Mips32 big endian target machine.
|
||||
|
Loading…
x
Reference in New Issue
Block a user