LLVM  6.0.0svn
Functions
MCAsmStreamer.cpp File Reference
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCCodeView.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixupKindInfo.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSectionCOFF.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/SourceMgr.h"
#include <cctype>
Include dependency graph for MCAsmStreamer.cpp:

Go to the source code of this file.

Functions

static int64_t truncateToSize (int64_t Value, unsigned Bytes)
 
static char toOctal (int X)
 
static void PrintQuotedString (StringRef Data, raw_ostream &OS)
 
static void PrintCFIEscape (llvm::formatted_raw_ostream &OS, StringRef Values)
 

Function Documentation

◆ PrintCFIEscape()

static void PrintCFIEscape ( llvm::formatted_raw_ostream OS,
StringRef  Values 
)
static

Definition at line 1320 of file MCAsmStreamer.cpp.

References assert(), llvm::StringRef::back(), llvm::tgtok::Bit, llvm::MCInst::dump_pretty(), llvm::MCGenDwarfInfo::Emit(), llvm::MCStreamer::EmitCFIAdjustCfaOffset(), llvm::MCStreamer::EmitCFIDefCfaRegister(), llvm::MCStreamer::EmitCFIEscape(), llvm::MCStreamer::EmitCFIGnuArgsSize(), llvm::MCStreamer::EmitCFILsda(), llvm::MCStreamer::EmitCFIOffset(), llvm::MCStreamer::EmitCFIPersonality(), llvm::MCStreamer::EmitCFIRegister(), llvm::MCStreamer::EmitCFIRelOffset(), llvm::MCStreamer::EmitCFIRememberState(), llvm::MCStreamer::EmitCFIRestoreState(), llvm::MCStreamer::EmitCFIReturnColumn(), llvm::MCStreamer::EmitCFISameValue(), llvm::MCStreamer::EmitCFISignalFrame(), llvm::MCStreamer::EmitCFIUndefined(), llvm::MCStreamer::EmitCFIWindowSave(), llvm::MCStreamer::EmitWinCFIAllocStack(), llvm::MCStreamer::EmitWinCFIEndChained(), llvm::MCStreamer::EmitWinCFIEndProc(), llvm::MCStreamer::EmitWinCFIEndProlog(), llvm::MCStreamer::EmitWinCFIPushFrame(), llvm::MCStreamer::EmitWinCFIPushReg(), llvm::MCStreamer::EmitWinCFISaveReg(), llvm::MCStreamer::EmitWinCFISaveXMM(), llvm::MCStreamer::EmitWinCFISetFrame(), llvm::MCStreamer::EmitWinCFIStartChained(), llvm::MCStreamer::EmitWinCFIStartProc(), llvm::MCStreamer::EmitWinEHHandler(), llvm::MCStreamer::EmitWinEHHandlerData(), llvm::StringRef::empty(), llvm::encodeULEB128(), F(), llvm::format(), llvm::WinEH::FrameInfo::Function, llvm::MCFixup::getKind(), llvm::MCFixup::getOffset(), llvm::MCSubtargetInfo::getSchedInfoStr(), llvm::MCSymbol::getSection(), llvm::MCFixup::getValue(), llvm::MCAsmInfo::isLittleEndian(), llvm::MCFixupKindInfo::Name, llvm::MCExpr::print(), llvm::MCSymbol::print(), Register, llvm::SmallVectorImpl< T >::resize(), SI, llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::StringRef::size(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, llvm::pdb::String, llvm::StringRef::substr(), llvm::MCFixupKindInfo::TargetOffset, and llvm::MCFixupKindInfo::TargetSize.

◆ PrintQuotedString()

static void PrintQuotedString ( StringRef  Data,
raw_ostream OS 
)
static

Definition at line 737 of file MCAsmStreamer.cpp.

References llvm::alignTo(), llvm::sys::path::append(), assert(), llvm::StringRef::back(), llvm::LCOMM::ByteAlignment, C, llvm::lltok::ChecksumKind, llvm::MCConstantExpr::create(), llvm::Data, Debug, DWARF2_FLAG_BASIC_BLOCK, DWARF2_FLAG_EPILOGUE_BEGIN, DWARF2_FLAG_IS_STMT, DWARF2_FLAG_PROLOGUE_END, E, llvm::MCStreamer::EmitCFIDefCfa(), llvm::MCStreamer::EmitCFIDefCfaOffset(), llvm::MCStreamer::EmitCFIEndProcImpl(), llvm::MCStreamer::EmitCFISections(), llvm::MCStreamer::EmitCVDefRangeDirective(), llvm::MCStreamer::EmitCVFuncIdDirective(), llvm::MCStreamer::EmitCVInlineLinetableDirective(), llvm::MCStreamer::EmitCVInlineSiteIdDirective(), llvm::MCStreamer::EmitCVLinetableDirective(), llvm::MCStreamer::EmitCVLocDirective(), llvm::MCStreamer::EmitDwarfLocDirective(), llvm::MCStreamer::emitFill(), llvm::StringRef::empty(), llvm::format(), llvm::MCAsmInfo::getAsciiDirective(), llvm::MCAsmInfo::getAscizDirective(), llvm::MCAsmInfo::getCommentColumn(), llvm::MCAsmInfo::getCommentString(), llvm::MCAsmInfo::getData16bitsDirective(), llvm::MCAsmInfo::getData32bitsDirective(), llvm::MCAsmInfo::getData64bitsDirective(), llvm::MCAsmInfo::getData8bitsDirective(), llvm::MCAsmInfo::getDTPRel32Directive(), llvm::MCAsmInfo::getDTPRel64Directive(), llvm::MCStreamer::getDwarfLineTableSymbol(), llvm::MCDwarfLineTable::getFile(), llvm::MCAsmInfo::getGPRel32Directive(), llvm::MCAsmInfo::getGPRel64Directive(), llvm::MCRegisterInfo::getLLVMRegNum(), llvm::MCDwarfLineTable::getMCDwarfFiles(), llvm::MCAsmInfo::getTextAlignFillValue(), llvm::MCAsmInfo::getTPRel32Directive(), llvm::MCAsmInfo::getTPRel64Directive(), llvm::MCAsmInfo::getZeroDirective(), llvm::MCAsmInfo::hasIdentDirective(), llvm::MCAsmInfo::hasSingleParameterDotFile(), I, llvm::sys::path::is_absolute(), llvm::MCAsmInfo::isLittleEndian(), llvm::isPowerOf2_32(), llvm::MCDwarfFrameInfo::IsSimple, llvm_unreachable, llvm::Log2_32(), MRI, llvm::formatted_raw_ostream::PadToColumn(), llvm::PowerOf2Floor(), llvm::MCExpr::print(), llvm::MCSymbol::print(), Register, llvm::report_fatal_error(), llvm::StringRef::size(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, llvm::StringRef::substr(), llvm::toHex(), truncateToSize(), llvm::MCAsmInfo::useDwarfRegNumForCFI(), and llvm::raw_ostream::write_hex().

◆ toOctal()

static char toOctal ( int  X)
inlinestatic

Definition at line 735 of file MCAsmStreamer.cpp.

◆ truncateToSize()

static int64_t truncateToSize ( int64_t  Value,
unsigned  Bytes 
)
inlinestatic

Definition at line 349 of file MCAsmStreamer.cpp.

References llvm::SmallString< InternalLen >::append(), Arg, llvm::AMDGPU::HSAMD::Kernel::Key::Args, assert(), llvm::StringRef::back(), llvm::LCOMM::ByteAlignment, llvm::SmallVectorImpl< T >::clear(), llvm::MCAsmInfo::doesSupportDataRegionDirectives(), llvm::MCStreamer::EmitAssignment(), llvm::MCStreamer::EmitLabel(), llvm::StringRef::empty(), llvm::ArrayRef< T >::empty(), llvm::StringRef::equals(), llvm::StringRef::find_first_of(), llvm::StringRef::front(), llvm::MCAsmInfo::getAssemblerDialect(), llvm::MCAsmInfo::getCode16Directive(), llvm::MCAsmInfo::getCode32Directive(), llvm::MCAsmInfo::getCode64Directive(), llvm::MCAsmInfo::getCOMMDirectiveAlignmentIsInBytes(), llvm::MCAsmInfo::getCommentString(), llvm::MCSection::getDummyFragment(), llvm::MCAsmInfo::getGlobalDirective(), llvm::MCAsmInfo::getLabelSuffix(), llvm::MCAsmInfo::getLCOMMDirectiveAlignmentType(), llvm::MCSectionMachO::getSectionName(), llvm::MCSectionMachO::getSegmentName(), llvm::MCAsmInfo::getSeparatorString(), llvm::Twine::getSingleStringRef(), llvm::MCAsmInfo::getWeakDirective(), llvm::MCAsmInfo::getWeakRefDirective(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::MCAsmInfo::hasNoDeadStrip(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), llvm::isPowerOf2_32(), Kind, llvm_unreachable, llvm::Log2_32(), llvm::LCOMM::Log2Alignment, llvm::MCAF_Code16, llvm::MCAF_Code32, llvm::MCAF_Code64, llvm::MCAF_SubsectionsViaSymbols, llvm::MCAF_SyntaxUnified, llvm::MCDR_DataRegion, llvm::MCDR_DataRegionEnd, llvm::MCDR_DataRegionJT16, llvm::MCDR_DataRegionJT32, llvm::MCDR_DataRegionJT8, llvm::MCLOHDirectiveName(), llvm::MCLOHIdToName(), llvm::MCLOHIdToNbArgs(), llvm::MCSA_AltEntry, llvm::MCSA_ELF_TypeCommon, llvm::MCSA_ELF_TypeFunction, llvm::MCSA_ELF_TypeGnuUniqueObject, llvm::MCSA_ELF_TypeIndFunction, llvm::MCSA_ELF_TypeNoType, llvm::MCSA_ELF_TypeObject, llvm::MCSA_ELF_TypeTLS, llvm::MCSA_Global, llvm::MCSA_Hidden, llvm::MCSA_IndirectSymbol, llvm::MCSA_Internal, llvm::MCSA_Invalid, llvm::MCSA_LazyReference, llvm::MCSA_Local, llvm::MCSA_NoDeadStrip, llvm::MCSA_PrivateExtern, llvm::MCSA_Protected, llvm::MCSA_Reference, llvm::MCSA_SymbolResolver, llvm::MCSA_Weak, llvm::MCSA_WeakDefAutoPrivate, llvm::MCSA_WeakDefinition, llvm::MCSA_WeakReference, llvm::MCVM_IOSVersionMin, llvm::MCVM_OSXVersionMin, llvm::MCVM_TvOSVersionMin, llvm::MCVM_WatchOSVersionMin, llvm::LCOMM::NoAlignment, llvm::MCExpr::print(), llvm::Value::print(), llvm::MCSymbol::print(), llvm::MCSection::PrintSwitchToSection(), llvm::ARMBuildAttrs::Section, llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::StringRef::size(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, llvm::StringRef::slice(), llvm::StringRef::startswith(), StorageClass, llvm::StringRef::str(), and T.

Referenced by PrintQuotedString().