1#ifndef LLVM_DWP_DWPSTRINGPOOL_H
2#define LLVM_DWP_DWPSTRINGPOOL_H
21 assert(strlen(Str) + 1 ==
Length &&
"Ensure length hint is correct");
24 auto Pair = Pool.insert(std::make_pair(
Key, Offset));
26 Buffer.insert(Buffer.end(), Str, Str +
Length);
30 return Pair.first->second;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file defines the DenseMap class.
This file defines the SmallVector class.
uint64_t getOffset(const char *Str, unsigned Length)
DWPStringPool(SmallVectorImpl< char > &Buffer)
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ATTRIBUTE_VISIBILITY_DEFAULT AnalysisKey InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key