1 //===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----------------===//
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 AMDGPUCODEEMITTER_H
16 #define AMDGPUCODEEMITTER_H
18 #include "llvm/MC/MCCodeEmitter.h"
19 #include "llvm/Support/raw_ostream.h"
26 class AMDGPUMCCodeEmitter : public MCCodeEmitter {
27 virtual void anchor();
30 uint64_t getBinaryCodeForInstr(const MCInst &MI,
31 SmallVectorImpl<MCFixup> &Fixups) const;
33 virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
34 SmallVectorImpl<MCFixup> &Fixups) const {
39 } // End namespace llvm
41 #endif // AMDGPUCODEEMITTER_H