Ejemplo n.º 1
0
 public MvexInstructionInfo(EnumValue tupleType, MvexEHBit ehBit, MvexConvFn convFn, byte validConvFns, byte validSwizzleFns)
 {
     TupleTypeLutKind = tupleType;
     EHBit            = ehBit;
     ConvFn           = convFn;
     ValidConvFns     = validConvFns;
     ValidSwizzleFns  = validSwizzleFns;
     Flags1           = MvexInfoFlags1.None;
     Flags2           = MvexInfoFlags2.None;
 }
Ejemplo n.º 2
0
 public CodeFormatter(StringBuilder sb, RegisterDef[] regDefs, MemorySizeDefs memSizeTbl, string codeMnemonic, string?codeSuffix,
                      string?codeMemorySize, string?codeMemorySizeSuffix, EnumValue memSize, EnumValue memSizeBcst, InstructionDefFlags1 flags1,
                      MvexInfoFlags1 mvexFlags, EncodingKind encoding, OpCodeOperandKindDef[] opKinds, bool isKnc)
 {
     if (codeMnemonic == string.Empty)
     {
         throw new ArgumentOutOfRangeException(nameof(codeMnemonic));
     }
     this.sb                   = sb;
     this.regDefs              = regDefs;
     this.memSizeTbl           = memSizeTbl;
     this.codeMnemonic         = codeMnemonic;
     this.codeSuffix           = codeSuffix;
     this.codeMemorySize       = codeMemorySize;
     this.codeMemorySizeSuffix = codeMemorySizeSuffix;
     this.memSize              = memSize;
     this.memSizeBcst          = memSizeBcst;
     this.flags1               = flags1;
     this.mvexFlags            = mvexFlags;
     this.encoding             = encoding;
     this.opKinds              = opKinds;
     this.isKnc                = isKnc;
 }