blob: ccbbf40494e108e5a054b94d5fe2335f6f2c5e65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// slang-ir-string-hash.h
#pragma once
#include "slang-ir.h"
#include "../core/slang-string-slice-pool.h"
namespace Slang
{
struct IRModule;
struct SharedIRBuilder;
// Finds the global GlobalHashedStringLiterals instruction for the module if there is one, and then
// adds all of it's strings to ioPool.
void findGlobalHashedStringLiterals(IRModule* module, StringSlicePool& ioPool);
// Given a pool, with > 0 strings adds a GlobalHashedStringLiterals to the module.
void addGlobalHashedStringLiterals(const StringSlicePool& pool, SharedIRBuilder& sharedBuilder);
} // namespace Slang
|