Coverage Report

Created: 2019-06-16 23:17

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/include/llvm/ADT/StringMap.h
Line
Count
Source
1
//===- StringMap.h - String Hash table map interface ------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file defines the StringMap class.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#ifndef LLVM_ADT_STRINGMAP_H
14
#define LLVM_ADT_STRINGMAP_H
15
16
#include "llvm/ADT/StringRef.h"
17
#include "llvm/ADT/iterator.h"
18
#include "llvm/ADT/iterator_range.h"
19
#include "llvm/Support/Allocator.h"
20
#include "llvm/Support/PointerLikeTypeTraits.h"
21
#include "llvm/Support/ErrorHandling.h"
22
#include <algorithm>
23
#include <cassert>
24
#include <cstdint>
25
#include <cstdlib>
26
#include <cstring>
27
#include <initializer_list>
28
#include <iterator>
29
#include <utility>
30
31
namespace llvm {
32
33
template<typename ValueTy> class StringMapConstIterator;
34
template<typename ValueTy> class StringMapIterator;
35
template<typename ValueTy> class StringMapKeyIterator;
36
37
/// StringMapEntryBase - Shared base class of StringMapEntry instances.
38
class StringMapEntryBase {
39
  size_t StrLen;
40
41
public:
42
430M
  explicit StringMapEntryBase(size_t Len) : StrLen(Len) {}
43
44
2.51G
  size_t getKeyLength() const { return StrLen; }
45
};
46
47
/// StringMapImpl - This is the base class of StringMap that is shared among
48
/// all of its instantiations.
49
class StringMapImpl {
50
protected:
51
  // Array of NumBuckets pointers to entries, null pointers are holes.
52
  // TheTable[NumBuckets] contains a sentinel value for easy iteration. Followed
53
  // by an array of the actual hash values as unsigned integers.
54
  StringMapEntryBase **TheTable = nullptr;
55
  unsigned NumBuckets = 0;
56
  unsigned NumItems = 0;
57
  unsigned NumTombstones = 0;
58
  unsigned ItemSize;
59
60
protected:
61
  explicit StringMapImpl(unsigned itemSize)
62
17.6M
      : ItemSize(itemSize) {}
63
  StringMapImpl(StringMapImpl &&RHS)
64
      : TheTable(RHS.TheTable), NumBuckets(RHS.NumBuckets),
65
        NumItems(RHS.NumItems), NumTombstones(RHS.NumTombstones),
66
152k
        ItemSize(RHS.ItemSize) {
67
152k
    RHS.TheTable = nullptr;
68
152k
    RHS.NumBuckets = 0;
69
152k
    RHS.NumItems = 0;
70
152k
    RHS.NumTombstones = 0;
71
152k
  }
72
73
  StringMapImpl(unsigned InitSize, unsigned ItemSize);
74
  unsigned RehashTable(unsigned BucketNo = 0);
75
76
  /// LookupBucketFor - Look up the bucket that the specified string should end
77
  /// up in.  If it already exists as a key in the map, the Item pointer for the
78
  /// specified bucket will be non-null.  Otherwise, it will be null.  In either
79
  /// case, the FullHashValue field of the bucket will be set to the hash value
80
  /// of the string.
81
  unsigned LookupBucketFor(StringRef Key);
82
83
  /// FindKey - Look up the bucket that contains the specified key. If it exists
84
  /// in the map, return the bucket number of the key.  Otherwise return -1.
85
  /// This does not modify the map.
86
  int FindKey(StringRef Key) const;
87
88
  /// RemoveKey - Remove the specified StringMapEntry from the table, but do not
89
  /// delete it.  This aborts if the value isn't in the table.
90
  void RemoveKey(StringMapEntryBase *V);
91
92
  /// RemoveKey - Remove the StringMapEntry for the specified key from the
93
  /// table, returning it.  If the key is not in the table, this returns null.
94
  StringMapEntryBase *RemoveKey(StringRef Key);
95
96
  /// Allocate the table with the specified number of buckets and otherwise
97
  /// setup the map as empty.
98
  void init(unsigned Size);
99
100
public:
101
4.53G
  static StringMapEntryBase *getTombstoneVal() {
102
4.53G
    uintptr_t Val = static_cast<uintptr_t>(-1);
103
4.53G
    Val <<= PointerLikeTypeTraits<StringMapEntryBase *>::NumLowBitsAvailable;
104
4.53G
    return reinterpret_cast<StringMapEntryBase *>(Val);
105
4.53G
  }
106
107
11
  unsigned getNumBuckets() const { return NumBuckets; }
108
3
  unsigned getNumItems() const { return NumItems; }
109
110
23.2M
  bool empty() const { return NumItems == 0; }
111
5.43M
  unsigned size() const { return NumItems; }
112
113
75.0k
  void swap(StringMapImpl &Other) {
114
75.0k
    std::swap(TheTable, Other.TheTable);
115
75.0k
    std::swap(NumBuckets, Other.NumBuckets);
116
75.0k
    std::swap(NumItems, Other.NumItems);
117
75.0k
    std::swap(NumTombstones, Other.NumTombstones);
118
75.0k
  }
119
};
120
121
/// StringMapEntry - This is used to represent one value that is inserted into
122
/// a StringMap.  It contains the Value itself and the key: the string length
123
/// and data.
124
template<typename ValueTy>
125
class StringMapEntry : public StringMapEntryBase {
126
public:
127
  ValueTy second;
128
129
  explicit StringMapEntry(size_t strLen)
130
54.3M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerWriter, std::__1::default_delete<clang::PCHContainerWriter> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
84.8k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerReader, std::__1::default_delete<clang::PCHContainerReader> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
84.8k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::AArch64Subtarget, std::__1::default_delete<llvm::AArch64Subtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
9.02k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<unsigned int>::StringMapEntry(unsigned long)
Line
Count
Source
130
3.11M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::R600Subtarget, std::__1::default_delete<llvm::R600Subtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
290
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::GCNSubtarget, std::__1::default_delete<llvm::GCNSubtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
3.23k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ARMSubtarget, std::__1::default_delete<llvm::ARMSubtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
5.16k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >::StringMapEntry(unsigned long)
Line
Count
Source
130
43
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::HexagonSubtarget, std::__1::default_delete<llvm::HexagonSubtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
1.01k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::MipsSubtarget, std::__1::default_delete<llvm::MipsSubtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
2.16k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::AsmToken>::StringMapEntry(unsigned long)
Line
Count
Source
130
1
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::PPCSubtarget, std::__1::default_delete<llvm::PPCSubtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
1.81k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::SparcSubtarget, std::__1::default_delete<llvm::SparcSubtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
197
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::Function*>::StringMapEntry(unsigned long)
Line
Count
Source
130
313
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::RTLIB::Libcall>::StringMapEntry(unsigned long)
Line
Count
Source
130
4.46k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::WebAssemblySubtarget, std::__1::default_delete<llvm::WebAssemblySubtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
511
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::X86Subtarget, std::__1::default_delete<llvm::X86Subtarget> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
15.1k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::TargetLibraryInfoImpl, std::__1::default_delete<llvm::TargetLibraryInfoImpl> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
1.27k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::GCStrategy*>::StringMapEntry(unsigned long)
Line
Count
Source
130
26
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ExternalSymbolPseudoSourceValue const, std::__1::default_delete<llvm::ExternalSymbolPseudoSourceValue const> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
614
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::pair<unsigned int, unsigned int> >::StringMapEntry(unsigned long)
Line
Count
Source
130
155
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::MDString>::StringMapEntry(unsigned long)
Line
Count
Source
130
429k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::NamedMDNode*>::StringMapEntry(unsigned long)
Line
Count
Source
130
58.8k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::PassInfo const*>::StringMapEntry(unsigned long)
Line
Count
Source
130
31.4M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
624
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::StringMap<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> >, llvm::MallocAllocator> >::StringMapEntry(unsigned long)
Line
Count
Source
130
493
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<bool>::StringMapEntry(unsigned long)
Line
Count
Source
130
1.15M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::MCSymbol*>::StringMapEntry(unsigned long)
Line
Count
Source
130
4.56M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::MCSectionMachO*>::StringMapEntry(unsigned long)
Line
Count
Source
130
888k
    : StringMapEntryBase(strLen), second() {}
AsmParser.cpp:llvm::StringMapEntry<(anonymous namespace)::AsmParser::DirectiveKind>::StringMapEntry(unsigned long)
Line
Count
Source
130
2.84M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::pair<llvm::MCAsmParserExtension*, bool (*)(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc)> >::StringMapEntry(unsigned long)
Line
Count
Source
130
682k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<unsigned long>::StringMapEntry(unsigned long)
Line
Count
Source
130
36.8k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::StringMap<llvm::SpecialCaseList::Matcher, llvm::MallocAllocator> >::StringMapEntry(unsigned long)
Line
Count
Source
130
303
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::SpecialCaseList::Matcher>::StringMapEntry(unsigned long)
Line
Count
Source
130
328
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::pair<unsigned long, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > >::StringMapEntry(unsigned long)
Line
Count
Source
130
10
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::pair<llvm::TimerGroup*, llvm::StringMap<llvm::Timer, llvm::MallocAllocator> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
9
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::Timer>::StringMapEntry(unsigned long)
Line
Count
Source
130
9
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::yaml::Input::HNode, std::__1::default_delete<llvm::yaml::Input::HNode> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
440k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<void*>::StringMapEntry(unsigned long)
Line
Count
Source
130
3
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode, std::__1::default_delete<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
36
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::vfs::Status>::StringMapEntry(unsigned long)
Line
Count
Source
130
19
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::OpenCLOptions::Info>::StringMapEntry(unsigned long)
Line
Count
Source
130
4.38M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::DenseMap<unsigned long long, llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long long>, llvm::detail::DenseMapPair<unsigned long long, llvm::GlobalValueSummary*> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
531
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::Constant*>::StringMapEntry(unsigned long)
Line
Count
Source
130
47
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::GlobalVariable*>::StringMapEntry(unsigned long)
Line
Count
Source
130
2.11k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::DenseMap<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion, llvm::DenseMapInfo<unsigned int>, llvm::detail::DenseMapPair<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
3.48k
    : StringMapEntryBase(strLen), second() {}
Unexecuted instantiation: llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::StringMapEntry(unsigned long)
llvm::StringMapEntry<llvm::TrackingVH<llvm::Constant> >::StringMapEntry(unsigned long)
Line
Count
Source
130
114
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::ASTContext::SectionInfo>::StringMapEntry(unsigned long)
Line
Count
Source
130
193
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<clang::driver::ToolChain, std::__1::default_delete<clang::driver::ToolChain> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
31.2k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<char const*>::StringMapEntry(unsigned long)
Line
Count
Source
130
105
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<int>::StringMapEntry(unsigned long)
Line
Count
Source
130
779k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
2.24k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::SourceLocation>::StringMapEntry(unsigned long)
Line
Count
Source
130
15
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::LayoutOverrideSource::Layout>::StringMapEntry(unsigned long)
Line
Count
Source
130
37
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::PrecompiledPreamble::PreambleFileHash>::StringMapEntry(unsigned long)
Line
Count
Source
130
156
    : StringMapEntryBase(strLen), second() {}
VerifyDiagnosticConsumer.cpp:llvm::StringMapEntry<llvm::SmallVector<(anonymous namespace)::UnattachedDirective, 2u> >::StringMapEntry(unsigned long)
Line
Count
Source
130
11
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::pair<llvm::StringRef, bool> >::StringMapEntry(unsigned long)
Line
Count
Source
130
3.95k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::SmallVector<unsigned int, 2u> >::StringMapEntry(unsigned long)
Line
Count
Source
130
89.7k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::InMemoryModuleCache::PCM>::StringMapEntry(unsigned long)
Line
Count
Source
130
1.26k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<polly::ScopArrayInfo, std::__1::default_delete<polly::ScopArrayInfo> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
85
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::DIE const*>::StringMapEntry(unsigned long)
Line
Count
Source
130
70.2k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::weak_ptr<llvm::DWARFContext::DWOFile> >::StringMapEntry(unsigned long)
Line
Count
Source
130
9
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<unsigned short>::StringMapEntry(unsigned long)
Line
Count
Source
130
47
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::SDNode*>::StringMapEntry(unsigned long)
Line
Count
Source
130
14.2k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::lto::LTO::GlobalResolution>::StringMapEntry(unsigned long)
Line
Count
Source
130
989
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::map<unsigned long long, llvm::GlobalValue::LinkageTypes, std::__1::less<unsigned long long>, std::__1::allocator<std::__1::pair<unsigned long long const, llvm::GlobalValue::LinkageTypes> > > >::StringMapEntry(unsigned long)
Line
Count
Source
130
405
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::Stmt*>::StringMapEntry(unsigned long)
Line
Count
Source
130
13.0k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<FoundationClass>::StringMapEntry(unsigned long)
Line
Count
Source
130
91
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::SmallSet<clang::Selector, 16u, std::__1::less<clang::Selector> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
20
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::ento::BugType*>::StringMapEntry(unsigned long)
Line
Count
Source
130
709
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::unique_ptr<clang::ASTUnit, std::__1::default_delete<clang::ASTUnit> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
32
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::ASTUnit*>::StringMapEntry(unsigned long)
Line
Count
Source
130
53
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::vector<clang::FunctionDecl*, std::__1::allocator<clang::FunctionDecl*> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
3
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::SmallVector<clang::TypoCorrection, 1u> >::StringMapEntry(unsigned long)
Line
Count
Source
130
10.2k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::TimeRecord>::StringMapEntry(unsigned long)
Line
Count
Source
130
1
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::StringLiteral*>::StringMapEntry(unsigned long)
Line
Count
Source
130
65
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::comments::TParamCommandComment*>::StringMapEntry(unsigned long)
Line
Count
Source
130
90
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::FrameworkCacheEntry>::StringMapEntry(unsigned long)
Line
Count
Source
130
403
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::HeaderSearch::LookupFileCacheInfo>::StringMapEntry(unsigned long)
Line
Count
Source
130
372k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::StringSet<llvm::MallocAllocator> >::StringMapEntry(unsigned long)
Line
Count
Source
130
14
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::Module*>::StringMapEntry(unsigned long)
Line
Count
Source
130
72.5k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<clang::PragmaHandler*>::StringMapEntry(unsigned long)
Line
Count
Source
130
2.21M
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >::StringMapEntry(unsigned long)
Line
Count
Source
130
12.4k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<unsigned long long>::StringMapEntry(unsigned long)
Line
Count
Source
130
579
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::sampleprof::FunctionSamples>::StringMapEntry(unsigned long)
Line
Count
Source
130
297
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::RecordStreamer::State>::StringMapEntry(unsigned long)
Line
Count
Source
130
264
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::GlobalValue const*>::StringMapEntry(unsigned long)
Line
Count
Source
130
256
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::TinyPtrVector<lld::elf::OutputSection*> >::StringMapEntry(unsigned long)
Line
Count
Source
130
375k
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::vector<lld::elf::Symbol*, std::__1::allocator<lld::elf::Symbol*> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
43
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::vector<lld::wasm::InputSection*, std::__1::allocator<lld::wasm::InputSection*> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
22
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<lld::mach_o::MachODylibFile*>::StringMapEntry(unsigned long)
Line
Count
Source
130
233
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<std::__1::vector<lld::MachOLinkingContext::OrderFileNode, std::__1::allocator<lld::MachOLinkingContext::OrderFileNode> > >::StringMapEntry(unsigned long)
Line
Count
Source
130
5
    : StringMapEntryBase(strLen), second() {}
MachONormalizedFileFromAtoms.cpp:llvm::StringMapEntry<(anonymous namespace)::Util::DylibInfo>::StringMapEntry(unsigned long)
Line
Count
Source
130
114
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<lld::Atom const*>::StringMapEntry(unsigned long)
Line
Count
Source
130
396
    : StringMapEntryBase(strLen), second() {}
llvm::StringMapEntry<llvm::FileInfo::LineData>::StringMapEntry(unsigned long)
Line
Count
Source
130
46
    : StringMapEntryBase(strLen), second() {}
131
  template <typename... InitTy>
132
  StringMapEntry(size_t strLen, InitTy &&... InitVals)
133
365M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
AArch64AsmParser.cpp:llvm::StringMapEntry<std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >::StringMapEntry<std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >(unsigned long, std::__1::pair<(anonymous namespace)::RegKind, unsigned int>&&)
Line
Count
Source
133
17
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<int>::StringMapEntry<int>(unsigned long, int&&)
Line
Count
Source
133
1.66k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<char>::StringMapEntry<char>(unsigned long, char&&)
Line
Count
Source
133
920k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned int>::StringMapEntry<unsigned int>(unsigned long, unsigned int&&)
Line
Count
Source
133
25.1M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned long long>::StringMapEntry<unsigned long long&>(unsigned long, unsigned long long&&&)
Line
Count
Source
133
201
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::ConstantDataSequential*>::StringMapEntry<llvm::ConstantDataSequential*>(unsigned long, llvm::ConstantDataSequential*&&)
Line
Count
Source
133
491k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned char>::StringMapEntry<unsigned char>(unsigned long, unsigned char&&)
Line
Count
Source
133
226k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::Comdat>::StringMapEntry<llvm::Comdat>(unsigned long, llvm::Comdat&&)
Line
Count
Source
133
31.8k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::StructType*>::StringMapEntry<llvm::StructType*>(unsigned long, llvm::StructType*&&)
Line
Count
Source
133
243k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::Value*>::StringMapEntry<llvm::Value*>(unsigned long, llvm::Value*&&)
Line
Count
Source
133
16.9M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<char>::StringMapEntry<char&>(unsigned long, char&&&)
Line
Count
Source
133
7.41k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::Function*>::StringMapEntry<llvm::Function*>(unsigned long, llvm::Function*&&)
Line
Count
Source
133
25
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
GCOVProfiling.cpp:llvm::StringMapEntry<(anonymous namespace)::GCOVLines>::StringMapEntry<llvm::StringRef&, llvm::raw_ostream*&>(unsigned long, llvm::StringRef&&&, llvm::raw_ostream*&&&)
Line
Count
Source
133
84
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<bool>::StringMapEntry<bool>(unsigned long, bool&&)
Line
Count
Source
133
4.96M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::MCAsmMacro>::StringMapEntry<llvm::MCAsmMacro>(unsigned long, llvm::MCAsmMacro&&)
Line
Count
Source
133
293
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::cl::Option*>::StringMapEntry<llvm::cl::Option*>(unsigned long, llvm::cl::Option*&&)
Line
Count
Source
133
151M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> > >::StringMapEntry<std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> > >(unsigned long, std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> >&&)
Line
Count
Source
133
137k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::IdentifierInfo*>::StringMapEntry<clang::IdentifierInfo*>(unsigned long, clang::IdentifierInfo*&&)
Line
Count
Source
133
157M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::DirectoryEntry*>::StringMapEntry<clang::DirectoryEntry*>(unsigned long, clang::DirectoryEntry*&&)
Line
Count
Source
133
406k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::FileEntry*>::StringMapEntry<clang::FileEntry*>(unsigned long, clang::FileEntry*&&)
Line
Count
Source
133
1.38M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned int>::StringMapEntry<unsigned long>(unsigned long, unsigned long&&)
Line
Count
Source
133
116k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::GlobalVariable*>::StringMapEntry<llvm::GlobalVariable*>(unsigned long, llvm::GlobalVariable*&&)
Line
Count
Source
133
313
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::AssertingVH<llvm::Constant> >::StringMapEntry<std::nullptr_t>(unsigned long, std::nullptr_t&&)
Line
Count
Source
133
224
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::StringMapEntry<unsigned int&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&>(unsigned long, unsigned int&&&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&&&)
Line
Count
Source
133
60
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::StringMapEntry<unsigned int&, llvm::Constant*&, clang::CharUnits&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&, llvm::GlobalValue::LinkageTypes&>(unsigned long, unsigned int&&&, llvm::Constant*&&&, clang::CharUnits&&&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&&&, llvm::GlobalValue::LinkageTypes&&&)
Line
Count
Source
133
69
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::WeakTrackingVH>::StringMapEntry<llvm::Constant*&>(unsigned long, llvm::Constant*&&&)
Line
Count
Source
133
11
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::GlobalDecl>::StringMapEntry<clang::GlobalDecl>(unsigned long, clang::GlobalDecl&&)
Line
Count
Source
133
2.33M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::OpenCLOptions::Info>::StringMapEntry<clang::OpenCLOptions::Info&>(unsigned long, clang::OpenCLOptions::Info&&&)
Line
Count
Source
133
533k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&)
Line
Count
Source
133
2.83M
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::VerifyDiagnosticConsumer::MarkerTracker::Marker>::StringMapEntry<clang::VerifyDiagnosticConsumer::MarkerTracker::Marker>(unsigned long, clang::VerifyDiagnosticConsumer::MarkerTracker::Marker&&)
Line
Count
Source
133
839
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<std::__1::shared_ptr<clang::ModuleFileExtension> >::StringMapEntry<std::__1::shared_ptr<clang::ModuleFileExtension> >(unsigned long, std::__1::shared_ptr<clang::ModuleFileExtension>&&)
Line
Count
Source
133
27
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::InMemoryModuleCache::PCM>::StringMapEntry<clang::InMemoryModuleCache::PCM>(unsigned long, clang::InMemoryModuleCache::PCM&&)
Line
Count
Source
133
4.24k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned int const*>::StringMapEntry<unsigned int const*>(unsigned long, unsigned int const*&&)
Line
Count
Source
133
6.46k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::MachineMemOperand::Flags>::StringMapEntry<llvm::MachineMemOperand::Flags>(unsigned long, llvm::MachineMemOperand::Flags&&)
Line
Count
Source
133
6
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::TargetRegisterClass const*>::StringMapEntry<llvm::TargetRegisterClass const*>(unsigned long, llvm::TargetRegisterClass const*&&)
Line
Count
Source
133
168k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::RegisterBank const*>::StringMapEntry<llvm::RegisterBank const*>(unsigned long, llvm::RegisterBank const*&&)
Line
Count
Source
133
5.09k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::VRegInfo*>::StringMapEntry<llvm::VRegInfo*>(unsigned long, llvm::VRegInfo*&&)
Line
Count
Source
133
27
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::DIE const*>::StringMapEntry<llvm::DIE const*>(unsigned long, llvm::DIE const*&&)
Line
Count
Source
133
18
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::AccelTableBase::HashData>::StringMapEntry<llvm::DwarfStringPoolEntryRef&, unsigned int (*&)(llvm::StringRef)>(unsigned long, llvm::DwarfStringPoolEntryRef&&&, unsigned int (*&&&)(llvm::StringRef))
Line
Count
Source
133
71.7k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::DwarfStringPoolEntry>::StringMapEntry<llvm::DwarfStringPoolEntry>(unsigned long, llvm::DwarfStringPoolEntry&&)
Line
Count
Source
133
84.5k
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<clang::Stmt*>::StringMapEntry<clang::Stmt*>(unsigned long, clang::Stmt*&&)
Line
Count
Source
133
2
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
StdLibraryFunctionsChecker.cpp:llvm::StringMapEntry<std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> > >::StringMapEntry<std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> > >(unsigned long, std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> >&&)
Line
Count
Source
133
286
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(unsigned long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&&)
Line
Count
Source
133
111
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<std::__1::pair<clang::OMPCriticalDirective const*, llvm::APSInt> >::StringMapEntry<clang::OMPCriticalDirective const*&, llvm::APSInt&>(unsigned long, clang::OMPCriticalDirective const*&&&, llvm::APSInt&&&)
Line
Count
Source
133
38
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<char>::StringMapEntry<int>(unsigned long, int&&)
Line
Count
Source
133
3
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
Unexecuted instantiation: llvm::StringMapEntry<clang::FrameworkCacheEntry>::StringMapEntry<clang::FrameworkCacheEntry>(unsigned long, clang::FrameworkCacheEntry&&)
llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >(unsigned long, std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> >&&)
Line
Count
Source
133
882
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >(unsigned long, std::__1::pair<llvm::Type*, llvm::SMLoc>&&)
Line
Count
Source
133
55
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<llvm::Type*>::StringMapEntry<llvm::Type*>(unsigned long, llvm::Type*&&)
Line
Count
Source
133
89
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned int>::StringMapEntry<llvm::support::detail::packed_endian_specific_integral<unsigned int, (llvm::support::endianness)1, 1ul> const&>(unsigned long, llvm::support::detail::packed_endian_specific_integral<unsigned int, (llvm::support::endianness)1, 1ul> const&&&)
Line
Count
Source
133
31
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned int>::StringMapEntry<unsigned int&>(unsigned long, unsigned int&&&)
Line
Count
Source
133
382
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
llvm::StringMapEntry<unsigned long long>::StringMapEntry<unsigned long long>(unsigned long, unsigned long long&&)
Line
Count
Source
133
389
      : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {}
134
  StringMapEntry(StringMapEntry &E) = delete;
135
136
502M
  StringRef getKey() const {
137
502M
    return StringRef(getKeyData(), getKeyLength());
138
502M
  }
llvm::StringMapEntry<unsigned long long>::getKey() const
Line
Count
Source
136
126
  StringRef getKey() const {
137
126
    return StringRef(getKeyData(), getKeyLength());
138
126
  }
llvm::StringMapEntry<unsigned int>::getKey() const
Line
Count
Source
136
5.21M
  StringRef getKey() const {
137
5.21M
    return StringRef(getKeyData(), getKeyLength());
138
5.21M
  }
llvm::StringMapEntry<std::__1::pair<unsigned int, unsigned int> >::getKey() const
Line
Count
Source
136
12
  StringRef getKey() const {
137
12
    return StringRef(getKeyData(), getKeyLength());
138
12
  }
llvm::StringMapEntry<llvm::StructType*>::getKey() const
Line
Count
Source
136
1.33M
  StringRef getKey() const {
137
1.33M
    return StringRef(getKeyData(), getKeyLength());
138
1.33M
  }
llvm::StringMapEntry<llvm::Value*>::getKey() const
Line
Count
Source
136
475M
  StringRef getKey() const {
137
475M
    return StringRef(getKeyData(), getKeyLength());
138
475M
  }
llvm::StringMapEntry<char>::getKey() const
Line
Count
Source
136
6.41M
  StringRef getKey() const {
137
6.41M
    return StringRef(getKeyData(), getKeyLength());
138
6.41M
  }
Unexecuted instantiation: GCOVProfiling.cpp:llvm::StringMapEntry<(anonymous namespace)::GCOVLines>::getKey() const
llvm::StringMapEntry<bool>::getKey() const
Line
Count
Source
136
793k
  StringRef getKey() const {
137
793k
    return StringRef(getKeyData(), getKeyLength());
138
793k
  }
llvm::StringMapEntry<llvm::cl::Option*>::getKey() const
Line
Count
Source
136
59.2k
  StringRef getKey() const {
137
59.2k
    return StringRef(getKeyData(), getKeyLength());
138
59.2k
  }
llvm::StringMapEntry<std::__1::pair<unsigned long, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > >::getKey() const
Line
Count
Source
136
10
  StringRef getKey() const {
137
10
    return StringRef(getKeyData(), getKeyLength());
138
10
  }
llvm::StringMapEntry<llvm::TimeRecord>::getKey() const
Line
Count
Source
136
1
  StringRef getKey() const {
137
1
    return StringRef(getKeyData(), getKeyLength());
138
1
  }
llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::getKey() const
Line
Count
Source
136
126
  StringRef getKey() const {
137
126
    return StringRef(getKeyData(), getKeyLength());
138
126
  }
llvm::StringMapEntry<clang::OpenCLOptions::Info>::getKey() const
Line
Count
Source
136
572k
  StringRef getKey() const {
137
572k
    return StringRef(getKeyData(), getKeyLength());
138
572k
  }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::getKey() const
Line
Count
Source
136
83.2k
  StringRef getKey() const {
137
83.2k
    return StringRef(getKeyData(), getKeyLength());
138
83.2k
  }
llvm::StringMapEntry<clang::IdentifierInfo*>::getKey() const
Line
Count
Source
136
12.5M
  StringRef getKey() const {
137
12.5M
    return StringRef(getKeyData(), getKeyLength());
138
12.5M
  }
llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >::getKey() const
Line
Count
Source
136
356
  StringRef getKey() const {
137
356
    return StringRef(getKeyData(), getKeyLength());
138
356
  }
llvm::StringMapEntry<llvm::Type*>::getKey() const
Line
Count
Source
136
55
  StringRef getKey() const {
137
55
    return StringRef(getKeyData(), getKeyLength());
138
55
  }
llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >::getKey() const
Line
Count
Source
136
91
  StringRef getKey() const {
137
91
    return StringRef(getKeyData(), getKeyLength());
138
91
  }
llvm::StringMapEntry<llvm::sampleprof::FunctionSamples>::getKey() const
Line
Count
Source
136
77
  StringRef getKey() const {
137
77
    return StringRef(getKeyData(), getKeyLength());
138
77
  }
139
140
3.72M
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<unsigned int>::getValue() const
Line
Count
Source
140
8.65k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<llvm::MCSymbol*>::getValue() const
Line
Count
Source
140
9.80k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<unsigned long long>::getValue() const
Line
Count
Source
140
44
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<llvm::Comdat>::getValue() const
Line
Count
Source
140
27.6k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<llvm::Value*>::getValue() const
Line
Count
Source
140
214k
  const ValueTy &getValue() const { return second; }
AsmParser.cpp:llvm::StringMapEntry<(anonymous namespace)::AsmParser::DirectiveKind>::getValue() const
Line
Count
Source
140
342k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<llvm::cl::Option*>::getValue() const
Line
Count
Source
140
2.98k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<llvm::SpecialCaseList::Matcher>::getValue() const
Line
Count
Source
140
489
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<std::__1::pair<unsigned long, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > >::getValue() const
Line
Count
Source
140
10
  const ValueTy &getValue() const { return second; }
Unexecuted instantiation: llvm::StringMapEntry<llvm::TimeRecord>::getValue() const
llvm::StringMapEntry<clang::FileEntry*>::getValue() const
Line
Count
Source
140
212k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<bool>::getValue() const
Line
Count
Source
140
812k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<llvm::WeakTrackingVH>::getValue() const
Line
Count
Source
140
22
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::getValue() const
Line
Count
Source
140
126
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<clang::GlobalDecl>::getValue() const
Line
Count
Source
140
2.15k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<clang::OpenCLOptions::Info>::getValue() const
Line
Count
Source
140
49.6k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<llvm::DwarfStringPoolEntry>::getValue() const
Line
Count
Source
140
1.42M
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<unsigned long>::getValue() const
Line
Count
Source
140
937
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::getValue() const
Line
Count
Source
140
1.03k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<clang::IdentifierInfo*>::getValue() const
Line
Count
Source
140
557k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<clang::Module*>::getValue() const
Line
Count
Source
140
53.5k
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >::getValue() const
Line
Count
Source
140
356
  const ValueTy &getValue() const { return second; }
llvm::StringMapEntry<std::__1::vector<lld::MachOLinkingContext::OrderFileNode, std::__1::allocator<lld::MachOLinkingContext::OrderFileNode> > >::getValue() const
Line
Count
Source
140
11
  const ValueTy &getValue() const { return second; }
141
1.89M
  ValueTy &getValue() { return second; }
AArch64AsmParser.cpp:llvm::StringMapEntry<std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >::getValue()
Line
Count
Source
141
825
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::AsmToken>::getValue()
Line
Count
Source
141
1
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<unsigned long long>::getValue()
Line
Count
Source
141
147
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<unsigned int>::getValue()
Line
Count
Source
141
168k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::GCStrategy*>::getValue()
Line
Count
Source
141
55
  ValueTy &getValue() { return second; }
Unexecuted instantiation: llvm::StringMapEntry<llvm::ConstantDataSequential*>::getValue()
llvm::StringMapEntry<llvm::MDString>::getValue()
Line
Count
Source
141
706k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<char>::getValue()
Line
Count
Source
141
7.41k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::Function*>::getValue()
Line
Count
Source
141
70
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::Value*>::getValue()
Line
Count
Source
141
82
  ValueTy &getValue() { return second; }
GCOVProfiling.cpp:llvm::StringMapEntry<(anonymous namespace)::GCOVLines>::getValue()
Line
Count
Source
141
84
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::MCAsmMacro>::getValue()
Line
Count
Source
141
197k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::cl::Option*>::getValue()
Line
Count
Source
141
57.3k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<bool>::getValue()
Line
Count
Source
141
121k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::Constant*>::getValue()
Line
Count
Source
141
3
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<clang::OpenCLOptions::Info>::getValue()
Line
Count
Source
141
533k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<int>::getValue()
Line
Count
Source
141
9.63k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<clang::SourceLocation>::getValue()
Line
Count
Source
141
50
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::getValue()
Line
Count
Source
141
558
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<unsigned int const*>::getValue()
Line
Count
Source
141
316
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::TargetRegisterClass const*>::getValue()
Line
Count
Source
141
10.4k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::RegisterBank const*>::getValue()
Line
Count
Source
141
8.59k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<llvm::DwarfStringPoolEntry>::getValue()
Line
Count
Source
141
2.17k
  ValueTy &getValue() { return second; }
llvm::StringMapEntry<clang::Module*>::getValue()
Line
Count
Source
141
72.0k
  ValueTy &getValue() { return second; }
142
143
2.67M
  void setValue(const ValueTy &V) { second = V; }
llvm::StringMapEntry<llvm::Value*>::setValue(llvm::Value* const&)
Line
Count
Source
143
2.67M
  void setValue(const ValueTy &V) { second = V; }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::setValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Line
Count
Source
143
10
  void setValue(const ValueTy &V) { second = V; }
144
145
  /// getKeyData - Return the start of the string data that is the key for this
146
  /// value.  The string data is always stored immediately after the
147
  /// StringMapEntry object.
148
1.76G
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerWriter, std::__1::default_delete<clang::PCHContainerWriter> > >::getKeyData() const
Line
Count
Source
148
84.8k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerReader, std::__1::default_delete<clang::PCHContainerReader> > >::getKeyData() const
Line
Count
Source
148
84.8k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<bool>::getKeyData() const
Line
Count
Source
148
19.1M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::AArch64Subtarget, std::__1::default_delete<llvm::AArch64Subtarget> > >::getKeyData() const
Line
Count
Source
148
9.02k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
AArch64AsmParser.cpp:llvm::StringMapEntry<std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >::getKeyData() const
Line
Count
Source
148
17
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<int>::getKeyData() const
Line
Count
Source
148
789k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<unsigned int>::getKeyData() const
Line
Count
Source
148
33.9M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::R600Subtarget, std::__1::default_delete<llvm::R600Subtarget> > >::getKeyData() const
Line
Count
Source
148
290
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::GCNSubtarget, std::__1::default_delete<llvm::GCNSubtarget> > >::getKeyData() const
Line
Count
Source
148
3.23k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<char>::getKeyData() const
Line
Count
Source
148
7.34M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ARMSubtarget, std::__1::default_delete<llvm::ARMSubtarget> > >::getKeyData() const
Line
Count
Source
148
5.16k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >::getKeyData() const
Line
Count
Source
148
43
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::HexagonSubtarget, std::__1::default_delete<llvm::HexagonSubtarget> > >::getKeyData() const
Line
Count
Source
148
1.01k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::MipsSubtarget, std::__1::default_delete<llvm::MipsSubtarget> > >::getKeyData() const
Line
Count
Source
148
2.16k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::AsmToken>::getKeyData() const
Line
Count
Source
148
1
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::PPCSubtarget, std::__1::default_delete<llvm::PPCSubtarget> > >::getKeyData() const
Line
Count
Source
148
1.81k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::SparcSubtarget, std::__1::default_delete<llvm::SparcSubtarget> > >::getKeyData() const
Line
Count
Source
148
197
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::Function*>::getKeyData() const
Line
Count
Source
148
338
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::RTLIB::Libcall>::getKeyData() const
Line
Count
Source
148
4.46k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::WebAssemblySubtarget, std::__1::default_delete<llvm::WebAssemblySubtarget> > >::getKeyData() const
Line
Count
Source
148
511
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<unsigned long long>::getKeyData() const
Line
Count
Source
148
1.38k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::X86Subtarget, std::__1::default_delete<llvm::X86Subtarget> > >::getKeyData() const
Line
Count
Source
148
15.1k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::TargetLibraryInfoImpl, std::__1::default_delete<llvm::TargetLibraryInfoImpl> > >::getKeyData() const
Line
Count
Source
148
1.27k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::GCStrategy*>::getKeyData() const
Line
Count
Source
148
26
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ExternalSymbolPseudoSourceValue const, std::__1::default_delete<llvm::ExternalSymbolPseudoSourceValue const> > >::getKeyData() const
Line
Count
Source
148
614
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >::getKeyData() const
Line
Count
Source
148
2.96k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::Comdat>::getKeyData() const
Line
Count
Source
148
124k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::ConstantDataSequential*>::getKeyData() const
Line
Count
Source
148
991k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<unsigned char>::getKeyData() const
Line
Count
Source
148
237k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<unsigned int, unsigned int> >::getKeyData() const
Line
Count
Source
148
167
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::MDString>::getKeyData() const
Line
Count
Source
148
62.9M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::NamedMDNode*>::getKeyData() const
Line
Count
Source
148
58.8k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::PassInfo const*>::getKeyData() const
Line
Count
Source
148
31.4M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::StructType*>::getKeyData() const
Line
Count
Source
148
1.57M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::Value*>::getKeyData() const
Line
Count
Source
148
492M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> > >::getKeyData() const
Line
Count
Source
148
1.06k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::DenseMap<unsigned long long, llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long long>, llvm::detail::DenseMapPair<unsigned long long, llvm::GlobalValueSummary*> > >::getKeyData() const
Line
Count
Source
148
1.49k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::StringMap<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> >, llvm::MallocAllocator> >::getKeyData() const
Line
Count
Source
148
493
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
GCOVProfiling.cpp:llvm::StringMapEntry<(anonymous namespace)::GCOVLines>::getKeyData() const
Line
Count
Source
148
84
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::MCSymbol*>::getKeyData() const
Line
Count
Source
148
4.56M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::MCSectionMachO*>::getKeyData() const
Line
Count
Source
148
888k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
AsmParser.cpp:llvm::StringMapEntry<(anonymous namespace)::AsmParser::DirectiveKind>::getKeyData() const
Line
Count
Source
148
2.84M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<llvm::MCAsmParserExtension*, bool (*)(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc)> >::getKeyData() const
Line
Count
Source
148
682k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::MCAsmMacro>::getKeyData() const
Line
Count
Source
148
293
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::cl::Option*>::getKeyData() const
Line
Count
Source
148
151M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<unsigned long>::getKeyData() const
Line
Count
Source
148
36.8k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::StringMap<llvm::SpecialCaseList::Matcher, llvm::MallocAllocator> >::getKeyData() const
Line
Count
Source
148
303
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::SpecialCaseList::Matcher>::getKeyData() const
Line
Count
Source
148
328
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<unsigned long, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > >::getKeyData() const
Line
Count
Source
148
20
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<llvm::TimerGroup*, llvm::StringMap<llvm::Timer, llvm::MallocAllocator> > >::getKeyData() const
Line
Count
Source
148
9
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::Timer>::getKeyData() const
Line
Count
Source
148
9
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::TimeRecord>::getKeyData() const
Line
Count
Source
148
2
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> > >::getKeyData() const
Line
Count
Source
148
137k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::yaml::Input::HNode, std::__1::default_delete<llvm::yaml::Input::HNode> > >::getKeyData() const
Line
Count
Source
148
885k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<void*>::getKeyData() const
Line
Count
Source
148
3
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode, std::__1::default_delete<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode> > >::getKeyData() const
Line
Count
Source
148
98
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::IdentifierInfo*>::getKeyData() const
Line
Count
Source
148
928M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::DirectoryEntry*>::getKeyData() const
Line
Count
Source
148
812k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::FileEntry*>::getKeyData() const
Line
Count
Source
148
2.77M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::vfs::Status>::getKeyData() const
Line
Count
Source
148
19
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::OpenCLOptions::Info>::getKeyData() const
Line
Count
Source
148
5.48M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::Constant*>::getKeyData() const
Line
Count
Source
148
47
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::GlobalVariable*>::getKeyData() const
Line
Count
Source
148
2.75k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::AssertingVH<llvm::Constant> >::getKeyData() const
Line
Count
Source
148
448
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::DenseMap<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion, llvm::DenseMapInfo<unsigned int>, llvm::detail::DenseMapPair<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion> > >::getKeyData() const
Line
Count
Source
148
9.53k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::getKeyData() const
Line
Count
Source
148
255
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::WeakTrackingVH>::getKeyData() const
Line
Count
Source
148
11
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::TrackingVH<llvm::Constant> >::getKeyData() const
Line
Count
Source
148
228
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::GlobalDecl>::getKeyData() const
Line
Count
Source
148
4.66M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::ASTContext::SectionInfo>::getKeyData() const
Line
Count
Source
148
193
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<clang::driver::ToolChain, std::__1::default_delete<clang::driver::ToolChain> > >::getKeyData() const
Line
Count
Source
148
31.2k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<char const*>::getKeyData() const
Line
Count
Source
148
105
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::getKeyData() const
Line
Count
Source
148
2.93M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::SourceLocation>::getKeyData() const
Line
Count
Source
148
15
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::LayoutOverrideSource::Layout>::getKeyData() const
Line
Count
Source
148
37
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::PrecompiledPreamble::PreambleFileHash>::getKeyData() const
Line
Count
Source
148
1.06k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::VerifyDiagnosticConsumer::MarkerTracker::Marker>::getKeyData() const
Line
Count
Source
148
1.67k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
VerifyDiagnosticConsumer.cpp:llvm::StringMapEntry<llvm::SmallVector<(anonymous namespace)::UnattachedDirective, 2u> >::getKeyData() const
Line
Count
Source
148
12
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<llvm::StringRef, bool> >::getKeyData() const
Line
Count
Source
148
3.95k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::shared_ptr<clang::ModuleFileExtension> >::getKeyData() const
Line
Count
Source
148
27
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::SmallVector<unsigned int, 2u> >::getKeyData() const
Line
Count
Source
148
179k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::InMemoryModuleCache::PCM>::getKeyData() const
Line
Count
Source
148
5.51k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<polly::ScopArrayInfo, std::__1::default_delete<polly::ScopArrayInfo> > >::getKeyData() const
Line
Count
Source
148
85
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<unsigned int const*>::getKeyData() const
Line
Count
Source
148
6.46k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::MachineMemOperand::Flags>::getKeyData() const
Line
Count
Source
148
6
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::TargetRegisterClass const*>::getKeyData() const
Line
Count
Source
148
168k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::RegisterBank const*>::getKeyData() const
Line
Count
Source
148
5.09k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::VRegInfo*>::getKeyData() const
Line
Count
Source
148
54
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::DwarfStringPoolEntry>::getKeyData() const
Line
Count
Source
148
632k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::DIE const*>::getKeyData() const
Line
Count
Source
148
140k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::AccelTableBase::HashData>::getKeyData() const
Line
Count
Source
148
71.7k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::weak_ptr<llvm::DWARFContext::DWOFile> >::getKeyData() const
Line
Count
Source
148
9
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> > >::getKeyData() const
Line
Count
Source
148
141
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<unsigned short>::getKeyData() const
Line
Count
Source
148
47
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::SDNode*>::getKeyData() const
Line
Count
Source
148
14.2k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::lto::LTO::GlobalResolution>::getKeyData() const
Line
Count
Source
148
989
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::map<unsigned long long, llvm::GlobalValue::LinkageTypes, std::__1::less<unsigned long long>, std::__1::allocator<std::__1::pair<unsigned long long const, llvm::GlobalValue::LinkageTypes> > > >::getKeyData() const
Line
Count
Source
148
405
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::Stmt*>::getKeyData() const
Line
Count
Source
148
13.0k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<FoundationClass>::getKeyData() const
Line
Count
Source
148
91
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::SmallSet<clang::Selector, 16u, std::__1::less<clang::Selector> > >::getKeyData() const
Line
Count
Source
148
20
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
StdLibraryFunctionsChecker.cpp:llvm::StringMapEntry<std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> > >::getKeyData() const
Line
Count
Source
148
286
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::ento::BugType*>::getKeyData() const
Line
Count
Source
148
709
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::unique_ptr<clang::ASTUnit, std::__1::default_delete<clang::ASTUnit> > >::getKeyData() const
Line
Count
Source
148
32
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::ASTUnit*>::getKeyData() const
Line
Count
Source
148
53
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::vector<clang::FunctionDecl*, std::__1::allocator<clang::FunctionDecl*> > >::getKeyData() const
Line
Count
Source
148
3
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::SmallVector<clang::TypoCorrection, 1u> >::getKeyData() const
Line
Count
Source
148
10.2k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<clang::OMPCriticalDirective const*, llvm::APSInt> >::getKeyData() const
Line
Count
Source
148
38
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::StringLiteral*>::getKeyData() const
Line
Count
Source
148
65
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::comments::TParamCommandComment*>::getKeyData() const
Line
Count
Source
148
90
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::FrameworkCacheEntry>::getKeyData() const
Line
Count
Source
148
407
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::HeaderSearch::LookupFileCacheInfo>::getKeyData() const
Line
Count
Source
148
372k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::StringSet<llvm::MallocAllocator> >::getKeyData() const
Line
Count
Source
148
14
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::Module*>::getKeyData() const
Line
Count
Source
148
72.5k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<clang::PragmaHandler*>::getKeyData() const
Line
Count
Source
148
2.21M
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::Type*>::getKeyData() const
Line
Count
Source
148
144
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >::getKeyData() const
Line
Count
Source
148
12.5k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::sampleprof::FunctionSamples>::getKeyData() const
Line
Count
Source
148
408
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::RecordStreamer::State>::getKeyData() const
Line
Count
Source
148
528
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::GlobalValue const*>::getKeyData() const
Line
Count
Source
148
256
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::TinyPtrVector<lld::elf::OutputSection*> >::getKeyData() const
Line
Count
Source
148
375k
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::vector<lld::elf::Symbol*, std::__1::allocator<lld::elf::Symbol*> > >::getKeyData() const
Line
Count
Source
148
85
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::vector<lld::wasm::InputSection*, std::__1::allocator<lld::wasm::InputSection*> > >::getKeyData() const
Line
Count
Source
148
44
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<lld::Atom const*>::getKeyData() const
Line
Count
Source
148
396
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<lld::mach_o::MachODylibFile*>::getKeyData() const
Line
Count
Source
148
233
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<std::__1::vector<lld::MachOLinkingContext::OrderFileNode, std::__1::allocator<lld::MachOLinkingContext::OrderFileNode> > >::getKeyData() const
Line
Count
Source
148
5
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
MachONormalizedFileFromAtoms.cpp:llvm::StringMapEntry<(anonymous namespace)::Util::DylibInfo>::getKeyData() const
Line
Count
Source
148
114
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
llvm::StringMapEntry<llvm::FileInfo::LineData>::getKeyData() const
Line
Count
Source
148
92
  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
149
150
80.8M
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<bool>::first() const
Line
Count
Source
150
12.2M
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >::first() const
Line
Count
Source
150
1.72k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::Comdat>::first() const
Line
Count
Source
150
92.7k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::ConstantDataSequential*>::first() const
Line
Count
Source
150
500k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<unsigned int>::first() const
Line
Count
Source
150
341k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<unsigned char>::first() const
Line
Count
Source
150
10.8k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::MDString>::first() const
Line
Count
Source
150
62.4M
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::DenseMap<unsigned long long, llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long long>, llvm::detail::DenseMapPair<unsigned long long, llvm::GlobalValueSummary*> > >::first() const
Line
Count
Source
150
968
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> > >::first() const
Line
Count
Source
150
442
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
Unexecuted instantiation: llvm::StringMapEntry<llvm::cl::Option*>::first() const
llvm::StringMapEntry<std::__1::unique_ptr<llvm::yaml::Input::HNode, std::__1::default_delete<llvm::yaml::Input::HNode> > >::first() const
Line
Count
Source
150
445k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode, std::__1::default_delete<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode> > >::first() const
Line
Count
Source
150
62
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<clang::DirectoryEntry*>::first() const
Line
Count
Source
150
406k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<clang::FileEntry*>::first() const
Line
Count
Source
150
1.38M
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::GlobalVariable*>::first() const
Line
Count
Source
150
332
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::AssertingVH<llvm::Constant> >::first() const
Line
Count
Source
150
224
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::DenseMap<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion, llvm::DenseMapInfo<unsigned int>, llvm::detail::DenseMapPair<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion> > >::first() const
Line
Count
Source
150
6.04k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::TrackingVH<llvm::Constant> >::first() const
Line
Count
Source
150
114
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<clang::GlobalDecl>::first() const
Line
Count
Source
150
2.33M
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
Unexecuted instantiation: llvm::StringMapEntry<clang::LayoutOverrideSource::Layout>::first() const
llvm::StringMapEntry<clang::PrecompiledPreamble::PreambleFileHash>::first() const
Line
Count
Source
150
908
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<clang::VerifyDiagnosticConsumer::MarkerTracker::Marker>::first() const
Line
Count
Source
150
839
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
VerifyDiagnosticConsumer.cpp:llvm::StringMapEntry<llvm::SmallVector<(anonymous namespace)::UnattachedDirective, 2u> >::first() const
Line
Count
Source
150
1
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::SmallVector<unsigned int, 2u> >::first() const
Line
Count
Source
150
89.6k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::DwarfStringPoolEntry>::first() const
Line
Count
Source
150
465k
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> > >::first() const
Line
Count
Source
150
80
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<char>::first() const
Line
Count
Source
150
215
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<clang::FrameworkCacheEntry>::first() const
Line
Count
Source
150
4
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<unsigned long long>::first() const
Line
Count
Source
150
90
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::sampleprof::FunctionSamples>::first() const
Line
Count
Source
150
34
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::RecordStreamer::State>::first() const
Line
Count
Source
150
264
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::VRegInfo*>::first() const
Line
Count
Source
150
27
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<std::__1::vector<lld::elf::Symbol*, std::__1::allocator<lld::elf::Symbol*> > >::first() const
Line
Count
Source
150
42
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<std::__1::vector<lld::wasm::InputSection*, std::__1::allocator<lld::wasm::InputSection*> > >::first() const
Line
Count
Source
150
22
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
llvm::StringMapEntry<llvm::FileInfo::LineData>::first() const
Line
Count
Source
150
46
  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
151
152
  /// Create a StringMapEntry for the specified key construct the value using
153
  /// \p InitiVals.
154
  template <typename AllocatorTy, typename... InitTy>
155
  static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator,
156
420M
                                InitTy &&... InitVals) {
157
420M
    size_t KeyLength = Key.size();
158
420M
159
420M
    // Allocate a new item with space for the string at the end and a null
160
420M
    // terminator.
161
420M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
420M
    size_t Alignment = alignof(StringMapEntry);
163
420M
164
420M
    StringMapEntry *NewItem =
165
420M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
420M
    assert(NewItem && "Unhandled out-of-memory");
167
420M
168
420M
    // Construct the value.
169
420M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
420M
171
420M
    // Copy the string information.
172
420M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
420M
    if (KeyLength > 0)
174
419M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
420M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
420M
    return NewItem;
177
420M
  }
llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerWriter, std::__1::default_delete<clang::PCHContainerWriter> > >* llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerWriter, std::__1::default_delete<clang::PCHContainerWriter> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
84.8k
                                InitTy &&... InitVals) {
157
84.8k
    size_t KeyLength = Key.size();
158
84.8k
159
84.8k
    // Allocate a new item with space for the string at the end and a null
160
84.8k
    // terminator.
161
84.8k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
84.8k
    size_t Alignment = alignof(StringMapEntry);
163
84.8k
164
84.8k
    StringMapEntry *NewItem =
165
84.8k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
84.8k
    assert(NewItem && "Unhandled out-of-memory");
167
84.8k
168
84.8k
    // Construct the value.
169
84.8k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
84.8k
171
84.8k
    // Copy the string information.
172
84.8k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
84.8k
    if (KeyLength > 0)
174
84.8k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
84.8k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
84.8k
    return NewItem;
177
84.8k
  }
llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerReader, std::__1::default_delete<clang::PCHContainerReader> > >* llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerReader, std::__1::default_delete<clang::PCHContainerReader> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
84.8k
                                InitTy &&... InitVals) {
157
84.8k
    size_t KeyLength = Key.size();
158
84.8k
159
84.8k
    // Allocate a new item with space for the string at the end and a null
160
84.8k
    // terminator.
161
84.8k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
84.8k
    size_t Alignment = alignof(StringMapEntry);
163
84.8k
164
84.8k
    StringMapEntry *NewItem =
165
84.8k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
84.8k
    assert(NewItem && "Unhandled out-of-memory");
167
84.8k
168
84.8k
    // Construct the value.
169
84.8k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
84.8k
171
84.8k
    // Copy the string information.
172
84.8k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
84.8k
    if (KeyLength > 0)
174
84.8k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
84.8k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
84.8k
    return NewItem;
177
84.8k
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::AArch64Subtarget, std::__1::default_delete<llvm::AArch64Subtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::AArch64Subtarget, std::__1::default_delete<llvm::AArch64Subtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
9.02k
                                InitTy &&... InitVals) {
157
9.02k
    size_t KeyLength = Key.size();
158
9.02k
159
9.02k
    // Allocate a new item with space for the string at the end and a null
160
9.02k
    // terminator.
161
9.02k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
9.02k
    size_t Alignment = alignof(StringMapEntry);
163
9.02k
164
9.02k
    StringMapEntry *NewItem =
165
9.02k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
9.02k
    assert(NewItem && "Unhandled out-of-memory");
167
9.02k
168
9.02k
    // Construct the value.
169
9.02k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
9.02k
171
9.02k
    // Copy the string information.
172
9.02k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
9.02k
    if (KeyLength > 0)
174
7.66k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
9.02k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
9.02k
    return NewItem;
177
9.02k
  }
