/// <summary>
            /// Constructs a new predicate scope.
            /// </summary>
            /// <param name="registerAllocator">The parent register allocator.</param>
            internal PredicateScope(PTXRegisterAllocator registerAllocator)
            {
                Debug.Assert(registerAllocator != null, "Invalid register allocator");

                RegisterAllocator = registerAllocator;
                PredicateRegister = registerAllocator.AllocateRegister(
                    BasicValueType.Int1,
                    PTXRegisterKind.Predicate);
            }
Exemple #2
0
            public PredicateScope(PTXRegisterAllocator registerAllocator)
            {
                Debug.Assert(registerAllocator != null, "Invalid register allocator");

                RegisterAllocator = registerAllocator;
                PredicateRegister = registerAllocator.AllocateRegister(
                    new RegisterDescription(
                        BasicValueType.Int1,
                        PTXRegisterKind.Predicate));
            }