Skip to content

Commit

Permalink
AMDGPU: Remove AMDGPUMCInstLower.h
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tstellar committed May 25, 2018
1 parent 8174281 commit 79fffe3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 48 deletions.
24 changes: 23 additions & 1 deletion llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
//===----------------------------------------------------------------------===//
//

#include "AMDGPUMCInstLower.h"
#include "AMDGPUAsmPrinter.h"
#include "AMDGPUSubtarget.h"
#include "AMDGPUTargetMachine.h"
Expand All @@ -38,6 +37,29 @@

using namespace llvm;

namespace {

class AMDGPUMCInstLower {
MCContext &Ctx;
const AMDGPUSubtarget &ST;
const AsmPrinter ≈

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,
Expand Down
46 changes: 0 additions & 46 deletions llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h

This file was deleted.

1 change: 0 additions & 1 deletion llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//

#include "AMDGPU.h"
#include "AMDGPUMCInstLower.h"
#include "AMDGPUSubtarget.h"
#include "SIInstrInfo.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
Expand Down

0 comments on commit 79fffe3

Please sign in to comment.