AMDGPUMCCodeEmitter.h revision b21ab43cfc3fa0dacf5c95f04e58b6d804b59a16
1//===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----------------===// 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 AMDGPUCODEEMITTER_H 16#define AMDGPUCODEEMITTER_H 17 18#include "llvm/MC/MCCodeEmitter.h" 19#include "llvm/Support/raw_ostream.h" 20 21namespace llvm { 22 23class MCInst; 24class MCOperand; 25 26class AMDGPUMCCodeEmitter : public MCCodeEmitter { 27public: 28 29 uint64_t getBinaryCodeForInstr(const MCInst &MI, 30 SmallVectorImpl<MCFixup> &Fixups) const; 31 32 virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO, 33 SmallVectorImpl<MCFixup> &Fixups) const { 34 return 0; 35 } 36}; 37 38} // End namespace llvm 39 40#endif // AMDGPUCODEEMITTER_H 41