LLVM  14.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::Comdat Class Reference

#include "llvm/IR/Comdat.h"

Public Types

enum  SelectionKind {
  Any, ExactMatch, Largest, NoDeduplicate,

Public Member Functions

 Comdat (const Comdat &)=delete
 Comdat (Comdat &&C)
SelectionKind getSelectionKind () const
void setSelectionKind (SelectionKind Val)
StringRef getName () const
void print (raw_ostream &OS, bool IsForDebug=false) const
void dump () const


class Module

Detailed Description

Definition at line 31 of file Comdat.h.

Member Enumeration Documentation

◆ SelectionKind


The linker may choose any COMDAT.


The data referenced by the COMDAT must be the same.


The linker will choose the largest COMDAT.


No deduplication is performed.


The data referenced by the COMDAT must be the same size.

Definition at line 33 of file Comdat.h.

Constructor & Destructor Documentation

◆ Comdat() [1/2]

llvm::Comdat::Comdat ( const Comdat )

◆ Comdat() [2/2]

Comdat::Comdat ( Comdat &&  C)

Definition at line 22 of file Comdat.cpp.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void Comdat::dump ( ) const

Definition at line 4828 of file AsmWriter.cpp.

References llvm::dbgs(), and print().

◆ getName()

StringRef Comdat::getName ( ) const

Definition at line 26 of file Comdat.cpp.

Referenced by print().

◆ getSelectionKind()

SelectionKind llvm::Comdat::getSelectionKind ( ) const

Definition at line 44 of file Comdat.h.

Referenced by print().

◆ print()

void Comdat::print ( raw_ostream OS,
bool  IsForDebug = false 
) const

Definition at line 4518 of file AsmWriter.cpp.

References Any, ComdatPrefix, ExactMatch, getName(), getSelectionKind(), Largest, NoDeduplicate, PrintLLVMName(), and SameSize.

Referenced by dump().

◆ setSelectionKind()

void llvm::Comdat::setSelectionKind ( SelectionKind  Val)

Definition at line 45 of file Comdat.h.

Referenced by LLVMSetComdatSelectionKind().

Friends And Related Function Documentation

◆ Module

friend class Module

Definition at line 51 of file Comdat.h.

The documentation for this class was generated from the following files: