33    Streamer.
emitValue(Entry.Value, Entry.Size, Entry.Loc);
 
 
   46    auto CItr = CachedConstantEntries.find(std::make_pair(
C->getValue(), 
Size));
 
   47    if (CItr != CachedConstantEntries.end())
 
   54        CachedSymbolEntries.find(std::make_pair(&(S->
getSymbol()), 
Size));
 
   55    if (SItr != CachedSymbolEntries.end())
 
   59  MCSymbol *CPEntryLabel = Context.createTempSymbol();
 
   64    CachedConstantEntries[std::make_pair(
C->getValue(), 
Size)] = SymRef;
 
   66    CachedSymbolEntries[std::make_pair(&(S->
getSymbol()), 
Size)] = SymRef;
 
 
   73  CachedConstantEntries.clear();
 
   74  CachedSymbolEntries.clear();
 
 
   82  if (CP == ConstantPools.
end())
 
   89AssemblerConstantPools::getOrCreateConstantPool(
MCSection *Section) {
 
   90  return ConstantPools[Section];
 
   97    CP.emitEntries(Streamer);
 
 
  103  for (
auto &CPI : ConstantPools) {
 
 
  127  return getOrCreateConstantPool(Section).addEntry(Expr, Streamer.
getContext(),
 
 
static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, ConstantPool &CP)
void emitAll(MCStreamer &Streamer)
void clearCacheForCurrentSection(MCStreamer &Streamer)
void emitForCurrentSection(MCStreamer &Streamer)
const MCExpr * addEntry(MCStreamer &Streamer, const MCExpr *Expr, unsigned Size, SMLoc Loc)
const MCExpr * addEntry(const MCExpr *Value, MCContext &Context, unsigned Size, SMLoc Loc)
void emitEntries(MCStreamer &Streamer)
Context object for machine code objects.
Base class for the full range of assembler expressions which are needed for parsing.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Streaming machine code generation interface.
MCContext & getContext() const
void emitValue(const MCExpr *Value, unsigned Size, SMLoc Loc=SMLoc())
virtual void emitLabel(MCSymbol *Symbol, SMLoc Loc=SMLoc())
Emit a label for Symbol into the current section.
virtual void emitValueToAlignment(Align Alignment, int64_t Fill=0, uint8_t FillLen=1, unsigned MaxBytesToEmit=0)
Emit some number of copies of Value until the byte alignment ByteAlignment is reached.
virtual void emitDataRegion(MCDataRegionType Kind)
Note in the output the specified region Kind.
virtual void switchSection(MCSection *Section, uint32_t Subsec=0)
Set the current section where code is being emitted to Section.
MCSection * getCurrentSectionOnly() const
Represent a reference to a symbol from inside an expression.
const MCSymbol & getSymbol() const
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx, SMLoc Loc=SMLoc())
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
typename SmallVector< std::pair< MCSection *, ConstantPool >, 0 >::iterator iterator
iterator find(const KeyT &Key)
Represents a location in source code.
LLVM Value Representation.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
@ MCDR_DataRegionEnd
.end_data_region
@ MCDR_DataRegion
.data_region
This struct is a compact representation of a valid (non-zero power of two) alignment.