ILGPU  0.9.0
ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope Struct Reference

Represents a scoped predicate-register allocation. More...

Inheritance diagram for ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope:

Public Member Functions

 PredicateScope (HardwareRegister predicateRegister)
 Constructs a new predicate register. More...
 
PredicateConfiguration GetConfiguration (bool isTrue)
 Resolves a new predicate configuration. More...
 
void ConvertToValue (PTXCodeGenerator codeGenerator, HardwareRegister targetRegister)
 Converts the underlying predicate register to a default target register. More...
 
void Dispose ()
 Frees the allocated predicate register. More...
 

Properties

PTXRegisterAllocator RegisterAllocator [get]
 The associated register allocator. More...
 
HardwareRegister PredicateRegister [get]
 The allocated predicate register. More...
 

Detailed Description

Represents a scoped predicate-register allocation.

Constructor & Destructor Documentation

ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope.PredicateScope ( HardwareRegister  predicateRegister)

Constructs a new predicate register.

Parameters
predicateRegisterThe underlying predicate register.

Member Function Documentation

void ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope.ConvertToValue ( PTXCodeGenerator  codeGenerator,
HardwareRegister  targetRegister 
)

Converts the underlying predicate register to a default target register.

Parameters
codeGeneratorThe target code generator.
targetRegisterThe target register to write to.
void ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope.Dispose ( )

Frees the allocated predicate register.

PredicateConfiguration ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope.GetConfiguration ( bool  isTrue)

Resolves a new predicate configuration.

Property Documentation

HardwareRegister ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope.PredicateRegister
get

The allocated predicate register.

PTXRegisterAllocator ILGPU.Backends.PTX.PTXCodeGenerator.PredicateScope.RegisterAllocator
get

The associated register allocator.


The documentation for this struct was generated from the following file: