Synopsis
Declared in <llvm/MC/MCAsmStreamer.h>
class MCAsmBaseStreamer
: public MCStreamer
Base Classes
Name |
Description |
Streaming machine code generation interface. |
Member Functions
Name |
Description |
|
Copy assignment operator |
|
Add a textual comment. |
Retrieve the current frame info if one is available and it is not yet closed. Otherwise, issue an error and return null. |
|
|
Emit a blank line to a .s file to pretty it up. |
Add a comment showing the encoding of an instruction. |
|
|
Add explicit comment T. T is required to be a valid comment in the output and does not need to be escaped. |
|
Start emitting COFF symbol definition |
|
Emit the absolute difference between two symbols. |
|
Emit the absolute difference between two symbols encoded with ULEB128. |
|
|
|
|
|
Emit an assignment of |
|
Functionally identical to EmitBytes. When emitting textual assembly, this method uses .byte directives instead of .ascii or .asciz for readability. |
|
Emit/Specify Mach‐O build version command. |
|
Enable aligned instruction bundling with the given bundle size, from this point onward. Once enabled, bundling cannot be disabled and the bundle size cannot be changed. |
|
The following instructions are a bundle‐locked group. |
|
Ends a bundle‐locked group. |
|
Emit the bytes in |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When emitting an object file, create and emit a real label. When emitting textual assembly, this should do nothing to avoid polluting our output. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Emits a COFF image relative relocation. |
|
|
|
Emits the physical number of the section containing the given symbol as assigned during object writing (i.e., this is not a runtime relocation). |
|
Emits the offset of the symbol from the beginning of the section during object writing (i.e., this is not a runtime relocation). |
|
Emits a COFF section relative relocation. |
|
Emits a COFF section index. |
|
Emits the symbol table index of a Symbol into the current section. |
|
Emit the storage class of the symbol. |
|
Emit the type of the symbol. |
This implements the CodeView '.cv_def_range' assembler directive. |
|
|
This implements the CodeView '.cv_fpo_data' assembler directive. |
|
This implements the CodeView '.cv_filechecksumoffset' assembler directive. |
|
This implements the CodeView '.cv_filechecksums' assembler directive. |
|
Associate a filename with a specified logical file number, and also specify that file's checksum information. This implements the '.cv_file 4 "foo.c"' assembler directive. Returns true on success. |
|
Introduces a function id for use with .cv_loc. |
|
This implements the CodeView '.cv_inline_linetable' assembler directive. |
|
Introduces an inline call site id for use with .cv_loc. Includes extra information for inline line table generation. |
|
This implements the CodeView '.cv_linetable' assembler directive. |
|
This implements the CodeView '.cv_loc' assembler directive. |
|
This implements the CodeView '.cv_stringtable' assembler directive. |
|
Emit nops until the byte alignment |
|
Emit a common symbol. |
|
Emit an assignment of |
|
|
|
Note in the output the specified region |
|
If targets does not support representing debug line section by .loc/.file directives in assembly output, we need to populate debug line section with raw debug line contents. |
|
Specify the "root" file of the compilation, using the ".file 0" extension. |
Associate a filename with a specified logical file number. This implements the DWARF2 '.file 4 "foo.c"' assembler directive. |
|
|
Emit the debug line end entry. |
|
Emit the debug line start label. |
|
This implements the DWARF2 '.loc fileno lineno ...' assembler directive. |
|
This is same as emitDwarfLocDirective, except it has the capability to add inlined_at information. |
|
This implements the '.loc_label Name' directive. |
|
|
|
|
|
Emit an ELF .size directive. |
|
Emit an ELF .symver directive. |
|
Emit added explicit comments. |
|
|
|
|
|
Emit a .gnu_attribute directive. |
|
Emit the "identifiers" directive. This implements the '.ident "version foo"' assembler directive. |
|
Emit the given |
Special case of EmitValue that avoids the client having to pass in a MCExpr for constant integers. |
|
|
Special case of EmitValue that avoids the client having to pass in a MCExpr for constant integers & prints in Hex format for certain modes. |
|
Special case of EmitValue that avoids the client having to pass in a MCExpr for constant integers & prints in Hex format for certain modes, pads the field with leading zeros to Size width |
|
Emit a Linker Optimization Hint (LOH) directive. |
|
Emit a label for |
|
Emit the given list |
|
Emit a local common (.lcomm) symbol. |
|
|
|
|
|
Emit the a pseudo probe into the current section. |
|
Print T and prefix it with the comment string (normally #) and optionally a tab. This prints the comment immediately, not at the end of the current line. It is basically a safe version of EmitRawText: since it only prints comments, the object streamer ignores it instead of asserting. |
If this file is backed by a assembly streamer, this dumps the specified string in the output .s file. This capability is indicated by the hasRawTextSupport() predicate. By default this aborts. |
|
|
Record a relocation described by the .reloc directive. |
Special case of EmitSLEB128Value that avoids the client having to pass in a MCExpr for constant integers. |
|
|
|
|
Emit a .subsection_via_symbols directive. |
|
Add the given |
|
Set the |
Special case of EmitValue that avoids the client having to pass in a MCExpr for MCSymbols. |
|
|
|
|
Emit a thread local bss (.tbss) symbol. |
|
|
Special case of EmitULEB128Value that avoids the client having to pass in a MCExpr for constant integers. |
|
|
|
|
Emit the expression |
|
Emit some number of copies of |
|
Emit some number of copies of |
|
Specify the Mach‐O minimum deployment target version. |
|
Emit an weak reference from |
|
|
|
|
|
|
|
|
|
|
|
This is used on platforms, such as Windows on ARM64, that require function or funclet sizes to be emitted in .xdata before the End marker is emitted for the frame. We cannot use the End marker, as it is not set at the point of emitting .xdata, in order to indicate that the frame is active. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Emit a C_INFO symbol with XCOFF embedded metadata to the .info section. |
|
Emit an XCOFF .except directive which adds information about a trap instruction to the object file exception section |
|
Emits an lcomm directive with XCOFF csect information. |
|
Emit a XCOFF .ref directive which creates R_REF type entry in the relocation table for one or more symbols. |
|
Emit a XCOFF .rename directive which creates a synonym for an illegal or undesirable name. |
|
Emit a symbol's linkage and visibility with a linkage directive for XCOFF. |
|
Emit the zerofill section and an optional symbol. |
Emit NumBytes worth of zeros. This function properly handles data in virtual sections. |
|
|
Marks the end of the symbol definition. |
Finish emission of machine code. |
|
|
Streamer specific finalization. |
|
|
Get the .pdata section used for the given section. Typically the given section is either the main .text section or some other COMDAT .text section, but it may be any section containing code. |
|
Get the .xdata section used for the given section. |
|
|
Return a raw_ostream that comments can be written to. Unlike AddComment, you are required to terminate comments with if you use this method. |
Return the current section that the streamer is emitting code to. |
|
|
|
|
Returns the mnemonic for |
Return the previous section that the streamer is emitting code to. |
|
|
Return true if this asm streamer supports emitting unformatted text to the .s file with EmitRawText. |
|
Create the default sections and set the initial one. |
|
Is the integrated assembler required for this streamer to function correctly? |
|
Return true if this streamer supports verbose assembly and if it is enabled. |
Returns true if a WinCFI prolog has been completed (.seh_endprologue) in the current frame. |
|
|
|
Emit a special value of 0xffffffff if producing 64‐bit debugging info. |
|
|
Restore the current and previous section from the section stack. Calls changeSection as needed. |
Save the current and previous section on the section stack. |
|
|
State management |
Set the default unwind version for new WinCFI frames. |
|
Set the current section where code is being emitted to |
|
Similar to switchSection, but does not print the section directive. |
|
|
Associate a filename with a specified logical file number. Also associate a directory, optional checksum, and optional source text with the logical file. This implements the DWARF2 '.file 4 "dir/foo.c"' assembler directive, and the DWARF5 '.file 4 "dir/foo.c" md5 "..." source "..."' assembler directive. |
|
Protected Member Functions
Name |
Description |
|
|
|
This is called by popSection and switchSection, if the current section changes. |
Returns true if the .cv_loc directive is in the right section. |
|
|
|
|
|
|
|
Protected Data Members
Name |
Created with MrDocs