AArch64AsmParser.cpp:llvm::StringMapEntry<std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >* llvm::StringMapEntry<std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >::Create<llvm::MallocAllocator, std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >(llvm::StringRef, llvm::MallocAllocator&, std::__1::pair<(anonymous namespace)::RegKind, unsigned int>&&)
Line
Count
Source
156
17
                                InitTy &&... InitVals) {
157
17
    size_t KeyLength = Key.size();
158
17
159
17
    // Allocate a new item with space for the string at the end and a null
160
17
    // terminator.
161
17
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
17
    size_t Alignment = alignof(StringMapEntry);
163
17
164
17
    StringMapEntry *NewItem =
165
17
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
17
    assert(NewItem && "Unhandled out-of-memory");
167
17
168
17
    // Construct the value.
169
17
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
17
171
17
    // Copy the string information.
172
17
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
17
    if (KeyLength > 0)
174
17
      memcpy(StrBuffer, Key.data(), KeyLength);
175
17
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
17
    return NewItem;
177
17
  }
llvm::StringMapEntry<int>* llvm::StringMapEntry<int>::Create<llvm::MallocAllocator, int>(llvm::StringRef, llvm::MallocAllocator&, int&&)
Line
Count
Source
156
1.66k
                                InitTy &&... InitVals) {
157
1.66k
    size_t KeyLength = Key.size();
158
1.66k
159
1.66k
    // Allocate a new item with space for the string at the end and a null
160
1.66k
    // terminator.
161
1.66k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1.66k
    size_t Alignment = alignof(StringMapEntry);
163
1.66k
164
1.66k
    StringMapEntry *NewItem =
165
1.66k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1.66k
    assert(NewItem && "Unhandled out-of-memory");
167
1.66k
168
1.66k
    // Construct the value.
169
1.66k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1.66k
171
1.66k
    // Copy the string information.
172
1.66k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1.66k
    if (KeyLength > 0)
174
1.65k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1.66k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1.66k
    return NewItem;
177
1.66k
  }
llvm::StringMapEntry<unsigned int>* llvm::StringMapEntry<unsigned int>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
3.11M
                                InitTy &&... InitVals) {
157
3.11M
    size_t KeyLength = Key.size();
158
3.11M
159
3.11M
    // Allocate a new item with space for the string at the end and a null
160
3.11M
    // terminator.
161
3.11M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
3.11M
    size_t Alignment = alignof(StringMapEntry);
163
3.11M
164
3.11M
    StringMapEntry *NewItem =
165
3.11M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
3.11M
    assert(NewItem && "Unhandled out-of-memory");
167
3.11M
168
3.11M
    // Construct the value.
169
3.11M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
3.11M
171
3.11M
    // Copy the string information.
172
3.11M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
3.11M
    if (KeyLength > 0)
174
3.11M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
3.11M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
3.11M
    return NewItem;
177
3.11M
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::R600Subtarget, std::__1::default_delete<llvm::R600Subtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::R600Subtarget, std::__1::default_delete<llvm::R600Subtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
290
                                InitTy &&... InitVals) {
157
290
    size_t KeyLength = Key.size();
158
290
159
290
    // Allocate a new item with space for the string at the end and a null
160
290
    // terminator.
161
290
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
290
    size_t Alignment = alignof(StringMapEntry);
163
290
164
290
    StringMapEntry *NewItem =
165
290
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
290
    assert(NewItem && "Unhandled out-of-memory");
167
290
168
290
    // Construct the value.
169
290
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
290
171
290
    // Copy the string information.
172
290
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
290
    if (KeyLength > 0)
174
290
      memcpy(StrBuffer, Key.data(), KeyLength);
175
290
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
290
    return NewItem;
177
290
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::GCNSubtarget, std::__1::default_delete<llvm::GCNSubtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::GCNSubtarget, std::__1::default_delete<llvm::GCNSubtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
3.23k
                                InitTy &&... InitVals) {
157
3.23k
    size_t KeyLength = Key.size();
158
3.23k
159
3.23k
    // Allocate a new item with space for the string at the end and a null
160
3.23k
    // terminator.
161
3.23k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
3.23k
    size_t Alignment = alignof(StringMapEntry);
163
3.23k
164
3.23k
    StringMapEntry *NewItem =
165
3.23k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
3.23k
    assert(NewItem && "Unhandled out-of-memory");
167
3.23k
168
3.23k
    // Construct the value.
169
3.23k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
3.23k
171
3.23k
    // Copy the string information.
172
3.23k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
3.23k
    if (KeyLength > 0)
174
3.23k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
3.23k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
3.23k
    return NewItem;
177
3.23k
  }
llvm::StringMapEntry<char>* llvm::StringMapEntry<char>::Create<llvm::MallocAllocator, char>(llvm::StringRef, llvm::MallocAllocator&, char&&)
Line
Count
Source
156
901k
                                InitTy &&... InitVals) {
157
901k
    size_t KeyLength = Key.size();
158
901k
159
901k
    // Allocate a new item with space for the string at the end and a null
160
901k
    // terminator.
161
901k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
901k
    size_t Alignment = alignof(StringMapEntry);
163
901k
164
901k
    StringMapEntry *NewItem =
165
901k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
901k
    assert(NewItem && "Unhandled out-of-memory");
167
901k
168
901k
    // Construct the value.
169
901k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
901k
171
901k
    // Copy the string information.
172
901k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
901k
    if (KeyLength > 0)
174
901k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
901k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
901k
    return NewItem;
177
901k
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ARMSubtarget, std::__1::default_delete<llvm::ARMSubtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::ARMSubtarget, std::__1::default_delete<llvm::ARMSubtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
5.16k
                                InitTy &&... InitVals) {
157
5.16k
    size_t KeyLength = Key.size();
158
5.16k
159
5.16k
    // Allocate a new item with space for the string at the end and a null
160
5.16k
    // terminator.
161
5.16k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
5.16k
    size_t Alignment = alignof(StringMapEntry);
163
5.16k
164
5.16k
    StringMapEntry *NewItem =
165
5.16k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
5.16k
    assert(NewItem && "Unhandled out-of-memory");
167
5.16k
168
5.16k
    // Construct the value.
169
5.16k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
5.16k
171
5.16k
    // Copy the string information.
172
5.16k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
5.16k
    if (KeyLength > 0)
174
3.46k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
5.16k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
5.16k
    return NewItem;
177
5.16k
  }
llvm::StringMapEntry<unsigned int>* llvm::StringMapEntry<unsigned int>::Create<llvm::MallocAllocator, unsigned int>(llvm::StringRef, llvm::MallocAllocator&, unsigned int&&)
Line
Count
Source
156
25.1M
                                InitTy &&... InitVals) {
157
25.1M
    size_t KeyLength = Key.size();
158
25.1M
159
25.1M
    // Allocate a new item with space for the string at the end and a null
160
25.1M
    // terminator.
161
25.1M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
25.1M
    size_t Alignment = alignof(StringMapEntry);
163
25.1M
164
25.1M
    StringMapEntry *NewItem =
165
25.1M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
25.1M
    assert(NewItem && "Unhandled out-of-memory");
167
25.1M
168
25.1M
    // Construct the value.
169
25.1M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
25.1M
171
25.1M
    // Copy the string information.
172
25.1M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
25.1M
    if (KeyLength > 0)
174
25.1M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
25.1M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
25.1M
    return NewItem;
177
25.1M
  }
llvm::StringMapEntry<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >* llvm::StringMapEntry<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
43
                                InitTy &&... InitVals) {
157
43
    size_t KeyLength = Key.size();
158
43
159
43
    // Allocate a new item with space for the string at the end and a null
160
43
    // terminator.
161
43
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
43
    size_t Alignment = alignof(StringMapEntry);
163
43
164
43
    StringMapEntry *NewItem =
165
43
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
43
    assert(NewItem && "Unhandled out-of-memory");
167
43
168
43
    // Construct the value.
169
43
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
43
171
43
    // Copy the string information.
172
43
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
43
    if (KeyLength > 0)
174
43
      memcpy(StrBuffer, Key.data(), KeyLength);
175
43
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
43
    return NewItem;
177
43
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::HexagonSubtarget, std::__1::default_delete<llvm::HexagonSubtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::HexagonSubtarget, std::__1::default_delete<llvm::HexagonSubtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
1.01k
                                InitTy &&... InitVals) {
157
1.01k
    size_t KeyLength = Key.size();
158
1.01k
159
1.01k
    // Allocate a new item with space for the string at the end and a null
160
1.01k
    // terminator.
161
1.01k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1.01k
    size_t Alignment = alignof(StringMapEntry);
163
1.01k
164
1.01k
    StringMapEntry *NewItem =
165
1.01k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1.01k
    assert(NewItem && "Unhandled out-of-memory");
167
1.01k
168
1.01k
    // Construct the value.
169
1.01k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1.01k
171
1.01k
    // Copy the string information.
172
1.01k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1.01k
    if (KeyLength > 0)
174
495
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1.01k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1.01k
    return NewItem;
177
1.01k
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::MipsSubtarget, std::__1::default_delete<llvm::MipsSubtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::MipsSubtarget, std::__1::default_delete<llvm::MipsSubtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
2.16k
                                InitTy &&... InitVals) {
157
2.16k
    size_t KeyLength = Key.size();
158
2.16k
159
2.16k
    // Allocate a new item with space for the string at the end and a null
160
2.16k
    // terminator.
161
2.16k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2.16k
    size_t Alignment = alignof(StringMapEntry);
163
2.16k
164
2.16k
    StringMapEntry *NewItem =
165
2.16k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2.16k
    assert(NewItem && "Unhandled out-of-memory");
167
2.16k
168
2.16k
    // Construct the value.
169
2.16k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2.16k
171
2.16k
    // Copy the string information.
172
2.16k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2.16k
    if (KeyLength > 0)
174
1.69k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2.16k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2.16k
    return NewItem;
177
2.16k
  }
llvm::StringMapEntry<llvm::AsmToken>* llvm::StringMapEntry<llvm::AsmToken>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
1
                                InitTy &&... InitVals) {
157
1
    size_t KeyLength = Key.size();
158
1
159
1
    // Allocate a new item with space for the string at the end and a null
160
1
    // terminator.
161
1
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1
    size_t Alignment = alignof(StringMapEntry);
163
1
164
1
    StringMapEntry *NewItem =
165
1
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1
    assert(NewItem && "Unhandled out-of-memory");
167
1
168
1
    // Construct the value.
169
1
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1
171
1
    // Copy the string information.
172
1
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1
    if (KeyLength > 0)
174
1
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1
    return NewItem;
177
1
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::PPCSubtarget, std::__1::default_delete<llvm::PPCSubtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::PPCSubtarget, std::__1::default_delete<llvm::PPCSubtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
1.81k
                                InitTy &&... InitVals) {
157
1.81k
    size_t KeyLength = Key.size();
158
1.81k
159
1.81k
    // Allocate a new item with space for the string at the end and a null
160
1.81k
    // terminator.
161
1.81k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1.81k
    size_t Alignment = alignof(StringMapEntry);
163
1.81k
164
1.81k
    StringMapEntry *NewItem =
165
1.81k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1.81k
    assert(NewItem && "Unhandled out-of-memory");
167
1.81k
168
1.81k
    // Construct the value.
169
1.81k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1.81k
171
1.81k
    // Copy the string information.
172
1.81k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1.81k
    if (KeyLength > 0)
174
1.80k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1.81k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1.81k
    return NewItem;
177
1.81k
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::SparcSubtarget, std::__1::default_delete<llvm::SparcSubtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::SparcSubtarget, std::__1::default_delete<llvm::SparcSubtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
197
                                InitTy &&... InitVals) {
157
197
    size_t KeyLength = Key.size();
158
197
159
197
    // Allocate a new item with space for the string at the end and a null
160
197
    // terminator.
161
197
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
197
    size_t Alignment = alignof(StringMapEntry);
163
197
164
197
    StringMapEntry *NewItem =
165
197
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
197
    assert(NewItem && "Unhandled out-of-memory");
167
197
168
197
    // Construct the value.
169
197
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
197
171
197
    // Copy the string information.
172
197
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
197
    if (KeyLength > 0)
174
58
      memcpy(StrBuffer, Key.data(), KeyLength);
175
197
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
197
    return NewItem;
177
197
  }
llvm::StringMapEntry<llvm::Function*>* llvm::StringMapEntry<llvm::Function*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
313
                                InitTy &&... InitVals) {
157
313
    size_t KeyLength = Key.size();
158
313
159
313
    // Allocate a new item with space for the string at the end and a null
160
313
    // terminator.
161
313
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
313
    size_t Alignment = alignof(StringMapEntry);
163
313
164
313
    StringMapEntry *NewItem =
165
313
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
313
    assert(NewItem && "Unhandled out-of-memory");
167
313
168
313
    // Construct the value.
169
313
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
313
171
313
    // Copy the string information.
172
313
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
313
    if (KeyLength > 0)
174
313
      memcpy(StrBuffer, Key.data(), KeyLength);
175
313
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
313
    return NewItem;
177
313
  }
llvm::StringMapEntry<llvm::RTLIB::Libcall>* llvm::StringMapEntry<llvm::RTLIB::Libcall>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
4.46k
                                InitTy &&... InitVals) {
157
4.46k
    size_t KeyLength = Key.size();
158
4.46k
159
4.46k
    // Allocate a new item with space for the string at the end and a null
160
4.46k
    // terminator.
161
4.46k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
4.46k
    size_t Alignment = alignof(StringMapEntry);
163
4.46k
164
4.46k
    StringMapEntry *NewItem =
165
4.46k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
4.46k
    assert(NewItem && "Unhandled out-of-memory");
167
4.46k
168
4.46k
    // Construct the value.
169
4.46k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
4.46k
171
4.46k
    // Copy the string information.
172
4.46k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
4.46k
    if (KeyLength > 0)
174
4.46k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
4.46k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
4.46k
    return NewItem;
177
4.46k
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::WebAssemblySubtarget, std::__1::default_delete<llvm::WebAssemblySubtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::WebAssemblySubtarget, std::__1::default_delete<llvm::WebAssemblySubtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
511
                                InitTy &&... InitVals) {
157
511
    size_t KeyLength = Key.size();
158
511
159
511
    // Allocate a new item with space for the string at the end and a null
160
511
    // terminator.
161
511
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
511
    size_t Alignment = alignof(StringMapEntry);
163
511
164
511
    StringMapEntry *NewItem =
165
511
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
511
    assert(NewItem && "Unhandled out-of-memory");
167
511
168
511
    // Construct the value.
169
511
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
511
171
511
    // Copy the string information.
172
511
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
511
    if (KeyLength > 0)
174
169
      memcpy(StrBuffer, Key.data(), KeyLength);
175
511
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
511
    return NewItem;
177
511
  }
llvm::StringMapEntry<unsigned long long>* llvm::StringMapEntry<unsigned long long>::Create<llvm::MallocAllocator, unsigned long long&>(llvm::StringRef, llvm::MallocAllocator&, unsigned long long&&&)
Line
Count
Source
156
201
                                InitTy &&... InitVals) {
157
201
    size_t KeyLength = Key.size();
158
201
159
201
    // Allocate a new item with space for the string at the end and a null
160
201
    // terminator.
161
201
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
201
    size_t Alignment = alignof(StringMapEntry);
163
201
164
201
    StringMapEntry *NewItem =
165
201
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
201
    assert(NewItem && "Unhandled out-of-memory");
167
201
168
201
    // Construct the value.
169
201
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
201
171
201
    // Copy the string information.
172
201
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
201
    if (KeyLength > 0)
174
201
      memcpy(StrBuffer, Key.data(), KeyLength);
175
201
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
201
    return NewItem;
177
201
  }
llvm::StringMapEntry<unsigned long long>* llvm::StringMapEntry<unsigned long long>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
579
                                InitTy &&... InitVals) {
157
579
    size_t KeyLength = Key.size();
158
579
159
579
    // Allocate a new item with space for the string at the end and a null
160
579
    // terminator.
161
579
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
579
    size_t Alignment = alignof(StringMapEntry);
163
579
164
579
    StringMapEntry *NewItem =
165
579
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
579
    assert(NewItem && "Unhandled out-of-memory");
167
579
168
579
    // Construct the value.
169
579
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
579
171
579
    // Copy the string information.
172
579
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
579
    if (KeyLength > 0)
174
579
      memcpy(StrBuffer, Key.data(), KeyLength);
175
579
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
579
    return NewItem;
177
579
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::X86Subtarget, std::__1::default_delete<llvm::X86Subtarget> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::X86Subtarget, std::__1::default_delete<llvm::X86Subtarget> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
15.1k
                                InitTy &&... InitVals) {
157
15.1k
    size_t KeyLength = Key.size();
158
15.1k
159
15.1k
    // Allocate a new item with space for the string at the end and a null
160
15.1k
    // terminator.
161
15.1k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
15.1k
    size_t Alignment = alignof(StringMapEntry);
163
15.1k
164
15.1k
    StringMapEntry *NewItem =
165
15.1k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
15.1k
    assert(NewItem && "Unhandled out-of-memory");
167
15.1k
168
15.1k
    // Construct the value.
169
15.1k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
15.1k
171
15.1k
    // Copy the string information.
172
15.1k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
15.1k
    if (KeyLength > 0)
174
10.3k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
15.1k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
15.1k
    return NewItem;
177
15.1k
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::TargetLibraryInfoImpl, std::__1::default_delete<llvm::TargetLibraryInfoImpl> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::TargetLibraryInfoImpl, std::__1::default_delete<llvm::TargetLibraryInfoImpl> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
1.27k
                                InitTy &&... InitVals) {
157
1.27k
    size_t KeyLength = Key.size();
158
1.27k
159
1.27k
    // Allocate a new item with space for the string at the end and a null
160
1.27k
    // terminator.
161
1.27k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1.27k
    size_t Alignment = alignof(StringMapEntry);
163
1.27k
164
1.27k
    StringMapEntry *NewItem =
165
1.27k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1.27k
    assert(NewItem && "Unhandled out-of-memory");
167
1.27k
168
1.27k
    // Construct the value.
169
1.27k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1.27k
171
1.27k
    // Copy the string information.
172
1.27k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1.27k
    if (KeyLength > 0)
174
1.27k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1.27k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1.27k
    return NewItem;
177
1.27k
  }
llvm::StringMapEntry<llvm::GCStrategy*>* llvm::StringMapEntry<llvm::GCStrategy*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
26
                                InitTy &&... InitVals) {
157
26
    size_t KeyLength = Key.size();
158
26
159
26
    // Allocate a new item with space for the string at the end and a null
160
26
    // terminator.
161
26
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
26
    size_t Alignment = alignof(StringMapEntry);
163
26
164
26
    StringMapEntry *NewItem =
165
26
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
26
    assert(NewItem && "Unhandled out-of-memory");
167
26
168
26
    // Construct the value.
169
26
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
26
171
26
    // Copy the string information.
172
26
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
26
    if (KeyLength > 0)
174
26
      memcpy(StrBuffer, Key.data(), KeyLength);
175
26
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
26
    return NewItem;
177
26
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ExternalSymbolPseudoSourceValue const, std::__1::default_delete<llvm::ExternalSymbolPseudoSourceValue const> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::ExternalSymbolPseudoSourceValue const, std::__1::default_delete<llvm::ExternalSymbolPseudoSourceValue const> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
614
                                InitTy &&... InitVals) {
157
614
    size_t KeyLength = Key.size();
158
614
159
614
    // Allocate a new item with space for the string at the end and a null
160
614
    // terminator.
161
614
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
614
    size_t Alignment = alignof(StringMapEntry);
163
614
164
614
    StringMapEntry *NewItem =
165
614
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
614
    assert(NewItem && "Unhandled out-of-memory");
167
614
168
614
    // Construct the value.
169
614
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
614
171
614
    // Copy the string information.
172
614
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
614
    if (KeyLength > 0)
174
614
      memcpy(StrBuffer, Key.data(), KeyLength);
175
614
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
614
    return NewItem;
177
614
  }
