Example #1
0
 /// <summary>
 /// Creates a memory intrinsic prototype.
 /// </summary>
 /// <param name="operatorName">
 /// The name of the operator represented by the memory intrinsic.
 /// </param>
 /// <param name="resultType">
 /// The type of value produced by the intrinsic to create.
 /// </param>
 /// <param name="parameterTypes">
 /// The types of the values the intrinsic takes as arguments.
 /// </param>
 /// <returns>
 /// A memory intrinsic prototype.
 /// </returns>
 public static IntrinsicPrototype CreatePrototype(
     string operatorName,
     IType resultType,
     IReadOnlyList <IType> parameterTypes)
 {
     return(IntrinsicPrototype.Create(
                Namespace.GetIntrinsicName(operatorName),
                resultType,
                parameterTypes));
 }
 /// <summary>
 /// Creates an arithmetic intrinsic prototype.
 /// </summary>
 /// <param name="operatorName">
 /// The name of the operator represented by the arithmetic intrinsic.
 /// </param>
 /// <param name="resultType">
 /// The type of value produced by the intrinsic to create.
 /// </param>
 /// <param name="parameterTypes">
 /// The types of the values the intrinsic takes as arguments.
 /// </param>
 /// <returns>
 /// An arithmetic intrinsic prototype.
 /// </returns>
 public static IntrinsicPrototype CreatePrototype(
     string operatorName,
     IType resultType,
     IReadOnlyList <IType> parameterTypes)
 {
     // TODO: exception specification?
     return(IntrinsicPrototype.Create(
                GetArithmeticIntrinsicName(operatorName),
                resultType,
                parameterTypes));
 }