diff options
author | Tom Stellard <[email protected]> | 2012-07-26 19:20:14 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-08-15 18:35:26 +0000 |
commit | b6051bc7859829588b2361da96f8e828a7fe1326 (patch) | |
tree | dd53237f8a9ff1ea59e723ec906c71725da5aef7 /src/gallium/drivers/radeon/AMDGPUUtil.cpp | |
parent | 040c2e04568e2fe9ec07167f5300a3dcdfebb04e (diff) |
radeon/llvm: Remove AMDGPUUtil.cpp
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUUtil.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDGPUUtil.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUUtil.cpp b/src/gallium/drivers/radeon/AMDGPUUtil.cpp deleted file mode 100644 index 4bbb5e0ce1b..00000000000 --- a/src/gallium/drivers/radeon/AMDGPUUtil.cpp +++ /dev/null @@ -1,41 +0,0 @@ -//===-- AMDGPUUtil.cpp - AMDGPU Utility functions -------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// Common utility functions used by hw codegen targets -// -//===----------------------------------------------------------------------===// - -#include "AMDGPUUtil.h" -#include "AMDGPUInstrInfo.h" -#include "AMDGPURegisterInfo.h" -#include "AMDIL.h" -#include "llvm/CodeGen/MachineFunction.h" -#include "llvm/CodeGen/MachineInstrBuilder.h" -#include "llvm/CodeGen/MachineRegisterInfo.h" -#include "llvm/Target/TargetInstrInfo.h" -#include "llvm/Target/TargetMachine.h" -#include "llvm/Target/TargetRegisterInfo.h" - -using namespace llvm; - -void AMDGPU::utilAddLiveIn(MachineFunction * MF, - MachineRegisterInfo & MRI, - const TargetInstrInfo * TII, - unsigned physReg, unsigned virtReg) -{ - if (!MRI.isLiveIn(physReg)) { - MRI.addLiveIn(physReg, virtReg); - MF->front().addLiveIn(physReg); - BuildMI(MF->front(), MF->front().begin(), DebugLoc(), - TII->get(TargetOpcode::COPY), virtReg) - .addReg(physReg); - } else { - MRI.replaceRegWith(virtReg, MRI.getLiveInVirtReg(physReg)); - } -} |