14#ifndef LLVM_ADT_SMALLVECTOREXTRAS_H
15#define LLVM_ADT_SMALLVECTOREXTRAS_H
23template <
unsigned Size,
class ContainerTy,
class FuncTy>
25 return to_vector<Size>(
26 map_range(std::forward<ContainerTy>(
C), std::forward<FuncTy>(
F)));
28template <
class ContainerTy,
class FuncTy>
31 map_range(std::forward<ContainerTy>(
C), std::forward<FuncTy>(
F)));
This file defines the SmallVector class.
@ C
The default llvm calling convention, compatible with C.
This is an optimization pass for GlobalISel generic memory operations.
auto map_to_vector(ContainerTy &&C, FuncTy &&F)
Map a range to a SmallVector with element types deduced from the mapping.
auto map_range(ContainerTy &&C, FuncTy F)
SmallVector< ValueTypeFromRangeType< R >, Size > to_vector(R &&Range)
Given a range of type R, iterate the entire range and return a SmallVector with elements of the vecto...