Go to the documentation of this file.
33 Streamer.
emitValue(Entry.Value, Entry.Size, Entry.Loc);
40 unsigned Size,
SMLoc Loc) {
44 auto Itr =
C ? CachedEntries.find(
C->getValue()) : CachedEntries.end();
45 if (Itr != CachedEntries.end())
53 CachedEntries[
C->getValue()] = SymRef;
60 CachedEntries.clear();
68 if (
CP == ConstantPools.
end())
75 AssemblerConstantPools::getOrCreateConstantPool(
MCSection *Section) {
76 return ConstantPools[Section];
83 CP.emitEntries(Streamer);
89 for (
auto &CPI : ConstantPools) {
111 unsigned Size,
SMLoc Loc) {
typename std::vector< std::pair< MCSection *, ConstantPool >> ::iterator iterator
virtual void emitDataRegion(MCDataRegionType Kind)
Note in the output the specified region Kind.
This is an optimization pass for GlobalISel generic memory operations.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Context object for machine code objects.
void clearCacheForCurrentSection(MCStreamer &Streamer)
static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, ConstantPool &CP)
void emitValue(const MCExpr *Value, unsigned Size, SMLoc Loc=SMLoc())
const MCExpr * addEntry(MCStreamer &Streamer, const MCExpr *Expr, unsigned Size, SMLoc Loc)
Streaming machine code generation interface.
@ MCDR_DataRegion
.data_region
Represents a location in source code.
(vector float) vec_cmpeq(*A, *B) C
virtual void emitLabel(MCSymbol *Symbol, SMLoc Loc=SMLoc())
Emit a label for Symbol into the current section.
void emitEntries(MCStreamer &Streamer)
MCSection * getCurrentSectionOnly() const
void emitAll(MCStreamer &Streamer)
iterator find(const KeyT &Key)
Instances of this class represent a uniqued identifier for a section in the current translation unit.
void emitForCurrentSection(MCStreamer &Streamer)
const MCExpr * addEntry(const MCExpr *Value, MCContext &Context, unsigned Size, SMLoc Loc)
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
MCContext & getContext() const
virtual void emitValueToAlignment(unsigned ByteAlignment, int64_t Value=0, unsigned ValueSize=1, unsigned MaxBytesToEmit=0)
Emit some number of copies of Value until the byte alignment ByteAlignment is reached.
@ MCDR_DataRegionEnd
.end_data_region
virtual void SwitchSection(MCSection *Section, const MCExpr *Subsection=nullptr)
Set the current section where code is being emitted to Section.
LLVM Value Representation.
Base class for the full range of assembler expressions which are needed for parsing.