Skip to content

Commit

Permalink
NewPassMgr builds correctly. Buildlegacy pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatki committed Sep 24, 2024
1 parent cd038cb commit 9103cc1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/c/weaver/weave/perfflow_weave_legacy_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
//#include "llvm/IR/Module.h"
// #include "llvm/IR/Argument.h"
// #include "llvm/IR/IRBuilder.h"
// #include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/Support/raw_ostream.h"

// #include "../../parser/perfflow_parser.hpp"
#include "perfflow_weave_legacy_pass.hpp"
#include "perfflow_weave_common.hpp"

using namespace llvm;

Expand Down Expand Up @@ -146,8 +147,10 @@ bool WeavingPass::doInitialization(Module &m)
{
outs() << "WeavePass loaded successfully. \n";

bool changed = false;
WeaveCommon weaver;
weaver.modifyAnnotatedFunctions(m);

changed = weaver.modifyAnnotatedFunctions(m);

// auto annotations = m.getNamedGlobal("llvm.global.annotations");
// if (!annotations)
Expand Down

0 comments on commit 9103cc1

Please sign in to comment.