LLVM  3.7.0
AMDGPUMCCodeEmitter.h
Go to the documentation of this file.
1 //===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter 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 /// \file
11 /// \brief CodeEmitter interface for R600 and SI codegen.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCCODEEMITTER_H
16 #define LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCCODEEMITTER_H
17 
18 #include "llvm/MC/MCCodeEmitter.h"
20 
21 namespace llvm {
22 
23 class MCInst;
24 class MCOperand;
25 class MCSubtargetInfo;
26 
28  virtual void anchor();
29 public:
30 
31  uint64_t getBinaryCodeForInstr(const MCInst &MI,
33  const MCSubtargetInfo &STI) const;
34 
35  virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
37  const MCSubtargetInfo &STI) const {
38  return 0;
39  }
40 
41  virtual unsigned getSOPPBrEncoding(const MCInst &MI, unsigned OpNo,
43  const MCSubtargetInfo &STI) const {
44  return 0;
45  }
46 };
47 
48 } // End namespace llvm
49 
50 #endif
virtual unsigned getSOPPBrEncoding(const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: APInt.h:33
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:150
MCCodeEmitter - Generic instruction encoding interface.
Definition: MCCodeEmitter.h:23
virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
uint64_t getBinaryCodeForInstr(const MCInst &MI, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
MCSubtargetInfo - Generic base class for all target subtargets.
Instances of this class represent operands of the MCInst class.
Definition: MCInst.h:33