llvm::StringMapEntry<llvm::ConstantDataSequential*>* llvm::StringMapEntry<llvm::ConstantDataSequential*>::Create<llvm::MallocAllocator, llvm::ConstantDataSequential*>(llvm::StringRef, llvm::MallocAllocator&, llvm::ConstantDataSequential*&&)
Line
Count
Source
156
491k
                                InitTy &&... InitVals) {
157
491k
    size_t KeyLength = Key.size();
158
491k
159
491k
    // Allocate a new item with space for the string at the end and a null
160
491k
    // terminator.
161
491k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
491k
    size_t Alignment = alignof(StringMapEntry);
163
491k
164
491k
    StringMapEntry *NewItem =
165
491k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
491k
    assert(NewItem && "Unhandled out-of-memory");
167
491k
168
491k
    // Construct the value.
169
491k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
491k
171
491k
    // Copy the string information.
172
491k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
491k
    if (KeyLength > 0)
174
491k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
491k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
491k
    return NewItem;
177
491k
  }
llvm::StringMapEntry<unsigned char>* llvm::StringMapEntry<unsigned char>::Create<llvm::MallocAllocator, unsigned char>(llvm::StringRef, llvm::MallocAllocator&, unsigned char&&)
Line
Count
Source
156
226k
                                InitTy &&... InitVals) {
157
226k
    size_t KeyLength = Key.size();
158
226k
159
226k
    // Allocate a new item with space for the string at the end and a null
160
226k
    // terminator.
161
226k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
226k
    size_t Alignment = alignof(StringMapEntry);
163
226k
164
226k
    StringMapEntry *NewItem =
165
226k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
226k
    assert(NewItem && "Unhandled out-of-memory");
167
226k
168
226k
    // Construct the value.
169
226k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
226k
171
226k
    // Copy the string information.
172
226k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
226k
    if (KeyLength > 0)
174
122k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
226k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
226k
    return NewItem;
177
226k
  }
llvm::StringMapEntry<std::__1::pair<unsigned int, unsigned int> >* llvm::StringMapEntry<std::__1::pair<unsigned int, unsigned int> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
155
                                InitTy &&... InitVals) {
157
155
    size_t KeyLength = Key.size();
158
155
159
155
    // Allocate a new item with space for the string at the end and a null
160
155
    // terminator.
161
155
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
155
    size_t Alignment = alignof(StringMapEntry);
163
155
164
155
    StringMapEntry *NewItem =
165
155
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
155
    assert(NewItem && "Unhandled out-of-memory");
167
155
168
155
    // Construct the value.
169
155
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
155
171
155
    // Copy the string information.
172
155
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
155
    if (KeyLength > 0)
174
155
      memcpy(StrBuffer, Key.data(), KeyLength);
175
155
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
155
    return NewItem;
177
155
  }
llvm::StringMapEntry<llvm::MDString>* llvm::StringMapEntry<llvm::MDString>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
156
429k
                                InitTy &&... InitVals) {
157
429k
    size_t KeyLength = Key.size();
158
429k
159
429k
    // Allocate a new item with space for the string at the end and a null
160
429k
    // terminator.
161
429k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
429k
    size_t Alignment = alignof(StringMapEntry);
163
429k
164
429k
    StringMapEntry *NewItem =
165
429k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
429k
    assert(NewItem && "Unhandled out-of-memory");
167
429k
168
429k
    // Construct the value.
169
429k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
429k
171
429k
    // Copy the string information.
172
429k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
429k
    if (KeyLength > 0)
174
424k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
429k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
429k
    return NewItem;
177
429k
  }
llvm::StringMapEntry<llvm::NamedMDNode*>* llvm::StringMapEntry<llvm::NamedMDNode*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
58.8k
                                InitTy &&... InitVals) {
157
58.8k
    size_t KeyLength = Key.size();
158
58.8k
159
58.8k
    // Allocate a new item with space for the string at the end and a null
160
58.8k
    // terminator.
161
58.8k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
58.8k
    size_t Alignment = alignof(StringMapEntry);
163
58.8k
164
58.8k
    StringMapEntry *NewItem =
165
58.8k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
58.8k
    assert(NewItem && "Unhandled out-of-memory");
167
58.8k
168
58.8k
    // Construct the value.
169
58.8k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
58.8k
171
58.8k
    // Copy the string information.
172
58.8k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
58.8k
    if (KeyLength > 0)
174
58.8k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
58.8k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
58.8k
    return NewItem;
177
58.8k
  }
llvm::StringMapEntry<llvm::Comdat>* llvm::StringMapEntry<llvm::Comdat>::Create<llvm::MallocAllocator, llvm::Comdat>(llvm::StringRef, llvm::MallocAllocator&, llvm::Comdat&&)
Line
Count
Source
156
31.8k
                                InitTy &&... InitVals) {
157
31.8k
    size_t KeyLength = Key.size();
158
31.8k
159
31.8k
    // Allocate a new item with space for the string at the end and a null
160
31.8k
    // terminator.
161
31.8k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
31.8k
    size_t Alignment = alignof(StringMapEntry);
163
31.8k
164
31.8k
    StringMapEntry *NewItem =
165
31.8k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
31.8k
    assert(NewItem && "Unhandled out-of-memory");
167
31.8k
168
31.8k
    // Construct the value.
169
31.8k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
31.8k
171
31.8k
    // Copy the string information.
172
31.8k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
31.8k
    if (KeyLength > 0)
174
31.8k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
31.8k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
31.8k
    return NewItem;
177
31.8k
  }
llvm::StringMapEntry<llvm::PassInfo const*>* llvm::StringMapEntry<llvm::PassInfo const*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
31.4M
                                InitTy &&... InitVals) {
157
31.4M
    size_t KeyLength = Key.size();
158
31.4M
159
31.4M
    // Allocate a new item with space for the string at the end and a null
160
31.4M
    // terminator.
161
31.4M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
31.4M
    size_t Alignment = alignof(StringMapEntry);
163
31.4M
164
31.4M
    StringMapEntry *NewItem =
165
31.4M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
31.4M
    assert(NewItem && "Unhandled out-of-memory");
167
31.4M
168
31.4M
    // Construct the value.
169
31.4M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
31.4M
171
31.4M
    // Copy the string information.
172
31.4M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
31.4M
    if (KeyLength > 0)
174
31.4M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
31.4M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
31.4M
    return NewItem;
177
31.4M
  }
llvm::StringMapEntry<llvm::StructType*>* llvm::StringMapEntry<llvm::StructType*>::Create<llvm::MallocAllocator, llvm::StructType*>(llvm::StringRef, llvm::MallocAllocator&, llvm::StructType*&&)
Line
Count
Source
156
243k
                                InitTy &&... InitVals) {
157
243k
    size_t KeyLength = Key.size();
158
243k
159
243k
    // Allocate a new item with space for the string at the end and a null
160
243k
    // terminator.
161
243k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
243k
    size_t Alignment = alignof(StringMapEntry);
163
243k
164
243k
    StringMapEntry *NewItem =
165
243k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
243k
    assert(NewItem && "Unhandled out-of-memory");
167
243k
168
243k
    // Construct the value.
169
243k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
243k
171
243k
    // Copy the string information.
172
243k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
243k
    if (KeyLength > 0)
174
243k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
243k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
243k
    return NewItem;
177
243k
  }
llvm::StringMapEntry<llvm::Value*>* llvm::StringMapEntry<llvm::Value*>::Create<llvm::MallocAllocator, llvm::Value*>(llvm::StringRef, llvm::MallocAllocator&, llvm::Value*&&)
Line
Count
Source
156
16.9M
                                InitTy &&... InitVals) {
157
16.9M
    size_t KeyLength = Key.size();
158
16.9M
159
16.9M
    // Allocate a new item with space for the string at the end and a null
160
16.9M
    // terminator.
161
16.9M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
16.9M
    size_t Alignment = alignof(StringMapEntry);
163
16.9M
164
16.9M
    StringMapEntry *NewItem =
165
16.9M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
16.9M
    assert(NewItem && "Unhandled out-of-memory");
167
16.9M
168
16.9M
    // Construct the value.
169
16.9M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
16.9M
171
16.9M
    // Copy the string information.
172
16.9M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
16.9M
    if (KeyLength > 0)
174
16.9M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
16.9M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
16.9M
    return NewItem;
177
16.9M
  }
llvm::StringMapEntry<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> > >* llvm::StringMapEntry<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
624
                                InitTy &&... InitVals) {
157
624
    size_t KeyLength = Key.size();
158
624
159
624
    // Allocate a new item with space for the string at the end and a null
160
624
    // terminator.
161
624
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
624
    size_t Alignment = alignof(StringMapEntry);
163
624
164
624
    StringMapEntry *NewItem =
165
624
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
624
    assert(NewItem && "Unhandled out-of-memory");
167
624
168
624
    // Construct the value.
169
624
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
624
171
624
    // Copy the string information.
172
624
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
624
    if (KeyLength > 0)
174
624
      memcpy(StrBuffer, Key.data(), KeyLength);
175
624
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
624
    return NewItem;
177
624
  }
llvm::StringMapEntry<llvm::StringMap<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> >, llvm::MallocAllocator> >* llvm::StringMapEntry<llvm::StringMap<std::__1::unordered_set<unsigned long long, std::__1::hash<unsigned long long>, std::__1::equal_to<unsigned long long>, std::__1::allocator<unsigned long long> >, llvm::MallocAllocator> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
493
                                InitTy &&... InitVals) {
157
493
    size_t KeyLength = Key.size();
158
493
159
493
    // Allocate a new item with space for the string at the end and a null
160
493
    // terminator.
161
493
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
493
    size_t Alignment = alignof(StringMapEntry);
163
493
164
493
    StringMapEntry *NewItem =
165
493
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
493
    assert(NewItem && "Unhandled out-of-memory");
167
493
168
493
    // Construct the value.
169
493
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
493
171
493
    // Copy the string information.
172
493
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
493
    if (KeyLength > 0)
174
479
      memcpy(StrBuffer, Key.data(), KeyLength);
175
493
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
493
    return NewItem;
177
493
  }
llvm::StringMapEntry<char>* llvm::StringMapEntry<char>::Create<llvm::MallocAllocator, char&>(llvm::StringRef, llvm::MallocAllocator&, char&&&)
Line
Count
Source
156
7.41k
                                InitTy &&... InitVals) {
157
7.41k
    size_t KeyLength = Key.size();
158
7.41k
159
7.41k
    // Allocate a new item with space for the string at the end and a null
160
7.41k
    // terminator.
161
7.41k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
7.41k
    size_t Alignment = alignof(StringMapEntry);
163
7.41k
164
7.41k
    StringMapEntry *NewItem =
165
7.41k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
7.41k
    assert(NewItem && "Unhandled out-of-memory");
167
7.41k
168
7.41k
    // Construct the value.
169
7.41k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
7.41k
171
7.41k
    // Copy the string information.
172
7.41k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
7.41k
    if (KeyLength > 0)
174
7.41k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
7.41k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
7.41k
    return NewItem;
177
7.41k
  }
llvm::StringMapEntry<llvm::Function*>* llvm::StringMapEntry<llvm::Function*>::Create<llvm::MallocAllocator, llvm::Function*>(llvm::StringRef, llvm::MallocAllocator&, llvm::Function*&&)
Line
Count
Source
156
25
                                InitTy &&... InitVals) {
157
25
    size_t KeyLength = Key.size();
158
25
159
25
    // Allocate a new item with space for the string at the end and a null
160
25
    // terminator.
161
25
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
25
    size_t Alignment = alignof(StringMapEntry);
163
25
164
25
    StringMapEntry *NewItem =
165
25
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
25
    assert(NewItem && "Unhandled out-of-memory");
167
25
168
25
    // Construct the value.
169
25
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
25
171
25
    // Copy the string information.
172
25
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
25
    if (KeyLength > 0)
174
25
      memcpy(StrBuffer, Key.data(), KeyLength);
175
25
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
25
    return NewItem;
177
25
  }
llvm::StringMapEntry<bool>* llvm::StringMapEntry<bool>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
1.15M
                                InitTy &&... InitVals) {
157
1.15M
    size_t KeyLength = Key.size();
158
1.15M
159
1.15M
    // Allocate a new item with space for the string at the end and a null
160
1.15M
    // terminator.
161
1.15M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1.15M
    size_t Alignment = alignof(StringMapEntry);
163
1.15M
164
1.15M
    StringMapEntry *NewItem =
165
1.15M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1.15M
    assert(NewItem && "Unhandled out-of-memory");
167
1.15M
168
1.15M
    // Construct the value.
169
1.15M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1.15M
171
1.15M
    // Copy the string information.
172
1.15M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1.15M
    if (KeyLength > 0)
174
1.15M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1.15M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1.15M
    return NewItem;
177
1.15M
  }
GCOVProfiling.cpp:llvm::StringMapEntry<(anonymous namespace)::GCOVLines>* llvm::StringMapEntry<(anonymous namespace)::GCOVLines>::Create<llvm::MallocAllocator, llvm::StringRef&, llvm::raw_ostream*&>(llvm::StringRef, llvm::MallocAllocator&, llvm::StringRef&&&, llvm::raw_ostream*&&&)
Line
Count
Source
156
84
                                InitTy &&... InitVals) {
157
84
    size_t KeyLength = Key.size();
158
84
159
84
    // Allocate a new item with space for the string at the end and a null
160
84
    // terminator.
161
84
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
84
    size_t Alignment = alignof(StringMapEntry);
163
84
164
84
    StringMapEntry *NewItem =
165
84
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
84
    assert(NewItem && "Unhandled out-of-memory");
167
84
168
84
    // Construct the value.
169
84
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
84
171
84
    // Copy the string information.
172
84
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
84
    if (KeyLength > 0)
174
84
      memcpy(StrBuffer, Key.data(), KeyLength);
175
84
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
84
    return NewItem;
177
84
  }
llvm::StringMapEntry<llvm::MCSymbol*>* llvm::StringMapEntry<llvm::MCSymbol*>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
156
4.56M
                                InitTy &&... InitVals) {
157
4.56M
    size_t KeyLength = Key.size();
158
4.56M
159
4.56M
    // Allocate a new item with space for the string at the end and a null
160
4.56M
    // terminator.
161
4.56M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
4.56M
    size_t Alignment = alignof(StringMapEntry);
163
4.56M
164
4.56M
    StringMapEntry *NewItem =
165
4.56M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
4.56M
    assert(NewItem && "Unhandled out-of-memory");
167
4.56M
168
4.56M
    // Construct the value.
169
4.56M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
4.56M
171
4.56M
    // Copy the string information.
172
4.56M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
4.56M
    if (KeyLength > 0)
174
4.56M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
4.56M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
4.56M
    return NewItem;
177
4.56M
  }
llvm::StringMapEntry<bool>* llvm::StringMapEntry<bool>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, bool>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, bool&&)
Line
Count
Source
156
4.96M
                                InitTy &&... InitVals) {
157
4.96M
    size_t KeyLength = Key.size();
158
4.96M
159
4.96M
    // Allocate a new item with space for the string at the end and a null
160
4.96M
    // terminator.
161
4.96M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
4.96M
    size_t Alignment = alignof(StringMapEntry);
163
4.96M
164
4.96M
    StringMapEntry *NewItem =
165
4.96M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
4.96M
    assert(NewItem && "Unhandled out-of-memory");
167
4.96M
168
4.96M
    // Construct the value.
169
4.96M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
4.96M
171
4.96M
    // Copy the string information.
172
4.96M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
4.96M
    if (KeyLength > 0)
174
4.96M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
4.96M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
4.96M
    return NewItem;
177
4.96M
  }
llvm::StringMapEntry<llvm::MCSectionMachO*>* llvm::StringMapEntry<llvm::MCSectionMachO*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
888k
                                InitTy &&... InitVals) {
157
888k
    size_t KeyLength = Key.size();
158
888k
159
888k
    // Allocate a new item with space for the string at the end and a null
160
888k
    // terminator.
161
888k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
888k
    size_t Alignment = alignof(StringMapEntry);
163
888k
164
888k
    StringMapEntry *NewItem =
165
888k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
888k
    assert(NewItem && "Unhandled out-of-memory");
167
888k
168
888k
    // Construct the value.
169
888k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
888k
171
888k
    // Copy the string information.
172
888k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
888k
    if (KeyLength > 0)
174
888k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
888k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
888k
    return NewItem;
177
888k
  }
llvm::StringMapEntry<bool>* llvm::StringMapEntry<bool>::Create<llvm::MallocAllocator, bool>(llvm::StringRef, llvm::MallocAllocator&, bool&&)
Line
Count
Source
156
4.67k
                                InitTy &&... InitVals) {
157
4.67k
    size_t KeyLength = Key.size();
158
4.67k
159
4.67k
    // Allocate a new item with space for the string at the end and a null
160
4.67k
    // terminator.
161
4.67k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
4.67k
    size_t Alignment = alignof(StringMapEntry);
163
4.67k
164
4.67k
    StringMapEntry *NewItem =
165
4.67k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
4.67k
    assert(NewItem && "Unhandled out-of-memory");
167
4.67k
168
4.67k
    // Construct the value.
169
4.67k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
4.67k
171
4.67k
    // Copy the string information.
172
4.67k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
4.67k
    if (KeyLength > 0)
174
4.67k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
4.67k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
4.67k
    return NewItem;
177
4.67k
  }
AsmParser.cpp:llvm::StringMapEntry<(anonymous namespace)::AsmParser::DirectiveKind>* llvm::StringMapEntry<(anonymous namespace)::AsmParser::DirectiveKind>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
2.84M
                                InitTy &&... InitVals) {
157
2.84M
    size_t KeyLength = Key.size();
158
2.84M
159
2.84M
    // Allocate a new item with space for the string at the end and a null
160
2.84M
    // terminator.
161
2.84M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2.84M
    size_t Alignment = alignof(StringMapEntry);
163
2.84M
164
2.84M
    StringMapEntry *NewItem =
165
2.84M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2.84M
    assert(NewItem && "Unhandled out-of-memory");
167
2.84M
168
2.84M
    // Construct the value.
169
2.84M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2.84M
171
2.84M
    // Copy the string information.
172
2.84M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2.84M
    if (KeyLength > 0)
174
2.84M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2.84M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2.84M
    return NewItem;
177
2.84M
  }
llvm::StringMapEntry<std::__1::pair<llvm::MCAsmParserExtension*, bool (*)(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc)> >* llvm::StringMapEntry<std::__1::pair<llvm::MCAsmParserExtension*, bool (*)(llvm::MCAsmParserExtension*, llvm::StringRef, llvm::SMLoc)> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
682k
                                InitTy &&... InitVals) {
157
682k
    size_t KeyLength = Key.size();
158
682k
159
682k
    // Allocate a new item with space for the string at the end and a null
160
682k
    // terminator.
161
682k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
682k
    size_t Alignment = alignof(StringMapEntry);
163
682k
164
682k
    StringMapEntry *NewItem =
165
682k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
682k
    assert(NewItem && "Unhandled out-of-memory");
167
682k
168
682k
    // Construct the value.
169
682k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
682k
171
682k
    // Copy the string information.
172
682k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
682k
    if (KeyLength > 0)
174
682k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
682k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
682k
    return NewItem;
177
682k
  }
llvm::StringMapEntry<llvm::MCAsmMacro>* llvm::StringMapEntry<llvm::MCAsmMacro>::Create<llvm::MallocAllocator, llvm::MCAsmMacro>(llvm::StringRef, llvm::MallocAllocator&, llvm::MCAsmMacro&&)
Line
Count
Source
156
293
                                InitTy &&... InitVals) {
157
293
    size_t KeyLength = Key.size();
158
293
159
293
    // Allocate a new item with space for the string at the end and a null
160
293
    // terminator.
161
293
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
293
    size_t Alignment = alignof(StringMapEntry);
163
293
164
293
    StringMapEntry *NewItem =
165
293
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
293
    assert(NewItem && "Unhandled out-of-memory");
167
293
168
293
    // Construct the value.
169
293
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
293
171
293
    // Copy the string information.
172
293
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
293
    if (KeyLength > 0)
174
293
      memcpy(StrBuffer, Key.data(), KeyLength);
175
293
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
293
    return NewItem;
177
293
  }
llvm::StringMapEntry<llvm::cl::Option*>* llvm::StringMapEntry<llvm::cl::Option*>::Create<llvm::MallocAllocator, llvm::cl::Option*>(llvm::StringRef, llvm::MallocAllocator&, llvm::cl::Option*&&)
Line
Count
Source
156
151M
                                InitTy &&... InitVals) {
157
151M
    size_t KeyLength = Key.size();
158
151M
159
151M
    // Allocate a new item with space for the string at the end and a null
160
151M
    // terminator.
161
151M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
151M
    size_t Alignment = alignof(StringMapEntry);
163
151M
164
151M
    StringMapEntry *NewItem =
165
151M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
151M
    assert(NewItem && "Unhandled out-of-memory");
167
151M
168
151M
    // Construct the value.
169
151M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
151M
171
151M
    // Copy the string information.
172
151M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
151M
    if (KeyLength > 0)
174
151M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
151M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
151M
    return NewItem;
177
151M
  }
llvm::StringMapEntry<unsigned long>* llvm::StringMapEntry<unsigned long>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
36.8k
                                InitTy &&... InitVals) {
157
36.8k
    size_t KeyLength = Key.size();
158
36.8k
159
36.8k
    // Allocate a new item with space for the string at the end and a null
160
36.8k
    // terminator.
161
36.8k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
36.8k
    size_t Alignment = alignof(StringMapEntry);
163
36.8k
164
36.8k
    StringMapEntry *NewItem =
165
36.8k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
36.8k
    assert(NewItem && "Unhandled out-of-memory");
167
36.8k
168
36.8k
    // Construct the value.
169
36.8k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
36.8k
171
36.8k
    // Copy the string information.
172
36.8k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
36.8k
    if (KeyLength > 0)
174
36.8k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
36.8k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
36.8k
    return NewItem;
177
36.8k
  }
llvm::StringMapEntry<llvm::StringMap<llvm::SpecialCaseList::Matcher, llvm::MallocAllocator> >* llvm::StringMapEntry<llvm::StringMap<llvm::SpecialCaseList::Matcher, llvm::MallocAllocator> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
303
                                InitTy &&... InitVals) {
157
303
    size_t KeyLength = Key.size();
158
303
159
303
    // Allocate a new item with space for the string at the end and a null
160
303
    // terminator.
161
303
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
303
    size_t Alignment = alignof(StringMapEntry);
163
303
164
303
    StringMapEntry *NewItem =
165
303
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
303
    assert(NewItem && "Unhandled out-of-memory");
167
303
168
303
    // Construct the value.
169
303
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
303
171
303
    // Copy the string information.
172
303
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
303
    if (KeyLength > 0)
174
303
      memcpy(StrBuffer, Key.data(), KeyLength);
175
303
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
303
    return NewItem;
177
303
  }
llvm::StringMapEntry<llvm::SpecialCaseList::Matcher>* llvm::StringMapEntry<llvm::SpecialCaseList::Matcher>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
328
                                InitTy &&... InitVals) {
157
328
    size_t KeyLength = Key.size();
158
328
159
328
    // Allocate a new item with space for the string at the end and a null
160
328
    // terminator.
161
328
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
328
    size_t Alignment = alignof(StringMapEntry);
163
328
164
328
    StringMapEntry *NewItem =
165
328
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
328
    assert(NewItem && "Unhandled out-of-memory");
167
328
168
328
    // Construct the value.
169
328
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
328
171
328
    // Copy the string information.
172
328
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
328
    if (KeyLength > 0)
174
44
      memcpy(StrBuffer, Key.data(), KeyLength);
175
328
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
328
    return NewItem;
177
328
  }
llvm::StringMapEntry<std::__1::pair<unsigned long, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > >* llvm::StringMapEntry<std::__1::pair<unsigned long, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
10
                                InitTy &&... InitVals) {
157
10
    size_t KeyLength = Key.size();
158
10
159
10
    // Allocate a new item with space for the string at the end and a null
160
10
    // terminator.
161
10
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
10
    size_t Alignment = alignof(StringMapEntry);
163
10
164
10
    StringMapEntry *NewItem =
165
10
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
10
    assert(NewItem && "Unhandled out-of-memory");
167
10
168
10
    // Construct the value.
169
10
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
10
171
10
    // Copy the string information.
172
10
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
10
    if (KeyLength > 0)
174
10
      memcpy(StrBuffer, Key.data(), KeyLength);
175
10
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
10
    return NewItem;
177
10
  }
llvm::StringMapEntry<std::__1::pair<llvm::TimerGroup*, llvm::StringMap<llvm::Timer, llvm::MallocAllocator> > >* llvm::StringMapEntry<std::__1::pair<llvm::TimerGroup*, llvm::StringMap<llvm::Timer, llvm::MallocAllocator> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
9
                                InitTy &&... InitVals) {
157
9
    size_t KeyLength = Key.size();
158
9
159
9
    // Allocate a new item with space for the string at the end and a null
160
9
    // terminator.
161
9
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
9
    size_t Alignment = alignof(StringMapEntry);
163
9
164
9
    StringMapEntry *NewItem =
165
9
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
9
    assert(NewItem && "Unhandled out-of-memory");
167
9
168
9
    // Construct the value.
169
9
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
9
171
9
    // Copy the string information.
172
9
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
9
    if (KeyLength > 0)
174
9
      memcpy(StrBuffer, Key.data(), KeyLength);
175
9
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
9
    return NewItem;
177
9
  }
