Coverage Report

Created: 2018-11-16 02:38

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/include/llvm/ADT/IndexedMap.h
Line
Count
Source
1
//===- llvm/ADT/IndexedMap.h - An index map implementation ------*- C++ -*-===//
2
//
3
//                     The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This file implements an indexed map. The index map template takes two
11
// types. The first is the mapped type and the second is a functor
12
// that maps its argument to a size_t. On instantiation a "null" value
13
// can be provided to be used as a "does not exist" indicator in the
14
// map. A member function grow() is provided that given the value of
15
// the maximally indexed key (the argument of the functor) makes sure
16
// the map has enough space for it.
17
//
18
//===----------------------------------------------------------------------===//
19
20
#ifndef LLVM_ADT_INDEXEDMAP_H
21
#define LLVM_ADT_INDEXEDMAP_H
22
23
#include "llvm/ADT/SmallVector.h"
24
#include "llvm/ADT/STLExtras.h"
25
#include <cassert>
26
27
namespace llvm {
28
29
template <typename T, typename ToIndexT = identity<unsigned>>
30
  class IndexedMap {
31
    using IndexT = typename ToIndexT::argument_type;
32
    // Prefer SmallVector with zero inline storage over std::vector. IndexedMaps
33
    // can grow very large and SmallVector grows more efficiently as long as T
34
    // is trivially copyable.
35
    using StorageT = SmallVector<T, 0>;
36
37
    StorageT storage_;
38
    T nullVal_;
39
    ToIndexT toIndex_;
40
41
  public:
42
3.61M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
42
13.6k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
42
970
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::IndexedMap()
Line
Count
Source
42
1.35M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
36.3k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
33.3k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
525k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
525k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
525k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
525k
    IndexedMap() : nullVal_(T()) {}
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
31.5k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
35.6k
    IndexedMap() : nullVal_(T()) {}
43
44
96.0k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::IndexedMap(int const&)
Line
Count
Source
44
33.1k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::IndexedMap(unsigned int const&)
Line
Count
Source
44
62.9k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
45
46
704M
    typename StorageT::reference operator[](IndexT n) {
47
704M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
704M
      return storage_[toIndex_(n)];
49
704M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
204M
    typename StorageT::reference operator[](IndexT n) {
47
204M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
204M
      return storage_[toIndex_(n)];
49
204M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
185M
    typename StorageT::reference operator[](IndexT n) {
47
185M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
185M
      return storage_[toIndex_(n)];
49
185M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
4.08M
    typename StorageT::reference operator[](IndexT n) {
47
4.08M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
4.08M
      return storage_[toIndex_(n)];
49
4.08M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
9.29M
    typename StorageT::reference operator[](IndexT n) {
47
9.29M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
9.29M
      return storage_[toIndex_(n)];
49
9.29M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
46
74.8k
    typename StorageT::reference operator[](IndexT n) {
47
74.8k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
74.8k
      return storage_[toIndex_(n)];
49
74.8k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
46
17.4k
    typename StorageT::reference operator[](IndexT n) {
47
17.4k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
17.4k
      return storage_[toIndex_(n)];
49
17.4k
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::operator[](llvm::MachineBasicBlock const*)
Line
Count
Source
46
74.0M
    typename StorageT::reference operator[](IndexT n) {
47
74.0M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
74.0M
      return storage_[toIndex_(n)];
49
74.0M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
141M
    typename StorageT::reference operator[](IndexT n) {
47
141M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
141M
      return storage_[toIndex_(n)];
49
141M
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
94
    typename StorageT::reference operator[](IndexT n) {
47
94
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
94
      return storage_[toIndex_(n)];
49
94
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
13.5M
    typename StorageT::reference operator[](IndexT n) {
47
13.5M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
13.5M
      return storage_[toIndex_(n)];
49
13.5M
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
226k
    typename StorageT::reference operator[](IndexT n) {
47
226k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
226k
      return storage_[toIndex_(n)];
49
226k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
68.9M
    typename StorageT::reference operator[](IndexT n) {
47
68.9M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
68.9M
      return storage_[toIndex_(n)];
49
68.9M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
3.32M
    typename StorageT::reference operator[](IndexT n) {
47
3.32M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
3.32M
      return storage_[toIndex_(n)];
49
3.32M
    }
50
51
1.09G
    typename StorageT::const_reference operator[](IndexT n) const {
52
1.09G
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
1.09G
      return storage_[toIndex_(n)];
54
1.09G
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
705M
    typename StorageT::const_reference operator[](IndexT n) const {
52
705M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
705M
      return storage_[toIndex_(n)];
54
705M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
65.1M
    typename StorageT::const_reference operator[](IndexT n) const {
52
65.1M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
65.1M
      return storage_[toIndex_(n)];
54
65.1M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
141M
    typename StorageT::const_reference operator[](IndexT n) const {
52
141M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
141M
      return storage_[toIndex_(n)];
54
141M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
87.4M
    typename StorageT::const_reference operator[](IndexT n) const {
52
87.4M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
87.4M
      return storage_[toIndex_(n)];
54
87.4M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
67.8M
    typename StorageT::const_reference operator[](IndexT n) const {
52
67.8M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
67.8M
      return storage_[toIndex_(n)];
54
67.8M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::operator[](unsigned int) const
Line
Count
Source
51
68
    typename StorageT::const_reference operator[](IndexT n) const {
52
68
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
68
      return storage_[toIndex_(n)];
54
68
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::operator[](unsigned int) const
Line
Count
Source
51
5.35k
    typename StorageT::const_reference operator[](IndexT n) const {
52
5.35k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
5.35k
      return storage_[toIndex_(n)];
54
5.35k
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
329k
    typename StorageT::const_reference operator[](IndexT n) const {
52
329k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
329k
      return storage_[toIndex_(n)];
54
329k
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
339
    typename StorageT::const_reference operator[](IndexT n) const {
52
339
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
339
      return storage_[toIndex_(n)];
54
339
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
23.3M
    typename StorageT::const_reference operator[](IndexT n) const {
52
23.3M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
23.3M
      return storage_[toIndex_(n)];
54
23.3M
    }
55
56
1.05M
    void reserve(typename StorageT::size_type s) {
57
1.05M
      storage_.reserve(s);
58
1.05M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::reserve(unsigned long)
Line
Count
Source
56
525k
    void reserve(typename StorageT::size_type s) {
57
525k
      storage_.reserve(s);
58
525k
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::reserve(unsigned long)
Line
Count
Source
56
525k
    void reserve(typename StorageT::size_type s) {
57
525k
      storage_.reserve(s);
58
525k
    }
59
60
104M
    void resize(typename StorageT::size_type s) {
61
104M
      storage_.resize(s, nullVal_);
62
104M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.18M
    void resize(typename StorageT::size_type s) {
61
1.18M
      storage_.resize(s, nullVal_);
62
1.18M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
60
5.34k
    void resize(typename StorageT::size_type s) {
61
5.34k
      storage_.resize(s, nullVal_);
62
5.34k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
60
970
    void resize(typename StorageT::size_type s) {
61
970
      storage_.resize(s, nullVal_);
62
970
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::resize(unsigned long)
Line
Count
Source
60
30.4M
    void resize(typename StorageT::size_type s) {
61
30.4M
      storage_.resize(s, nullVal_);
62
30.4M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
4.11M
    void resize(typename StorageT::size_type s) {
61
4.11M
      storage_.resize(s, nullVal_);
62
4.11M
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
94
    void resize(typename StorageT::size_type s) {
61
94
      storage_.resize(s, nullVal_);
62
94
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
24.4M
    void resize(typename StorageT::size_type s) {
61
24.4M
      storage_.resize(s, nullVal_);
62
24.4M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
24.4M
    void resize(typename StorageT::size_type s) {
61
24.4M
      storage_.resize(s, nullVal_);
62
24.4M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
13.5M
    void resize(typename StorageT::size_type s) {
61
13.5M
      storage_.resize(s, nullVal_);
62
13.5M
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.73M
    void resize(typename StorageT::size_type s) {
61
1.73M
      storage_.resize(s, nullVal_);
62
1.73M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.35M
    void resize(typename StorageT::size_type s) {
61
1.35M
      storage_.resize(s, nullVal_);
62
1.35M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
3.45M
    void resize(typename StorageT::size_type s) {
61
3.45M
      storage_.resize(s, nullVal_);
62
3.45M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
288k
    void resize(typename StorageT::size_type s) {
61
288k
      storage_.resize(s, nullVal_);
62
288k
    }
63
64
5.44M
    void clear() {
65
5.44M
      storage_.clear();
66
5.44M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
505k
    void clear() {
65
505k
      storage_.clear();
66
505k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
478k
    void clear() {
65
478k
      storage_.clear();
66
478k
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
429k
    void clear() {
65
429k
      storage_.clear();
66
429k
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
474k
    void clear() {
65
474k
      storage_.clear();
66
474k
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
473k
    void clear() {
65
473k
      storage_.clear();
66
473k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
1.39M
    void clear() {
65
1.39M
      storage_.clear();
66
1.39M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
1.39M
    void clear() {
65
1.39M
      storage_.clear();
66
1.39M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
285k
    void clear() {
65
285k
      storage_.clear();
66
285k
    }
67
68
191M
    void grow(IndexT n) {
69
191M
      unsigned NewSize = toIndex_(n) + 1;
70
191M
      if (NewSize > storage_.size())
71
67.5M
        resize(NewSize);
72
191M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
13.2M
    void grow(IndexT n) {
69
13.2M
      unsigned NewSize = toIndex_(n) + 1;
70
13.2M
      if (NewSize > storage_.size())
71
677k
        resize(NewSize);
72
13.2M
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::grow(unsigned int)
Line
Count
Source
68
970
    void grow(IndexT n) {
69
970
      unsigned NewSize = toIndex_(n) + 1;
70
970
      if (NewSize > storage_.size())
71
970
        resize(NewSize);
72
970
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
106M
    void grow(IndexT n) {
69
106M
      unsigned NewSize = toIndex_(n) + 1;
70
106M
      if (NewSize > storage_.size())
71
4.11M
        resize(NewSize);
72
106M
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
94
    void grow(IndexT n) {
69
94
      unsigned NewSize = toIndex_(n) + 1;
70
94
      if (NewSize > storage_.size())
71
94
        resize(NewSize);
72
94
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
24.4M
    void grow(IndexT n) {
69
24.4M
      unsigned NewSize = toIndex_(n) + 1;
70
24.4M
      if (NewSize > storage_.size())
71
24.4M
        resize(NewSize);
72
24.4M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
24.4M
    void grow(IndexT n) {
69
24.4M
      unsigned NewSize = toIndex_(n) + 1;
70
24.4M
      if (NewSize > storage_.size())
71
24.4M
        resize(NewSize);
72
24.4M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
13.5M
    void grow(IndexT n) {
69
13.5M
      unsigned NewSize = toIndex_(n) + 1;
70
13.5M
      if (NewSize > storage_.size())
71
13.5M
        resize(NewSize);
72
13.5M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
8.71M
    void grow(IndexT n) {
69
8.71M
      unsigned NewSize = toIndex_(n) + 1;
70
8.71M
      if (NewSize > storage_.size())
71
20.5k
        resize(NewSize);
72
8.71M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
777k
    void grow(IndexT n) {
69
777k
      unsigned NewSize = toIndex_(n) + 1;
70
777k
      if (NewSize > storage_.size())
71
288k
        resize(NewSize);
72
777k
    }
73
74
219M
    bool inBounds(IndexT n) const {
75
219M
      return toIndex_(n) < storage_.size();
76
219M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
74.5M
    bool inBounds(IndexT n) const {
75
74.5M
      return toIndex_(n) < storage_.size();
76
74.5M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
141M
    bool inBounds(IndexT n) const {
75
141M
      return toIndex_(n) < storage_.size();
76
141M
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
92.1k
    bool inBounds(IndexT n) const {
75
92.1k
      return toIndex_(n) < storage_.size();
76
92.1k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
1.03k
    bool inBounds(IndexT n) const {
75
1.03k
      return toIndex_(n) < storage_.size();
76
1.03k
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
3.04M
    bool inBounds(IndexT n) const {
75
3.04M
      return toIndex_(n) < storage_.size();
76
3.04M
    }
77
78
37.8M
    typename StorageT::size_type size() const {
79
37.8M
      return storage_.size();
80
37.8M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
36.8M
    typename StorageT::size_type size() const {
79
36.8M
      return storage_.size();
80
36.8M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
505k
    typename StorageT::size_type size() const {
79
505k
      return storage_.size();
80
505k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
478k
    typename StorageT::size_type size() const {
79
478k
      return storage_.size();
80
478k
    }
81
  };
82
83
} // end namespace llvm
84
85
#endif // LLVM_ADT_INDEXEDMAP_H