Coverage Report

Created: 2018-07-20 23:04

/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.46M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
42
13.1k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::IndexedMap()
Line
Count
Source
42
947
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::IndexedMap()
Line
Count
Source
42
1.31M
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
34.4k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
31.8k
    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
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
42
502k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
502k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
502k
    IndexedMap() : nullVal_(T()) {}
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
30.5k
    IndexedMap() : nullVal_(T()) {}
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::IndexedMap()
Line
Count
Source
42
34.1k
    IndexedMap() : nullVal_(T()) {}
43
44
92.8k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::IndexedMap(int const&)
Line
Count
Source
44
32.0k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::IndexedMap(unsigned int const&)
Line
Count
Source
44
60.8k
    explicit IndexedMap(const T& val) : nullVal_(val) {}
45
46
685M
    typename StorageT::reference operator[](IndexT n) {
47
685M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
685M
      return storage_[toIndex_(n)];
49
685M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
196M
    typename StorageT::reference operator[](IndexT n) {
47
196M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
196M
      return storage_[toIndex_(n)];
49
196M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
180M
    typename StorageT::reference operator[](IndexT n) {
47
180M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
180M
      return storage_[toIndex_(n)];
49
180M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
5.50M
    typename StorageT::reference operator[](IndexT n) {
47
5.50M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
5.50M
      return storage_[toIndex_(n)];
49
5.50M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
9.06M
    typename StorageT::reference operator[](IndexT n) {
47
9.06M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
9.06M
      return storage_[toIndex_(n)];
49
9.06M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
46
71.6k
    typename StorageT::reference operator[](IndexT n) {
47
71.6k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
71.6k
      return storage_[toIndex_(n)];
49
71.6k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::operator[](unsigned int)
Line
Count
Source
46
17.0k
    typename StorageT::reference operator[](IndexT n) {
47
17.0k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
17.0k
      return storage_[toIndex_(n)];
49
17.0k
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::operator[](llvm::MachineBasicBlock const*)
Line
Count
Source
46
72.2M
    typename StorageT::reference operator[](IndexT n) {
47
72.2M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
72.2M
      return storage_[toIndex_(n)];
49
72.2M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
137M
    typename StorageT::reference operator[](IndexT n) {
47
137M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
137M
      return storage_[toIndex_(n)];
49
137M
    }
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.0M
    typename StorageT::reference operator[](IndexT n) {
47
13.0M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
13.0M
      return storage_[toIndex_(n)];
49
13.0M
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
223k
    typename StorageT::reference operator[](IndexT n) {
47
223k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
223k
      return storage_[toIndex_(n)];
49
223k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
67.7M
    typename StorageT::reference operator[](IndexT n) {
47
67.7M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
67.7M
      return storage_[toIndex_(n)];
49
67.7M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::operator[](unsigned int)
Line
Count
Source
46
3.22M
    typename StorageT::reference operator[](IndexT n) {
47
3.22M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
48
3.22M
      return storage_[toIndex_(n)];
49
3.22M
    }
50
51
1.03G
    typename StorageT::const_reference operator[](IndexT n) const {
52
1.03G
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
1.03G
      return storage_[toIndex_(n)];
54
1.03G
    }
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
658M
    typename StorageT::const_reference operator[](IndexT n) const {
52
658M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
658M
      return storage_[toIndex_(n)];
54
658M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
62.2M
    typename StorageT::const_reference operator[](IndexT n) const {
52
62.2M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
62.2M
      return storage_[toIndex_(n)];
54
62.2M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
137M
    typename StorageT::const_reference operator[](IndexT n) const {
52
137M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
137M
      return storage_[toIndex_(n)];
54
137M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
85.8M
    typename StorageT::const_reference operator[](IndexT n) const {
52
85.8M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
85.8M
      return storage_[toIndex_(n)];
54
85.8M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
66.2M
    typename StorageT::const_reference operator[](IndexT n) const {
52
66.2M
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
66.2M
      return storage_[toIndex_(n)];
54
66.2M
    }
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.28k
    typename StorageT::const_reference operator[](IndexT n) const {
52
5.28k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
5.28k
      return storage_[toIndex_(n)];
54
5.28k
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::operator[](unsigned int) const
Line
Count
Source
51
326k
    typename StorageT::const_reference operator[](IndexT n) const {
52
326k
      assert(toIndex_(n) < storage_.size() && "index out of bounds!");
53
326k
      return storage_[toIndex_(n)];
54
326k
    }
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.00M
    void reserve(typename StorageT::size_type s) {
57
1.00M
      storage_.reserve(s);
58
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
56
502k
    void reserve(typename StorageT::size_type s) {
57
502k
      storage_.reserve(s);
58
502k
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::reserve(unsigned long)
Line
Count
Source
56
502k
    void reserve(typename StorageT::size_type s) {
57
502k
      storage_.reserve(s);
58
502k
    }
59
60
101M
    void resize(typename StorageT::size_type s) {
61
101M
      storage_.resize(s, nullVal_);
62
101M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.12M
    void resize(typename StorageT::size_type s) {
61
1.12M
      storage_.resize(s, nullVal_);
62
1.12M
    }
llvm::IndexedMap<llvm::SmallVector<llvm::ARMLegalizerInfo::FCmpLibcallInfo, 2u>, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
60
5.11k
    void resize(typename StorageT::size_type s) {
61
5.11k
      storage_.resize(s, nullVal_);
62
5.11k
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::resize(unsigned long)
Line
Count
Source
60
947
    void resize(typename StorageT::size_type s) {
61
947
      storage_.resize(s, nullVal_);
62
947
    }
llvm::IndexedMap<std::__1::pair<llvm::VNInfo*, llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*>, llvm::MBB2NumberFunctor>::resize(unsigned long)
Line
Count
Source
60
29.3M
    void resize(typename StorageT::size_type s) {
61
29.3M
      storage_.resize(s, nullVal_);
62
29.3M
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
3.97M
    void resize(typename StorageT::size_type s) {
61
3.97M
      storage_.resize(s, nullVal_);
62
3.97M
    }
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
23.5M
    void resize(typename StorageT::size_type s) {
61
23.5M
      storage_.resize(s, nullVal_);
62
23.5M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
23.5M
    void resize(typename StorageT::size_type s) {
61
23.5M
      storage_.resize(s, nullVal_);
62
23.5M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
13.0M
    void resize(typename StorageT::size_type s) {
61
13.0M
      storage_.resize(s, nullVal_);
62
13.0M
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.68M
    void resize(typename StorageT::size_type s) {
61
1.68M
      storage_.resize(s, nullVal_);
62
1.68M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
1.32M
    void resize(typename StorageT::size_type s) {
61
1.32M
      storage_.resize(s, nullVal_);
62
1.32M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
3.36M
    void resize(typename StorageT::size_type s) {
61
3.36M
      storage_.resize(s, nullVal_);
62
3.36M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::resize(unsigned long)
Line
Count
Source
60
283k
    void resize(typename StorageT::size_type s) {
61
283k
      storage_.resize(s, nullVal_);
62
283k
    }
63
64
5.22M
    void clear() {
65
5.22M
      storage_.clear();
66
5.22M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
478k
    void clear() {
65
478k
      storage_.clear();
66
478k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
457k
    void clear() {
65
457k
      storage_.clear();
66
457k
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
425k
    void clear() {
65
425k
      storage_.clear();
66
425k
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
456k
    void clear() {
65
456k
      storage_.clear();
66
456k
    }
llvm::IndexedMap<int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
455k
    void clear() {
65
455k
      storage_.clear();
66
455k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
1.34M
    void clear() {
65
1.34M
      storage_.clear();
66
1.34M
    }
llvm::IndexedMap<unsigned int, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
1.34M
    void clear() {
65
1.34M
      storage_.clear();
66
1.34M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::clear()
Line
Count
Source
64
265k
    void clear() {
65
265k
      storage_.clear();
66
265k
    }
67
68
185M
    void grow(IndexT n) {
69
185M
      unsigned NewSize = toIndex_(n) + 1;
70
185M
      if (NewSize > storage_.size())
71
65.0M
        resize(NewSize);
72
185M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
12.7M
    void grow(IndexT n) {
69
12.7M
      unsigned NewSize = toIndex_(n) + 1;
70
12.7M
      if (NewSize > storage_.size())
71
647k
        resize(NewSize);
72
12.7M
    }
llvm::IndexedMap<unsigned int, llvm::identity<unsigned int> >::grow(unsigned int)
Line
Count
Source
68
947
    void grow(IndexT n) {
69
947
      unsigned NewSize = toIndex_(n) + 1;
70
947
      if (NewSize > storage_.size())
71
947
        resize(NewSize);
72
947
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
103M
    void grow(IndexT n) {
69
103M
      unsigned NewSize = toIndex_(n) + 1;
70
103M
      if (NewSize > storage_.size())
71
3.97M
        resize(NewSize);
72
103M
    }
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
23.5M
    void grow(IndexT n) {
69
23.5M
      unsigned NewSize = toIndex_(n) + 1;
70
23.5M
      if (NewSize > storage_.size())
71
23.5M
        resize(NewSize);
72
23.5M
    }
llvm::IndexedMap<std::__1::pair<unsigned int, llvm::SmallVector<unsigned int, 4u> >, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
23.5M
    void grow(IndexT n) {
69
23.5M
      unsigned NewSize = toIndex_(n) + 1;
70
23.5M
      if (NewSize > storage_.size())
71
23.5M
        resize(NewSize);
72
23.5M
    }
llvm::IndexedMap<llvm::LLT, 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
13.0M
        resize(NewSize);
72
13.0M
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
8.49M
    void grow(IndexT n) {
69
8.49M
      unsigned NewSize = toIndex_(n) + 1;
70
8.49M
      if (NewSize > storage_.size())
71
20.2k
        resize(NewSize);
72
8.49M
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::grow(unsigned int)
Line
Count
Source
68
757k
    void grow(IndexT n) {
69
757k
      unsigned NewSize = toIndex_(n) + 1;
70
757k
      if (NewSize > storage_.size())
71
283k
        resize(NewSize);
72
757k
    }
73
74
209M
    bool inBounds(IndexT n) const {
75
209M
      return toIndex_(n) < storage_.size();
76
209M
    }
llvm::IndexedMap<llvm::LLT, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
69.5M
    bool inBounds(IndexT n) const {
75
69.5M
      return toIndex_(n) < storage_.size();
76
69.5M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
137M
    bool inBounds(IndexT n) const {
75
137M
      return toIndex_(n) < storage_.size();
76
137M
    }
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
75.1k
    bool inBounds(IndexT n) const {
75
75.1k
      return toIndex_(n) < storage_.size();
76
75.1k
    }
RegAllocGreedy.cpp:llvm::IndexedMap<(anonymous namespace)::RAGreedy::RegInfo, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
1.10k
    bool inBounds(IndexT n) const {
75
1.10k
      return toIndex_(n) < storage_.size();
76
1.10k
    }
llvm::IndexedMap<llvm::FunctionLoweringInfo::LiveOutInfo, llvm::VirtReg2IndexFunctor>::inBounds(unsigned int) const
Line
Count
Source
74
2.95M
    bool inBounds(IndexT n) const {
75
2.95M
      return toIndex_(n) < storage_.size();
76
2.95M
    }
77
78
36.4M
    typename StorageT::size_type size() const {
79
36.4M
      return storage_.size();
80
36.4M
    }
llvm::IndexedMap<std::__1::pair<llvm::PointerUnion<llvm::TargetRegisterClass const*, llvm::RegisterBank const*>, llvm::MachineOperand*>, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
35.4M
    typename StorageT::size_type size() const {
79
35.4M
      return storage_.size();
80
35.4M
    }
llvm::IndexedMap<llvm::LiveInterval*, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
478k
    typename StorageT::size_type size() const {
79
478k
      return storage_.size();
80
478k
    }
llvm::IndexedMap<llvm::LiveVariables::VarInfo, llvm::VirtReg2IndexFunctor>::size() const
Line
Count
Source
78
457k
    typename StorageT::size_type size() const {
79
457k
      return storage_.size();
80
457k
    }
81
  };
82
83
} // end namespace llvm
84
85
#endif // LLVM_ADT_INDEXEDMAP_H