1 //===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief CodeEmitter interface for R600 and SI codegen.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCCODEEMITTER_H
16 #define LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCCODEEMITTER_H
18 #include "llvm/MC/MCCodeEmitter.h"
19 #include "llvm/Support/raw_ostream.h"
25 class MCSubtargetInfo;
27 class AMDGPUMCCodeEmitter : public MCCodeEmitter {
28 virtual void anchor();
31 uint64_t getBinaryCodeForInstr(const MCInst &MI,
32 SmallVectorImpl<MCFixup> &Fixups,
33 const MCSubtargetInfo &STI) const;
35 virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
36 SmallVectorImpl<MCFixup> &Fixups,
37 const MCSubtargetInfo &STI) const {
41 virtual unsigned getSOPPBrEncoding(const MCInst &MI, unsigned OpNo,
42 SmallVectorImpl<MCFixup> &Fixups,
43 const MCSubtargetInfo &STI) const {
48 } // End namespace llvm