LLVM
8.0.1
|
#include "llvm/IR/Comdat.h"
Public Types | |
enum | SelectionKind { Any, ExactMatch, Largest, NoDuplicates, SameSize } |
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 |
Friends | |
class | Module |
Enumerator | |
---|---|
Any | The linker may choose any COMDAT. |
ExactMatch | The data referenced by the COMDAT must be the same. |
Largest | The linker will choose the largest COMDAT. |
NoDuplicates | No other Module may specify this COMDAT. |
SameSize | The data referenced by the COMDAT must be the same size. |
Comdat::Comdat | ( | Comdat && | C | ) |
Definition at line 23 of file Comdat.cpp.
LLVM_DUMP_METHOD void Comdat::dump | ( | ) | const |
Definition at line 4313 of file AsmWriter.cpp.
References llvm::dbgs(), LLVM_DUMP_METHOD, and print().
Referenced by setSelectionKind().
StringRef Comdat::getName | ( | ) | const |
Definition at line 27 of file Comdat.cpp.
References Name.
Referenced by canRenameComdat(), checkMachOComdat(), copyComdat(), llvm::AsmPrinter::emitXRayTable(), getComdatGVForCOFF(), getELFComdat(), getMinVisibility(), getWasmComdat(), maybePrintComdat(), and setSelectionKind().
|
inline |
Definition at line 45 of file Comdat.h.
Referenced by canRenameComdat(), copyComdat(), getELFComdat(), getEncodedComdatSelectionKind(), getMinVisibility(), getWasmComdat(), and LLVMGetComdatSelectionKind().
void Comdat::print | ( | raw_ostream & | OS, |
bool | IsForDebug = false |
||
) | const |
Definition at line 4097 of file AsmWriter.cpp.
References Any, ComdatPrefix, ExactMatch, getName(), Largest, NoDuplicates, PrintLLVMName(), and SameSize.
Referenced by maybePrintComdat(), and setSelectionKind().
|
inline |
Definition at line 46 of file Comdat.h.
References dump(), getName(), and print().
Referenced by canRenameComdat(), copyComdat(), getArrayElements(), llvm::GetOrCreateFunctionComdat(), instrumentMaskedLoadOrStore(), LLVMSetComdatSelectionKind(), rewriteComdat(), and llvm::WholeProgramDevirtPass::run().