def add_custom_layout_operand(self, aRegCount, aElemWidth):
     layout_opr = Operand()
     layout_opr.name = "custom"
     layout_opr.type = "VectorLayout"
     layout_opr.oclass = "CustomLayoutOperand"
     layout_opr.regCount = aRegCount
     layout_opr.elemWidth = aElemWidth
     self.mInstr.insert_operand(0, layout_opr)
 def add_whole_register_layout_operand(self,
                                       aRegCount=1,
                                       aRegIndexAlignment=1):
     layout_opr = Operand()
     layout_opr.name = "whole"
     layout_opr.type = "VectorLayout"
     layout_opr.oclass = "WholeRegisterLayoutOperand"
     layout_opr.regCount = aRegCount
     layout_opr.regIndexAlignment = aRegIndexAlignment
     self.mInstr.insert_operand(0, layout_opr)