LLVM  15.0.0git
Classes | Namespaces
IndexedMap.h File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/STLExtras.h"
#include <cassert>
Include dependency graph for IndexedMap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  llvm::IndexedMap< T, ToIndexT >


 This is an optimization pass for GlobalISel generic memory operations.

Detailed Description

This file implements an indexed map. The index map template takes two types. The first is the mapped type and the second is a functor that maps its argument to a size_t. On instantiation a "null" value can be provided to be used as a "does not exist" indicator in the map. A member function grow() is provided that given the value of the maximally indexed key (the argument of the functor) makes sure the map has enough space for it.

Definition in file IndexedMap.h.