source: icGREP/icgrep-devel/icgrep/pablo/symbol_generator.h @ 4272

Last change on this file since 4272 was 4252, checked in by nmedfort, 4 years ago

Transitory check-in; initial integration of pablo Next nodes and enforcement of SSA form for all Assign nodes.

File size: 639 bytes
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef SYMBOL_GENERATOR_H
8#define SYMBOL_GENERATOR_H
9
10#include <string>
11#include <unordered_map>
12
13namespace pablo {
14
15class String;
16
17class SymbolGenerator
18{
19public:
20    SymbolGenerator();
21
22    String * get(const std::string name);
23
24    String * get_ssa(const std::string prefix);
25
26private:
27    std::unordered_map<std::string, unsigned>   mPrefixMap;
28    std::unordered_map<std::string, String *>   mStringMap;
29};
30
31}
32
33#endif // SYMBOL_GENERATOR_H
Note: See TracBrowser for help on using the repository browser.