예제 #1
0
 /// <summary>
 /// Handles utility functions.
 /// </summary>
 /// <param name="context">The current invocation context.</param>
 /// <param name="attribute">The intrinsic attribute.</param>
 /// <returns>The resulting value.</returns>
 private static ValueReference HandleUtilityOperation(
     ref InvocationContext context,
     UtilityIntrinsicAttribute attribute) =>
 context.Builder.CreateIfPredicate(
     context.Location,
     context[0],
     context[1],
     context[2]);
예제 #2
0
 /// <summary>
 /// Handles utility functions.
 /// </summary>
 /// <param name="context">The current invocation context.</param>
 /// <param name="attribute">The intrinsic attribute.</param>
 /// <returns>The resulting value.</returns>
 private static ValueReference HandleUtilityOperation(
     ref InvocationContext context,
     UtilityIntrinsicAttribute attribute) =>
 attribute.IntrinsicKind switch
 {