Beispiel #1
0
            /// <summary>
            /// Appends a pointer cast to an intrinsic atomic pointer type.
            /// </summary>
            /// <param name="type">The arithmetic type to use.</param>
            public void AppendAtomicCast(ArithmeticBasicValueType type)
            {
                var typeExpression = CLTypeGenerator.GetAtomicType(type);

                if (typeExpression == null)
                {
                    return;
                }
                AppendCast(typeExpression + CLInstructions.DereferenceOperation);
            }