LLVM
5.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lib
Target
Hexagon
MCTargetDesc
HexagonMCShuffler.h
Go to the documentation of this file.
1
//=-- HexagonMCShuffler.h ---------------------------------------------------=//
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
// This declares the shuffling of insns inside a bundle according to the
11
// packet formation rules of the Hexagon ISA.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#ifndef HEXAGONMCSHUFFLER_H
16
#define HEXAGONMCSHUFFLER_H
17
18
#include "
MCTargetDesc/HexagonShuffler.h
"
19
20
namespace
llvm {
21
class
MCInst
;
22
// Insn bundle shuffler.
23
class
HexagonMCShuffler
:
public
HexagonShuffler
{
24
public
:
25
HexagonMCShuffler
(
MCContext
&
Context
,
bool
Fatal,
MCInstrInfo
const
&
MCII
,
26
MCSubtargetInfo
const
&
STI
,
MCInst
&MCB)
27
:
HexagonShuffler
(Context, Fatal, MCII, STI) {
28
init(MCB);
29
};
30
HexagonMCShuffler
(
MCContext
&
Context
,
bool
Fatal,
MCInstrInfo
const
&
MCII
,
31
MCSubtargetInfo
const
&
STI
,
MCInst
&MCB,
32
MCInst
const
&AddMI,
bool
InsertAtFront)
33
:
HexagonShuffler
(Context, Fatal, MCII, STI) {
34
init(MCB, AddMI, InsertAtFront);
35
};
36
37
// Copy reordered bundle to another.
38
void
copyTo
(
MCInst
&MCB);
39
// Reorder and copy result to another.
40
bool
reshuffleTo
(
MCInst
&MCB);
41
42
private
:
43
void
init(
MCInst
&MCB);
44
void
init(
MCInst
&MCB,
MCInst
const
&AddMI,
bool
InsertAtFront);
45
};
46
47
// Invocation of the shuffler.
48
bool
HexagonMCShuffle
(
MCContext
&
Context
,
bool
Fatal,
MCInstrInfo
const
&MCII,
49
MCSubtargetInfo
const
&STI,
MCInst
&);
50
bool
HexagonMCShuffle
(
MCContext
&
Context
,
MCInstrInfo
const
&MCII,
51
MCSubtargetInfo
const
&STI,
MCInst
&,
MCInst
const
&,
52
int
);
53
bool
HexagonMCShuffle
(
MCContext
&
Context
,
MCInstrInfo
const
&MCII,
54
MCSubtargetInfo
const
&STI,
MCInst
&,
55
SmallVector<DuplexCandidate, 8>
);
56
}
// namespace llvm
57
58
#endif // HEXAGONMCSHUFFLER_H
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:72
HexagonShuffler.h
llvm::HexagonMCShuffler::reshuffleTo
bool reshuffleTo(MCInst &MCB)
Definition:
HexagonMCShuffler.cpp:91
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:59
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition:
MCInst.h:159
llvm::HexagonShuffler::STI
MCSubtargetInfo const & STI
Definition:
HexagonShuffler.h:144
llvm::HexagonMCShuffler
Definition:
HexagonMCShuffler.h:23
llvm::MCInstrInfo
Interface to description of machine instruction set.
Definition:
MCInstrInfo.h:24
llvm::HexagonMCShuffler::HexagonMCShuffler
HexagonMCShuffler(MCContext &Context, bool Fatal, MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCInst &MCB)
Definition:
HexagonMCShuffler.h:25
llvm::HexagonShuffler::MCII
MCInstrInfo const & MCII
Definition:
HexagonShuffler.h:143
llvm::SmallVector
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Definition:
SmallVector.h:861
llvm::HexagonShuffler::Context
MCContext & Context
Definition:
HexagonShuffler.h:141
llvm::HexagonShuffler
Definition:
HexagonShuffler.h:130
llvm::HexagonMCShuffle
bool HexagonMCShuffle(MCContext &Context, bool Fatal, MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCInst &)
Definition:
HexagonMCShuffler.cpp:101
llvm::MCSubtargetInfo
MCSubtargetInfo - Generic base class for all target subtargets.
Definition:
MCSubtargetInfo.h:37
llvm::HexagonMCShuffler::HexagonMCShuffler
HexagonMCShuffler(MCContext &Context, bool Fatal, MCInstrInfo const &MCII, MCSubtargetInfo const &STI, MCInst &MCB, MCInst const &AddMI, bool InsertAtFront)
Definition:
HexagonMCShuffler.h:30
llvm::HexagonMCShuffler::copyTo
void copyTo(MCInst &MCB)
Definition:
HexagonMCShuffler.cpp:76
Generated on Fri Sep 1 2017 14:14:38 for LLVM by
1.8.6