llvm::StringMapEntry<llvm::Timer>* llvm::StringMapEntry<llvm::Timer>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
9
                                InitTy &&... InitVals) {
157
9
    size_t KeyLength = Key.size();
158
9
159
9
    // Allocate a new item with space for the string at the end and a null
160
9
    // terminator.
161
9
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
9
    size_t Alignment = alignof(StringMapEntry);
163
9
164
9
    StringMapEntry *NewItem =
165
9
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
9
    assert(NewItem && "Unhandled out-of-memory");
167
9
168
9
    // Construct the value.
169
9
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
9
171
9
    // Copy the string information.
172
9
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
9
    if (KeyLength > 0)
174
9
      memcpy(StrBuffer, Key.data(), KeyLength);
175
9
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
9
    return NewItem;
177
9
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> > >::Create<llvm::MallocAllocator, std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> > >(llvm::StringRef, llvm::MallocAllocator&, std::__1::unique_ptr<llvm::vfs::detail::InMemoryNode, std::__1::default_delete<llvm::vfs::detail::InMemoryNode> >&&)
Line
Count
Source
156
137k
                                InitTy &&... InitVals) {
157
137k
    size_t KeyLength = Key.size();
158
137k
159
137k
    // Allocate a new item with space for the string at the end and a null
160
137k
    // terminator.
161
137k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
137k
    size_t Alignment = alignof(StringMapEntry);
163
137k
164
137k
    StringMapEntry *NewItem =
165
137k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
137k
    assert(NewItem && "Unhandled out-of-memory");
167
137k
168
137k
    // Construct the value.
169
137k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
137k
171
137k
    // Copy the string information.
172
137k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
137k
    if (KeyLength > 0)
174
137k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
137k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
137k
    return NewItem;
177
137k
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::yaml::Input::HNode, std::__1::default_delete<llvm::yaml::Input::HNode> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::yaml::Input::HNode, std::__1::default_delete<llvm::yaml::Input::HNode> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
440k
                                InitTy &&... InitVals) {
157
440k
    size_t KeyLength = Key.size();
158
440k
159
440k
    // Allocate a new item with space for the string at the end and a null
160
440k
    // terminator.
161
440k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
440k
    size_t Alignment = alignof(StringMapEntry);
163
440k
164
440k
    StringMapEntry *NewItem =
165
440k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
440k
    assert(NewItem && "Unhandled out-of-memory");
167
440k
168
440k
    // Construct the value.
169
440k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
440k
171
440k
    // Copy the string information.
172
440k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
440k
    if (KeyLength > 0)
174
440k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
440k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
440k
    return NewItem;
177
440k
  }
llvm::StringMapEntry<void*>* llvm::StringMapEntry<void*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
3
                                InitTy &&... InitVals) {
157
3
    size_t KeyLength = Key.size();
158
3
159
3
    // Allocate a new item with space for the string at the end and a null
160
3
    // terminator.
161
3
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
3
    size_t Alignment = alignof(StringMapEntry);
163
3
164
3
    StringMapEntry *NewItem =
165
3
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
3
    assert(NewItem && "Unhandled out-of-memory");
167
3
168
3
    // Construct the value.
169
3
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
3
171
3
    // Copy the string information.
172
3
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
3
    if (KeyLength > 0)
174
3
      memcpy(StrBuffer, Key.data(), KeyLength);
175
3
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
3
    return NewItem;
177
3
  }
llvm::StringMapEntry<std::__1::unique_ptr<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode, std::__1::default_delete<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode> > >* llvm::StringMapEntry<std::__1::unique_ptr<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode, std::__1::default_delete<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
36
                                InitTy &&... InitVals) {
157
36
    size_t KeyLength = Key.size();
158
36
159
36
    // Allocate a new item with space for the string at the end and a null
160
36
    // terminator.
161
36
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
36
    size_t Alignment = alignof(StringMapEntry);
163
36
164
36
    StringMapEntry *NewItem =
165
36
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
36
    assert(NewItem && "Unhandled out-of-memory");
167
36
168
36
    // Construct the value.
169
36
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
36
171
36
    // Copy the string information.
172
36
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
36
    if (KeyLength > 0)
174
36
      memcpy(StrBuffer, Key.data(), KeyLength);
175
36
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
36
    return NewItem;
177
36
  }
llvm::StringMapEntry<clang::IdentifierInfo*>* llvm::StringMapEntry<clang::IdentifierInfo*>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, clang::IdentifierInfo*>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, clang::IdentifierInfo*&&)
Line
Count
Source
156
157M
                                InitTy &&... InitVals) {
157
157M
    size_t KeyLength = Key.size();
158
157M
159
157M
    // Allocate a new item with space for the string at the end and a null
160
157M
    // terminator.
161
157M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
157M
    size_t Alignment = alignof(StringMapEntry);
163
157M
164
157M
    StringMapEntry *NewItem =
165
157M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
157M
    assert(NewItem && "Unhandled out-of-memory");
167
157M
168
157M
    // Construct the value.
169
157M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
157M
171
157M
    // Copy the string information.
172
157M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
157M
    if (KeyLength > 0)
174
157M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
157M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
157M
    return NewItem;
177
157M
  }
llvm::StringMapEntry<clang::DirectoryEntry*>* llvm::StringMapEntry<clang::DirectoryEntry*>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, clang::DirectoryEntry*>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, clang::DirectoryEntry*&&)
Line
Count
Source
156
406k
                                InitTy &&... InitVals) {
157
406k
    size_t KeyLength = Key.size();
158
406k
159
406k
    // Allocate a new item with space for the string at the end and a null
160
406k
    // terminator.
161
406k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
406k
    size_t Alignment = alignof(StringMapEntry);
163
406k
164
406k
    StringMapEntry *NewItem =
165
406k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
406k
    assert(NewItem && "Unhandled out-of-memory");
167
406k
168
406k
    // Construct the value.
169
406k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
406k
171
406k
    // Copy the string information.
172
406k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
406k
    if (KeyLength > 0)
174
406k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
406k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
406k
    return NewItem;
177
406k
  }
llvm::StringMapEntry<clang::FileEntry*>* llvm::StringMapEntry<clang::FileEntry*>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, clang::FileEntry*>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, clang::FileEntry*&&)
Line
Count
Source
156
1.38M
                                InitTy &&... InitVals) {
157
1.38M
    size_t KeyLength = Key.size();
158
1.38M
159
1.38M
    // Allocate a new item with space for the string at the end and a null
160
1.38M
    // terminator.
161
1.38M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1.38M
    size_t Alignment = alignof(StringMapEntry);
163
1.38M
164
1.38M
    StringMapEntry *NewItem =
165
1.38M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1.38M
    assert(NewItem && "Unhandled out-of-memory");
167
1.38M
168
1.38M
    // Construct the value.
169
1.38M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1.38M
171
1.38M
    // Copy the string information.
172
1.38M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1.38M
    if (KeyLength > 0)
174
1.38M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1.38M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1.38M
    return NewItem;
177
1.38M
  }
llvm::StringMapEntry<llvm::vfs::Status>* llvm::StringMapEntry<llvm::vfs::Status>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
156
19
                                InitTy &&... InitVals) {
157
19
    size_t KeyLength = Key.size();
158
19
159
19
    // Allocate a new item with space for the string at the end and a null
160
19
    // terminator.
161
19
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
19
    size_t Alignment = alignof(StringMapEntry);
163
19
164
19
    StringMapEntry *NewItem =
165
19
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
19
    assert(NewItem && "Unhandled out-of-memory");
167
19
168
19
    // Construct the value.
169
19
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
19
171
19
    // Copy the string information.
172
19
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
19
    if (KeyLength > 0)
174
19
      memcpy(StrBuffer, Key.data(), KeyLength);
175
19
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
19
    return NewItem;
177
19
  }
llvm::StringMapEntry<unsigned int>* llvm::StringMapEntry<unsigned int>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, unsigned long>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, unsigned long&&)
Line
Count
Source
156
116k
                                InitTy &&... InitVals) {
157
116k
    size_t KeyLength = Key.size();
158
116k
159
116k
    // Allocate a new item with space for the string at the end and a null
160
116k
    // terminator.
161
116k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
116k
    size_t Alignment = alignof(StringMapEntry);
163
116k
164
116k
    StringMapEntry *NewItem =
165
116k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
116k
    assert(NewItem && "Unhandled out-of-memory");
167
116k
168
116k
    // Construct the value.
169
116k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
116k
171
116k
    // Copy the string information.
172
116k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
116k
    if (KeyLength > 0)
174
116k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
116k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
116k
    return NewItem;
177
116k
  }
llvm::StringMapEntry<clang::OpenCLOptions::Info>* llvm::StringMapEntry<clang::OpenCLOptions::Info>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
4.38M
                                InitTy &&... InitVals) {
157
4.38M
    size_t KeyLength = Key.size();
158
4.38M
159
4.38M
    // Allocate a new item with space for the string at the end and a null
160
4.38M
    // terminator.
161
4.38M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
4.38M
    size_t Alignment = alignof(StringMapEntry);
163
4.38M
164
4.38M
    StringMapEntry *NewItem =
165
4.38M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
4.38M
    assert(NewItem && "Unhandled out-of-memory");
167
4.38M
168
4.38M
    // Construct the value.
169
4.38M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
4.38M
171
4.38M
    // Copy the string information.
172
4.38M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
4.38M
    if (KeyLength > 0)
174
4.38M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
4.38M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
4.38M
    return NewItem;
177
4.38M
  }
llvm::StringMapEntry<clang::OpenCLOptions::Info>* llvm::StringMapEntry<clang::OpenCLOptions::Info>::Create<llvm::MallocAllocator, clang::OpenCLOptions::Info&>(llvm::StringRef, llvm::MallocAllocator&, clang::OpenCLOptions::Info&&&)
Line
Count
Source
156
533k
                                InitTy &&... InitVals) {
157
533k
    size_t KeyLength = Key.size();
158
533k
159
533k
    // Allocate a new item with space for the string at the end and a null
160
533k
    // terminator.
161
533k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
533k
    size_t Alignment = alignof(StringMapEntry);
163
533k
164
533k
    StringMapEntry *NewItem =
165
533k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
533k
    assert(NewItem && "Unhandled out-of-memory");
167
533k
168
533k
    // Construct the value.
169
533k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
533k
171
533k
    // Copy the string information.
172
533k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
533k
    if (KeyLength > 0)
174
533k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
533k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
533k
    return NewItem;
177
533k
  }
llvm::StringMapEntry<llvm::DenseMap<unsigned long long, llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long long>, llvm::detail::DenseMapPair<unsigned long long, llvm::GlobalValueSummary*> > >* llvm::StringMapEntry<llvm::DenseMap<unsigned long long, llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long long>, llvm::detail::DenseMapPair<unsigned long long, llvm::GlobalValueSummary*> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
531
                                InitTy &&... InitVals) {
157
531
    size_t KeyLength = Key.size();
158
531
159
531
    // Allocate a new item with space for the string at the end and a null
160
531
    // terminator.
161
531
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
531
    size_t Alignment = alignof(StringMapEntry);
163
531
164
531
    StringMapEntry *NewItem =
165
531
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
531
    assert(NewItem && "Unhandled out-of-memory");
167
531
168
531
    // Construct the value.
169
531
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
531
171
531
    // Copy the string information.
172
531
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
531
    if (KeyLength > 0)
174
516
      memcpy(StrBuffer, Key.data(), KeyLength);
175
531
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
531
    return NewItem;
177
531
  }
llvm::StringMapEntry<llvm::Constant*>* llvm::StringMapEntry<llvm::Constant*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
47
                                InitTy &&... InitVals) {
157
47
    size_t KeyLength = Key.size();
158
47
159
47
    // Allocate a new item with space for the string at the end and a null
160
47
    // terminator.
161
47
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
47
    size_t Alignment = alignof(StringMapEntry);
163
47
164
47
    StringMapEntry *NewItem =
165
47
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
47
    assert(NewItem && "Unhandled out-of-memory");
167
47
168
47
    // Construct the value.
169
47
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
47
171
47
    // Copy the string information.
172
47
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
47
    if (KeyLength > 0)
174
47
      memcpy(StrBuffer, Key.data(), KeyLength);
175
47
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
47
    return NewItem;
177
47
  }
llvm::StringMapEntry<llvm::GlobalVariable*>* llvm::StringMapEntry<llvm::GlobalVariable*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
2.11k
                                InitTy &&... InitVals) {
157
2.11k
    size_t KeyLength = Key.size();
158
2.11k
159
2.11k
    // Allocate a new item with space for the string at the end and a null
160
2.11k
    // terminator.
161
2.11k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2.11k
    size_t Alignment = alignof(StringMapEntry);
163
2.11k
164
2.11k
    StringMapEntry *NewItem =
165
2.11k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2.11k
    assert(NewItem && "Unhandled out-of-memory");
167
2.11k
168
2.11k
    // Construct the value.
169
2.11k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2.11k
171
2.11k
    // Copy the string information.
172
2.11k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2.11k
    if (KeyLength > 0)
174
1.94k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2.11k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2.11k
    return NewItem;
177
2.11k
  }
llvm::StringMapEntry<llvm::GlobalVariable*>* llvm::StringMapEntry<llvm::GlobalVariable*>::Create<llvm::MallocAllocator, llvm::GlobalVariable*>(llvm::StringRef, llvm::MallocAllocator&, llvm::GlobalVariable*&&)
Line
Count
Source
156
313
                                InitTy &&... InitVals) {
157
313
    size_t KeyLength = Key.size();
158
313
159
313
    // Allocate a new item with space for the string at the end and a null
160
313
    // terminator.
161
313
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
313
    size_t Alignment = alignof(StringMapEntry);
163
313
164
313
    StringMapEntry *NewItem =
165
313
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
313
    assert(NewItem && "Unhandled out-of-memory");
167
313
168
313
    // Construct the value.
169
313
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
313
171
313
    // Copy the string information.
172
313
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
313
    if (KeyLength > 0)
174
279
      memcpy(StrBuffer, Key.data(), KeyLength);
175
313
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
313
    return NewItem;
177
313
  }
llvm::StringMapEntry<llvm::AssertingVH<llvm::Constant> >* llvm::StringMapEntry<llvm::AssertingVH<llvm::Constant> >::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, std::nullptr_t>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, std::nullptr_t&&)
Line
Count
Source
156
224
                                InitTy &&... InitVals) {
157
224
    size_t KeyLength = Key.size();
158
224
159
224
    // Allocate a new item with space for the string at the end and a null
160
224
    // terminator.
161
224
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
224
    size_t Alignment = alignof(StringMapEntry);
163
224
164
224
    StringMapEntry *NewItem =
165
224
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
224
    assert(NewItem && "Unhandled out-of-memory");
167
224
168
224
    // Construct the value.
169
224
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
224
171
224
    // Copy the string information.
172
224
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
224
    if (KeyLength > 0)
174
224
      memcpy(StrBuffer, Key.data(), KeyLength);
175
224
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
224
    return NewItem;
177
224
  }
llvm::StringMapEntry<llvm::DenseMap<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion, llvm::DenseMapInfo<unsigned int>, llvm::detail::DenseMapPair<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion> > >* llvm::StringMapEntry<llvm::DenseMap<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion, llvm::DenseMapInfo<unsigned int>, llvm::detail::DenseMapPair<unsigned int, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoTargetRegion> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
3.48k
                                InitTy &&... InitVals) {
157
3.48k
    size_t KeyLength = Key.size();
158
3.48k
159
3.48k
    // Allocate a new item with space for the string at the end and a null
160
3.48k
    // terminator.
161
3.48k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
3.48k
    size_t Alignment = alignof(StringMapEntry);
163
3.48k
164
3.48k
    StringMapEntry *NewItem =
165
3.48k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
3.48k
    assert(NewItem && "Unhandled out-of-memory");
167
3.48k
168
3.48k
    // Construct the value.
169
3.48k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
3.48k
171
3.48k
    // Copy the string information.
172
3.48k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
3.48k
    if (KeyLength > 0)
174
3.48k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
3.48k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
3.48k
    return NewItem;
177
3.48k
  }
llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>* llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::Create<llvm::MallocAllocator, unsigned int&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&>(llvm::StringRef, llvm::MallocAllocator&, unsigned int&&&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&&&)
Line
Count
Source
156
60
                                InitTy &&... InitVals) {
157
60
    size_t KeyLength = Key.size();
158
60
159
60
    // Allocate a new item with space for the string at the end and a null
160
60
    // terminator.
161
60
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
60
    size_t Alignment = alignof(StringMapEntry);
163
60
164
60
    StringMapEntry *NewItem =
165
60
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
60
    assert(NewItem && "Unhandled out-of-memory");
167
60
168
60
    // Construct the value.
169
60
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
60
171
60
    // Copy the string information.
172
60
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
60
    if (KeyLength > 0)
174
60
      memcpy(StrBuffer, Key.data(), KeyLength);
175
60
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
60
    return NewItem;
177
60
  }
Unexecuted instantiation: llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>* llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>* llvm::StringMapEntry<clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OffloadEntryInfoDeviceGlobalVar>::Create<llvm::MallocAllocator, unsigned int&, llvm::Constant*&, clang::CharUnits&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&, llvm::GlobalValue::LinkageTypes&>(llvm::StringRef, llvm::MallocAllocator&, unsigned int&&&, llvm::Constant*&&&, clang::CharUnits&&&, clang::CodeGen::CGOpenMPRuntime::OffloadEntriesInfoManagerTy::OMPTargetGlobalVarEntryKind&&&, llvm::GlobalValue::LinkageTypes&&&)
Line
Count
Source
156
69
                                InitTy &&... InitVals) {
157
69
    size_t KeyLength = Key.size();
158
69
159
69
    // Allocate a new item with space for the string at the end and a null
160
69
    // terminator.
161
69
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
69
    size_t Alignment = alignof(StringMapEntry);
163
69
164
69
    StringMapEntry *NewItem =
165
69
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
69
    assert(NewItem && "Unhandled out-of-memory");
167
69
168
69
    // Construct the value.
169
69
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
69
171
69
    // Copy the string information.
172
69
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
69
    if (KeyLength > 0)
174
69
      memcpy(StrBuffer, Key.data(), KeyLength);
175
69
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
69
    return NewItem;
177
69
  }
llvm::StringMapEntry<llvm::WeakTrackingVH>* llvm::StringMapEntry<llvm::WeakTrackingVH>::Create<llvm::MallocAllocator, llvm::Constant*&>(llvm::StringRef, llvm::MallocAllocator&, llvm::Constant*&&&)
Line
Count
Source
156
11
                                InitTy &&... InitVals) {
157
11
    size_t KeyLength = Key.size();
158
11
159
11
    // Allocate a new item with space for the string at the end and a null
160
11
    // terminator.
161
11
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
11
    size_t Alignment = alignof(StringMapEntry);
163
11
164
11
    StringMapEntry *NewItem =
165
11
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
11
    assert(NewItem && "Unhandled out-of-memory");
167
11
168
11
    // Construct the value.
169
11
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
11
171
11
    // Copy the string information.
172
11
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
11
    if (KeyLength > 0)
174
11
      memcpy(StrBuffer, Key.data(), KeyLength);
175
11
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
11
    return NewItem;
177
11
  }
llvm::StringMapEntry<llvm::TrackingVH<llvm::Constant> >* llvm::StringMapEntry<llvm::TrackingVH<llvm::Constant> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
114
                                InitTy &&... InitVals) {
157
114
    size_t KeyLength = Key.size();
158
114
159
114
    // Allocate a new item with space for the string at the end and a null
160
114
    // terminator.
161
114
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
114
    size_t Alignment = alignof(StringMapEntry);
163
114
164
114
    StringMapEntry *NewItem =
165
114
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
114
    assert(NewItem && "Unhandled out-of-memory");
167
114
168
114
    // Construct the value.
169
114
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
114
171
114
    // Copy the string information.
172
114
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
114
    if (KeyLength > 0)
174
114
      memcpy(StrBuffer, Key.data(), KeyLength);
175
114
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
114
    return NewItem;
177
114
  }
llvm::StringMapEntry<clang::GlobalDecl>* llvm::StringMapEntry<clang::GlobalDecl>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, clang::GlobalDecl>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, clang::GlobalDecl&&)
Line
Count
Source
156
2.33M
                                InitTy &&... InitVals) {
157
2.33M
    size_t KeyLength = Key.size();
158
2.33M
159
2.33M
    // Allocate a new item with space for the string at the end and a null
160
2.33M
    // terminator.
161
2.33M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2.33M
    size_t Alignment = alignof(StringMapEntry);
163
2.33M
164
2.33M
    StringMapEntry *NewItem =
165
2.33M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2.33M
    assert(NewItem && "Unhandled out-of-memory");
167
2.33M
168
2.33M
    // Construct the value.
169
2.33M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2.33M
171
2.33M
    // Copy the string information.
172
2.33M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2.33M
    if (KeyLength > 0)
174
2.33M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2.33M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2.33M
    return NewItem;
177
2.33M
  }
llvm::StringMapEntry<clang::ASTContext::SectionInfo>* llvm::StringMapEntry<clang::ASTContext::SectionInfo>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
193
                                InitTy &&... InitVals) {
157
193
    size_t KeyLength = Key.size();
158
193
159
193
    // Allocate a new item with space for the string at the end and a null
160
193
    // terminator.
161
193
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
193
    size_t Alignment = alignof(StringMapEntry);
163
193
164
193
    StringMapEntry *NewItem =
165
193
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
193
    assert(NewItem && "Unhandled out-of-memory");
167
193
168
193
    // Construct the value.
169
193
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
193
171
193
    // Copy the string information.
172
193
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
193
    if (KeyLength > 0)
174
193
      memcpy(StrBuffer, Key.data(), KeyLength);
175
193
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
193
    return NewItem;
177
193
  }
llvm::StringMapEntry<std::__1::unique_ptr<clang::driver::ToolChain, std::__1::default_delete<clang::driver::ToolChain> > >* llvm::StringMapEntry<std::__1::unique_ptr<clang::driver::ToolChain, std::__1::default_delete<clang::driver::ToolChain> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
31.2k
                                InitTy &&... InitVals) {
157
31.2k
    size_t KeyLength = Key.size();
158
31.2k
159
31.2k
    // Allocate a new item with space for the string at the end and a null
160
31.2k
    // terminator.
161
31.2k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
31.2k
    size_t Alignment = alignof(StringMapEntry);
163
31.2k
164
31.2k
    StringMapEntry *NewItem =
165
31.2k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
31.2k
    assert(NewItem && "Unhandled out-of-memory");
167
31.2k
168
31.2k
    // Construct the value.
169
31.2k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
31.2k
171
31.2k
    // Copy the string information.
172
31.2k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
31.2k
    if (KeyLength > 0)
174
31.2k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
31.2k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
31.2k
    return NewItem;
177
31.2k
  }
llvm::StringMapEntry<char const*>* llvm::StringMapEntry<char const*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
105
                                InitTy &&... InitVals) {
157
105
    size_t KeyLength = Key.size();
158
105
159
105
    // Allocate a new item with space for the string at the end and a null
160
105
    // terminator.
161
105
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
105
    size_t Alignment = alignof(StringMapEntry);
163
105
164
105
    StringMapEntry *NewItem =
165
105
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
105
    assert(NewItem && "Unhandled out-of-memory");
167
105
168
105
    // Construct the value.
169
105
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
105
171
105
    // Copy the string information.
172
105
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
105
    if (KeyLength > 0)
174
105
      memcpy(StrBuffer, Key.data(), KeyLength);
175
105
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
105
    return NewItem;
177
105
  }
llvm::StringMapEntry<int>* llvm::StringMapEntry<int>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
779k
                                InitTy &&... InitVals) {
157
779k
    size_t KeyLength = Key.size();
158
779k
159
779k
    // Allocate a new item with space for the string at the end and a null
160
779k
    // terminator.
161
779k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
779k
    size_t Alignment = alignof(StringMapEntry);
163
779k
164
779k
    StringMapEntry *NewItem =
165
779k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
779k
    assert(NewItem && "Unhandled out-of-memory");
167
779k
168
779k
    // Construct the value.
169
779k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
779k
171
779k
    // Copy the string information.
172
779k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
779k
    if (KeyLength > 0)
174
779k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
779k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
779k
    return NewItem;
177
779k
  }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >* llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
