Skip to content

Commit

Permalink
Test one level up with Clang 16. We can switch based on Clang version…
Browse files Browse the repository at this point in the history
… if that works.
  • Loading branch information
tpatki committed Sep 26, 2024
1 parent 193a227 commit aa09005
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/c/weaver/weave/perfflow_weave_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ bool weave_ns::WeaveCommon::modifyAnnotatedFunctions(Module &m)
outs() << "Printing e's operands: \n";
for (unsigned int k=0; k < e->getNumOperands(); k++)
{
outs() << " Operand " << k << " name is " << e->getOperand(k)->getName() << "\n";
outs() << " Operand " << k << " name is: " << e->getOperand(k)->getName() << "\n";
outs() << "Operand " << k << " has " << e->getOperand(k)->getNumOperands() << " operands \n";
}
// outs() << "e's 0 operand has " << e->getOperand(0)->getNumOperands() << "\n";
Expand All @@ -70,11 +70,13 @@ bool weave_ns::WeaveCommon::modifyAnnotatedFunctions(Module &m)
// outs() << "e's 4 operand name " << e->getOperand(4)->getName() << "\n";
}

if (auto *fn = dyn_cast<Function> (e->getOperand(0)->getOperand(0)))
// if (auto *fn = dyn_cast<Function> (e->getOperand(0)->getOperand(0)))
if (auto *fn = dyn_cast<Function> (e->getOperand(0)))
{
outs() << "I entered the part where we parse annotations. \n";
auto anno = cast<ConstantDataArray>(
cast<GlobalVariable>(e->getOperand(1)->getOperand(0))
// cast<GlobalVariable>(e->getOperand(1)->getOperand(0))
cast<GlobalVariable>(e->getOperand(1))
->getOperand(0))
->getAsCString();
std::string pcut, scope, flow;
Expand Down

0 comments on commit aa09005

Please sign in to comment.