25 Comdat::Comdat() =
default;
30 return wrap(
unwrap(M)->getOrInsertComdat(Name));
This class represents lattice values for constants.
struct LLVMOpaqueModule * LLVMModuleRef
The top-level container for all other LLVM Intermediate Representation (IR) objects.
The data referenced by the COMDAT must be the same size.
This file contains the declaration of the Comdat class, which represents a single COMDAT in LLVM...
The data referenced by the COMDAT must be the same size.
struct LLVMComdat * LLVMComdatRef
The linker may choose any COMDAT.
amdgpu Simplify well known AMD library false Value Value const Twine & Name
Attribute unwrap(LLVMAttributeRef Attr)
The linker may choose any COMDAT.
The data referenced by the COMDAT must be the same.
LLVMComdatSelectionKind LLVMGetComdatSelectionKind(LLVMComdatRef C)
void LLVMSetComdat(LLVMValueRef V, LLVMComdatRef C)
Assign the Comdat to the given global object.
void setComdat(Comdat *C)
No other Module may specify this COMDAT.
StringRef getName() const
The data referenced by the COMDAT must be the same.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void setSelectionKind(SelectionKind Val)
LLVMComdatRef LLVMGetOrInsertComdat(LLVMModuleRef M, const char *Name)
Return the Comdat in the module with the specified name.
The linker will choose the largest COMDAT.
Module.h This file contains the declarations for the Module class.
The linker will choose the largest COMDAT.
No other Module may specify this COMDAT.
const Comdat * getComdat() const
void LLVMSetComdatSelectionKind(LLVMComdatRef C, LLVMComdatSelectionKind kind)
LLVMComdatRef LLVMGetComdat(LLVMValueRef V)
Get the Comdat assigned to the given global object.
LLVMAttributeRef wrap(Attribute Attr)
StringRef - Represent a constant reference to a string, i.e.
struct LLVMOpaqueValue * LLVMValueRef
Represents an individual value in LLVM IR.
SelectionKind getSelectionKind() const