Skip to content
Snippets Groups Projects
Commit a2850070 authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

Added calls to the two new functions. Change metadata and addrspace

parent d52798fd
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ namespace {
//Functions
std::string getKernelsModuleName(Module &M);
void changeAddrspace(int i);
void changeArgAddrspace(Function* F, unsigned i);
void addCLMetadata(Function* F);
void writeKernelsModule();
void transformFunctionToVoid(Function* F);
......@@ -841,6 +841,8 @@ namespace {
re = IItoRemove.rend(); ri != re; ++ri)
(*ri)->eraseFromParent();
changeArgAddrspace(F_nvptx, 1);
addCLMetadata(F_nvptx);
DEBUG(errs() << KernelM);
return;
......@@ -872,7 +874,7 @@ namespace {
return mid.append("_kernels.ll");
}
void CodeGenTraversal::changeAddrspace(int i) {
void CodeGenTraversal::changeArgAddrspace(Function* F, unsigned i) {
}
void CodeGenTraversal::addCLMetadata(Function* F) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment