2014-03-07 01:33:58 +08:00
|
|
|
//===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----*- C++ -*-===//
|
2012-12-12 05:25:42 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
/// \brief CodeEmitter interface for R600 and SI codegen.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef AMDGPUCODEEMITTER_H
|
|
|
|
#define AMDGPUCODEEMITTER_H
|
|
|
|
|
|
|
|
#include "llvm/MC/MCCodeEmitter.h"
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MCInst;
|
|
|
|
class MCOperand;
|
2014-01-29 07:13:18 +08:00
|
|
|
class MCSubtargetInfo;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
class AMDGPUMCCodeEmitter : public MCCodeEmitter {
|
2013-11-19 08:57:56 +08:00
|
|
|
virtual void anchor();
|
2012-12-12 05:25:42 +08:00
|
|
|
public:
|
|
|
|
|
|
|
|
uint64_t getBinaryCodeForInstr(const MCInst &MI,
|
2014-01-29 07:13:18 +08:00
|
|
|
SmallVectorImpl<MCFixup> &Fixups,
|
|
|
|
const MCSubtargetInfo &STI) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
|
2014-01-29 07:13:18 +08:00
|
|
|
SmallVectorImpl<MCFixup> &Fixups,
|
|
|
|
const MCSubtargetInfo &STI) const {
|
2012-12-12 05:25:42 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End namespace llvm
|
|
|
|
|
|
|
|
#endif // AMDGPUCODEEMITTER_H
|