Coverage Report

Created: 2018-09-23 22:08

/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.54M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
42
13.5k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
42
956
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::IndexedMap()
Line
Count
Source
42
1.34M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
35.1k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
32.5k
    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
512k
    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
512k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
512k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
512k
    IndexedMap() : nullVal_(T()) {}
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
31.1k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
34.7k
    IndexedMap() : nullVal_(T()) {}
43
44
94.6k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::IndexedMap(int const&)
Line
Count
Source
44
32.6k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::IndexedMap(unsigned int const&)
Line
Count
Source
44
62.0k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
45
46
702M
    typename StorageT::reference operator[](IndexT n) {
47
702M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
702M
      return storage_[toIndex_(n)];
49
702M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
201M
    typename StorageT::reference operator[](IndexT n) {
47
201M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
201M
      return storage_[toIndex_(n)];
49
201M
    }
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
5.91M
    typename StorageT::reference operator[](IndexT n) {
47
5.91M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
5.91M
      return storage_[toIndex_(n)];
49
5.91M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
9.26M
    typename StorageT::reference operator[](IndexT n) {
47
9.26M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
9.26M
      return storage_[toIndex_(n)];
49
9.26M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
46
73.7k
    typename StorageT::reference operator[](IndexT n) {
47
73.7k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
73.7k
      return storage_[toIndex_(n)];
49
73.7k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
46
17.2k
    typename StorageT::reference operator[](IndexT n) {
47
17.2k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
17.2k
      return storage_[toIndex_(n)];
49
17.2k
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::operator[](llvm::MachineBasicBlock const*)
Line
Count
Source
46
74.1M
    typename StorageT::reference operator[](IndexT n) {
47
74.1M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
74.1M
      return storage_[toIndex_(n)];
49
74.1M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
140M
    typename StorageT::reference operator[](IndexT n) {
47
140M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
140M
      return storage_[toIndex_(n)];
49
140M
    }
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.4M
    typename StorageT::reference operator[](IndexT n) {
47
13.4M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
13.4M
      return storage_[toIndex_(n)];
49
13.4M
    }
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.8M
    typename StorageT::reference operator[](IndexT n) {
47
68.8M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
68.8M
      return storage_[toIndex_(n)];
49
68.8M
    }
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.06G
    typename StorageT::const_reference operator[](IndexT n) const {
52
1.06G
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
1.06G
      return storage_[toIndex_(n)];
54
1.06G
    }
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
679M
    typename StorageT::const_reference operator[](IndexT n) const {
52
679M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
679M
      return storage_[toIndex_(n)];
54
679M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
63.4M
    typename StorageT::const_reference operator[](IndexT n) const {
52
63.4M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
63.4M
      return storage_[toIndex_(n)];
54
63.4M
    }
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.29k
    typename StorageT::const_reference operator[](IndexT n) const {
52
5.29k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
5.29k
      return storage_[toIndex_(n)];
54
5.29k
    }
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.5M
    typename StorageT::const_reference operator[](IndexT n) const {
52
23.5M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
23.5M
      return storage_[toIndex_(n)];
54
23.5M
    }
55
56
1.02M
    void reserve(typename StorageT::size_type s) {
57
1.02M
      storage_.reserve(s);
58
1.02M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::reserve(unsigned long)
Line
Count
Source
56
512k
    void reserve(typename StorageT::size_type s) {
57
512k
      storage_.reserve(s);
58
512k
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::reserve(unsigned long)
Line
Count
Source
56
512k
    void reserve(typename StorageT::size_type s) {
57
512k
      storage_.reserve(s);
58
512k
    }
59
60
103M
    void resize(typename StorageT::size_type s) {
61
103M
      storage_.resize(s, nullVal_);
62
103M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.14M
    void resize(typename StorageT::size_type s) {
61
1.14M
      storage_.resize(s, nullVal_);
62
1.14M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
60
5.26k
    void resize(typename StorageT::size_type s) {
61
5.26k
      storage_.resize(s, nullVal_);
62
5.26k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
60
956
    void resize(typename StorageT::size_type s) {
61
956
      storage_.resize(s, nullVal_);
62
956
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::resize(unsigned long)
Line
Count
Source
60
30.1M
    void resize(typename StorageT::size_type s) {
61
30.1M
      storage_.resize(s, nullVal_);
62
30.1M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
4.05M
    void resize(typename StorageT::size_type s) {
61
4.05M
      storage_.resize(s, nullVal_);
62
4.05M
    }
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.2M
    void resize(typename StorageT::size_type s) {
61
24.2M
      storage_.resize(s, nullVal_);
62
24.2M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
24.2M
    void resize(typename StorageT::size_type s) {
61
24.2M
      storage_.resize(s, nullVal_);
62
24.2M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
13.4M
    void resize(typename StorageT::size_type s) {
61
13.4M
      storage_.resize(s, nullVal_);
62
13.4M
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.71M
    void resize(typename StorageT::size_type s) {
61
1.71M
      storage_.resize(s, nullVal_);
62
1.71M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.34M
    void resize(typename StorageT::size_type s) {
61
1.34M
      storage_.resize(s, nullVal_);
62
1.34M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
3.41M
    void resize(typename StorageT::size_type s) {
61
3.41M
      storage_.resize(s, nullVal_);
62
3.41M
    }
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.32M
    void clear() {
65
5.32M
      storage_.clear();
66
5.32M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
488k
    void clear() {
65
488k
      storage_.clear();
66
488k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
465k
    void clear() {
65
465k
      storage_.clear();
66
465k
    }
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
464k
    void clear() {
65
464k
      storage_.clear();
66
464k
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
464k
    void clear() {
65
464k
      storage_.clear();
66
464k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
1.36M
    void clear() {
65
1.36M
      storage_.clear();
66
1.36M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
1.37M
    void clear() {
65
1.37M
      storage_.clear();
66
1.37M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
272k
    void clear() {
65
272k
      storage_.clear();
66
272k
    }
67
68
190M
    void grow(IndexT n) {
69
190M
      unsigned NewSize = toIndex_(n) + 1;
70
190M
      if (NewSize > storage_.size())
71
66.8M
        resize(NewSize);
72
190M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
13.0M
    void grow(IndexT n) {
69
13.0M
      unsigned NewSize = toIndex_(n) + 1;
70
13.0M
      if (NewSize > storage_.size())
71
655k
        resize(NewSize);
72
13.0M
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::grow(unsigned int)
Line
Count
Source
68
956
    void grow(IndexT n) {
69
956
      unsigned NewSize = toIndex_(n) + 1;
70
956
      if (NewSize > storage_.size())
71
956
        resize(NewSize);
72
956
    }
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.05M
        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.2M
    void grow(IndexT n) {
69
24.2M
      unsigned NewSize = toIndex_(n) + 1;
70
24.2M
      if (NewSize > storage_.size())
71
24.2M
        resize(NewSize);
72
24.2M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
24.2M
    void grow(IndexT n) {
69
24.2M
      unsigned NewSize = toIndex_(n) + 1;
70
24.2M
      if (NewSize > storage_.size())
71
24.2M
        resize(NewSize);
72
24.2M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
13.4M
    void grow(IndexT n) {
69
13.4M
      unsigned NewSize = toIndex_(n) + 1;
70
13.4M
      if (NewSize > storage_.size())
71
13.4M
        resize(NewSize);
72
13.4M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
8.68M
    void grow(IndexT n) {
69
8.68M
      unsigned NewSize = toIndex_(n) + 1;
70
8.68M
      if (NewSize > storage_.size())
71
20.4k
        resize(NewSize);
72
8.68M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
775k
    void grow(IndexT n) {
69
775k
      unsigned NewSize = toIndex_(n) + 1;
70
775k
      if (NewSize > storage_.size())
71
288k
        resize(NewSize);
72
775k
    }
73
74
215M
    bool inBounds(IndexT n) const {
75
215M
      return toIndex_(n) < storage_.size();
76
215M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
71.2M
    bool inBounds(IndexT n) const {
75
71.2M
      return toIndex_(n) < storage_.size();
76
71.2M
    }
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
81.2k
    bool inBounds(IndexT n) const {
75
81.2k
      return toIndex_(n) < storage_.size();
76
81.2k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
989
    bool inBounds(IndexT n) const {
75
989
      return toIndex_(n) < storage_.size();
76
989
    }
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.3M
    typename StorageT::size_type size() const {
79
37.3M
      return storage_.size();
80
37.3M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
36.4M
    typename StorageT::size_type size() const {
79
36.4M
      return storage_.size();
80
36.4M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
488k
    typename StorageT::size_type size() const {
79
488k
      return storage_.size();
80
488k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
465k
    typename StorageT::size_type size() const {
79
465k
      return storage_.size();
80
465k
    }
81
  };
82
83
} // end namespace llvm
84
85
#endif // LLVM_ADT_INDEXEDMAP_H