LLVM: lib/MCA/CodeEmitter.cpp Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
14
15namespace llvm {
16namespace mca {
17
18CodeEmitter::EncodingInfo CodeEmitter::getOrCreateEncodingInfo(unsigned MCID) {
19 EncodingInfo &EI = Encodings[MCID];
20 if (EI.second)
21 return EI;
22
24 const MCInst &Inst = Sequence[MCID];
25 EI.first = Code.size();
26 MCE.encodeInstruction(Inst, Code, Fixups, STI);
27 EI.second = Code.size() - EI.first;
28 return EI;
29}
30
31}
32}
A utility class used to compute instruction encodings.
This is an optimization pass for GlobalISel generic memory operations.
class LLVM_GSL_OWNER SmallVector
Forward declaration of SmallVector so that calculateSmallVectorDefaultInlinedElements can reference s...