public void AddOperand <T>(T value) where T : struct { if (!typeof(T).IsPrimitive && !typeof(T).IsEnum) { throw new InvalidOperationException(); } AddOperand(LiteralInteger.CreateForEnum(value)); }
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))); }
public void AddOperand <T>(T value) where T : Enum { AddOperand(LiteralInteger.CreateForEnum(value)); }