summaryrefslogtreecommitdiff
path: root/mem_mapping_utils.hh
diff options
context:
space:
mode:
authorDerick Huth <derickhuth@gmail.com>2015-09-24 12:22:41 -0600
committerDerick Huth <derickhuth@gmail.com>2015-09-24 12:22:41 -0600
commit4631ad76927d433da5d55c3c373a1dfd0f74c9d4 (patch)
treef8dcba88576ec95e403f0c14efd80e970f30a260 /mem_mapping_utils.hh
parent6eb2b89896da66a77d0dcdf2d72b98c122826949 (diff)
parent0cff3f9a3c4ccd434900162ebef4bd814850f481 (diff)
downloadchill-4631ad76927d433da5d55c3c373a1dfd0f74c9d4.tar.gz
chill-4631ad76927d433da5d55c3c373a1dfd0f74c9d4.tar.bz2
chill-4631ad76927d433da5d55c3c373a1dfd0f74c9d4.zip
Merge pull request #7 from dhuth/master
V0.2.1
Diffstat (limited to 'mem_mapping_utils.hh')
-rw-r--r--mem_mapping_utils.hh59
1 files changed, 0 insertions, 59 deletions
diff --git a/mem_mapping_utils.hh b/mem_mapping_utils.hh
deleted file mode 100644
index 8ff0545..0000000
--- a/mem_mapping_utils.hh
+++ /dev/null
@@ -1,59 +0,0 @@
-#ifndef MEM_MAPPING_UTILS_HH
-#define MEM_MAPPING_UTILS_HH
-
-#include <vector>
-#include <string.h>
-#include <map>
-#include "rose.h"
-
-using namespace SageInterface;
-using namespace SageBuilder;
-
-struct VarDefs;
-
-class memory_mapping {
-private:
- bool mem_used;
- std::vector< std::string > mapped_array_name;
- std::map<std::string, SgVariableSymbol*> mapped_symbol;
- std::map<std::string, VarDefs*> vardefs;
-public:
- memory_mapping();
- memory_mapping(bool used, const char* array_name);
- void add(const char* array_name);
- bool is_mem_used();
- bool is_array_mapped(const char* array_name);
- void set_mapped_symbol(const char* array_name, SgVariableSymbol* sym);
- void set_vardef(const char* array_name, VarDefs* vardef);
- SgVarRefExp* get_mapped_symbol_exp(const char* array_name);
- VarDefs* get_vardef(const char* vardef_name);
-};
-
-//protonu --class introduced to hold texture memory information in one single place
-//this might help me get over the weird memory issues I am having with the Loop class
-//where someone/something corrupts my memory
-
-class texture_memory_mapping : public memory_mapping {
-private:
- std::map<std::string, SgVariableSymbol*> devptr_symbol;
- // a hack for multi-dimensional texture mapping
- //std::map<std::string, std::vector<int> > dims;
-public:
- texture_memory_mapping ( bool used, const char * array_name);
- //texture_memory_mapping (bool used, const char* array_name, int width, int height);
- // this function is a hack to get arround a bug
- // void add(const char* array_name, int width, int height);
- void set_devptr_symbol(const char * array_name, SgVariableSymbol* sym);
- SgVarRefExp* get_devptr_symbol_exp(const char * array_name);
- //int get_dim_length(const char* array_name, int dim);
- //int get_dims(const char* array_name);
- texture_memory_mapping();
-};
-
-class constant_memory_mapping : public memory_mapping {
-public:
- constant_memory_mapping();
- constant_memory_mapping(bool used, const char* array_name);
-};
-
-#endif