Ejemplo n.º 1
0
        public void AddOperand <T>(T value) where T : struct
        {
            if (!typeof(T).IsPrimitive && !typeof(T).IsEnum)
            {
                throw new InvalidOperationException();
            }

            AddOperand(LiteralInteger.CreateForEnum(value));
        }
Ejemplo n.º 2
0
 public Instruction OpenClVstorea_halfn_r(Instruction resultType, Instruction data, Instruction offset, Instruction p, FPRoundingMode mode)
 {
     return(ExtInst(resultType, AddExtInstImport("OpenCL.std"), 181, data, offset, p, LiteralInteger.CreateForEnum(mode)));
 }
Ejemplo n.º 3
0
 public void AddOperand <T>(T value) where T : Enum
 {
     AddOperand(LiteralInteger.CreateForEnum(value));
 }