// Obtain the name of the RegMask for an OperandForm const char *ArchDesc::reg_mask(OperandForm &opForm) { const char *regMask = "RegMask::Empty"; // Check constraints on result's register class const char *result_class = opForm.constrained_reg_class(); assert( result_class, "Resulting register class was not defined for operand"); regMask = reg_class_to_reg_mask( result_class ); return regMask; }
// Obtain the name of the RegMask for an OperandForm const char *ArchDesc::reg_mask(OperandForm &opForm) { const char *regMask = "RegMask::Empty"; // Check constraints on result's register class const char *result_class = opForm.constrained_reg_class(); if (result_class == NULL) { opForm.dump(); syntax_err(opForm._linenum, "Use of an undefined result class for operand: %s", opForm._ident); abort(); } regMask = reg_class_to_reg_mask( result_class ); return regMask; }