liberty/lib/Utilities/InlineFunctionWithVmap.cpp
// isUsedByLifetimeMarker - Check whether this Value is used by a lifetime
// intrinsic.
Check whether this Value is used by a lifetime
intrinsic.
Check whether this Value is used by a lifetime intrinsic .
static bool isUsedByLifetimeMarker(Value *V) {
  for (Value::user_iterator UI = V->user_begin(), UE = V->user_end(); UI != UE;
       ++UI) {
    if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(*UI)) {
      switch (II->getIntrinsicID()) {
      default: break;
      case Intrinsic::lifetime_start:
      case Intrinsic::lifetime_end:
        return true;
      }
    }
  }
  return false;
}
static bool isUsedByLifetimeMarker ( Value * V ) { for ( Value :: user_iterator UI = V -> user_begin ( ) , UE = V -> user_end ( ) ; UI != UE ; ++ UI ) { if ( IntrinsicInst * II = dyn_cast < IntrinsicInst > ( * UI ) ) { switch ( II -> getIntrinsicID ( ) ) { default : break ; case Intrinsic :: lifetime_start : case Intrinsic :: lifetime_end : return true ; } } } return false ; }
isUsedByLifetimeMarker - Check whether this Value is used by a lifetime
intrinsic.
isUsedByLifetimeMarker - Check whether this Value is used by a lifetime intrinsic .