12#include "llvm/Config/llvm-config.h"
25 : Begin(Begin), BundleGroupBeforeFirstInst(
false), HasInstructions(
false),
26 HasLayout(
false), IsRegistered(
false), IsText(IsText),
27 IsVirtual(IsVirtual),
Name(
Name), Variant(V) {
30 CurFragList = &Subsections.emplace_back(0u,
FragList{}).second;
42 for (
auto &[
_, Chain] : Subsections) {
52 if (BundleLockNestingDepth == 0) {
55 if (--BundleLockNestingDepth == 0) {
64 BundleLockState = NewState;
66 ++BundleLockNestingDepth;
71#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
76 OS <<
" Fragments:[\n ";
78 for (
auto &
F : *
this) {
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml", "ocaml 3.10-compatible collector")
This file defines the SmallVector class.
Context object for machine code objects.
MCSymbol * createTempSymbol()
Create a temporary symbol with a unique name.
void setParent(MCSection *Value)
virtual StringRef getVirtualSectionKind() const
MCSymbol * getEndSymbol(MCContext &Ctx)
void setBundleLockState(BundleLockStateType NewState)
StringRef getName() const
BundleLockStateType
Express the state of bundle locked groups while emitting code.
MCSection(SectionVariant V, StringRef Name, bool IsText, bool IsVirtual, MCSymbol *Begin)
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
bool isInSection() const
isInSection - Check if this symbol is defined in some section (i.e., it is defined but not absolute).
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
@ First
Helpers to iterate all locations in the MemoryEffectsBase class.