Skip to content

Commit

Permalink
restore variable names, remove extra lines
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Sep 28, 2024
1 parent a697668 commit 86dd7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/c/weaver/weave/perfflow_weave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ bool WeavingPass::insertAfter(Module &m, Function &f, StringRef &a,
{
IRBuilder<> builder(inst);
Value *v1 = builder.CreateGlobalStringPtr(m.getName(), "str");
Value *FnNameStr = builder.CreateGlobalStringPtr(f.getName(), "str");
Value *v2 = builder.CreateGlobalStringPtr(f.getName(), "str");
Value *v3 = builder.CreateGlobalStringPtr(StringRef(scope), "str");
Value *v4 = builder.CreateGlobalStringPtr(StringRef(flow), "str");
Value *v5 = builder.CreateGlobalStringPtr(StringRef(pcut), "str");
std::vector<Value *> args;
args.push_back(ConstantInt::get(Type::getInt32Ty(context), async));
args.push_back(v1);
args.push_back(FnNameStr);
args.push_back(v2);
args.push_back(v3);
args.push_back(v4);
args.push_back(v5);
Expand Down Expand Up @@ -167,15 +167,15 @@ bool WeavingPass::insertBefore(Module &m, Function &f, StringRef &a,
auto &entry = f.getEntryBlock();
IRBuilder<> builder(&entry);
Value *v1 = builder.CreateGlobalStringPtr(m.getName(), "str");
Value *FnNameStr = builder.CreateGlobalStringPtr(f.getName(), "str");
Value *v2 = builder.CreateGlobalStringPtr(f.getName(), "str");
Value *v3 = builder.CreateGlobalStringPtr(StringRef(scope), "str");
Value *v4 = builder.CreateGlobalStringPtr(StringRef(flow), "str");
Value *v5 = builder.CreateGlobalStringPtr(StringRef(pcut), "str");
builder.SetInsertPoint(&entry, entry.begin());
std::vector<Value *> args;
args.push_back(ConstantInt::get(Type::getInt32Ty(context), async));
args.push_back(v1);
args.push_back(FnNameStr);
args.push_back(v2);
args.push_back(v3);
args.push_back(v4);
args.push_back(v5);
Expand Down
1 change: 0 additions & 1 deletion src/c/weaver/weave/perfflow_weave.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class WeavingPass : public FunctionPass
public:
FunctionCallee CaliBeginRegion;
FunctionCallee CaliEndRegion;

static char ID;
WeavingPass () : FunctionPass (ID) {}
virtual bool doInitialization (Module &m);
Expand Down

0 comments on commit 86dd7c3

Please sign in to comment.