LLVM
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
include
llvm
MC
MCCodeEmitter.h
Go to the documentation of this file.
1
//===-- llvm/MC/MCCodeEmitter.h - Instruction Encoding ----------*- C++ -*-===//
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
#ifndef LLVM_MC_MCCODEEMITTER_H
11
#define LLVM_MC_MCCODEEMITTER_H
12
13
#include "
llvm/Support/Compiler.h
"
14
15
namespace
llvm {
16
class
MCFixup;
17
class
MCInst;
18
class
MCSubtargetInfo;
19
class
raw_ostream;
20
template
<
typename
T>
class
SmallVectorImpl;
21
22
/// MCCodeEmitter - Generic instruction encoding interface.
23
class
MCCodeEmitter
{
24
private
:
25
MCCodeEmitter
(
const
MCCodeEmitter
&) =
delete
;
26
void
operator=(
const
MCCodeEmitter
&) =
delete
;
27
28
protected
:
// Can only create subclasses.
29
MCCodeEmitter
();
30
31
public
:
32
virtual
~MCCodeEmitter
();
33
34
/// Lifetime management
35
virtual
void
reset
() {}
36
37
/// EncodeInstruction - Encode the given \p Inst to bytes on the output
38
/// stream \p OS.
39
virtual
void
encodeInstruction
(
const
MCInst
&Inst,
raw_ostream
&OS,
40
SmallVectorImpl<MCFixup>
&
Fixups
,
41
const
MCSubtargetInfo
&STI)
const
= 0;
42
};
43
44
}
// End llvm namespace
45
46
#endif
llvm::AArch64::Fixups
Fixups
Definition:
AArch64FixupKinds.h:18
llvm::MCCodeEmitter::encodeInstruction
virtual void encodeInstruction(const MCInst &Inst, raw_ostream &OS, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
EncodeInstruction - Encode the given Inst to bytes on the output stream OS.
llvm::SmallVectorImpl
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition:
APInt.h:33
llvm::MCCodeEmitter::MCCodeEmitter
MCCodeEmitter()
Definition:
MCCodeEmitter.cpp:14
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition:
MCInst.h:150
llvm::MCCodeEmitter::reset
virtual void reset()
Lifetime management.
Definition:
MCCodeEmitter.h:35
Compiler.h
llvm::MCCodeEmitter
MCCodeEmitter - Generic instruction encoding interface.
Definition:
MCCodeEmitter.h:23
llvm::MCCodeEmitter::~MCCodeEmitter
virtual ~MCCodeEmitter()
Definition:
MCCodeEmitter.cpp:17
llvm::MCSubtargetInfo
MCSubtargetInfo - Generic base class for all target subtargets.
Definition:
MCSubtargetInfo.h:29
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition:
raw_ostream.h:38
Generated on Mon Aug 31 2015 11:04:08 for LLVM by
1.8.6