LLVM  7.0.0
Classes | Namespaces | Macros | Enumerations | Functions
AsmWriter.cpp File Reference
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/Argument.h"
#include "llvm/IR/AssemblyAnnotationWriter.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/CallingConv.h"
#include "llvm/IR/Comdat.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalAlias.h"
#include "llvm/IR/GlobalIFunc.h"
#include "llvm/IR/GlobalIndirectSymbol.h"
#include "llvm/IR/GlobalObject.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/IRPrintingPasses.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ModuleSlotTracker.h"
#include "llvm/IR/ModuleSummaryIndex.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/Statepoint.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/TypeFinder.h"
#include "llvm/IR/Use.h"
#include "llvm/IR/UseListOrder.h"
#include "llvm/IR/User.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/AtomicOrdering.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "llvm/IR/Metadata.def"

Go to the source code of this file.

Classes

class  llvm::SlotTracker
 This class provides computation of slot numbers for LLVM Assembly writing. More...
 

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Macros

#define ST_DEBUG(X)
 
#define HANDLE_MDNODE_LEAF(CLASS)
 

Enumerations

enum  PrefixType {
  GlobalPrefix, ComdatPrefix, LabelPrefix, LocalPrefix,
  NoPrefix
}
 

Functions

static void orderValue (const Value *V, OrderMap &OM)
 
static OrderMap orderModule (const Module *M)
 
static void predictValueUseListOrderImpl (const Value *V, const Function *F, unsigned ID, const OrderMap &OM, UseListOrderStack &Stack)
 
static void predictValueUseListOrder (const Value *V, const Function *F, OrderMap &OM, UseListOrderStack &Stack)
 
static UseListOrderStack predictUseListOrder (const Module *M)
 
static const Module * getModuleFromVal (const Value *V)
 
static void PrintCallingConv (unsigned cc, raw_ostream &Out)
 
static void PrintLLVMName (raw_ostream &OS, StringRef Name, PrefixType Prefix)
 Turn the specified name into an 'LLVM name', which is either prefixed with % (if the string only contains simple characters) or is surrounded with ""'s (if it has special chars in it). More...
 
static void PrintLLVMName (raw_ostream &OS, const Value *V)
 Turn the specified name into an 'LLVM name', which is either prefixed with % (if the string only contains simple characters) or is surrounded with ""'s (if it has special chars in it). More...
 
static SlotTracker * createSlotTracker (const Value *V)
 
