Project Alice
Loading...
Searching...
No Matches
Comdat.h
Go to the documentation of this file.
1/*===-- llvm-c/Comdat.h - Module Comdat C Interface -------------*- C++ -*-===*\
2|* *|
3|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
4|* Exceptions. *|
5|* See https://llvm.org/LICENSE.txt for license information. *|
6|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
7|* *|
8|*===----------------------------------------------------------------------===*|
9|* *|
10|* This file defines the C interface to COMDAT. *|
11|* *|
12\*===----------------------------------------------------------------------===*/
13
14#ifndef LLVM_C_COMDAT_H
15#define LLVM_C_COMDAT_H
16
17#include "llvm-c/ExternC.h"
18#include "llvm-c/Types.h"
19
21
29typedef enum {
39
47
54
61
62/*
63 * Get the conflict resolution selection kind for the Comdat.
64 *
65 * @see llvm::Comdat::getSelectionKind()
66 */
68
69/*
70 * Set the conflict resolution selection kind for the Comdat.
71 *
72 * @see llvm::Comdat::setSelectionKind()
73 */
75
81
82#endif
#define LLVM_C_EXTERN_C_BEGIN
Definition: ExternC.h:35
#define LLVM_C_EXTERN_C_END
Definition: ExternC.h:36
#define C(name, bit)
Definition: cpu.h:242
LLVMComdatSelectionKind LLVMGetComdatSelectionKind(LLVMComdatRef C)
LLVMComdatRef LLVMGetOrInsertComdat(LLVMModuleRef M, const char *Name)
void LLVMSetComdat(LLVMValueRef V, LLVMComdatRef C)
void LLVMSetComdatSelectionKind(LLVMComdatRef C, LLVMComdatSelectionKind Kind)
LLVMComdatSelectionKind
Definition: Comdat.h:29
LLVMComdatRef LLVMGetComdat(LLVMValueRef V)
@ LLVMLargestComdatSelectionKind
Definition: Comdat.h:33
@ LLVMSameSizeComdatSelectionKind
Definition: Comdat.h:36
@ LLVMExactMatchComdatSelectionKind
Definition: Comdat.h:31
@ LLVMAnyComdatSelectionKind
The linker may choose any COMDAT.
Definition: Comdat.h:30
@ LLVMNoDeduplicateComdatSelectionKind
No deduplication is performed.
Definition: Comdat.h:35
struct LLVMOpaqueValue * LLVMValueRef
Definition: Types.h:75
struct LLVMComdat * LLVMComdatRef
Definition: Types.h:155
struct LLVMOpaqueModule * LLVMModuleRef
Definition: Types.h:61