diff options
author | Tom Stellard <tstellar@redhat.com> | 2018-05-25 04:57:02 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2018-05-25 04:57:02 +0000 |
commit | 79fffe351561eaa837a81abe5a55284ae9b4472f (patch) | |
tree | 661e86d3e31b803a1a53e041064bb497083c0212 | |
parent | 8174281b939481f0d734b9a4614243dc93fd5f6b (diff) | |
download | bcm5719-llvm-79fffe351561eaa837a81abe5a55284ae9b4472f.tar.gz bcm5719-llvm-79fffe351561eaa837a81abe5a55284ae9b4472f.zip |
AMDGPU: Remove AMDGPUMCInstLower.h
Summary:
The AMDGPUMCInstLower class is not used outside AMDGPUMCInstLower.cpp,
so we don't need a header file.
Reviewers: arsenm, nhaehnle
Reviewed By: arsenm
Subscribers: kzhuravl, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits
Differential Revision: https://reviews.llvm.org/D47264
llvm-svn: 333254
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp | 24 | ||||
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h | 46 | ||||
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp | 1 |
3 files changed, 23 insertions, 48 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp index 8c3149b04e9..26a0726cfe9 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp @@ -13,7 +13,6 @@ //===----------------------------------------------------------------------===// // -#include "AMDGPUMCInstLower.h" #include "AMDGPUAsmPrinter.h" #include "AMDGPUSubtarget.h" #include "AMDGPUTargetMachine.h" @@ -38,6 +37,29 @@ using namespace llvm; +namespace { + +class AMDGPUMCInstLower { + MCContext &Ctx; + const AMDGPUSubtarget &ST; + const AsmPrinter &AP; + + const MCExpr *getLongBranchBlockExpr(const MachineBasicBlock &SrcBB, + const MachineOperand &MO) const; + +public: + AMDGPUMCInstLower(MCContext &ctx, const AMDGPUSubtarget &ST, + const AsmPrinter &AP); + + bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; + + /// Lower a MachineInstr to an MCInst + void lower(const MachineInstr *MI, MCInst &OutMI) const; + +}; + +} // End anonymous namespace + #include "AMDGPUGenMCPseudoLowering.inc" AMDGPUMCInstLower::AMDGPUMCInstLower(MCContext &ctx, const AMDGPUSubtarget &st, diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h b/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h deleted file mode 100644 index ea70e636b30..00000000000 --- a/llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h +++ /dev/null @@ -1,46 +0,0 @@ -//===- AMDGPUMCInstLower.h MachineInstr Lowering Interface ------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H -#define LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H - -namespace llvm { - -class AMDGPUSubtarget; -class AsmPrinter; -class MachineBasicBlock; -class MachineInstr; -class MachineOperand; -class MCContext; -class MCExpr; -class MCInst; -class MCOperand; - -class AMDGPUMCInstLower { - MCContext &Ctx; - const AMDGPUSubtarget &ST; - const AsmPrinter &AP; - - const MCExpr *getLongBranchBlockExpr(const MachineBasicBlock &SrcBB, - const MachineOperand &MO) const; - -public: - AMDGPUMCInstLower(MCContext &ctx, const AMDGPUSubtarget &ST, - const AsmPrinter &AP); - - bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; - - /// Lower a MachineInstr to an MCInst - void lower(const MachineInstr *MI, MCInst &OutMI) const; - -}; - -} // End namespace llvm - -#endif diff --git a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp index acd1f9fbec2..b78bcc05d78 100644 --- a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp +++ b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp @@ -10,7 +10,6 @@ // #include "AMDGPU.h" -#include "AMDGPUMCInstLower.h" #include "AMDGPUSubtarget.h" #include "SIInstrInfo.h" #include "MCTargetDesc/AMDGPUMCTargetDesc.h" |