Example #1
0
std::string getComponentNameFromCallInst( CallInst* compIter )
{
  assert( isROCCCFunctionCall(compIter, ROCCCNames::InvokeHardware) and "Not a component call!" );
  Constant* tmpCast = dynamic_cast<Constant*>(compIter->getOperand(1)) ;
  assert(tmpCast and "Component name must be a constant!");
  return tmpCast->getStringValue() ;
}