mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Target/R600: Un-tab-ify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb2280e4c7
commit
661bd3df75
@ -231,7 +231,7 @@ class Constants {
|
||||
int TWO_PI = 0x40c90fdb;
|
||||
int PI = 0x40490fdb;
|
||||
int TWO_PI_INV = 0x3e22f983;
|
||||
int FP_UINT_MAX_PLUS_1 = 0x4f800000; // 1 << 32 in floating point encoding
|
||||
int FP_UINT_MAX_PLUS_1 = 0x4f800000; // 1 << 32 in floating point encoding
|
||||
}
|
||||
def CONST : Constants;
|
||||
|
||||
|
@ -1834,7 +1834,7 @@ SDNode *R600TargetLowering::PostISelFolding(MachineSDNode *Node,
|
||||
std::vector<SDValue> Ops;
|
||||
for(SDNode::op_iterator I = Node->op_begin(), E = Node->op_end();
|
||||
I != E; ++I)
|
||||
Ops.push_back(*I);
|
||||
Ops.push_back(*I);
|
||||
|
||||
if (Opcode == AMDGPU::DOT_4) {
|
||||
int OperandIdx[] = {
|
||||
@ -1846,7 +1846,7 @@ SDNode *R600TargetLowering::PostISelFolding(MachineSDNode *Node,
|
||||
TII->getOperandIdx(Opcode, AMDGPU::OpName::src1_Y),
|
||||
TII->getOperandIdx(Opcode, AMDGPU::OpName::src1_Z),
|
||||
TII->getOperandIdx(Opcode, AMDGPU::OpName::src1_W)
|
||||
};
|
||||
};
|
||||
int NegIdx[] = {
|
||||
TII->getOperandIdx(Opcode, AMDGPU::OpName::src0_neg_X),
|
||||
TII->getOperandIdx(Opcode, AMDGPU::OpName::src0_neg_Y),
|
||||
@ -1899,7 +1899,7 @@ SDNode *R600TargetLowering::PostISelFolding(MachineSDNode *Node,
|
||||
std::vector<SDValue> Ops;
|
||||
unsigned NumOp = Src.getNumOperands();
|
||||
for(unsigned i = 0; i < NumOp; ++i)
|
||||
Ops.push_back(Src.getOperand(i));
|
||||
Ops.push_back(Src.getOperand(i));
|
||||
Ops[ClampIdx - 1] = DAG.getTargetConstant(1, MVT::i32);
|
||||
return DAG.getMachineNode(Src.getMachineOpcode(), SDLoc(Node),
|
||||
Node->getVTList(), Ops);
|
||||
|
@ -118,14 +118,14 @@ SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
|
||||
|
||||
} else if (AMDGPU::VReg_32RegClass.contains(DestReg)) {
|
||||
assert(AMDGPU::VReg_32RegClass.contains(SrcReg) ||
|
||||
AMDGPU::SReg_32RegClass.contains(SrcReg));
|
||||
AMDGPU::SReg_32RegClass.contains(SrcReg));
|
||||
BuildMI(MBB, MI, DL, get(AMDGPU::V_MOV_B32_e32), DestReg)
|
||||
.addReg(SrcReg, getKillRegState(KillSrc));
|
||||
return;
|
||||
|
||||
} else if (AMDGPU::VReg_64RegClass.contains(DestReg)) {
|
||||
assert(AMDGPU::VReg_64RegClass.contains(SrcReg) ||
|
||||
AMDGPU::SReg_64RegClass.contains(SrcReg));
|
||||
AMDGPU::SReg_64RegClass.contains(SrcReg));
|
||||
Opcode = AMDGPU::V_MOV_B32_e32;
|
||||
SubIndices = Sub0_1;
|
||||
|
||||
@ -136,19 +136,19 @@ SIInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
|
||||
|
||||
} else if (AMDGPU::VReg_128RegClass.contains(DestReg)) {
|
||||
assert(AMDGPU::VReg_128RegClass.contains(SrcReg) ||
|
||||
AMDGPU::SReg_128RegClass.contains(SrcReg));
|
||||
AMDGPU::SReg_128RegClass.contains(SrcReg));
|
||||
Opcode = AMDGPU::V_MOV_B32_e32;
|
||||
SubIndices = Sub0_3;
|
||||
|
||||
} else if (AMDGPU::VReg_256RegClass.contains(DestReg)) {
|
||||
assert(AMDGPU::VReg_256RegClass.contains(SrcReg) ||
|
||||
AMDGPU::SReg_256RegClass.contains(SrcReg));
|
||||
AMDGPU::SReg_256RegClass.contains(SrcReg));
|
||||
Opcode = AMDGPU::V_MOV_B32_e32;
|
||||
SubIndices = Sub0_7;
|
||||
|
||||
} else if (AMDGPU::VReg_512RegClass.contains(DestReg)) {
|
||||
assert(AMDGPU::VReg_512RegClass.contains(SrcReg) ||
|
||||
AMDGPU::SReg_512RegClass.contains(SrcReg));
|
||||
AMDGPU::SReg_512RegClass.contains(SrcReg));
|
||||
Opcode = AMDGPU::V_MOV_B32_e32;
|
||||
SubIndices = Sub0_15;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user