LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AMDGPUMCCodeEmitter.h
Go to the documentation of this file.
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"
20 
21 namespace llvm {
22 
23 class MCInst;
24 class MCOperand;
25 
27  virtual void anchor();
28 public:
29 
30  uint64_t getBinaryCodeForInstr(const MCInst &MI,
32 
33  virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO,
34  SmallVectorImpl<MCFixup> &Fixups) const {
35  return 0;
36  }
37 };
38 
39 } // End namespace llvm
40 
41 #endif // AMDGPUCODEEMITTER_H
uint64_t getBinaryCodeForInstr(const MCInst &MI, SmallVectorImpl< MCFixup > &Fixups) const
virtual uint64_t getMachineOpValue(const MCInst &MI, const MCOperand &MO, SmallVectorImpl< MCFixup > &Fixups) const
MCCodeEmitter - Generic instruction encoding interface.
Definition: MCCodeEmitter.h:22