Coverage Report

Created: 2019-02-15 18:59

/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
// 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 implements an indexed map. The index map template takes two
10
// types. The first is the mapped type and the second is a functor
11
// that maps its argument to a size_t. On instantiation a "null" value
12
// can be provided to be used as a "does not exist" indicator in the
13
// map. A member function grow() is provided that given the value of
14
// the maximally indexed key (the argument of the functor) makes sure
15
// the map has enough space for it.
16
//
17
//===----------------------------------------------------------------------===//
18
19
#ifndef LLVM_ADT_INDEXEDMAP_H
20
#define LLVM_ADT_INDEXEDMAP_H
21
22
#include "llvm/ADT/SmallVector.h"
23
#include "llvm/ADT/STLExtras.h"
24
#include <cassert>
25
26
namespace llvm {
27
28
template <typename T, typename ToIndexT = identity<unsigned>>
29
  class IndexedMap {
30
    using IndexT = typename ToIndexT::argument_type;
31
    // Prefer SmallVector with zero inline storage over std::vector. IndexedMaps
32
    // can grow very large and SmallVector grows more efficiently as long as T
33
    // is trivially copyable.
34
    using StorageT = SmallVector<T, 0>;
35
36
    StorageT storage_;
37
    T nullVal_;
38
    ToIndexT toIndex_;
39
40
  public:
41
3.55M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
41
14.0k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
41
985
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::IndexedMap()
Line
Count
Source
41
1.39M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
41
36.4k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
41
33.2k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
41
502k
    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
41
502k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
41
502k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
41
502k
    IndexedMap() : nullVal_(T()) {}
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
41
31.8k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
41
36.0k
    IndexedMap() : nullVal_(T()) {}
42
43
96.8k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::IndexedMap(int const&)
Line
Count
Source
43
33.4k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::IndexedMap(unsigned int const&)
Line
Count
Source
43
63.3k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
44
45
763M
    typename StorageT::reference operator[](IndexT n) {
46
763M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
763M
      return storage_[toIndex_(n)];
48
763M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
210M
    typename StorageT::reference operator[](IndexT n) {
46
210M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
210M
      return storage_[toIndex_(n)];
48
210M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
195M
    typename StorageT::reference operator[](IndexT n) {
46
195M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
195M
      return storage_[toIndex_(n)];
48
195M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
4.24M
    typename StorageT::reference operator[](IndexT n) {
46
4.24M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
4.24M
      return storage_[toIndex_(n)];
48
4.24M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
10.1M
    typename StorageT::reference operator[](IndexT n) {
46
10.1M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
10.1M
      return storage_[toIndex_(n)];
48
10.1M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
45
31.1k
    typename StorageT::reference operator[](IndexT n) {
46
31.1k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
31.1k
      return storage_[toIndex_(n)];
48
31.1k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
45
17.7k
    typename StorageT::reference operator[](IndexT n) {
46
17.7k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
17.7k
      return storage_[toIndex_(n)];
48
17.7k
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::operator[](llvm::MachineBasicBlock const*)
Line
Count
Source
45
90.6M
    typename StorageT::reference operator[](IndexT n) {
46
90.6M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
90.6M
      return storage_[toIndex_(n)];
48
90.6M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
158M
    typename StorageT::reference operator[](IndexT n) {
46
158M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
158M
      return storage_[toIndex_(n)];
48
158M
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
97
    typename StorageT::reference operator[](IndexT n) {
46
97
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
97
      return storage_[toIndex_(n)];
48
97
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
13.8M
    typename StorageT::reference operator[](IndexT n) {
46
13.8M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
13.8M
      return storage_[toIndex_(n)];
48
13.8M
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
247k
    typename StorageT::reference operator[](IndexT n) {
46
247k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
247k
      return storage_[toIndex_(n)];
48
247k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
77.3M
    typename StorageT::reference operator[](IndexT n) {
46
77.3M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
77.3M
      return storage_[toIndex_(n)];
48
77.3M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
45
2.38M
    typename StorageT::reference operator[](IndexT n) {
46
2.38M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
47
2.38M
      return storage_[toIndex_(n)];
48
2.38M
    }
49
50
1.28G
    typename StorageT::const_reference operator[](IndexT n) const {
51
1.28G
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
1.28G
      return storage_[toIndex_(n)];
53
1.28G
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
50
818M
    typename StorageT::const_reference operator[](IndexT n) const {
51
818M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
818M
      return storage_[toIndex_(n)];
53
818M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
50
114M
    typename StorageT::const_reference operator[](IndexT n) const {
51
114M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
114M
      return storage_[toIndex_(n)];
53
114M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
50
150M
    typename StorageT::const_reference operator[](IndexT n) const {
51
150M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
150M
      return storage_[toIndex_(n)];
53
150M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
50
97.2M
    typename StorageT::const_reference operator[](IndexT n) const {
51
97.2M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
97.2M
      return storage_[toIndex_(n)];
53
97.2M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
50
74.3M
    typename StorageT::const_reference operator[](IndexT n) const {
51
74.3M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
74.3M
      return storage_[toIndex_(n)];
53
74.3M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::operator[](unsigned int) const
Line
Count
Source
50
68
    typename StorageT::const_reference operator[](IndexT n) const {
51
68
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
68
      return storage_[toIndex_(n)];
53
68
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::operator[](unsigned int) const
Line
Count
Source
50
5.47k
    typename StorageT::const_reference operator[](IndexT n) const {
51
5.47k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
5.47k
      return storage_[toIndex_(n)];
53
5.47k
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
50
376k
    typename StorageT::const_reference operator[](IndexT n) const {
51
376k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
376k
      return storage_[toIndex_(n)];
53
376k
    }
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
50
341
    typename StorageT::const_reference operator[](IndexT n) const {
51
341
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
341
      return storage_[toIndex_(n)];
53
341
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
50
27.9M
    typename StorageT::const_reference operator[](IndexT n) const {
51
27.9M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
52
27.9M
      return storage_[toIndex_(n)];
53
27.9M
    }
54
55
1.00M
    void reserve(typename StorageT::size_type s) {
56
1.00M
      storage_.reserve(s);
57
1.00M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::reserve(unsigned long)
Line
Count
Source
55
502k
    void reserve(typename StorageT::size_type s) {
56
502k
      storage_.reserve(s);
57
502k
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::reserve(unsigned long)
Line
Count
Source
55
502k
    void reserve(typename StorageT::size_type s) {
56
502k
      storage_.reserve(s);
57
502k
    }
58
59
104M
    void resize(typename StorageT::size_type s) {
60
104M
      storage_.resize(s, nullVal_);
61
104M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
1.37M
    void resize(typename StorageT::size_type s) {
60
1.37M
      storage_.resize(s, nullVal_);
61
1.37M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
59
2.22k
    void resize(typename StorageT::size_type s) {
60
2.22k
      storage_.resize(s, nullVal_);
61
2.22k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
59
985
    void resize(typename StorageT::size_type s) {
60
985
      storage_.resize(s, nullVal_);
61
985
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::resize(unsigned long)
Line
Count
Source
59
31.1M
    void resize(typename StorageT::size_type s) {
60
31.1M
      storage_.resize(s, nullVal_);
61
31.1M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
3.89M
    void resize(typename StorageT::size_type s) {
60
3.89M
      storage_.resize(s, nullVal_);
61
3.89M
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
97
    void resize(typename StorageT::size_type s) {
60
97
      storage_.resize(s, nullVal_);
61
97
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
23.1M
    void resize(typename StorageT::size_type s) {
60
23.1M
      storage_.resize(s, nullVal_);
61
23.1M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
23.1M
    void resize(typename StorageT::size_type s) {
60
23.1M
      storage_.resize(s, nullVal_);
61
23.1M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
13.8M
    void resize(typename StorageT::size_type s) {
60
13.8M
      storage_.resize(s, nullVal_);
61
13.8M
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
1.98M
    void resize(typename StorageT::size_type s) {
60
1.98M
      storage_.resize(s, nullVal_);
61
1.98M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
1.57M
    void resize(typename StorageT::size_type s) {
60
1.57M
      storage_.resize(s, nullVal_);
61
1.57M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
3.96M
    void resize(typename StorageT::size_type s) {
60
3.96M
      storage_.resize(s, nullVal_);
61
3.96M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
59
218k
    void resize(typename StorageT::size_type s) {
60
218k
      storage_.resize(s, nullVal_);
61
218k
    }
62
63
5.39M
    void clear() {
64
5.39M
      storage_.clear();
65
5.39M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
500k
    void clear() {
64
500k
      storage_.clear();
65
500k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
471k
    void clear() {
64
471k
      storage_.clear();
65
471k
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
453k
    void clear() {
64
453k
      storage_.clear();
65
453k
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
470k
    void clear() {
64
470k
      storage_.clear();
65
470k
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
469k
    void clear() {
64
469k
      storage_.clear();
65
469k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
1.38M
    void clear() {
64
1.38M
      storage_.clear();
65
1.38M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
1.38M
    void clear() {
64
1.38M
      storage_.clear();
65
1.38M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
63
258k
    void clear() {
64
258k
      storage_.clear();
65
258k
    }
66
67
205M
    void grow(IndexT n) {
68
205M
      unsigned NewSize = toIndex_(n) + 1;
69
205M
      if (NewSize > storage_.size())
70
65.1M
        resize(NewSize);
71
205M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
13.6M
    void grow(IndexT n) {
68
13.6M
      unsigned NewSize = toIndex_(n) + 1;
69
13.6M
      if (NewSize > storage_.size())
70
874k
        resize(NewSize);
71
13.6M
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::grow(unsigned int)
Line
Count
Source
67
985
    void grow(IndexT n) {
68
985
      unsigned NewSize = toIndex_(n) + 1;
69
985
      if (NewSize > storage_.size())
70
985
        resize(NewSize);
71
985
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
121M
    void grow(IndexT n) {
68
121M
      unsigned NewSize = toIndex_(n) + 1;
69
121M
      if (NewSize > storage_.size())
70
3.89M
        resize(NewSize);
71
121M
    }
llvm::IndexedMap<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
97
    void grow(IndexT n) {
68
97
      unsigned NewSize = toIndex_(n) + 1;
69
97
      if (NewSize > storage_.size())
70
97
        resize(NewSize);
71
97
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
23.1M
    void grow(IndexT n) {
68
23.1M
      unsigned NewSize = toIndex_(n) + 1;
69
23.1M
      if (NewSize > storage_.size())
70
23.1M
        resize(NewSize);
71
23.1M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
23.1M
    void grow(IndexT n) {
68
23.1M
      unsigned NewSize = toIndex_(n) + 1;
69
23.1M
      if (NewSize > storage_.size())
70
23.1M
        resize(NewSize);
71
23.1M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
13.8M
    void grow(IndexT n) {
68
13.8M
      unsigned NewSize = toIndex_(n) + 1;
69
13.8M
      if (NewSize > storage_.size())
70
13.8M
        resize(NewSize);
71
13.8M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
9.42M
    void grow(IndexT n) {
68
9.42M
      unsigned NewSize = toIndex_(n) + 1;
69
9.42M
      if (NewSize > storage_.size())
70
25.5k
        resize(NewSize);
71
9.42M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
67
559k
    void grow(IndexT n) {
68
559k
      unsigned NewSize = toIndex_(n) + 1;
69
559k
      if (NewSize > storage_.size())
70
218k
        resize(NewSize);
71
559k
    }
72
73
277M
    bool inBounds(IndexT n) const {
74
277M
      return toIndex_(n) < storage_.size();
75
277M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
73
124M
    bool inBounds(IndexT n) const {
74
124M
      return toIndex_(n) < storage_.size();
75
124M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
73
150M
    bool inBounds(IndexT n) const {
74
150M
      return toIndex_(n) < storage_.size();
75
150M
    }
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
73
144k
    bool inBounds(IndexT n) const {
74
144k
      return toIndex_(n) < storage_.size();
75
144k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
73
3.01k
    bool inBounds(IndexT n) const {
74
3.01k
      return toIndex_(n) < storage_.size();
75
3.01k
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
73
2.25M
    bool inBounds(IndexT n) const {
74
2.25M
      return toIndex_(n) < storage_.size();
75
2.25M
    }
76
77
36.9M
    typename StorageT::size_type size() const {
78
36.9M
      return storage_.size();
79
36.9M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
77
35.9M
    typename StorageT::size_type size() const {
78
35.9M
      return storage_.size();
79
35.9M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
77
500k
    typename StorageT::size_type size() const {
78
500k
      return storage_.size();
79
500k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
77
471k
    typename StorageT::size_type size() const {
78
471k
      return storage_.size();
79
471k
    }
80
  };
81
82
} // end namespace llvm
83
84
#endif // LLVM_ADT_INDEXEDMAP_H