MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / getStringIndex

Method getStringIndex

lib/Bytecode/Writer/BytecodeWriter.cpp:246–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244namespace {
245struct StringManager {
246 uint64_t getStringIndex(StringRef str) {
247 auto it = stringIndexMap.find(str);
248 if (it != stringIndexMap.end())
249 return it->second;
250 uint64_t index = stringIndexMap.size();
251 stringIndexMap[str] = index;
252 return index;
253 }
254
255 LogicalResult writeStringSection(raw_ostream &stream) {
256 SmallVector<char> buffer;

Callers 6

serializeMethod · 0.80
writeSingleAttributeMethod · 0.80
writeOpAttributeMethod · 0.80
buildFunctionMapMethod · 0.80
writeGlobalSectionFunction · 0.80
writeProducerSectionFunction · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected