LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
lib
Target
AMDGPU
AMDGPUMCInstLower.h
Go to the documentation of this file.
1
//===- AMDGPUMCInstLower.h MachineInstr Lowering Interface ------*- C++ -*-===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H
11
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H
12
13
namespace
llvm {
14
15
class
AMDGPUSubtarget;
16
class
AsmPrinter;
17
class
MachineBasicBlock;
18
class
MachineInstr;
19
class
MachineOperand;
20
class
MCContext;
21
class
MCExpr;
22
class
MCInst;
23
class
MCOperand;
24
25
class
AMDGPUMCInstLower
{
26
MCContext
&Ctx;
27
const
AMDGPUSubtarget
&ST;
28
const
AsmPrinter
≈
29
30
const
MCExpr
*getLongBranchBlockExpr(
const
MachineBasicBlock
&SrcBB,
31
const
MachineOperand
&MO)
const
;
32
33
public
:
34
AMDGPUMCInstLower
(
MCContext
&ctx,
const
AMDGPUSubtarget
&ST,
35
const
AsmPrinter
&AP);
36
37
bool
lowerOperand
(
const
MachineOperand
&MO,
MCOperand
&MCOp)
const
;
38
39
/// \brief Lower a MachineInstr to an MCInst
40
void
lower
(
const
MachineInstr
*
MI
,
MCInst
&OutMI)
const
;
41
42
};
43
44
}
// End namespace llvm
45
46
#endif
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:34
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:51
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition:
MCInst.h:150
llvm::AsmPrinter
This class is intended to be used as a driving class for all asm writers.
Definition:
AsmPrinter.h:67
llvm::MachineBasicBlock
Definition:
MachineBasicBlock.h:56
llvm::MachineOperand
MachineOperand class - Representation of each machine instruction operand.
Definition:
MachineOperand.h:46
llvm::MachineInstr
Representation of each machine instruction.
Definition:
MachineInstr.h:52
llvm::AMDGPUMCInstLower::lower
void lower(const MachineInstr *MI, MCInst &OutMI) const
Lower a MachineInstr to an MCInst.
Definition:
AMDGPUMCInstLower.cpp:128
llvm::AMDGPUSubtarget
Definition:
AMDGPUSubtarget.h:44
MI
IRTranslator LLVM IR MI
Definition:
IRTranslator.cpp:40
llvm::MCOperand
Instances of this class represent operands of the MCInst class.
Definition:
MCInst.h:33
llvm::AMDGPUMCInstLower::AMDGPUMCInstLower
AMDGPUMCInstLower(MCContext &ctx, const AMDGPUSubtarget &ST, const AsmPrinter &AP)
Definition:
AMDGPUMCInstLower.cpp:42
llvm::AMDGPUMCInstLower
Definition:
AMDGPUMCInstLower.h:25
llvm::AMDGPUMCInstLower::lowerOperand
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const
Definition:
AMDGPUMCInstLower.cpp:84
Generated on Wed Mar 8 2017 17:05:35 for LLVM by
1.8.6