LLVM  14.0.0git
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 
22 /**
23  * @defgroup LLVMCCoreComdat Comdats
24  * @ingroup LLVMCCore
25  *
26  * @{
27  */
28 
29 typedef enum {
30  LLVMAnyComdatSelectionKind, ///< The linker may choose any COMDAT.
31  LLVMExactMatchComdatSelectionKind, ///< The data referenced by the COMDAT must
32  ///< be the same.
33  LLVMLargestComdatSelectionKind, ///< The linker will choose the largest
34  ///< COMDAT.
35  LLVMNoDeduplicateComdatSelectionKind, ///< No deduplication is performed.
36  LLVMSameSizeComdatSelectionKind ///< The data referenced by the COMDAT must be
37  ///< the same size.
39 
40 /**
41  * Return the Comdat in the module with the specified name. It is created
42  * if it didn't already exist.
43  *
44  * @see llvm::Module::getOrInsertComdat()
45  */
47 
48 /**
49  * Get the Comdat assigned to the given global object.
50  *
51  * @see llvm::GlobalObject::getComdat()
52  */
54 
55 /**
56  * Assign the Comdat to the given global object.
57  *
58  * @see llvm::GlobalObject::setComdat()
59  */
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 
76 /**
77  * @}
78  */
79 
81 
82 #endif
LLVMSameSizeComdatSelectionKind
@ LLVMSameSizeComdatSelectionKind
The data referenced by the COMDAT must be the same size.
Definition: Comdat.h:36
M
We currently emits eax Perhaps this is what we really should generate is Is imull three or four cycles eax eax The current instruction priority is based on pattern complexity The former is more complex because it folds a load so the latter will not be emitted Perhaps we should use AddedComplexity to give LEA32r a higher priority We should always try to match LEA first since the LEA matching code does some estimate to determine whether the match is profitable if we care more about code then imull is better It s two bytes shorter than movl leal On a Pentium M
Definition: README.txt:252
Types.h
LLVMLargestComdatSelectionKind
@ LLVMLargestComdatSelectionKind
The linker will choose the largest COMDAT.
Definition: Comdat.h:33
LLVMExactMatchComdatSelectionKind
@ LLVMExactMatchComdatSelectionKind
The data referenced by the COMDAT must be the same.
Definition: Comdat.h:31
C
(vector float) vec_cmpeq(*A, *B) C
Definition: README_ALTIVEC.txt:86
LLVMSetComdatSelectionKind
void LLVMSetComdatSelectionKind(LLVMComdatRef C, LLVMComdatSelectionKind Kind)
Definition: Comdat.cpp:58
llvm::lltok::Kind
Kind
Definition: LLToken.h:18
LLVMComdatSelectionKind
LLVMComdatSelectionKind
Definition: Comdat.h:29
LLVMGetComdatSelectionKind
LLVMComdatSelectionKind LLVMGetComdatSelectionKind(LLVMComdatRef C)
Definition: Comdat.cpp:42
LLVM_C_EXTERN_C_END
#define LLVM_C_EXTERN_C_END
Definition: ExternC.h:36
LLVMSetComdat
void LLVMSetComdat(LLVMValueRef V, LLVMComdatRef C)
Assign the Comdat to the given global object.
Definition: Comdat.cpp:37
LLVMAnyComdatSelectionKind
@ LLVMAnyComdatSelectionKind
The linker may choose any COMDAT.
Definition: Comdat.h:30
LLVMGetComdat
LLVMComdatRef LLVMGetComdat(LLVMValueRef V)
Get the Comdat assigned to the given global object.
Definition: Comdat.cpp:32
llvm::GraphProgram::Name
Name
Definition: GraphWriter.h:52
LLVMGetOrInsertComdat
LLVMComdatRef LLVMGetOrInsertComdat(LLVMModuleRef M, const char *Name)
Return the Comdat in the module with the specified name.
Definition: Comdat.cpp:28
LLVM_C_EXTERN_C_BEGIN
#define LLVM_C_EXTERN_C_BEGIN
Definition: ExternC.h:35
LLVMNoDeduplicateComdatSelectionKind
@ LLVMNoDeduplicateComdatSelectionKind
No deduplication is performed.
Definition: Comdat.h:35
LLVMValueRef
struct LLVMOpaqueValue * LLVMValueRef
Represents an individual value in LLVM IR.
Definition: Types.h:75
ExternC.h
LLVMComdatRef
struct LLVMComdat * LLVMComdatRef
Definition: Types.h:153
LLVMModuleRef
struct LLVMOpaqueModule * LLVMModuleRef
The top-level container for all other LLVM Intermediate Representation (IR) objects.
Definition: Types.h:61