#include <InsertionOrderedMap.h>
|
std::unordered_map
< llvm::Value *, llvm::Value * > | m_ |
|
std::vector< llvm::Value * > | v_ |
|
Definition at line 35 of file InsertionOrderedMap.h.
auto InsertionOrderedMap::begin |
( |
| ) |
|
|
inline |
Definition at line 89 of file InsertionOrderedMap.h.
References v_.
89 {
return Iterator{
this,
v_.begin()}; }
std::vector< llvm::Value * > v_
std::pair<Iterator, bool> InsertionOrderedMap::emplace |
( |
llvm::Value * |
key, |
|
|
llvm::Value * |
val |
|
) |
| |
|
inline |
Definition at line 100 of file InsertionOrderedMap.h.
References end(), find(), m_, and v_.
103 return std::pair(it,
false);
105 m_.emplace(key, val);
107 return std::pair(Iterator{
this,
v_.end() - 1},
true);
std::vector< llvm::Value * > v_
auto find(llvm::Value *key)
std::unordered_map< llvm::Value *, llvm::Value * > m_
auto InsertionOrderedMap::end |
( |
| ) |
|
|
inline |
auto InsertionOrderedMap::find |
( |
llvm::Value * |
key | ) |
|
|
inline |
Definition at line 92 of file InsertionOrderedMap.h.
References m_, and v_.
Referenced by emplace().
94 return Iterator{
this, std::find(
v_.begin(),
v_.end(), key)};
96 return Iterator{
this,
v_.end()};
std::vector< llvm::Value * > v_
std::unordered_map< llvm::Value *, llvm::Value * > m_
auto& InsertionOrderedMap::operator[] |
( |
llvm::Value * |
key | ) |
|
|
inline |
Definition at line 39 of file InsertionOrderedMap.h.
References m_, and v_.
40 auto m_it =
m_.find(key);
41 if (m_it ==
m_.end()) {
std::vector< llvm::Value * > v_
std::unordered_map< llvm::Value *, llvm::Value * > m_
void InsertionOrderedMap::replace |
( |
llvm::Value * |
key1, |
|
|
llvm::Value * |
key2 |
|
) |
| |
|
inline |
Definition at line 48 of file InsertionOrderedMap.h.
References m_, and v_.
52 auto m_it =
m_.find(key1);
53 if (m_it ==
m_.end()) {
56 auto v_it = std::find(
v_.begin(),
v_.end(), key1);
57 if (v_it ==
v_.end()) {
61 m_[key2] = m_it->second;
std::vector< llvm::Value * > v_
std::unordered_map< llvm::Value *, llvm::Value * > m_
std::unordered_map<llvm::Value*, llvm::Value*> InsertionOrderedMap::m_ |
std::vector<llvm::Value*> InsertionOrderedMap::v_ |
The documentation for this struct was generated from the following file: