Lib/Target/Emulator.cpp
// Given an assignment condition and an vector index, determine if the
// condition is true at that index using the implicit condition flags.
Given an assignment condition and an vector index, determine if the
condition is true at that index using the implicit condition flags.
Given an assignment condition and an vector index determine if the condition is true at that index using the implicit condition flags .
inline bool checkAssignCond(QPUState* s, AssignCond cond, int i) {
  using Tag = AssignCond::Tag;
  switch (cond.tag) {
    case Tag::NEVER:  return false;
    case Tag::ALWAYS: return true;
    case Tag::FLAG:
      switch (cond.flag) {
        case ZS: return  s->zeroFlags[i];
        case ZC: return !s->zeroFlags[i];
        case NS: return  s->negFlags[i];
        case NC: return !s->negFlags[i];
      }
  }
  assert(false);
  return false;
}
inline bool checkAssignCond ( QPUState * s , AssignCond cond , int i ) { using Tag = AssignCond :: Tag ; switch ( cond . tag ) { case Tag :: NEVER : return false ; case Tag :: ALWAYS : return true ; case Tag :: FLAG : switch ( cond . flag ) { case ZS : return s -> zeroFlags [ i ] ; case ZC : return ! s -> zeroFlags [ i ] ; case NS : return s -> negFlags [ i ] ; case NC : return ! s -> negFlags [ i ] ; } } assert ( false ) ; return false ; }
Given an assignment condition and an vector index, determine if the
condition is true at that index using the implicit condition flags.
Given an assignment condition and an vector index determine if the condition is true at that index using the implicit condition flags .
// Unreachable