Skip to content
Snippets Groups Projects
Commit 10e2dff7 authored by kotsifa2's avatar kotsifa2
Browse files

Debug messages and laying out some specific steps

parent 50445526
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,8 @@ namespace { ...@@ -100,6 +100,8 @@ namespace {
}; };
// Right now, only targeting the one level case. In general, device functions
// can return values so we don't need to change them
void CodeGenTraversal::codeGen(DFInternalNode* N) { void CodeGenTraversal::codeGen(DFInternalNode* N) {
if (!KernelLaunchNode) { if (!KernelLaunchNode) {
...@@ -109,9 +111,14 @@ namespace { ...@@ -109,9 +111,14 @@ namespace {
if (N == KernelLaunchNode) { if (N == KernelLaunchNode) {
DEBUG(errs() << "Found kernel launch node. Generating host code.\n"); DEBUG(errs() << "Found kernel launch node. Generating host code.\n");
//TODO
DEBUG(errs() << "Changing pointer address spaces to addrspace 1.\n");
//TODO
} else { } else {
DEBUG(errs() << "Found intermediate node. Generating device code.\n"); DEBUG(errs() << "Found intermediate node. Generating device code.\n");
//TODO
DEBUG(errs() << "Changing leaf node function to device function.\n"); DEBUG(errs() << "Changing leaf node function to device function.\n");
//TODO
} }
} }
......
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