static void WriteAsOperandInternal (raw_ostream &Out, const Value *V, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void WriteAsOperandInternal (raw_ostream &Out, const Metadata *MD, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context, bool FromValue=false)
 
static void writeAtomicRMWOperation (raw_ostream &Out, AtomicRMWInst::BinOp Op)
 
static void WriteOptimizationInfo (raw_ostream &Out, const User *U)
 
static void WriteConstantInternal (raw_ostream &Out, const Constant *CV, TypePrinting &TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeMDTuple (raw_ostream &Out, const MDTuple *Node, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeMetadataAsOperand (raw_ostream &Out, const Metadata *MD, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeGenericDINode (raw_ostream &Out, const GenericDINode *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDILocation (raw_ostream &Out, const DILocation *DL, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDISubrange (raw_ostream &Out, const DISubrange *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIEnumerator (raw_ostream &Out, const DIEnumerator *N, TypePrinting *, SlotTracker *, const Module *)
 
static void writeDIBasicType (raw_ostream &Out, const DIBasicType *N, TypePrinting *, SlotTracker *, const Module *)
 
static void writeDIDerivedType (raw_ostream &Out, const DIDerivedType *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDICompositeType (raw_ostream &Out, const DICompositeType *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDISubroutineType (raw_ostream &Out, const DISubroutineType *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIFile (raw_ostream &Out, const DIFile *N, TypePrinting *, SlotTracker *, const Module *)
 
static void writeDICompileUnit (raw_ostream &Out, const DICompileUnit *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDISubprogram (raw_ostream &Out, const DISubprogram *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDILexicalBlock (raw_ostream &Out, const DILexicalBlock *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDILexicalBlockFile (raw_ostream &Out, const DILexicalBlockFile *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDINamespace (raw_ostream &Out, const DINamespace *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIMacro (raw_ostream &Out, const DIMacro *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIMacroFile (raw_ostream &Out, const DIMacroFile *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIModule (raw_ostream &Out, const DIModule *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDITemplateTypeParameter (raw_ostream &Out, const DITemplateTypeParameter *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDITemplateValueParameter (raw_ostream &Out, const DITemplateValueParameter *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIGlobalVariable (raw_ostream &Out, const DIGlobalVariable *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDILocalVariable (raw_ostream &Out, const DILocalVariable *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDILabel (raw_ostream &Out, const DILabel *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIExpression (raw_ostream &Out, const DIExpression *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIGlobalVariableExpression (raw_ostream &Out, const DIGlobalVariableExpression *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIObjCProperty (raw_ostream &Out, const DIObjCProperty *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void writeDIImportedEntity (raw_ostream &Out, const DIImportedEntity *N, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static void WriteMDNodeBodyInternal (raw_ostream &Out, const MDNode *Node, TypePrinting *TypePrinter, SlotTracker *Machine, const Module *Context)
 
static const char * getWholeProgDevirtResKindName (WholeProgramDevirtResolution::Kind K)
 
static const char * getWholeProgDevirtResByArgKindName (WholeProgramDevirtResolution::ByArg::Kind K)
 
static const char * getTTResKindName (TypeTestResolution::Kind K)
 
static const char * getSummaryKindName (GlobalValueSummary::SummaryKind SK)
 
static std::string getLinkageName (GlobalValue::LinkageTypes LT)
 
static std::string getLinkageNameWithSpace (GlobalValue::LinkageTypes LT)
 
static const char * getHotnessName (CalleeInfo::HotnessType HT)
 
static void printMetadataIdentifier (StringRef Name, formatted_raw_ostream &Out)
 
static void PrintVisibility (GlobalValue::VisibilityTypes Vis, formatted_raw_ostream &Out)
 
static void PrintDSOLocation (const GlobalValue &GV, formatted_raw_ostream &Out)
 
static void PrintDLLStorageClass (GlobalValue::DLLStorageClassTypes SCT, formatted_raw_ostream &Out)
 
static void PrintThreadLocalModel (GlobalVariable::ThreadLocalMode TLM, formatted_raw_ostream &Out)
 
static StringRef getUnnamedAddrEncoding (GlobalVariable::UnnamedAddr UA)
 
static void maybePrintComdat (formatted_raw_ostream &Out, const GlobalObject &GO)
 
static bool isReferencingMDNode (const Instruction &I)
 
static bool printWithoutType (const Value &V, raw_ostream &O, SlotTracker *Machine, const Module *M)
 Print without a type, skipping the TypePrinting object. More...
 
static void printAsOperandImpl (const Value &V, raw_ostream &O, bool PrintType, ModuleSlotTracker &MST)
 
static void printMetadataImpl (raw_ostream &ROS, const Metadata &MD, ModuleSlotTracker &MST, const Module *M, bool OnlyAsOperand)
 

Macro Definition Documentation

◆ HANDLE_MDNODE_LEAF

#define HANDLE_MDNODE_LEAF (   CLASS)
Value:
case Metadata::CLASS##Kind: \
write##CLASS(Out, cast<CLASS>(Node), TypePrinter, Machine, Context); \
break;
LLVMContext & Context
COFF::MachineTypes Machine
Definition: COFFYAML.cpp:363
const unsigned Kind

◆ ST_DEBUG

#define ST_DEBUG (   X)

Enumeration Type Documentation

◆ PrefixType

enum PrefixType
Enumerator
GlobalPrefix 
ComdatPrefix 
LabelPrefix 
LocalPrefix 
NoPrefix 

Definition at line 390 of file AsmWriter.cpp.

Function Documentation

◆ createSlotTracker()

static SlotTracker* createSlotTracker ( const Value *  V)
static

Definition at line 854 of file AsmWriter.cpp.

Referenced by WriteAsOperandInternal().

◆ getHotnessName()

static const char* getHotnessName ( CalleeInfo::HotnessType  HT)
static

Definition at line 2843 of file AsmWriter.cpp.

References llvm::GlobalValueSummary::AliasKind, llvm::FunctionSummary::calls(), llvm::CalleeInfo::Cold, llvm::CalleeInfo::Critical, llvm::GlobalValueSummary::GVFlags::DSOLocal, llvm::StringRef::empty(), llvm::FunctionSummary::fflags(), llvm::GlobalValueSummary::flags(), llvm::GlobalValueSummary::FunctionKind, llvm::ValueInfo::getGUID(), getLinkageName(), llvm::GlobalValueSummary::getSummaryKind(), getSummaryKindName(), llvm::ValueInfo::getSummaryList(), llvm::FunctionSummary::getTypeIdInfo(), llvm::FunctionSummary::VFuncId::GUID, llvm::CalleeInfo::Hot, llvm::FunctionSummary::instCount(), llvm::GlobalValueSummary::GVFlags::Linkage, llvm::GlobalValueSummary::GVFlags::Live, llvm_unreachable, llvm::AArch64CC::LT, llvm::GlobalValueSummary::modulePath(), llvm::ValueInfo::name(), llvm::CalleeInfo::None, llvm::FunctionSummary::FFlags::NoRecurse, llvm::GlobalValueSummary::GVFlags::NotEligibleToImport, llvm::FunctionSummary::VFuncId::Offset, llvm::FunctionSummary::FFlags::ReadNone, llvm::FunctionSummary::FFlags::ReadOnly, llvm::Ref, llvm::GlobalValueSummary::refs(), llvm::FunctionSummary::FFlags::ReturnDoesNotAlias, llvm::Tag, llvm::FunctionSummary::TypeIdInfo::TypeCheckedLoadConstVCalls, llvm::FunctionSummary::TypeIdInfo::TypeCheckedLoadVCalls, llvm::FunctionSummary::TypeIdInfo::TypeTestAssumeConstVCalls, llvm::FunctionSummary::TypeIdInfo::TypeTestAssumeVCalls, llvm::FunctionSummary::TypeIdInfo::TypeTests, llvm::CalleeInfo::Unknown, and VI.

◆ getLinkageName()

static std::string getLinkageName ( GlobalValue::LinkageTypes  LT)
static

◆ getLinkageNameWithSpace()

static std::string getLinkageNameWithSpace ( GlobalValue::LinkageTypes  LT)
static

Definition at line 2837 of file AsmWriter.cpp.

References llvm::GlobalValue::ExternalLinkage, and getLinkageName().

Referenced by maybePrintComdat().

◆ getModuleFromVal()

static const Module* getModuleFromVal ( const Value *  V)
static

◆ getSummaryKindName()

static const char* getSummaryKindName ( GlobalValueSummary::SummaryKind  SK)
static

◆ getTTResKindName()

static const char* getTTResKindName ( TypeTestResolution::Kind  K)
static

◆ getUnnamedAddrEncoding()

static StringRef getUnnamedAddrEncoding ( GlobalVariable::UnnamedAddr  UA)
static

◆ getWholeProgDevirtResByArgKindName()

static const char* getWholeProgDevirtResByArgKindName ( WholeProgramDevirtResolution::ByArg::Kind  K)
static

◆ getWholeProgDevirtResKindName()

static const char* getWholeProgDevirtResKindName ( WholeProgramDevirtResolution::Kind  K)
static

◆ isReferencingMDNode()

static bool isReferencingMDNode ( const Instruction &  I)
static

Definition at line 4055 of file AsmWriter.cpp.

References llvm::Function::isIntrinsic(), and llvm::User::operands().

Referenced by llvm::Value::print().

◆ maybePrintComdat()

static void maybePrintComdat ( formatted_raw_ostream &  Out,
const GlobalObject &  GO 
)
static

Definition at line 3127 of file AsmWriter.cpp.

References Arg, llvm::Function::args(), assert(), llvm::CallingConv::C, C, llvm::SwitchInst::cases(), ComdatPrefix, E, llvm::StringRef::empty(), F(), for(), llvm::AttributeList::FunctionIndex, GEP, llvm::PointerType::getAddressSpace(), llvm::GlobalObject::getAlignment(), llvm::GlobalObject::getAllMetadata(), llvm::Instruction::getAllMetadata(), llvm::AttributeSet::getAsString(), llvm::AttributeList::getAsString(), llvm::Function::getAttributes(), llvm::GlobalVariable::getAttributes(), llvm::AttributeList::getAttributes(), llvm::GCRelocateInst::getBasePtr(), llvm::Function::getCallingConv(), llvm::GlobalObject::getComdat(), llvm::BranchInst::getCondition(), llvm::SwitchInst::getCondition(), llvm::SwitchInst::getDefaultDest(), llvm::GCRelocateInst::getDerivedPtr(), llvm::GlobalValue::getDLLStorageClass(), llvm::Function::getEntryBlock(), llvm::AttributeList::getFnAttributes(), llvm::Instruction::getFunction(), llvm::Function::getFunctionType(), llvm::Function::getGC(), llvm::GlobalIndirectSymbol::getIndirectSymbol(), llvm::GlobalVariable::getInitializer(), llvm::GlobalValue::getLinkage(), getLinkageNameWithSpace(), getName(), llvm::Comdat::getName(), llvm::Value::getName(), llvm::User::getNumOperands(), llvm::FunctionType::getNumParams(), llvm::Instruction::getOpcodeName(), llvm::User::getOperand(), llvm::AttributeList::getParamAttributes(), llvm::FunctionType::getParamType(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::Function::getPersonalityFn(), llvm::CmpInst::getPredicateName(), llvm::Function::getPrefixData(), llvm::Function::getPrologueData(), llvm::FunctionType::getReturnType(), llvm::Function::getReturnType(), llvm::GlobalObject::getSection(), llvm::BranchInst::getSuccessor(), llvm::GlobalValue::getThreadLocalMode(), llvm::Value::getType(), llvm::GlobalValue::getType(), llvm::GlobalValue::getUnnamedAddr(), getUnnamedAddrEncoding(), llvm::GlobalValue::getValueType(), llvm::GlobalValue::getVisibility(), llvm::AttributeSet::hasAttributes(), llvm::AttributeList::hasAttributes(), llvm::GlobalValue::hasExternalLinkage(), llvm::Function::hasGC(), llvm::GlobalVariable::hasInitializer(), llvm::Value::hasName(), llvm::Function::hasPersonalityFn(), llvm::Function::hasPrefixData(), llvm::Function::hasPrologueData(), llvm::GlobalObject::hasSection(), I, isAtomic(), llvm::GlobalVariable::isConstant(), llvm::GlobalValue::isDeclaration(), llvm::GlobalVariable::isExternallyInitialized(), llvm::Function::isMaterializable(), llvm::GlobalValue::isMaterializable(), llvm::FunctionType::isVarArg(), llvm::Type::isVoidTy(), isVolatile(), isWeak(), Kind, LabelPrefix, llvm_unreachable, LocalPrefix, op, llvm::pred_begin(), llvm::pred_end(), llvm::Comdat::print(), PrintCallingConv(), PrintDLLStorageClass(), PrintDSOLocation(), llvm::printEscapedString(), PrintLLVMName(), printMetadataIdentifier(), PrintThreadLocalModel(), PrintVisibility(), llvm::SmallVectorImpl< T >::resize(), llvm::AttributeList::ReturnIndex, second, llvm::UseListOrder::Shuffle, SI, llvm::SmallVectorBase::size(), llvm::Value::use_empty(), llvm::UseListOrder::V, WriteAsOperandInternal(), writeAtomicRMWOperation(), WriteMDNodeBodyInternal(), and WriteOptimizationInfo().

◆ orderModule()

static OrderMap orderModule ( const Module *  M)
static

◆ orderValue()

static void orderValue ( const Value *  V,
OrderMap &  OM 
)
static

Definition at line 121 of file AsmWriter.cpp.

References C, llvm::CallBase< InstTy >::getNumOperands(), and llvm::User::operands().

Referenced by orderModule().

◆ predictUseListOrder()

static UseListOrderStack predictUseListOrder ( const Module *  M)
static

◆ predictValueUseListOrder()

static void predictValueUseListOrder ( const Value *  V,
const Function *  F,
OrderMap &  OM,
UseListOrderStack &  Stack 
)
static

◆ predictValueUseListOrderImpl()

static void predictValueUseListOrderImpl ( const Value *  V,
const Function *  F,
unsigned  ID,
const OrderMap &  OM,
UseListOrderStack &  Stack 
)
static

◆ printAsOperandImpl()

static void printAsOperandImpl ( const Value &  V,
raw_ostream &  O,
bool  PrintType,
ModuleSlotTracker &  MST 
)
static

◆ PrintCallingConv()

static void PrintCallingConv ( unsigned  cc,
raw_ostream &  Out 
)
static

◆ PrintDLLStorageClass()

static void PrintDLLStorageClass ( GlobalValue::DLLStorageClassTypes  SCT,
formatted_raw_ostream &  Out 
)
static

◆ PrintDSOLocation()

static void PrintDSOLocation ( const GlobalValue &  GV,
formatted_raw_ostream &  Out 
)
static

◆ PrintLLVMName() [1/2]

static void PrintLLVMName ( raw_ostream &  OS,
StringRef  Name,
PrefixType  Prefix 
)
static

Turn the specified name into an 'LLVM name', which is either prefixed with % (if the string only contains simple characters) or is surrounded with ""'s (if it has special chars in it).

Print it out.

Definition at line 434 of file AsmWriter.cpp.

References ComdatPrefix, GlobalPrefix, LabelPrefix, LocalPrefix, NoPrefix, and llvm::printLLVMNameWithoutPrefix().

Referenced by maybePrintComdat(), llvm::Comdat::print(), and PrintLLVMName().

◆ PrintLLVMName() [2/2]

static void PrintLLVMName ( raw_ostream &  OS,
const Value *  V 
)
static

◆ printMetadataIdentifier()

static void printMetadataIdentifier ( StringRef  Name,
formatted_raw_ostream &  Out 
)
static

◆ printMetadataImpl()

static void printMetadataImpl ( raw_ostream &  ROS,
const Metadata &  MD,
ModuleSlotTracker &  MST,
const Module *  M,
bool  OnlyAsOperand 
)
static

◆ PrintThreadLocalModel()

static void PrintThreadLocalModel ( GlobalVariable::ThreadLocalMode  TLM,
formatted_raw_ostream &  Out 
)
static

◆ PrintVisibility()

static void PrintVisibility ( GlobalValue::VisibilityTypes  Vis,
formatted_raw_ostream &  Out 
)
static

◆ printWithoutType()

static bool printWithoutType ( const Value &  V,
raw_ostream &  O,
SlotTracker *  Machine,
const Module *  M 
)
static

Print without a type, skipping the TypePrinting object.

Returns
true iff printing was successful.

Definition at line 4121 of file AsmWriter.cpp.

References llvm::Value::hasName(), and WriteAsOperandInternal().

Referenced by llvm::Value::printAsOperand().

◆ WriteAsOperandInternal() [1/2]

static void WriteAsOperandInternal ( raw_ostream &  Out,
const Value *  V,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

◆ WriteAsOperandInternal() [2/2]

static void WriteAsOperandInternal ( raw_ostream &  Out,
const Metadata *  MD,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context,
bool  FromValue = false 
)
static

◆ writeAtomicRMWOperation()

static void writeAtomicRMWOperation ( raw_ostream &  Out,
AtomicRMWInst::BinOp  Op 
)
static

◆ WriteConstantInternal()

static void WriteConstantInternal ( raw_ostream &  Out,
const Constant *  CV,
TypePrinting &  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

◆ writeDIBasicType()

static void writeDIBasicType ( raw_ostream &  Out,
const DIBasicType *  N,
TypePrinting *  ,
SlotTracker *  ,
const Module *   
)
static

Definition at line 1779 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDICompileUnit()

static void writeDICompileUnit ( raw_ostream &  Out,
const DICompileUnit *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1869 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDICompositeType()

static void writeDICompositeType ( raw_ostream &  Out,
const DICompositeType *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1816 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIDerivedType()

static void writeDIDerivedType ( raw_ostream &  Out,
const DIDerivedType *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1793 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIEnumerator()

static void writeDIEnumerator ( raw_ostream &  Out,
const DIEnumerator *  N,
TypePrinting *  ,
SlotTracker *  ,
const Module *   
)
static

Definition at line 1764 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIExpression()

static void writeDIExpression ( raw_ostream &  Out,
const DIExpression *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2075 of file AsmWriter.cpp.

Referenced by printMetadataIdentifier(), rotateSign(), and WriteAsOperandInternal().

◆ writeDIFile()

static void writeDIFile ( raw_ostream &  Out,
const DIFile *  N,
TypePrinting *  ,
SlotTracker *  ,
const Module *   
)
static

Definition at line 1853 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIGlobalVariable()

static void writeDIGlobalVariable ( raw_ostream &  Out,
const DIGlobalVariable *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2029 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIGlobalVariableExpression()

static void writeDIGlobalVariableExpression ( raw_ostream &  Out,
const DIGlobalVariableExpression *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2096 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIImportedEntity()

static void writeDIImportedEntity ( raw_ostream &  Out,
const DIImportedEntity *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2123 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDILabel()

static void writeDILabel ( raw_ostream &  Out,
const DILabel *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2063 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDILexicalBlock()

static void writeDILexicalBlock ( raw_ostream &  Out,
const DILexicalBlock *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1928 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDILexicalBlockFile()

static void writeDILexicalBlockFile ( raw_ostream &  Out,
const DILexicalBlockFile *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1940 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDILocalVariable()

static void writeDILocalVariable ( raw_ostream &  Out,
const DILocalVariable *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2047 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDILocation()

static void writeDILocation ( raw_ostream &  Out,
const DILocation *  DL,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1737 of file AsmWriter.cpp.

Referenced by getOptimizationFlags().

◆ writeDIMacro()

static void writeDIMacro ( raw_ostream &  Out,
const DIMacro *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1965 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIMacroFile()

static void writeDIMacroFile ( raw_ostream &  Out,
const DIMacroFile *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1977 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIModule()

static void writeDIModule ( raw_ostream &  Out,
const DIModule *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1988 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDINamespace()

static void writeDINamespace ( raw_ostream &  Out,
const DINamespace *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1954 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDIObjCProperty()

static void writeDIObjCProperty ( raw_ostream &  Out,
const DIObjCProperty *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2108 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDISubprogram()

static void writeDISubprogram ( raw_ostream &  Out,
const DISubprogram *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1897 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDISubrange()

static void writeDISubrange ( raw_ostream &  Out,
const DISubrange *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1750 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDISubroutineType()

static void writeDISubroutineType ( raw_ostream &  Out,
const DISubroutineType *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1841 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDITemplateTypeParameter()

static void writeDITemplateTypeParameter ( raw_ostream &  Out,
const DITemplateTypeParameter *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2002 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeDITemplateValueParameter()

static void writeDITemplateValueParameter ( raw_ostream &  Out,
const DITemplateValueParameter *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2014 of file AsmWriter.cpp.

Referenced by rotateSign().

◆ writeGenericDINode()

static void writeGenericDINode ( raw_ostream &  Out,
const GenericDINode *  N,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1718 of file AsmWriter.cpp.

Referenced by getOptimizationFlags().

◆ WriteMDNodeBodyInternal()

static void WriteMDNodeBodyInternal ( raw_ostream &  Out,
const MDNode *  Node,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 2137 of file AsmWriter.cpp.

Referenced by maybePrintComdat(), and printMetadataImpl().

◆ writeMDTuple()

static void writeMDTuple ( raw_ostream &  Out,
const MDTuple *  Node,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1539 of file AsmWriter.cpp.

Referenced by getOptimizationFlags().

◆ writeMetadataAsOperand()

static void writeMetadataAsOperand ( raw_ostream &  Out,
const Metadata *  MD,
TypePrinting *  TypePrinter,
SlotTracker *  Machine,
const Module *  Context 
)
static

Definition at line 1645 of file AsmWriter.cpp.

◆ WriteOptimizationInfo()

static void WriteOptimizationInfo ( raw_ostream &  Out,
const User *  U 
)
static

Definition at line 1237 of file AsmWriter.cpp.

References GEP.

Referenced by maybePrintComdat().