示例#1
0
 void addExtraParent(ConditionalContextInfo * nextParent, bool noteManyUnconditionalParents)
 {
     hasSharedParent = true;
     //We only care about parents of conditional expressions
     if (!isUnconditional() || noteManyUnconditionalParents || canSurroundWithAlias(original))
     {
         extraParents.append(nextParent);
     }
 }
示例#2
0
void InstBr::dump(const Cfg *Func) const {
  Ostream &Str = Func->getContext()->getStrDump();
  dumpDest(Func);
  Str << "br ";
  if (!isUnconditional()) {
    Str << "i1 ";
    getCondition()->dump(Func);
    Str << ", label %" << getTargetTrue()->getName() << ", ";
  }
  Str << "label %" << getTargetFalse()->getName();
}