OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Comdat
(Results
1 - 25
of
55
) sorted by relevancy
1
2
3
/src/external/apache2/llvm/dist/llvm/lib/IR/
Comdat.cpp
1
//===-
Comdat
.cpp - Implement Metadata classes ----------------------------===//
9
// This file implements the
Comdat
class (including the C bindings).
13
#include "llvm-c/
Comdat
.h"
16
#include "llvm/IR/
Comdat
.h"
22
Comdat
::
Comdat
(
Comdat
&&C) : Name(C.Name), SK(C.SK) {}
24
Comdat
::
Comdat
() = default;
26
StringRef
Comdat
::getName() const { return Name->first();
[
all
...]
/src/external/apache2/llvm/dist/llvm/include/llvm/IR/
Comdat.h
1
//===- llvm/IR/
Comdat
.h -
Comdat
definitions --------------------*- C++ -*-===//
10
/// This file contains the declaration of the
Comdat
class, which represents a
11
/// single
COMDAT
in LLVM.
31
class
Comdat
{
34
Any, ///< The linker may choose any
COMDAT
.
35
ExactMatch, ///< The data referenced by the
COMDAT
must be the same.
36
Largest, ///< The linker will choose the largest
COMDAT
.
37
NoDuplicates, ///< No other Module may specify this
COMDAT
.
38
SameSize, ///< The data referenced by the
COMDAT
must be the same size
[
all
...]
GlobalObject.h
24
class
Comdat
;
52
Comdat
*ObjComdat;
123
const
Comdat
*getComdat() const { return ObjComdat; }
124
Comdat
*getComdat() { return ObjComdat; }
125
void setComdat(
Comdat
*C) { ObjComdat = C; }
GlobalValue.h
34
class
Comdat
;
223
const
Comdat
*getComdat() const;
224
Comdat
*getComdat() {
225
return const_cast<
Comdat
*>(
/src/external/apache2/llvm/dist/llvm/lib/Linker/
LinkModules.cpp
16
#include "llvm/IR/
Comdat
.h"
48
/// of the same
comdat
, should be linked. Every member to be linked is passed
67
Comdat
::SelectionKind Src,
68
Comdat
::SelectionKind Dst,
69
Comdat
::SelectionKind &Result,
71
std::map<const
Comdat
*, std::pair<
Comdat
::SelectionKind, bool>>
73
bool getComdatResult(const
Comdat
*SrcC,
Comdat
::SelectionKind &SK,
75
// Keep track of the lazy linked global members of each
comdat
in source
[
all
...]
/src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
Internalize.h
45
/// visible and is not a member of an externally visible
comdat
.
47
const DenseSet<const
Comdat
*> &ExternalComdats);
48
/// If GV is part of a
comdat
and is externally visible, keep track of its
49
///
comdat
so that we don't internalize any of its members.
51
DenseSet<const
Comdat
*> &ExternalComdats);
GlobalDCE.h
43
///
Comdat
-> Globals in that
Comdat
section.
44
std::unordered_multimap<
Comdat
*, GlobalValue *> ComdatMembers;
/src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
IndirectThunks.h
31
bool
Comdat
= true);
44
StringRef Name, bool
Comdat
) {
52
Comdat
? GlobalValue::LinkOnceODRLinkage
55
if (
Comdat
) {
/src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
Instrumentation.cpp
76
Comdat
*llvm::getOrCreateFunctionComdat(Function &F, Triple &T) {
77
if (auto
Comdat
= F.getComdat()) return
Comdat
;
81
// Make a new
comdat
for the function. Use the "no duplicates" selection kind
84
Comdat
*C = M->getOrInsertComdat(F.getName());
86
C->setSelectionKind(
Comdat
::NoDuplicates);
/src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
FunctionImportUtils.h
59
/// Keep track of any COMDATs that require renaming (because
COMDAT
60
/// leader was promoted and renamed). Maps from original
COMDAT
to one
62
DenseMap<const
Comdat
*,
Comdat
*> RenamedComdats;
/src/external/apache2/llvm/dist/llvm/lib/Object/
IRSymtab.cpp
18
#include "llvm/IR/
Comdat
.h"
80
DenseMap<const
Comdat
*, int> ComdatMap;
84
std::vector<storage::
Comdat
> Comdats;
107
Expected<int> getComdatIndex(const
Comdat
*C, const Module *M);
179
Expected<int> Builder::getComdatIndex(const
Comdat
*C, const Module *M) {
200
storage::
Comdat
Comdat
;
201
setStr(
Comdat
.Name, Saver.save(Name));
202
Comdats.push_back(
Comdat
);
287
return make_error<StringError>("Unable to determine
comdat
of alias!"
[
all
...]
/src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
Internalize.cpp
114
GlobalValue &GV, const DenseSet<const
Comdat
*> &ExternalComdats) {
115
if (
Comdat
*C = GV.getComdat()) {
119
// If a
comdat
is not externally visible we can drop it.
138
// If GV is part of a
comdat
and is externally visible, keep track of its
139
//
comdat
so that we don't internalize any of its members.
141
GlobalValue &GV, DenseSet<const
Comdat
*> &ExternalComdats) {
142
Comdat
*C = GV.getComdat();
157
// Collect
comdat
visiblity information for the module.
158
DenseSet<const
Comdat
*> ExternalComdats;
GlobalDCE.cpp
152
if (
Comdat
*C = GV.getComdat()) {
155
// globals in the same
comdat
are visited.
303
// Collect the set of members for each
comdat
.
305
if (
Comdat
*C = F.getComdat())
308
if (
Comdat
*C = GV.getComdat())
311
if (
Comdat
*C = GA.getComdat())
/src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/
Instrumentation.h
30
class
Comdat
;
47
// Otherwise creates a new
comdat
, sets F's
comdat
, and returns it.
49
Comdat
*getOrCreateFunctionComdat(Function &F, Triple &T);
/src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
ModuleUtils.cpp
45
// Build a 3 field global_ctor entry. We don't take a
comdat
key.
202
// Build a map from the
comdat
to the number of entries in that
comdat
we
203
// think are dead. If this fully covers the
comdat
group, then the entire
204
// group is dead. If we find another entry in the
comdat
group though, we'll
206
SmallDenseMap<
Comdat
*, int, 16> ComdatEntriesCovered;
208
Comdat
*C = F->getComdat();
209
assert(C && "Expected all input GVs to be in a
comdat
!");
213
auto CheckComdat = [&](
Comdat
&C) {
226
// entire
comdat
is alive so remove it from the map
[
all
...]
SplitModule.cpp
21
#include "llvm/IR/
Comdat
.h"
56
using ComdatMembersType = DenseMap<const
Comdat
*, const GlobalValue *>;
114
//
Comdat
groups must not be partitioned. For
comdat
groups that contain
116
//
Comdat
groups that only contain external globals are already handled by
118
if (const
Comdat
*C = GV.getComdat()) {
233
if (const
Comdat
*C = GV->getComdat())
CloneModule.cpp
22
const
Comdat
*SC = Src->getComdat();
25
Comdat
*DC = Dst->getParent()->getOrInsertComdat(SC->getName());
/src/external/apache2/llvm/lib/libLLVMIR/
Makefile
18
Comdat
.cpp \
/src/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/
ValueEnumerator.h
29
class
Comdat
;
65
using ComdatSetType = UniqueVector<const
Comdat
*>;
225
unsigned getComdatID(const
Comdat
*C) const;
/src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
wasm2yaml.cpp
88
LinkingSec->Comdats.emplace_back(WasmYAML::
Comdat
{ComdatName, {}});
90
if (Func.
Comdat
!= UINT32_MAX) {
91
LinkingSec->Comdats[Func.
Comdat
].Entries.emplace_back(
106
if (Segment.Data.
Comdat
!= UINT32_MAX) {
107
LinkingSec->Comdats[Segment.Data.
Comdat
].Entries.emplace_back(
115
if (WasmSec.
Comdat
!= UINT32_MAX)
116
LinkingSec->Comdats[WasmSec.
Comdat
].Entries.emplace_back(
/src/external/apache2/llvm/dist/llvm/lib/CodeGen/
TargetLoweringObjectFileImpl.cpp
30
#include "llvm/IR/
Comdat
.h"
343
// we put each descriptor in a separate
comdat
section and rely on the
529
static const
Comdat
*getELFComdat(const GlobalValue *GV) {
530
const
Comdat
*C = GV->getComdat();
534
if (C->getSelectionKind() !=
Comdat
::Any &&
535
C->getSelectionKind() !=
Comdat
::NoDuplicates)
689
if (const
Comdat
*C = getELFComdat(GO)) {
691
IsComdat = C->getSelectionKind() ==
Comdat
::Any;
801
if (const
Comdat
*C = getELFComdat(GO)) {
804
IsComdat = C->getSelectionKind() ==
Comdat
::Any
[
all
...]
/src/external/apache2/llvm/dist/llvm/include/llvm/ObjectYAML/
WasmYAML.h
177
struct
Comdat
{
242
std::vector<
Comdat
> Comdats;
427
LLVM_YAML_IS_SEQUENCE_VECTOR(llvm::WasmYAML::
Comdat
)
549
template <> struct MappingTraits<WasmYAML::
Comdat
> {
550
static void mapping(IO &IO, WasmYAML::
Comdat
&
Comdat
);
/src/external/apache2/llvm/dist/llvm/include/llvm/Object/
IRSymtab.h
80
/// This is equivalent to an IR
comdat
.
81
struct
Comdat
{
95
/// The index into Header::Comdats, or -1 if not a
comdat
member.
144
Range<
Comdat
> Comdats;
184
/// Returns the index into the
comdat
table (see Reader::getComdatTable()), or
185
/// -1 if not a
comdat
member.
236
ArrayRef<storage::
Comdat
> Comdats;
/src/external/apache2/llvm/dist/llvm/tools/llvm-lto2/
llvm-lto2.cpp
449
int
Comdat
= Sym.getComdatIndex();
450
if (
Comdat
!= -1)
451
outs() << "
comdat
" << ComdatTable[
Comdat
] << '\n';
/src/external/apache2/llvm/dist/llvm/include/llvm/BinaryFormat/
Wasm.h
144
uint32_t
Comdat
; // from the "
comdat
info" section
158
uint32_t
Comdat
; // from the "
comdat
info" section
Completed in 37 milliseconds
1
2
3
Indexes created Tue Jun 16 00:25:01 UTC 2026