2.23k
                                InitTy &&... InitVals) {
157
2.23k
    size_t KeyLength = Key.size();
158
2.23k
159
2.23k
    // Allocate a new item with space for the string at the end and a null
160
2.23k
    // terminator.
161
2.23k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2.23k
    size_t Alignment = alignof(StringMapEntry);
163
2.23k
164
2.23k
    StringMapEntry *NewItem =
165
2.23k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2.23k
    assert(NewItem && "Unhandled out-of-memory");
167
2.23k
168
2.23k
    // Construct the value.
169
2.23k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2.23k
171
2.23k
    // Copy the string information.
172
2.23k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2.23k
    if (KeyLength > 0)
174
2.23k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2.23k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2.23k
    return NewItem;
177
2.23k
  }
llvm::StringMapEntry<char>* llvm::StringMapEntry<char>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, char>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, char&&)
Line
Count
Source
156
18.2k
                                InitTy &&... InitVals) {
157
18.2k
    size_t KeyLength = Key.size();
158
18.2k
159
18.2k
    // Allocate a new item with space for the string at the end and a null
160
18.2k
    // terminator.
161
18.2k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
18.2k
    size_t Alignment = alignof(StringMapEntry);
163
18.2k
164
18.2k
    StringMapEntry *NewItem =
165
18.2k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
18.2k
    assert(NewItem && "Unhandled out-of-memory");
167
18.2k
168
18.2k
    // Construct the value.
169
18.2k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
18.2k
171
18.2k
    // Copy the string information.
172
18.2k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
18.2k
    if (KeyLength > 0)
174
18.2k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
18.2k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
18.2k
    return NewItem;
177
18.2k
  }
llvm::StringMapEntry<clang::SourceLocation>* llvm::StringMapEntry<clang::SourceLocation>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
15
                                InitTy &&... InitVals) {
157
15
    size_t KeyLength = Key.size();
158
15
159
15
    // Allocate a new item with space for the string at the end and a null
160
15
    // terminator.
161
15
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
15
    size_t Alignment = alignof(StringMapEntry);
163
15
164
15
    StringMapEntry *NewItem =
165
15
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
15
    assert(NewItem && "Unhandled out-of-memory");
167
15
168
15
    // Construct the value.
169
15
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
15
171
15
    // Copy the string information.
172
15
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
15
    if (KeyLength > 0)
174
15
      memcpy(StrBuffer, Key.data(), KeyLength);
175
15
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
15
    return NewItem;
177
15
  }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >* llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::Create<llvm::MallocAllocator, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(llvm::StringRef, llvm::MallocAllocator&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&)
Line
Count
Source
156
2.83M
                                InitTy &&... InitVals) {
157
2.83M
    size_t KeyLength = Key.size();
158
2.83M
159
2.83M
    // Allocate a new item with space for the string at the end and a null
160
2.83M
    // terminator.
161
2.83M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2.83M
    size_t Alignment = alignof(StringMapEntry);
163
2.83M
164
2.83M
    StringMapEntry *NewItem =
165
2.83M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2.83M
    assert(NewItem && "Unhandled out-of-memory");
167
2.83M
168
2.83M
    // Construct the value.
169
2.83M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2.83M
171
2.83M
    // Copy the string information.
172
2.83M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2.83M
    if (KeyLength > 0)
174
2.83M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2.83M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2.83M
    return NewItem;
177
2.83M
  }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >* llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
156
14
                                InitTy &&... InitVals) {
157
14
    size_t KeyLength = Key.size();
158
14
159
14
    // Allocate a new item with space for the string at the end and a null
160
14
    // terminator.
161
14
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
14
    size_t Alignment = alignof(StringMapEntry);
163
14
164
14
    StringMapEntry *NewItem =
165
14
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
14
    assert(NewItem && "Unhandled out-of-memory");
167
14
168
14
    // Construct the value.
169
14
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
14
171
14
    // Copy the string information.
172
14
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
14
    if (KeyLength > 0)
174
14
      memcpy(StrBuffer, Key.data(), KeyLength);
175
14
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
14
    return NewItem;
177
14
  }
llvm::StringMapEntry<clang::LayoutOverrideSource::Layout>* llvm::StringMapEntry<clang::LayoutOverrideSource::Layout>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
37
                                InitTy &&... InitVals) {
157
37
    size_t KeyLength = Key.size();
158
37
159
37
    // Allocate a new item with space for the string at the end and a null
160
37
    // terminator.
161
37
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
37
    size_t Alignment = alignof(StringMapEntry);
163
37
164
37
    StringMapEntry *NewItem =
165
37
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
37
    assert(NewItem && "Unhandled out-of-memory");
167
37
168
37
    // Construct the value.
169
37
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
37
171
37
    // Copy the string information.
172
37
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
37
    if (KeyLength > 0)
174
37
      memcpy(StrBuffer, Key.data(), KeyLength);
175
37
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
37
    return NewItem;
177
37
  }
llvm::StringMapEntry<clang::PrecompiledPreamble::PreambleFileHash>* llvm::StringMapEntry<clang::PrecompiledPreamble::PreambleFileHash>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
156
                                InitTy &&... InitVals) {
157
156
    size_t KeyLength = Key.size();
158
156
159
156
    // Allocate a new item with space for the string at the end and a null
160
156
    // terminator.
161
156
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
156
    size_t Alignment = alignof(StringMapEntry);
163
156
164
156
    StringMapEntry *NewItem =
165
156
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
156
    assert(NewItem && "Unhandled out-of-memory");
167
156
168
156
    // Construct the value.
169
156
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
156
171
156
    // Copy the string information.
172
156
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
156
    if (KeyLength > 0)
174
156
      memcpy(StrBuffer, Key.data(), KeyLength);
175
156
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
156
    return NewItem;
177
156
  }
llvm::StringMapEntry<clang::VerifyDiagnosticConsumer::MarkerTracker::Marker>* llvm::StringMapEntry<clang::VerifyDiagnosticConsumer::MarkerTracker::Marker>::Create<llvm::MallocAllocator, clang::VerifyDiagnosticConsumer::MarkerTracker::Marker>(llvm::StringRef, llvm::MallocAllocator&, clang::VerifyDiagnosticConsumer::MarkerTracker::Marker&&)
Line
Count
Source
156
839
                                InitTy &&... InitVals) {
157
839
    size_t KeyLength = Key.size();
158
839
159
839
    // Allocate a new item with space for the string at the end and a null
160
839
    // terminator.
161
839
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
839
    size_t Alignment = alignof(StringMapEntry);
163
839
164
839
    StringMapEntry *NewItem =
165
839
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
839
    assert(NewItem && "Unhandled out-of-memory");
167
839
168
839
    // Construct the value.
169
839
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
839
171
839
    // Copy the string information.
172
839
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
839
    if (KeyLength > 0)
174
839
      memcpy(StrBuffer, Key.data(), KeyLength);
175
839
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
839
    return NewItem;
177
839
  }
VerifyDiagnosticConsumer.cpp:llvm::StringMapEntry<llvm::SmallVector<(anonymous namespace)::UnattachedDirective, 2u> >* llvm::StringMapEntry<llvm::SmallVector<(anonymous namespace)::UnattachedDirective, 2u> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
11
                                InitTy &&... InitVals) {
157
11
    size_t KeyLength = Key.size();
158
11
159
11
    // Allocate a new item with space for the string at the end and a null
160
11
    // terminator.
161
11
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
11
    size_t Alignment = alignof(StringMapEntry);
163
11
164
11
    StringMapEntry *NewItem =
165
11
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
11
    assert(NewItem && "Unhandled out-of-memory");
167
11
168
11
    // Construct the value.
169
11
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
11
171
11
    // Copy the string information.
172
11
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
11
    if (KeyLength > 0)
174
11
      memcpy(StrBuffer, Key.data(), KeyLength);
175
11
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
11
    return NewItem;
177
11
  }
llvm::StringMapEntry<std::__1::pair<llvm::StringRef, bool> >* llvm::StringMapEntry<std::__1::pair<llvm::StringRef, bool> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
3.95k
                                InitTy &&... InitVals) {
157
3.95k
    size_t KeyLength = Key.size();
158
3.95k
159
3.95k
    // Allocate a new item with space for the string at the end and a null
160
3.95k
    // terminator.
161
3.95k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
3.95k
    size_t Alignment = alignof(StringMapEntry);
163
3.95k
164
3.95k
    StringMapEntry *NewItem =
165
3.95k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
3.95k
    assert(NewItem && "Unhandled out-of-memory");
167
3.95k
168
3.95k
    // Construct the value.
169
3.95k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
3.95k
171
3.95k
    // Copy the string information.
172
3.95k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
3.95k
    if (KeyLength > 0)
174
3.95k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
3.95k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
3.95k
    return NewItem;
177
3.95k
  }
llvm::StringMapEntry<std::__1::shared_ptr<clang::ModuleFileExtension> >* llvm::StringMapEntry<std::__1::shared_ptr<clang::ModuleFileExtension> >::Create<llvm::MallocAllocator, std::__1::shared_ptr<clang::ModuleFileExtension> >(llvm::StringRef, llvm::MallocAllocator&, std::__1::shared_ptr<clang::ModuleFileExtension>&&)
Line
Count
Source
156
27
                                InitTy &&... InitVals) {
157
27
    size_t KeyLength = Key.size();
158
27
159
27
    // Allocate a new item with space for the string at the end and a null
160
27
    // terminator.
161
27
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
27
    size_t Alignment = alignof(StringMapEntry);
163
27
164
27
    StringMapEntry *NewItem =
165
27
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
27
    assert(NewItem && "Unhandled out-of-memory");
167
27
168
27
    // Construct the value.
169
27
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
27
171
27
    // Copy the string information.
172
27
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
27
    if (KeyLength > 0)
174
27
      memcpy(StrBuffer, Key.data(), KeyLength);
175
27
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
27
    return NewItem;
177
27
  }
llvm::StringMapEntry<llvm::SmallVector<unsigned int, 2u> >* llvm::StringMapEntry<llvm::SmallVector<unsigned int, 2u> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
89.7k
                                InitTy &&... InitVals) {
157
89.7k
    size_t KeyLength = Key.size();
158
89.7k
159
89.7k
    // Allocate a new item with space for the string at the end and a null
160
89.7k
    // terminator.
161
89.7k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
89.7k
    size_t Alignment = alignof(StringMapEntry);
163
89.7k
164
89.7k
    StringMapEntry *NewItem =
165
89.7k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
89.7k
    assert(NewItem && "Unhandled out-of-memory");
167
89.7k
168
89.7k
    // Construct the value.
169
89.7k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
89.7k
171
89.7k
    // Copy the string information.
172
89.7k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
89.7k
    if (KeyLength > 0)
174
89.7k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
89.7k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
89.7k
    return NewItem;
177
89.7k
  }
llvm::StringMapEntry<clang::InMemoryModuleCache::PCM>* llvm::StringMapEntry<clang::InMemoryModuleCache::PCM>::Create<llvm::MallocAllocator, clang::InMemoryModuleCache::PCM>(llvm::StringRef, llvm::MallocAllocator&, clang::InMemoryModuleCache::PCM&&)
Line
Count
Source
156
4.24k
                                InitTy &&... InitVals) {
157
4.24k
    size_t KeyLength = Key.size();
158
4.24k
159
4.24k
    // Allocate a new item with space for the string at the end and a null
160
4.24k
    // terminator.
161
4.24k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
4.24k
    size_t Alignment = alignof(StringMapEntry);
163
4.24k
164
4.24k
    StringMapEntry *NewItem =
165
4.24k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
4.24k
    assert(NewItem && "Unhandled out-of-memory");
167
4.24k
168
4.24k
    // Construct the value.
169
4.24k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
4.24k
171
4.24k
    // Copy the string information.
172
4.24k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
4.24k
    if (KeyLength > 0)
174
4.24k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
4.24k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
4.24k
    return NewItem;
177
4.24k
  }
llvm::StringMapEntry<clang::InMemoryModuleCache::PCM>* llvm::StringMapEntry<clang::InMemoryModuleCache::PCM>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
1.26k
                                InitTy &&... InitVals) {
157
1.26k
    size_t KeyLength = Key.size();
158
1.26k
159
1.26k
    // Allocate a new item with space for the string at the end and a null
160
1.26k
    // terminator.
161
1.26k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1.26k
    size_t Alignment = alignof(StringMapEntry);
163
1.26k
164
1.26k
    StringMapEntry *NewItem =
165
1.26k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1.26k
    assert(NewItem && "Unhandled out-of-memory");
167
1.26k
168
1.26k
    // Construct the value.
169
1.26k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1.26k
171
1.26k
    // Copy the string information.
172
1.26k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1.26k
    if (KeyLength > 0)
174
1.26k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1.26k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1.26k
    return NewItem;
177
1.26k
  }
llvm::StringMapEntry<std::__1::unique_ptr<polly::ScopArrayInfo, std::__1::default_delete<polly::ScopArrayInfo> > >* llvm::StringMapEntry<std::__1::unique_ptr<polly::ScopArrayInfo, std::__1::default_delete<polly::ScopArrayInfo> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
85
                                InitTy &&... InitVals) {
157
85
    size_t KeyLength = Key.size();
158
85
159
85
    // Allocate a new item with space for the string at the end and a null
160
85
    // terminator.
161
85
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
85
    size_t Alignment = alignof(StringMapEntry);
163
85
164
85
    StringMapEntry *NewItem =
165
85
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
85
    assert(NewItem && "Unhandled out-of-memory");
167
85
168
85
    // Construct the value.
169
85
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
85
171
85
    // Copy the string information.
172
85
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
85
    if (KeyLength > 0)
174
85
      memcpy(StrBuffer, Key.data(), KeyLength);
175
85
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
85
    return NewItem;
177
85
  }
llvm::StringMapEntry<unsigned int const*>* llvm::StringMapEntry<unsigned int const*>::Create<llvm::MallocAllocator, unsigned int const*>(llvm::StringRef, llvm::MallocAllocator&, unsigned int const*&&)
Line
Count
Source
156
6.46k
                                InitTy &&... InitVals) {
157
6.46k
    size_t KeyLength = Key.size();
158
6.46k
159
6.46k
    // Allocate a new item with space for the string at the end and a null
160
6.46k
    // terminator.
161
6.46k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
6.46k
    size_t Alignment = alignof(StringMapEntry);
163
6.46k
164
6.46k
    StringMapEntry *NewItem =
165
6.46k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
6.46k
    assert(NewItem && "Unhandled out-of-memory");
167
6.46k
168
6.46k
    // Construct the value.
169
6.46k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
6.46k
171
6.46k
    // Copy the string information.
172
6.46k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
6.46k
    if (KeyLength > 0)
174
6.46k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
6.46k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
6.46k
    return NewItem;
177
6.46k
  }
llvm::StringMapEntry<llvm::MachineMemOperand::Flags>* llvm::StringMapEntry<llvm::MachineMemOperand::Flags>::Create<llvm::MallocAllocator, llvm::MachineMemOperand::Flags>(llvm::StringRef, llvm::MallocAllocator&, llvm::MachineMemOperand::Flags&&)
Line
Count
Source
156
6
                                InitTy &&... InitVals) {
157
6
    size_t KeyLength = Key.size();
158
6
159
6
    // Allocate a new item with space for the string at the end and a null
160
6
    // terminator.
161
6
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
6
    size_t Alignment = alignof(StringMapEntry);
163
6
164
6
    StringMapEntry *NewItem =
165
6
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
6
    assert(NewItem && "Unhandled out-of-memory");
167
6
168
6
    // Construct the value.
169
6
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
6
171
6
    // Copy the string information.
172
6
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
6
    if (KeyLength > 0)
174
6
      memcpy(StrBuffer, Key.data(), KeyLength);
175
6
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
6
    return NewItem;
177
6
  }
llvm::StringMapEntry<llvm::TargetRegisterClass const*>* llvm::StringMapEntry<llvm::TargetRegisterClass const*>::Create<llvm::MallocAllocator, llvm::TargetRegisterClass const*>(llvm::StringRef, llvm::MallocAllocator&, llvm::TargetRegisterClass const*&&)
Line
Count
Source
156
168k
                                InitTy &&... InitVals) {
157
168k
    size_t KeyLength = Key.size();
158
168k
159
168k
    // Allocate a new item with space for the string at the end and a null
160
168k
    // terminator.
161
168k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
168k
    size_t Alignment = alignof(StringMapEntry);
163
168k
164
168k
    StringMapEntry *NewItem =
165
168k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
168k
    assert(NewItem && "Unhandled out-of-memory");
167
168k
168
168k
    // Construct the value.
169
168k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
168k
171
168k
    // Copy the string information.
172
168k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
168k
    if (KeyLength > 0)
174
168k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
168k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
168k
    return NewItem;
177
168k
  }
llvm::StringMapEntry<llvm::RegisterBank const*>* llvm::StringMapEntry<llvm::RegisterBank const*>::Create<llvm::MallocAllocator, llvm::RegisterBank const*>(llvm::StringRef, llvm::MallocAllocator&, llvm::RegisterBank const*&&)
Line
Count
Source
156
5.09k
                                InitTy &&... InitVals) {
157
5.09k
    size_t KeyLength = Key.size();
158
5.09k
159
5.09k
    // Allocate a new item with space for the string at the end and a null
160
5.09k
    // terminator.
161
5.09k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
5.09k
    size_t Alignment = alignof(StringMapEntry);
163
5.09k
164
5.09k
    StringMapEntry *NewItem =
165
5.09k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
5.09k
    assert(NewItem && "Unhandled out-of-memory");
167
5.09k
168
5.09k
    // Construct the value.
169
5.09k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
5.09k
171
5.09k
    // Copy the string information.
172
5.09k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
5.09k
    if (KeyLength > 0)
174
5.09k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
5.09k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
5.09k
    return NewItem;
177
5.09k
  }
llvm::StringMapEntry<llvm::VRegInfo*>* llvm::StringMapEntry<llvm::VRegInfo*>::Create<llvm::MallocAllocator, llvm::VRegInfo*>(llvm::StringRef, llvm::MallocAllocator&, llvm::VRegInfo*&&)
Line
Count
Source
156
27
                                InitTy &&... InitVals) {
157
27
    size_t KeyLength = Key.size();
158
27
159
27
    // Allocate a new item with space for the string at the end and a null
160
27
    // terminator.
161
27
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
27
    size_t Alignment = alignof(StringMapEntry);
163
27
164
27
    StringMapEntry *NewItem =
165
27
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
27
    assert(NewItem && "Unhandled out-of-memory");
167
27
168
27
    // Construct the value.
169
27
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
27
171
27
    // Copy the string information.
172
27
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
27
    if (KeyLength > 0)
174
27
      memcpy(StrBuffer, Key.data(), KeyLength);
175
27
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
27
    return NewItem;
177
27
  }
llvm::StringMapEntry<llvm::DIE const*>* llvm::StringMapEntry<llvm::DIE const*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
70.2k
                                InitTy &&... InitVals) {
157
70.2k
    size_t KeyLength = Key.size();
158
70.2k
159
70.2k
    // Allocate a new item with space for the string at the end and a null
160
70.2k
    // terminator.
161
70.2k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
70.2k
    size_t Alignment = alignof(StringMapEntry);
163
70.2k
164
70.2k
    StringMapEntry *NewItem =
165
70.2k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
70.2k
    assert(NewItem && "Unhandled out-of-memory");
167
70.2k
168
70.2k
    // Construct the value.
169
70.2k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
70.2k
171
70.2k
    // Copy the string information.
172
70.2k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
70.2k
    if (KeyLength > 0)
174
70.1k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
70.2k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
70.2k
    return NewItem;
177
70.2k
  }
llvm::StringMapEntry<llvm::DIE const*>* llvm::StringMapEntry<llvm::DIE const*>::Create<llvm::MallocAllocator, llvm::DIE const*>(llvm::StringRef, llvm::MallocAllocator&, llvm::DIE const*&&)
Line
Count
Source
156
18
                                InitTy &&... InitVals) {
157
18
    size_t KeyLength = Key.size();
158
18
159
18
    // Allocate a new item with space for the string at the end and a null
160
18
    // terminator.
161
18
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
18
    size_t Alignment = alignof(StringMapEntry);
163
18
164
18
    StringMapEntry *NewItem =
165
18
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
18
    assert(NewItem && "Unhandled out-of-memory");
167
18
168
18
    // Construct the value.
169
18
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
18
171
18
    // Copy the string information.
172
18
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
18
    if (KeyLength > 0)
174
18
      memcpy(StrBuffer, Key.data(), KeyLength);
175
18
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
18
    return NewItem;
177
18
  }
llvm::StringMapEntry<llvm::AccelTableBase::HashData>* llvm::StringMapEntry<llvm::AccelTableBase::HashData>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, llvm::DwarfStringPoolEntryRef&, unsigned int (*&)(llvm::StringRef)>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, llvm::DwarfStringPoolEntryRef&&&, unsigned int (*&&&)(llvm::StringRef))
Line
Count
Source
156
71.7k
                                InitTy &&... InitVals) {
157
71.7k
    size_t KeyLength = Key.size();
158
71.7k
159
71.7k
    // Allocate a new item with space for the string at the end and a null
160
71.7k
    // terminator.
161
71.7k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
71.7k
    size_t Alignment = alignof(StringMapEntry);
163
71.7k
164
71.7k
    StringMapEntry *NewItem =
165
71.7k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
71.7k
    assert(NewItem && "Unhandled out-of-memory");
167
71.7k
168
71.7k
    // Construct the value.
169
71.7k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
71.7k
171
71.7k
    // Copy the string information.
172
71.7k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
71.7k
    if (KeyLength > 0)
174
71.7k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
71.7k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
71.7k
    return NewItem;
177
71.7k
  }
llvm::StringMapEntry<llvm::DwarfStringPoolEntry>* llvm::StringMapEntry<llvm::DwarfStringPoolEntry>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, llvm::DwarfStringPoolEntry>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, llvm::DwarfStringPoolEntry&&)
Line
Count
Source
156
84.5k
                                InitTy &&... InitVals) {
157
84.5k
    size_t KeyLength = Key.size();
158
84.5k
159
84.5k
    // Allocate a new item with space for the string at the end and a null
160
84.5k
    // terminator.
161
84.5k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
84.5k
    size_t Alignment = alignof(StringMapEntry);
163
84.5k
164
84.5k
    StringMapEntry *NewItem =
165
84.5k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
84.5k
    assert(NewItem && "Unhandled out-of-memory");
167
84.5k
168
84.5k
    // Construct the value.
169
84.5k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
84.5k
171
84.5k
    // Copy the string information.
172
84.5k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
84.5k
    if (KeyLength > 0)
174
84.1k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
84.5k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
84.5k
    return NewItem;
177
84.5k
  }
llvm::StringMapEntry<std::__1::weak_ptr<llvm::DWARFContext::DWOFile> >* llvm::StringMapEntry<std::__1::weak_ptr<llvm::DWARFContext::DWOFile> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
9
                                InitTy &&... InitVals) {
157
9
    size_t KeyLength = Key.size();
158
9
159
9
    // Allocate a new item with space for the string at the end and a null
160
9
    // terminator.
161
9
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
9
    size_t Alignment = alignof(StringMapEntry);
163
9
164
9
    StringMapEntry *NewItem =
165
9
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
9
    assert(NewItem && "Unhandled out-of-memory");
167
9
168
9
    // Construct the value.
169
9
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
9
171
9
    // Copy the string information.
172
9
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
9
    if (KeyLength > 0)
174
9
      memcpy(StrBuffer, Key.data(), KeyLength);
175
9
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
9
    return NewItem;
177
9
  }
llvm::StringMapEntry<unsigned short>* llvm::StringMapEntry<unsigned short>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
47
                                InitTy &&... InitVals) {
157
47
    size_t KeyLength = Key.size();
158
47
159
47
    // Allocate a new item with space for the string at the end and a null
160
47
    // terminator.
161
47
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
47
    size_t Alignment = alignof(StringMapEntry);
163
47
164
47
    StringMapEntry *NewItem =
165
47
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
47
    assert(NewItem && "Unhandled out-of-memory");
167
47
168
47
    // Construct the value.
169
47
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
47
171
47
    // Copy the string information.
172
47
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
47
    if (KeyLength > 0)
174
47
      memcpy(StrBuffer, Key.data(), KeyLength);
175
47
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
47
    return NewItem;
177
47
  }
llvm::StringMapEntry<llvm::SDNode*>* llvm::StringMapEntry<llvm::SDNode*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
14.2k
                                InitTy &&... InitVals) {
157
14.2k
    size_t KeyLength = Key.size();
158
14.2k
159
14.2k
    // Allocate a new item with space for the string at the end and a null
160
14.2k
    // terminator.
161
14.2k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
14.2k
    size_t Alignment = alignof(StringMapEntry);
163
14.2k
164
14.2k
    StringMapEntry *NewItem =
165
14.2k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
14.2k
    assert(NewItem && "Unhandled out-of-memory");
167
14.2k
168
14.2k
    // Construct the value.
169
14.2k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
14.2k
171
14.2k
    // Copy the string information.
172
14.2k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
14.2k
    if (KeyLength > 0)
174
14.1k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
14.2k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
14.2k
    return NewItem;
177
14.2k
  }
