Skip to content

Commit

Permalink
Create a new branch based on the NewPassManager to test Adiak related…
Browse files Browse the repository at this point in the history
… things
  • Loading branch information
tpatki committed Sep 25, 2024
1 parent ec15008 commit 89fcfca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/c/weaver/weave/perfflow_weave_new_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ bool NewWeavingPass::runOnModule(Module &M)
WeaveCommon weaver;
changed = weaver.modifyAnnotatedFunctions(M);

// Placeholder: search for the main() function to insert an Adiak call
// Todo: Test Main Entry and Exit here
// Test an Adiak Callback
// Test writing to the metadata in object format
for (auto &F : M)
{
if (F.isDeclaration())
{
continue;
}

if (F.getName().str() == "main")
{
outs() << "We found main! We will insert Adiak call here eventually.\n";
continue;
}
}

return changed;
}

Expand Down

0 comments on commit 89fcfca

Please sign in to comment.