Home
last modified time | relevance | path

Searched refs:KeyT (Results 1 – 12 of 12) sorted by relevance

/external/llvm/include/llvm/IR/
DValueMap.h37 template<typename KeyT, typename ValueT, typename Config>
40 template<typename DenseMapT, typename KeyT>
42 template<typename DenseMapT, typename KeyT>
48 template<typename KeyT, typename MutexT = sys::Mutex>
63 static void onRAUW(const ExtraDataT & /*Data*/, KeyT /*Old*/, KeyT /*New*/) {} in onRAUW()
65 static void onDelete(const ExtraDataT &/*Data*/, KeyT /*Old*/) {} in onDelete()
76 template<typename KeyT, typename ValueT, typename Config =ValueMapConfig<KeyT> >
78 friend class ValueMapCallbackVH<KeyT, ValueT, Config>;
79 typedef ValueMapCallbackVH<KeyT, ValueT, Config> ValueMapCVH;
87 typedef KeyT key_type;
[all …]
DModule.h36 template<typename KeyT, typename ValueT, typename KeyInfoT> class DenseMap;
/external/llvm/include/llvm/ADT/
DIntervalMap.h429 template <typename KeyT, typename ValT>
438 static_cast<unsigned>(2*sizeof(KeyT)+sizeof(ValT)),
443 typedef NodeBase<std::pair<KeyT, KeyT>, ValT, LeafSize> LeafBase;
452 static_cast<unsigned>(sizeof(KeyT) + sizeof(void*))
558 template <typename KeyT, typename ValT, unsigned N, typename Traits>
559 class LeafNode : public NodeBase<std::pair<KeyT, KeyT>, ValT, N> {
561 const KeyT &start(unsigned i) const { return this->first[i].first; } in start()
562 const KeyT &stop(unsigned i) const { return this->first[i].second; } in stop()
565 KeyT &start(unsigned i) { return this->first[i].first; } in start()
566 KeyT &stop(unsigned i) { return this->first[i].second; } in stop()
[all …]
DDenseMap.h34 template<typename KeyT, typename ValueT,
35 typename KeyInfoT = DenseMapInfo<KeyT>,
40 typename KeyT, typename ValueT, typename KeyInfoT>
43 typedef std::pair<KeyT, ValueT> BucketT;
47 typedef KeyT key_type;
51 typedef DenseMapIterator<KeyT, ValueT, KeyInfoT> iterator;
52 typedef DenseMapIterator<KeyT, ValueT,
89 const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey(); in clear()
104 size_type count(const KeyT &Val) const { in count()
109 iterator find(const KeyT &Val) { in find()
[all …]
DMapVector.h28 template<typename KeyT, typename ValueT,
29 typename MapType = llvm::DenseMap<KeyT, unsigned>,
30 typename VectorType = std::vector<std::pair<KeyT, ValueT> > >
65 std::pair<KeyT, ValueT> &front() { return Vector.front(); } in front()
66 const std::pair<KeyT, ValueT> &front() const { return Vector.front(); } in front()
67 std::pair<KeyT, ValueT> &back() { return Vector.back(); } in back()
68 const std::pair<KeyT, ValueT> &back() const { return Vector.back(); } in back()
75 ValueT &operator[](const KeyT &Key) {
76 std::pair<KeyT, unsigned> Pair = std::make_pair(Key, 0);
86 ValueT lookup(const KeyT &Key) const { in lookup()
[all …]
DSparseSet.h63 template<typename KeyT, typename ValueT, typename KeyFunctorT>
72 template<typename KeyT, typename KeyFunctorT>
73 struct SparseSetValFunctor<KeyT, KeyT, KeyFunctorT> {
74 unsigned operator()(const KeyT &Key) const {
125 typedef typename KeyFunctorT::argument_type KeyT;
132 SparseSetValFunctor<KeyT, ValueT, KeyFunctorT> ValIndexOf;
224 iterator find(const KeyT &Key) {
228 const_iterator find(const KeyT &Key) const {
235 size_type count(const KeyT &Key) const {
262 ValueT &operator[](const KeyT &Key) {
[all …]
DSparseMultiSet.h113 typedef typename KeyFunctorT::argument_type KeyT; typedef
119 SparseSetValFunctor<KeyT, ValueT, KeyFunctorT> ValIndexOf;
371 iterator find(const KeyT &Key) { in find()
375 const_iterator find(const KeyT &Key) const { in find()
382 size_type count(const KeyT &Key) const { in count()
391 bool contains(const KeyT &Key) const { in contains()
396 iterator getHead(const KeyT &Key) { return find(Key); } in getHead()
397 iterator getTail(const KeyT &Key) { in getTail()
407 RangePair equal_range(const KeyT &K) { in equal_range()
478 void eraseAll(const KeyT &K) { in eraseAll()
DImmutableMap.h59 template <typename KeyT, typename ValT,
60 typename ValInfo = ImutKeyValueInfo<KeyT,ValT> >
215 typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type value_type;
216 typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type_ref reference;
270 template <typename KeyT, typename ValT,
271 typename ValInfo = ImutKeyValueInfo<KeyT,ValT> >
298 explicit ImmutableMapRef(const ImmutableMap<KeyT, ValT> &X, in ImmutableMapRef() argument
299 typename ImmutableMap<KeyT, ValT>::Factory &F) in ImmutableMapRef() argument
356 ImmutableMap<KeyT, ValT> asImmutableMap() const { in asImmutableMap()
357 return ImmutableMap<KeyT, ValT>(Factory->getCanonicalTree(Root)); in asImmutableMap()
/external/llvm/unittests/IR/
DValueMapTest.cpp180 template<typename KeyT, typename MutexT>
181 struct LockMutex : ValueMapConfig<KeyT, MutexT> {
187 static void onRAUW(const ExtraData &Data, KeyT Old, KeyT New) { in onRAUW()
191 static void onDelete(const ExtraData &Data, KeyT Old) { in onDelete()
212 template<typename KeyT>
213 struct NoFollow : ValueMapConfig<KeyT> {
234 template<typename KeyT>
235 struct CountOps : ValueMapConfig<KeyT> {
241 static void onRAUW(const ExtraData &Data, KeyT Old, KeyT New) { in onRAUW()
244 static void onDelete(const ExtraData &Data, KeyT Old) { in onDelete()
[all …]
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp54 template<class KeyT, class ValueT>
57 typedef DenseMap<KeyT, size_t> MapTy;
60 typedef std::vector<std::pair<KeyT, ValueT> > VectorTy;
88 ValueT &operator[](const KeyT &Arg) { in operator []()
101 insert(const std::pair<KeyT, ValueT> &InsertPair) { in insert() argument
113 iterator find(const KeyT &Key) { in find()
119 const_iterator find(const KeyT &Key) const { in find()
128 void blot(const KeyT &Key) { in blot()
131 Vector[It->second].first = KeyT(); in blot()
/external/clang/lib/Sema/
DSemaExprObjC.cpp833 QualType KeyT = Method->parameters()[1]->getType(); in BuildObjCDictionaryLiteral() local
834 const PointerType *PtrKey = KeyT->getAs<PointerType>(); in BuildObjCDictionaryLiteral()
861 << 1 << KeyT in BuildObjCDictionaryLiteral()
886 QualType KeyT = KeysT->castAs<PointerType>()->getPointeeType(); in BuildObjCDictionaryLiteral() local
894 KeyT); in BuildObjCDictionaryLiteral()
/external/llvm/docs/
DProgrammersManual.rst1438 ``MapVector<KeyT,ValueT>`` provides a subset of the DenseMap interface. The