llvm::StringMapEntry<llvm::lto::LTO::GlobalResolution>* llvm::StringMapEntry<llvm::lto::LTO::GlobalResolution>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
989
                                InitTy &&... InitVals) {
157
989
    size_t KeyLength = Key.size();
158
989
159
989
    // Allocate a new item with space for the string at the end and a null
160
989
    // terminator.
161
989
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
989
    size_t Alignment = alignof(StringMapEntry);
163
989
164
989
    StringMapEntry *NewItem =
165
989
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
989
    assert(NewItem && "Unhandled out-of-memory");
167
989
168
989
    // Construct the value.
169
989
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
989
171
989
    // Copy the string information.
172
989
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
989
    if (KeyLength > 0)
174
989
      memcpy(StrBuffer, Key.data(), KeyLength);
175
989
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
989
    return NewItem;
177
989
  }
llvm::StringMapEntry<std::__1::map<unsigned long long, llvm::GlobalValue::LinkageTypes, std::__1::less<unsigned long long>, std::__1::allocator<std::__1::pair<unsigned long long const, llvm::GlobalValue::LinkageTypes> > > >* llvm::StringMapEntry<std::__1::map<unsigned long long, llvm::GlobalValue::LinkageTypes, std::__1::less<unsigned long long>, std::__1::allocator<std::__1::pair<unsigned long long const, llvm::GlobalValue::LinkageTypes> > > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
405
                                InitTy &&... InitVals) {
157
405
    size_t KeyLength = Key.size();
158
405
159
405
    // Allocate a new item with space for the string at the end and a null
160
405
    // terminator.
161
405
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
405
    size_t Alignment = alignof(StringMapEntry);
163
405
164
405
    StringMapEntry *NewItem =
165
405
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
405
    assert(NewItem && "Unhandled out-of-memory");
167
405
168
405
    // Construct the value.
169
405
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
405
171
405
    // Copy the string information.
172
405
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
405
    if (KeyLength > 0)
174
402
      memcpy(StrBuffer, Key.data(), KeyLength);
175
405
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
405
    return NewItem;
177
405
  }
llvm::StringMapEntry<clang::Stmt*>* llvm::StringMapEntry<clang::Stmt*>::Create<llvm::MallocAllocator, clang::Stmt*>(llvm::StringRef, llvm::MallocAllocator&, clang::Stmt*&&)
Line
Count
Source
156
2
                                InitTy &&... InitVals) {
157
2
    size_t KeyLength = Key.size();
158
2
159
2
    // Allocate a new item with space for the string at the end and a null
160
2
    // terminator.
161
2
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2
    size_t Alignment = alignof(StringMapEntry);
163
2
164
2
    StringMapEntry *NewItem =
165
2
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2
    assert(NewItem && "Unhandled out-of-memory");
167
2
168
2
    // Construct the value.
169
2
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2
171
2
    // Copy the string information.
172
2
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2
    if (KeyLength > 0)
174
2
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2
    return NewItem;
177
2
  }
llvm::StringMapEntry<clang::Stmt*>* llvm::StringMapEntry<clang::Stmt*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
13.0k
                                InitTy &&... InitVals) {
157
13.0k
    size_t KeyLength = Key.size();
158
13.0k
159
13.0k
    // Allocate a new item with space for the string at the end and a null
160
13.0k
    // terminator.
161
13.0k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
13.0k
    size_t Alignment = alignof(StringMapEntry);
163
13.0k
164
13.0k
    StringMapEntry *NewItem =
165
13.0k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
13.0k
    assert(NewItem && "Unhandled out-of-memory");
167
13.0k
168
13.0k
    // Construct the value.
169
13.0k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
13.0k
171
13.0k
    // Copy the string information.
172
13.0k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
13.0k
    if (KeyLength > 0)
174
13.0k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
13.0k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
13.0k
    return NewItem;
177
13.0k
  }
llvm::StringMapEntry<FoundationClass>* llvm::StringMapEntry<FoundationClass>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
91
                                InitTy &&... InitVals) {
157
91
    size_t KeyLength = Key.size();
158
91
159
91
    // Allocate a new item with space for the string at the end and a null
160
91
    // terminator.
161
91
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
91
    size_t Alignment = alignof(StringMapEntry);
163
91
164
91
    StringMapEntry *NewItem =
165
91
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
91
    assert(NewItem && "Unhandled out-of-memory");
167
91
168
91
    // Construct the value.
169
91
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
91
171
91
    // Copy the string information.
172
91
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
91
    if (KeyLength > 0)
174
91
      memcpy(StrBuffer, Key.data(), KeyLength);
175
91
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
91
    return NewItem;
177
91
  }
llvm::StringMapEntry<llvm::SmallSet<clang::Selector, 16u, std::__1::less<clang::Selector> > >* llvm::StringMapEntry<llvm::SmallSet<clang::Selector, 16u, std::__1::less<clang::Selector> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
20
                                InitTy &&... InitVals) {
157
20
    size_t KeyLength = Key.size();
158
20
159
20
    // Allocate a new item with space for the string at the end and a null
160
20
    // terminator.
161
20
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
20
    size_t Alignment = alignof(StringMapEntry);
163
20
164
20
    StringMapEntry *NewItem =
165
20
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
20
    assert(NewItem && "Unhandled out-of-memory");
167
20
168
20
    // Construct the value.
169
20
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
20
171
20
    // Copy the string information.
172
20
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
20
    if (KeyLength > 0)
174
20
      memcpy(StrBuffer, Key.data(), KeyLength);
175
20
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
20
    return NewItem;
177
20
  }
StdLibraryFunctionsChecker.cpp:llvm::StringMapEntry<std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> > >* llvm::StringMapEntry<std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> > >::Create<llvm::MallocAllocator, std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> > >(llvm::StringRef, llvm::MallocAllocator&, std::__1::vector<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy, std::__1::allocator<(anonymous namespace)::StdLibraryFunctionsChecker::FunctionSummaryTy> >&&)
Line
Count
Source
156
286
                                InitTy &&... InitVals) {
157
286
    size_t KeyLength = Key.size();
158
286
159
286
    // Allocate a new item with space for the string at the end and a null
160
286
    // terminator.
161
286
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
286
    size_t Alignment = alignof(StringMapEntry);
163
286
164
286
    StringMapEntry *NewItem =
165
286
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
286
    assert(NewItem && "Unhandled out-of-memory");
167
286
168
286
    // Construct the value.
169
286
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
286
171
286
    // Copy the string information.
172
286
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
286
    if (KeyLength > 0)
174
286
      memcpy(StrBuffer, Key.data(), KeyLength);
175
286
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
286
    return NewItem;
177
286
  }
llvm::StringMapEntry<clang::ento::BugType*>* llvm::StringMapEntry<clang::ento::BugType*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
709
                                InitTy &&... InitVals) {
157
709
    size_t KeyLength = Key.size();
158
709
159
709
    // Allocate a new item with space for the string at the end and a null
160
709
    // terminator.
161
709
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
709
    size_t Alignment = alignof(StringMapEntry);
163
709
164
709
    StringMapEntry *NewItem =
165
709
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
709
    assert(NewItem && "Unhandled out-of-memory");
167
709
168
709
    // Construct the value.
169
709
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
709
171
709
    // Copy the string information.
172
709
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
709
    if (KeyLength > 0)
174
709
      memcpy(StrBuffer, Key.data(), KeyLength);
175
709
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
709
    return NewItem;
177
709
  }
llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >* llvm::StringMapEntry<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::Create<llvm::MallocAllocator, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(llvm::StringRef, llvm::MallocAllocator&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&&)
Line
Count
Source
156
111
                                InitTy &&... InitVals) {
157
111
    size_t KeyLength = Key.size();
158
111
159
111
    // Allocate a new item with space for the string at the end and a null
160
111
    // terminator.
161
111
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
111
    size_t Alignment = alignof(StringMapEntry);
163
111
164
111
    StringMapEntry *NewItem =
165
111
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
111
    assert(NewItem && "Unhandled out-of-memory");
167
111
168
111
    // Construct the value.
169
111
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
111
171
111
    // Copy the string information.
172
111
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
111
    if (KeyLength > 0)
174
111
      memcpy(StrBuffer, Key.data(), KeyLength);
175
111
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
111
    return NewItem;
177
111
  }
llvm::StringMapEntry<std::__1::unique_ptr<clang::ASTUnit, std::__1::default_delete<clang::ASTUnit> > >* llvm::StringMapEntry<std::__1::unique_ptr<clang::ASTUnit, std::__1::default_delete<clang::ASTUnit> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
32
                                InitTy &&... InitVals) {
157
32
    size_t KeyLength = Key.size();
158
32
159
32
    // Allocate a new item with space for the string at the end and a null
160
32
    // terminator.
161
32
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
32
    size_t Alignment = alignof(StringMapEntry);
163
32
164
32
    StringMapEntry *NewItem =
165
32
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
32
    assert(NewItem && "Unhandled out-of-memory");
167
32
168
32
    // Construct the value.
169
32
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
32
171
32
    // Copy the string information.
172
32
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
32
    if (KeyLength > 0)
174
32
      memcpy(StrBuffer, Key.data(), KeyLength);
175
32
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
32
    return NewItem;
177
32
  }
llvm::StringMapEntry<clang::ASTUnit*>* llvm::StringMapEntry<clang::ASTUnit*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
53
                                InitTy &&... InitVals) {
157
53
    size_t KeyLength = Key.size();
158
53
159
53
    // Allocate a new item with space for the string at the end and a null
160
53
    // terminator.
161
53
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
53
    size_t Alignment = alignof(StringMapEntry);
163
53
164
53
    StringMapEntry *NewItem =
165
53
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
53
    assert(NewItem && "Unhandled out-of-memory");
167
53
168
53
    // Construct the value.
169
53
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
53
171
53
    // Copy the string information.
172
53
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
53
    if (KeyLength > 0)
174
53
      memcpy(StrBuffer, Key.data(), KeyLength);
175
53
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
53
    return NewItem;
177
53
  }
llvm::StringMapEntry<std::__1::vector<clang::FunctionDecl*, std::__1::allocator<clang::FunctionDecl*> > >* llvm::StringMapEntry<std::__1::vector<clang::FunctionDecl*, std::__1::allocator<clang::FunctionDecl*> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
3
                                InitTy &&... InitVals) {
157
3
    size_t KeyLength = Key.size();
158
3
159
3
    // Allocate a new item with space for the string at the end and a null
160
3
    // terminator.
161
3
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
3
    size_t Alignment = alignof(StringMapEntry);
163
3
164
3
    StringMapEntry *NewItem =
165
3
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
3
    assert(NewItem && "Unhandled out-of-memory");
167
3
168
3
    // Construct the value.
169
3
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
3
171
3
    // Copy the string information.
172
3
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
3
    if (KeyLength > 0)
174
3
      memcpy(StrBuffer, Key.data(), KeyLength);
175
3
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
3
    return NewItem;
177
3
  }
llvm::StringMapEntry<llvm::SmallVector<clang::TypoCorrection, 1u> >* llvm::StringMapEntry<llvm::SmallVector<clang::TypoCorrection, 1u> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
10.2k
                                InitTy &&... InitVals) {
157
10.2k
    size_t KeyLength = Key.size();
158
10.2k
159
10.2k
    // Allocate a new item with space for the string at the end and a null
160
10.2k
    // terminator.
161
10.2k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
10.2k
    size_t Alignment = alignof(StringMapEntry);
163
10.2k
164
10.2k
    StringMapEntry *NewItem =
165
10.2k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
10.2k
    assert(NewItem && "Unhandled out-of-memory");
167
10.2k
168
10.2k
    // Construct the value.
169
10.2k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
10.2k
171
10.2k
    // Copy the string information.
172
10.2k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
10.2k
    if (KeyLength > 0)
174
10.2k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
10.2k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
10.2k
    return NewItem;
177
10.2k
  }
llvm::StringMapEntry<std::__1::pair<clang::OMPCriticalDirective const*, llvm::APSInt> >* llvm::StringMapEntry<std::__1::pair<clang::OMPCriticalDirective const*, llvm::APSInt> >::Create<llvm::MallocAllocator, clang::OMPCriticalDirective const*&, llvm::APSInt&>(llvm::StringRef, llvm::MallocAllocator&, clang::OMPCriticalDirective const*&&&, llvm::APSInt&&&)
Line
Count
Source
156
38
                                InitTy &&... InitVals) {
157
38
    size_t KeyLength = Key.size();
158
38
159
38
    // Allocate a new item with space for the string at the end and a null
160
38
    // terminator.
161
38
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
38
    size_t Alignment = alignof(StringMapEntry);
163
38
164
38
    StringMapEntry *NewItem =
165
38
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
38
    assert(NewItem && "Unhandled out-of-memory");
167
38
168
38
    // Construct the value.
169
38
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
38
171
38
    // Copy the string information.
172
38
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
38
    if (KeyLength > 0)
174
38
      memcpy(StrBuffer, Key.data(), KeyLength);
175
38
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
38
    return NewItem;
177
38
  }
llvm::StringMapEntry<llvm::TimeRecord>* llvm::StringMapEntry<llvm::TimeRecord>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
1
                                InitTy &&... InitVals) {
157
1
    size_t KeyLength = Key.size();
158
1
159
1
    // Allocate a new item with space for the string at the end and a null
160
1
    // terminator.
161
1
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
1
    size_t Alignment = alignof(StringMapEntry);
163
1
164
1
    StringMapEntry *NewItem =
165
1
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
1
    assert(NewItem && "Unhandled out-of-memory");
167
1
168
1
    // Construct the value.
169
1
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
1
171
1
    // Copy the string information.
172
1
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
1
    if (KeyLength > 0)
174
1
      memcpy(StrBuffer, Key.data(), KeyLength);
175
1
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
1
    return NewItem;
177
1
  }
llvm::StringMapEntry<clang::StringLiteral*>* llvm::StringMapEntry<clang::StringLiteral*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
65
                                InitTy &&... InitVals) {
157
65
    size_t KeyLength = Key.size();
158
65
159
65
    // Allocate a new item with space for the string at the end and a null
160
65
    // terminator.
161
65
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
65
    size_t Alignment = alignof(StringMapEntry);
163
65
164
65
    StringMapEntry *NewItem =
165
65
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
65
    assert(NewItem && "Unhandled out-of-memory");
167
65
168
65
    // Construct the value.
169
65
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
65
171
65
    // Copy the string information.
172
65
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
65
    if (KeyLength > 0)
174
60
      memcpy(StrBuffer, Key.data(), KeyLength);
175
65
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
65
    return NewItem;
177
65
  }
llvm::StringMapEntry<clang::comments::TParamCommandComment*>* llvm::StringMapEntry<clang::comments::TParamCommandComment*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
90
                                InitTy &&... InitVals) {
157
90
    size_t KeyLength = Key.size();
158
90
159
90
    // Allocate a new item with space for the string at the end and a null
160
90
    // terminator.
161
90
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
90
    size_t Alignment = alignof(StringMapEntry);
163
90
164
90
    StringMapEntry *NewItem =
165
90
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
90
    assert(NewItem && "Unhandled out-of-memory");
167
90
168
90
    // Construct the value.
169
90
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
90
171
90
    // Copy the string information.
172
90
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
90
    if (KeyLength > 0)
174
90
      memcpy(StrBuffer, Key.data(), KeyLength);
175
90
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
90
    return NewItem;
177
90
  }
llvm::StringMapEntry<char>* llvm::StringMapEntry<char>::Create<llvm::MallocAllocator, int>(llvm::StringRef, llvm::MallocAllocator&, int&&)
Line
Count
Source
156
3
                                InitTy &&... InitVals) {
157
3
    size_t KeyLength = Key.size();
158
3
159
3
    // Allocate a new item with space for the string at the end and a null
160
3
    // terminator.
161
3
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
3
    size_t Alignment = alignof(StringMapEntry);
163
3
164
3
    StringMapEntry *NewItem =
165
3
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
3
    assert(NewItem && "Unhandled out-of-memory");
167
3
168
3
    // Construct the value.
169
3
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
3
171
3
    // Copy the string information.
172
3
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
3
    if (KeyLength > 0)
174
3
      memcpy(StrBuffer, Key.data(), KeyLength);
175
3
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
3
    return NewItem;
177
3
  }
llvm::StringMapEntry<clang::FrameworkCacheEntry>* llvm::StringMapEntry<clang::FrameworkCacheEntry>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
156
403
                                InitTy &&... InitVals) {
157
403
    size_t KeyLength = Key.size();
158
403
159
403
    // Allocate a new item with space for the string at the end and a null
160
403
    // terminator.
161
403
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
403
    size_t Alignment = alignof(StringMapEntry);
163
403
164
403
    StringMapEntry *NewItem =
165
403
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
403
    assert(NewItem && "Unhandled out-of-memory");
167
403
168
403
    // Construct the value.
169
403
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
403
171
403
    // Copy the string information.
172
403
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
403
    if (KeyLength > 0)
174
403
      memcpy(StrBuffer, Key.data(), KeyLength);
175
403
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
403
    return NewItem;
177
403
  }
llvm::StringMapEntry<clang::HeaderSearch::LookupFileCacheInfo>* llvm::StringMapEntry<clang::HeaderSearch::LookupFileCacheInfo>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
156
372k
                                InitTy &&... InitVals) {
157
372k
    size_t KeyLength = Key.size();
158
372k
159
372k
    // Allocate a new item with space for the string at the end and a null
160
372k
    // terminator.
161
372k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
372k
    size_t Alignment = alignof(StringMapEntry);
163
372k
164
372k
    StringMapEntry *NewItem =
165
372k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
372k
    assert(NewItem && "Unhandled out-of-memory");
167
372k
168
372k
    // Construct the value.
169
372k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
372k
171
372k
    // Copy the string information.
172
372k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
372k
    if (KeyLength > 0)
174
372k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
372k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
372k
    return NewItem;
177
372k
  }
Unexecuted instantiation: llvm::StringMapEntry<clang::FrameworkCacheEntry>* llvm::StringMapEntry<clang::FrameworkCacheEntry>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, clang::FrameworkCacheEntry>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, clang::FrameworkCacheEntry&&)
llvm::StringMapEntry<llvm::StringSet<llvm::MallocAllocator> >* llvm::StringMapEntry<llvm::StringSet<llvm::MallocAllocator> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
14
                                InitTy &&... InitVals) {
157
14
    size_t KeyLength = Key.size();
158
14
159
14
    // Allocate a new item with space for the string at the end and a null
160
14
    // terminator.
161
14
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
14
    size_t Alignment = alignof(StringMapEntry);
163
14
164
14
    StringMapEntry *NewItem =
165
14
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
14
    assert(NewItem && "Unhandled out-of-memory");
167
14
168
14
    // Construct the value.
169
14
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
14
171
14
    // Copy the string information.
172
14
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
14
    if (KeyLength > 0)
174
14
      memcpy(StrBuffer, Key.data(), KeyLength);
175
14
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
14
    return NewItem;
177
14
  }
llvm::StringMapEntry<clang::Module*>* llvm::StringMapEntry<clang::Module*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
72.5k
                                InitTy &&... InitVals) {
157
72.5k
    size_t KeyLength = Key.size();
158
72.5k
159
72.5k
    // Allocate a new item with space for the string at the end and a null
160
72.5k
    // terminator.
161
72.5k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
72.5k
    size_t Alignment = alignof(StringMapEntry);
163
72.5k
164
72.5k
    StringMapEntry *NewItem =
165
72.5k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
72.5k
    assert(NewItem && "Unhandled out-of-memory");
167
72.5k
168
72.5k
    // Construct the value.
169
72.5k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
72.5k
171
72.5k
    // Copy the string information.
172
72.5k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
72.5k
    if (KeyLength > 0)
174
72.5k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
72.5k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
72.5k
    return NewItem;
177
72.5k
  }
llvm::StringMapEntry<clang::PragmaHandler*>* llvm::StringMapEntry<clang::PragmaHandler*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
2.21M
                                InitTy &&... InitVals) {
157
2.21M
    size_t KeyLength = Key.size();
158
2.21M
159
2.21M
    // Allocate a new item with space for the string at the end and a null
160
2.21M
    // terminator.
161
2.21M
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
2.21M
    size_t Alignment = alignof(StringMapEntry);
163
2.21M
164
2.21M
    StringMapEntry *NewItem =
165
2.21M
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
2.21M
    assert(NewItem && "Unhandled out-of-memory");
167
2.21M
168
2.21M
    // Construct the value.
169
2.21M
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
2.21M
171
2.21M
    // Copy the string information.
172
2.21M
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
2.21M
    if (KeyLength > 0)
174
2.16M
      memcpy(StrBuffer, Key.data(), KeyLength);
175
2.21M
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
2.21M
    return NewItem;
177
2.21M
  }
llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >* llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >::Create<llvm::MallocAllocator, std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >(llvm::StringRef, llvm::MallocAllocator&, std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> >&&)
Line
Count
Source
156
882
                                InitTy &&... InitVals) {
157
882
    size_t KeyLength = Key.size();
158
882
159
882
    // Allocate a new item with space for the string at the end and a null
160
882
    // terminator.
161
882
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
882
    size_t Alignment = alignof(StringMapEntry);
163
882
164
882
    StringMapEntry *NewItem =
165
882
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
882
    assert(NewItem && "Unhandled out-of-memory");
167
882
168
882
    // Construct the value.
169
882
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
882
171
882
    // Copy the string information.
172
882
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
882
    if (KeyLength > 0)
174
859
      memcpy(StrBuffer, Key.data(), KeyLength);
175
882
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
882
    return NewItem;
177
882
  }
llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >* llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >::Create<llvm::MallocAllocator, std::__1::pair<llvm::Type*, llvm::SMLoc> >(llvm::StringRef, llvm::MallocAllocator&, std::__1::pair<llvm::Type*, llvm::SMLoc>&&)
Line
Count
Source
156
55
                                InitTy &&... InitVals) {
157
55
    size_t KeyLength = Key.size();
158
55
159
55
    // Allocate a new item with space for the string at the end and a null
160
55
    // terminator.
161
55
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
55
    size_t Alignment = alignof(StringMapEntry);
163
55
164
55
    StringMapEntry *NewItem =
165
55
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
55
    assert(NewItem && "Unhandled out-of-memory");
167
55
168
55
    // Construct the value.
169
55
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
55
171
55
    // Copy the string information.
172
55
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
55
    if (KeyLength > 0)
174
55
      memcpy(StrBuffer, Key.data(), KeyLength);
175
55
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
55
    return NewItem;
177
55
  }
llvm::StringMapEntry<llvm::Type*>* llvm::StringMapEntry<llvm::Type*>::Create<llvm::MallocAllocator, llvm::Type*>(llvm::StringRef, llvm::MallocAllocator&, llvm::Type*&&)
Line
Count
Source
156
89
                                InitTy &&... InitVals) {
157
89
    size_t KeyLength = Key.size();
158
89
159
89
    // Allocate a new item with space for the string at the end and a null
160
89
    // terminator.
161
89
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
89
    size_t Alignment = alignof(StringMapEntry);
163
89
164
89
    StringMapEntry *NewItem =
165
89
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
89
    assert(NewItem && "Unhandled out-of-memory");
167
89
168
89
    // Construct the value.
169
89
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
89
171
89
    // Copy the string information.
172
89
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
89
    if (KeyLength > 0)
174
89
      memcpy(StrBuffer, Key.data(), KeyLength);
175
89
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
89
    return NewItem;
177
89
  }
llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >* llvm::StringMapEntry<std::__1::pair<llvm::Type*, llvm::SMLoc> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
12.4k
                                InitTy &&... InitVals) {
157
12.4k
    size_t KeyLength = Key.size();
158
12.4k
159
12.4k
    // Allocate a new item with space for the string at the end and a null
160
12.4k
    // terminator.
161
12.4k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
12.4k
    size_t Alignment = alignof(StringMapEntry);
163
12.4k
164
12.4k
    StringMapEntry *NewItem =
165
12.4k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
12.4k
    assert(NewItem && "Unhandled out-of-memory");
167
12.4k
168
12.4k
    // Construct the value.
169
12.4k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
12.4k
171
12.4k
    // Copy the string information.
172
12.4k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
12.4k
    if (KeyLength > 0)
174
12.4k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
12.4k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
12.4k
    return NewItem;
177
12.4k
  }
llvm::StringMapEntry<llvm::sampleprof::FunctionSamples>* llvm::StringMapEntry<llvm::sampleprof::FunctionSamples>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
297
                                InitTy &&... InitVals) {
157
297
    size_t KeyLength = Key.size();
158
297
159
297
    // Allocate a new item with space for the string at the end and a null
160
297
    // terminator.
161
297
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
297
    size_t Alignment = alignof(StringMapEntry);
163
297
164
297
    StringMapEntry *NewItem =
165
297
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
297
    assert(NewItem && "Unhandled out-of-memory");
167
297
168
297
    // Construct the value.
169
297
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
297
171
297
    // Copy the string information.
172
297
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
297
    if (KeyLength > 0)
174
297
      memcpy(StrBuffer, Key.data(), KeyLength);
175
297
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
297
    return NewItem;
177
297
  }
llvm::StringMapEntry<llvm::RecordStreamer::State>* llvm::StringMapEntry<llvm::RecordStreamer::State>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
264
                                InitTy &&... InitVals) {
157
264
    size_t KeyLength = Key.size();
158
264
159
264
    // Allocate a new item with space for the string at the end and a null
160
264
    // terminator.
161
264
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
264
    size_t Alignment = alignof(StringMapEntry);
163
264
164
264
    StringMapEntry *NewItem =
165
264
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
264
    assert(NewItem && "Unhandled out-of-memory");
167
264
168
264
    // Construct the value.
169
264
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
264
171
264
    // Copy the string information.
172
264
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
264
    if (KeyLength > 0)
174
264
      memcpy(StrBuffer, Key.data(), KeyLength);
175
264
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
264
    return NewItem;
177
264
  }
llvm::StringMapEntry<llvm::GlobalValue const*>* llvm::StringMapEntry<llvm::GlobalValue const*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
256
                                InitTy &&... InitVals) {
157
256
    size_t KeyLength = Key.size();
158
256
159
256
    // Allocate a new item with space for the string at the end and a null
160
256
    // terminator.
161
256
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
256
    size_t Alignment = alignof(StringMapEntry);
163
256
164
256
    StringMapEntry *NewItem =
165
256
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
256
    assert(NewItem && "Unhandled out-of-memory");
167
256
168
256
    // Construct the value.
169
256
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
256
171
256
    // Copy the string information.
172
256
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
256
    if (KeyLength > 0)
174
256
      memcpy(StrBuffer, Key.data(), KeyLength);
175
256
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
256
    return NewItem;
177
256
  }
llvm::StringMapEntry<unsigned int>* llvm::StringMapEntry<unsigned int>::Create<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>, unsigned int>(llvm::StringRef, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&, unsigned int&&)
Line
Count
Source
156
9
                                InitTy &&... InitVals) {
157
9
    size_t KeyLength = Key.size();
158
9
159
9
    // Allocate a new item with space for the string at the end and a null
160
9
    // terminator.
161
9
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
9
    size_t Alignment = alignof(StringMapEntry);
163
9
164
9
    StringMapEntry *NewItem =
165
9
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
9
    assert(NewItem && "Unhandled out-of-memory");
167
9
168
9
    // Construct the value.
169
9
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
9
171
9
    // Copy the string information.
172
9
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
9
    if (KeyLength > 0)
174
9
      memcpy(StrBuffer, Key.data(), KeyLength);
175
9
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
9
    return NewItem;
177
9
  }
llvm::StringMapEntry<llvm::TinyPtrVector<lld::elf::OutputSection*> >* llvm::StringMapEntry<llvm::TinyPtrVector<lld::elf::OutputSection*> >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
375k
                                InitTy &&... InitVals) {
157
375k
    size_t KeyLength = Key.size();
158
375k
159
375k
    // Allocate a new item with space for the string at the end and a null
160
375k
    // terminator.
161
375k
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
375k
    size_t Alignment = alignof(StringMapEntry);
163
375k
164
375k
    StringMapEntry *NewItem =
165
375k
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
375k
    assert(NewItem && "Unhandled out-of-memory");
167
375k
168
375k
    // Construct the value.
169
375k
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
375k
171
375k
    // Copy the string information.
172
375k
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
375k
    if (KeyLength > 0)
174
375k
      memcpy(StrBuffer, Key.data(), KeyLength);
175
375k
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
375k
    return NewItem;
177
375k
  }
llvm::StringMapEntry<std::__1::vector<lld::elf::Symbol*, std::__1::allocator<lld::elf::Symbol*> > >* llvm::StringMapEntry<std::__1::vector<lld::elf::Symbol*, std::__1::allocator<lld::elf::Symbol*> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
43
                                InitTy &&... InitVals) {
157
43
    size_t KeyLength = Key.size();
158
43
159
43
    // Allocate a new item with space for the string at the end and a null
160
43
    // terminator.
161
43
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
43
    size_t Alignment = alignof(StringMapEntry);
163
43
164
43
    StringMapEntry *NewItem =
165
43
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
43
    assert(NewItem && "Unhandled out-of-memory");
167
43
168
43
    // Construct the value.
169
43
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
43
171
43
    // Copy the string information.
172
43
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
43
    if (KeyLength > 0)
174
43
      memcpy(StrBuffer, Key.data(), KeyLength);
175
43
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
43
    return NewItem;
177
43
  }
llvm::StringMapEntry<std::__1::vector<lld::wasm::InputSection*, std::__1::allocator<lld::wasm::InputSection*> > >* llvm::StringMapEntry<std::__1::vector<lld::wasm::InputSection*, std::__1::allocator<lld::wasm::InputSection*> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
22
                                InitTy &&... InitVals) {
157
22
    size_t KeyLength = Key.size();
158
22
159
22
    // Allocate a new item with space for the string at the end and a null
160
22
    // terminator.
161
22
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
22
    size_t Alignment = alignof(StringMapEntry);
163
22
164
22
    StringMapEntry *NewItem =
165
22
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
22
    assert(NewItem && "Unhandled out-of-memory");
167
22
168
22
    // Construct the value.
169
22
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
22
171
22
    // Copy the string information.
172
22
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
22
    if (KeyLength > 0)
174
22
      memcpy(StrBuffer, Key.data(), KeyLength);
175
22
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
22
    return NewItem;
177
22
  }
llvm::StringMapEntry<lld::Atom const*>* llvm::StringMapEntry<lld::Atom const*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
396
                                InitTy &&... InitVals) {
157
396
    size_t KeyLength = Key.size();
158
396
159
396
    // Allocate a new item with space for the string at the end and a null
160
396
    // terminator.
161
396
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
396
    size_t Alignment = alignof(StringMapEntry);
163
396
164
396
    StringMapEntry *NewItem =
165
396
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
396
    assert(NewItem && "Unhandled out-of-memory");
167
396
168
396
    // Construct the value.
169
396
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
396
171
396
    // Copy the string information.
172
396
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
396
    if (KeyLength > 0)
174
396
      memcpy(StrBuffer, Key.data(), KeyLength);
175
396
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
396
    return NewItem;
177
396
  }
llvm::StringMapEntry<lld::mach_o::MachODylibFile*>* llvm::StringMapEntry<lld::mach_o::MachODylibFile*>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
233
                                InitTy &&... InitVals) {
157
233
    size_t KeyLength = Key.size();
158
233
159
233
    // Allocate a new item with space for the string at the end and a null
160
233
    // terminator.
161
233
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
233
    size_t Alignment = alignof(StringMapEntry);
163
233
164
233
    StringMapEntry *NewItem =
165
233
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
233
    assert(NewItem && "Unhandled out-of-memory");
167
233
168
233
    // Construct the value.
169
233
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
233
171
233
    // Copy the string information.
172
233
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
233
    if (KeyLength > 0)
174
233
      memcpy(StrBuffer, Key.data(), KeyLength);
175
233
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
233
    return NewItem;
177
233
  }
llvm::StringMapEntry<std::__1::vector<lld::MachOLinkingContext::OrderFileNode, std::__1::allocator<lld::MachOLinkingContext::OrderFileNode> > >* llvm::StringMapEntry<std::__1::vector<lld::MachOLinkingContext::OrderFileNode, std::__1::allocator<lld::MachOLinkingContext::OrderFileNode> > >::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
5
                                InitTy &&... InitVals) {
157
5
    size_t KeyLength = Key.size();
158
5
159
5
    // Allocate a new item with space for the string at the end and a null
160
5
    // terminator.
161
5
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
5
    size_t Alignment = alignof(StringMapEntry);
163
5
164
5
    StringMapEntry *NewItem =
165
5
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
5
    assert(NewItem && "Unhandled out-of-memory");
167
5
168
5
    // Construct the value.
169
5
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
5
171
5
    // Copy the string information.
172
5
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
5
    if (KeyLength > 0)
174
5
      memcpy(StrBuffer, Key.data(), KeyLength);
175
5
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
5
    return NewItem;
177
5
  }
MachONormalizedFileFromAtoms.cpp:llvm::StringMapEntry<(anonymous namespace)::Util::DylibInfo>* llvm::StringMapEntry<(anonymous namespace)::Util::DylibInfo>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
114
                                InitTy &&... InitVals) {
157
114
    size_t KeyLength = Key.size();
158
114
159
114
    // Allocate a new item with space for the string at the end and a null
160
114
    // terminator.
161
114
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
114
    size_t Alignment = alignof(StringMapEntry);
163
114
164
114
    StringMapEntry *NewItem =
165
114
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
114
    assert(NewItem && "Unhandled out-of-memory");
167
114
168
114
    // Construct the value.
169
114
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
114
171
114
    // Copy the string information.
172
114
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
114
    if (KeyLength > 0)
174
114
      memcpy(StrBuffer, Key.data(), KeyLength);
175
114
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
114
    return NewItem;
177
114
  }
llvm::StringMapEntry<unsigned int>* llvm::StringMapEntry<unsigned int>::Create<llvm::MallocAllocator, llvm::support::detail::packed_endian_specific_integral<unsigned int, (llvm::support::endianness)1, 1ul> const&>(llvm::StringRef, llvm::MallocAllocator&, llvm::support::detail::packed_endian_specific_integral<unsigned int, (llvm::support::endianness)1, 1ul> const&&&)
Line
Count
Source
156
31
                                InitTy &&... InitVals) {
157
31
    size_t KeyLength = Key.size();
158
31
159
31
    // Allocate a new item with space for the string at the end and a null
160
31
    // terminator.
161
31
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
31
    size_t Alignment = alignof(StringMapEntry);
163
31
164
31
    StringMapEntry *NewItem =
165
31
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
31
    assert(NewItem && "Unhandled out-of-memory");
167
31
168
31
    // Construct the value.
169
31
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
31
171
31
    // Copy the string information.
172
31
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
31
    if (KeyLength > 0)
174
31
      memcpy(StrBuffer, Key.data(), KeyLength);
175
31
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
31
    return NewItem;
177
31
  }
llvm::StringMapEntry<unsigned int>* llvm::StringMapEntry<unsigned int>::Create<llvm::MallocAllocator, unsigned int&>(llvm::StringRef, llvm::MallocAllocator&, unsigned int&&&)
Line
Count
Source
156
382
                                InitTy &&... InitVals) {
157
382
    size_t KeyLength = Key.size();
158
382
159
382
    // Allocate a new item with space for the string at the end and a null
160
382
    // terminator.
161
382
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
382
    size_t Alignment = alignof(StringMapEntry);
163
382
164
382
    StringMapEntry *NewItem =
165
382
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
382
    assert(NewItem && "Unhandled out-of-memory");
167
382
168
382
    // Construct the value.
169
382
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
382
171
382
    // Copy the string information.
172
382
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
382
    if (KeyLength > 0)
174
270
      memcpy(StrBuffer, Key.data(), KeyLength);
175
382
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
382
    return NewItem;
177
382
  }
llvm::StringMapEntry<unsigned long long>* llvm::StringMapEntry<unsigned long long>::Create<llvm::MallocAllocator, unsigned long long>(llvm::StringRef, llvm::MallocAllocator&, unsigned long long&&)
Line
Count
Source
156
389
                                InitTy &&... InitVals) {
157
389
    size_t KeyLength = Key.size();
158
389
159
389
    // Allocate a new item with space for the string at the end and a null
160
389
    // terminator.
161
389
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
389
    size_t Alignment = alignof(StringMapEntry);
163
389
164
389
    StringMapEntry *NewItem =
165
389
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
389
    assert(NewItem && "Unhandled out-of-memory");
167
389
168
389
    // Construct the value.
169
389
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
389
171
389
    // Copy the string information.
172
389
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
389
    if (KeyLength > 0)
174
389
      memcpy(StrBuffer, Key.data(), KeyLength);
175
389
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
389
    return NewItem;
177
389
  }
llvm::StringMapEntry<llvm::FileInfo::LineData>* llvm::StringMapEntry<llvm::FileInfo::LineData>::Create<llvm::MallocAllocator>(llvm::StringRef, llvm::MallocAllocator&)
Line
Count
Source
156
46
                                InitTy &&... InitVals) {
157
46
    size_t KeyLength = Key.size();
158
46
159
46
    // Allocate a new item with space for the string at the end and a null
160
46
    // terminator.
161
46
    size_t AllocSize = sizeof(StringMapEntry) + KeyLength + 1;
162
46
    size_t Alignment = alignof(StringMapEntry);
163
46
164
46
    StringMapEntry *NewItem =
165
46
      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
166
46
    assert(NewItem && "Unhandled out-of-memory");
167
46
168
46
    // Construct the value.
169
46
    new (NewItem) StringMapEntry(KeyLength, std::forward<InitTy>(InitVals)...);
170
46
171
46
    // Copy the string information.
172
46
    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
173
46
    if (KeyLength > 0)
174
46
      memcpy(StrBuffer, Key.data(), KeyLength);
175
46
    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
176
46
    return NewItem;
177
46
  }
178
179
  /// Create - Create a StringMapEntry with normal malloc/free.
180
  template <typename... InitType>
181
2.48M
  static StringMapEntry *Create(StringRef Key, InitType &&... InitVal) {
182
2.48M
    MallocAllocator A;
183
2.48M
    return Create(Key, A, std::forward<InitType>(InitVal)...);
184
2.48M
  }
185
186
2.48M
  static StringMapEntry *Create(StringRef Key) {
187
2.48M
    return Create(Key, ValueTy());
188
2.48M
  }
189
190
  /// GetStringMapEntryFromKeyData - Given key data that is known to be embedded
191
  /// into a StringMapEntry, return the StringMapEntry itself.
192
  static StringMapEntry &GetStringMapEntryFromKeyData(const char *KeyData) {
193
    char *Ptr = const_cast<char*>(KeyData) - sizeof(StringMapEntry<ValueTy>);
194
    return *reinterpret_cast<StringMapEntry*>(Ptr);
195
  }
196
197
  /// Destroy - Destroy this StringMapEntry, releasing memory back to the
198
  /// specified allocator.
199
  template<typename AllocatorTy>
200
360M
  void Destroy(AllocatorTy &Allocator) {
201
360M
    // Free memory referenced by the item.
202
360M
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
360M
    this->~StringMapEntry();
204
360M
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
360M
  }
void llvm::StringMapEntry<std::__1::unique_ptr<clang::driver::ToolChain, std::__1::default_delete<clang::driver::ToolChain> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
31.2k
  void Destroy(AllocatorTy &Allocator) {
201
31.2k
    // Free memory referenced by the item.
202
31.2k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
31.2k
    this->~StringMapEntry();
204
31.2k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
31.2k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerReader, std::__1::default_delete<clang::PCHContainerReader> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
56.2k
  void Destroy(AllocatorTy &Allocator) {
201
56.2k
    // Free memory referenced by the item.
202
56.2k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
56.2k
    this->~StringMapEntry();
204
56.2k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
56.2k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<clang::PCHContainerWriter, std::__1::default_delete<clang::PCHContainerWriter> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
56.1k
  void Destroy(AllocatorTy &Allocator) {
201
56.1k
    // Free memory referenced by the item.
202
56.1k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
56.1k
    this->~StringMapEntry();
204
56.1k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
56.1k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::AArch64Subtarget, std::__1::default_delete<llvm::AArch64Subtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
1.91k
  void Destroy(AllocatorTy &Allocator) {
201
1.91k
    // Free memory referenced by the item.
202
1.91k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
1.91k
    this->~StringMapEntry();
204
1.91k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
1.91k
  }
AArch64AsmParser.cpp:void llvm::StringMapEntry<std::__1::pair<(anonymous namespace)::RegKind, unsigned int> >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
17
  void Destroy(AllocatorTy &Allocator) {
201
17
    // Free memory referenced by the item.
202
17
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
17
    this->~StringMapEntry();
204
17
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
17
  }
void llvm::StringMapEntry<unsigned int>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
27.1M
  void Destroy(AllocatorTy &Allocator) {
201
27.1M
    // Free memory referenced by the item.
202
27.1M
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
27.1M
    this->~StringMapEntry();
204
27.1M
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
27.1M
  }
void llvm::StringMapEntry<int>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
781k
  void Destroy(AllocatorTy &Allocator) {
201
781k
    // Free memory referenced by the item.
202
781k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
781k
    this->~StringMapEntry();
204
781k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
781k
  }
void llvm::StringMapEntry<unsigned int>::Destroy<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
200
70.2k
  void Destroy(AllocatorTy &Allocator) {
201
70.2k
    // Free memory referenced by the item.
202
70.2k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
70.2k
    this->~StringMapEntry();
204
70.2k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
70.2k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::R600Subtarget, std::__1::default_delete<llvm::R600Subtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
289
  void Destroy(AllocatorTy &Allocator) {
201
289
    // Free memory referenced by the item.
202
289
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
289
    this->~StringMapEntry();
204
289
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
289
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::GCNSubtarget, std::__1::default_delete<llvm::GCNSubtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
3.20k
  void Destroy(AllocatorTy &Allocator) {
201
3.20k
    // Free memory referenced by the item.
202
3.20k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
3.20k
    this->~StringMapEntry();
204
3.20k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
3.20k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode, std::__1::default_delete<llvm::ImportedFunctionsInliningStatistics::InlineGraphNode> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
36
  void Destroy(AllocatorTy &Allocator) {
201
36
    // Free memory referenced by the item.
202
36
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
36
    this->~StringMapEntry();
204
36
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
36
  }
void llvm::StringMapEntry<char>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
465k
  void Destroy(AllocatorTy &Allocator) {
201
465k
    // Free memory referenced by the item.
202
465k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
465k
    this->~StringMapEntry();
204
465k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
465k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::ARMSubtarget, std::__1::default_delete<llvm::ARMSubtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
3.37k
  void Destroy(AllocatorTy &Allocator) {
201
3.37k
    // Free memory referenced by the item.
202
3.37k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
3.37k
    this->~StringMapEntry();
204
3.37k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
3.37k
  }
void llvm::StringMapEntry<std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
43
  void Destroy(AllocatorTy &Allocator) {
201
43
    // Free memory referenced by the item.
202
43
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
43
    this->~StringMapEntry();
204
43
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
43
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::HexagonSubtarget, std::__1::default_delete<llvm::HexagonSubtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
1.00k
  void Destroy(AllocatorTy &Allocator) {
201
1.00k
    // Free memory referenced by the item.
202
1.00k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
1.00k
    this->~StringMapEntry();
204
1.00k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
1.00k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::MipsSubtarget, std::__1::default_delete<llvm::MipsSubtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
2.12k
  void Destroy(AllocatorTy &Allocator) {
201
2.12k
    // Free memory referenced by the item.
202
2.12k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
2.12k
    this->~StringMapEntry();
204
2.12k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
2.12k
  }
void llvm::StringMapEntry<llvm::AsmToken>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
1
  void Destroy(AllocatorTy &Allocator) {
201
1
    // Free memory referenced by the item.
202
1
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
1
    this->~StringMapEntry();
204
1
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
1
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::PPCSubtarget, std::__1::default_delete<llvm::PPCSubtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
1.81k
  void Destroy(AllocatorTy &Allocator) {
201
1.81k
    // Free memory referenced by the item.
202
1.81k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
1.81k
    this->~StringMapEntry();
204
1.81k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
1.81k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::SparcSubtarget, std::__1::default_delete<llvm::SparcSubtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
194
  void Destroy(AllocatorTy &Allocator) {
201
194
    // Free memory referenced by the item.
202
194
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
194
    this->~StringMapEntry();
204
194
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
194
  }
void llvm::StringMapEntry<llvm::Function*>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
338
  void Destroy(AllocatorTy &Allocator) {
201
338
    // Free memory referenced by the item.
202
338
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
338
    this->~StringMapEntry();
204
338
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
338
  }
void llvm::StringMapEntry<llvm::RTLIB::Libcall>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
4.46k
  void Destroy(AllocatorTy &Allocator) {
201
4.46k
    // Free memory referenced by the item.
202
4.46k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
4.46k
    this->~StringMapEntry();
204
4.46k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
4.46k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::WebAssemblySubtarget, std::__1::default_delete<llvm::WebAssemblySubtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
503
  void Destroy(AllocatorTy &Allocator) {
201
503
    // Free memory referenced by the item.
202
503
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
503
    this->~StringMapEntry();
204
503
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
503
  }
void llvm::StringMapEntry<unsigned long long>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
1.08k
  void Destroy(AllocatorTy &Allocator) {
201
1.08k
    // Free memory referenced by the item.
202
1.08k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
1.08k
    this->~StringMapEntry();
204
1.08k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
1.08k
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::X86Subtarget, std::__1::default_delete<llvm::X86Subtarget> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
11.5k
  void Destroy(AllocatorTy &Allocator) {
201
11.5k
    // Free memory referenced by the item.
202
11.5k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
11.5k
    this->~StringMapEntry();
204
11.5k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
11.5k
  }
void llvm::StringMapEntry<std::__1::pair<unsigned int, unsigned int> >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
155
  void Destroy(AllocatorTy &Allocator) {
201
155
    // Free memory referenced by the item.
202
155
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
155
    this->~StringMapEntry();
204
155
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
155
  }
void llvm::StringMapEntry<std::__1::pair<unsigned long long, std::__1::array<unsigned int, 5ul> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
876
  void Destroy(AllocatorTy &Allocator) {
201
876
    // Free memory referenced by the item.
202
876
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
876
    this->~StringMapEntry();
204
876
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
876
  }
void llvm::StringMapEntry<llvm::GCStrategy*>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
26
  void Destroy(AllocatorTy &Allocator) {
201
26
    // Free memory referenced by the item.
202
26
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
26
    this->~StringMapEntry();
204
26
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
26
  }
void llvm::StringMapEntry<std::__1::unique_ptr<llvm::ExternalSymbolPseudoSourceValue const, std::__1::default_delete<llvm::ExternalSymbolPseudoSourceValue const> > >::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
614
  void Destroy(AllocatorTy &Allocator) {
201
614
    // Free memory referenced by the item.
202
614
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
614
    this->~StringMapEntry();
204
614
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
614
  }
void llvm::StringMapEntry<llvm::ConstantDataSequential*>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
83.6k
  void Destroy(AllocatorTy &Allocator) {
201
83.6k
    // Free memory referenced by the item.
202
83.6k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
83.6k
    this->~StringMapEntry();
204
83.6k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
83.6k
  }
void llvm::StringMapEntry<llvm::MDString>::Destroy<llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul> >(llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&)
Line
Count
Source
200
104k
  void Destroy(AllocatorTy &Allocator) {
201
104k
    // Free memory referenced by the item.
202
104k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
104k
    this->~StringMapEntry();
204
104k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
104k
  }
void llvm::StringMapEntry<llvm::StructType*>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
60.5k
  void Destroy(AllocatorTy &Allocator) {
201
60.5k
    // Free memory referenced by the item.
202
60.5k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
60.5k
    this->~StringMapEntry();
204
60.5k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
60.5k
  }
void llvm::StringMapEntry<unsigned char>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
200k
  void Destroy(AllocatorTy &Allocator) {
201
200k
    // Free memory referenced by the item.
202
200k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
200k
    this->~StringMapEntry();
204
200k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
200k
  }
void llvm::StringMapEntry<llvm::Comdat>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
30.4k
  void Destroy(AllocatorTy &Allocator) {
201
30.4k
    // Free memory referenced by the item.
202
30.4k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
30.4k
    this->~StringMapEntry();
204
30.4k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
30.4k
  }
void llvm::StringMapEntry<llvm::NamedMDNode*>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
31.8k
  void Destroy(AllocatorTy &Allocator) {
201
31.8k
    // Free memory referenced by the item.
202
31.8k
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
31.8k
    this->~StringMapEntry();
204
31.8k
    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
205
31.8k
  }
void llvm::StringMapEntry<llvm::PassInfo const*>::Destroy<llvm::MallocAllocator>(llvm::MallocAllocator&)
Line
Count
Source
200
30.9M
  void Destroy(AllocatorTy &Allocator) {
201
30.9M
    // Free memory referenced by the item.
202
30.9M
    size_t AllocSize = sizeof(StringMapEntry) + getKeyLength() + 1;
203
30.9