assert that a var is a PPV
| 180 | |
| 181 | //! assert that a var is a PPV |
| 182 | ExecutionMask* check_ppv(VarNode* var) const { |
| 183 | auto mask = require_mask_from_var(var); |
| 184 | mgb_throw_if( |
| 185 | mask->owner() != var, GraphError, |
| 186 | "a conditional var is not PPV: mask=%s var=%s", mask2str(mask).c_str(), |
| 187 | cg::dump_var_info({var}).c_str()); |
| 188 | return mask; |
| 189 | } |
| 190 | }; |
| 191 | MGB_TYPEINFO_OBJ_IMPL(CondExecPred::GlobalRegistry); |
| 192 |
no test coverage detected