|
CorTeX Core ABI 7
ToolTech Software · C++ library reference
|
Go to the source code of this file.
Classes | |
| class | ctxVirtualMachineProgram |
| struct | ctxVirtualMachineProgramInfo |
| class | ctxCommandBufferSubRoutine |
| class | ctxRegisterAccessDependacy |
| class | ctxRegisterWriter |
| class | ctxProgramRegisterAccessInfo |
| struct | ctxParallelExecution |
| class | ctxExecutionCostModel |
| class | ctxRegisterUseInfo |
| class | ctxOptimizerStats |
| class | ctxReduceProfile |
| class | ctxRegisterUse |
| class | ctxDetailedRegisterUse |
| class | ctxRegisterTranslation |
| class | ctxVirtualMachine |
Typedefs | |
| typedef gzBool(*) | ctxVirtualMachineProgramFunc(ctxVirtualMachineProgram *program) |
Functions | |
| GZ_USE_BIT_LOGIC (ctxOptimizeFlags) | |
| GZ_USE_BIT_LOGIC (ctxCompileStatus) | |
| GZ_USE_BIT_LOGIC (ctxReduceFlags) | |
| GZ_USE_BIT_LOGIC (ctxProgramExecution) | |
| ctxCommandBufferSubRoutine | ctxGetCommandBufferInfo (const gzUInt32 *commands, gzUInt32 command_len, gzUInt32 start_index=0) |
| gzArray< ctxCommandBufferSubRoutine > | ctxParallelCommandBufferSubRoutine (gzUInt32 *commands, gzUInt32 *destinationParallelCommands, ctxCommandBufferSubRoutine subroutine, gzBool combineSmallPackages=FALSE) |
| gzBool | ctxUpdateCommandBufferDependancies (gzUInt32 *commands, gzArray< ctxCommandBufferSubRoutine > &subroutines, ctxRegisterUseInfo *updates=NULL) |
| gzBool | ctxBuildCommandBufferPasses (gzUInt32 *commands, gzArray< ctxCommandBufferSubRoutine > &subroutines, ctxRegisterUseInfo *updates=NULL) |
| Build the same hazard-safe passes without retaining diagnostic dependency lists. | |
| gzBool | ctxGetProgramRegisterAccessInfo (gzUInt32 *commands, gzArray< ctxCommandBufferSubRoutine > &subroutines, gzArray< ctxProgramRegisterAccessInfo > &access, gzRefList< ctxRegisterAccessDependacy > &depends, ctxRegisterUseInfo *updates=NULL) |
| gzUInt32 | ctxBuildParallelExecutionInfo (gzArray< ctxParallelExecution > &executionInfo, gzArray< ctxParallelExecution > &executionData, gzArray< ctxCommandBufferSubRoutine > &subroutines) |
| gzDouble | ctxGetParallelProgramExecCost (const gzUInt32 *commands, const ctxParallelExecution &execution, const ctxExecutionCostModel &costModel) |
| gzDouble | ctxGetParallelPassExecCost (const gzUInt32 *commands, const ctxParallelExecution &passInfo, const gzArray< ctxParallelExecution > &executionData, const ctxExecutionCostModel &costModel) |
| gzDouble | ctxGetParallelPlanExecCost (const gzUInt32 *commands, const gzArray< ctxParallelExecution > &executionInfo, const gzArray< ctxParallelExecution > &executionData, const ctxExecutionCostModel &costModel) |
| gzUInt32 | ctxHasRecallValues (gzUInt32 *commands, gzUInt32 search_index) |
| gzBool | ctxBuildParallelCommandOrigins (const ctxVirtualMachineProgram *program, const gzArray< gzUInt32 > ¶llelCommands, const gzArray< ctxCommandBufferSubRoutine > &routines, gzArray< gzUInt32 > &origins, gzBool &preserveDropCommands) |
| Preserve original CAL word positions after backend partitioning. | |
| gzUInt32 | ctxGetSubRoutineLength (gzArray< ctxCommandBufferSubRoutine > &subroutines) |
| gzUInt32 | ctxGetProgramMaxRegisterSize (gzUInt32 *commands, gzArray< ctxCommandBufferSubRoutine > &subroutines) |
| gzVoid | ctxRebuildSubroutines (gzArray< ctxParallelExecution > &executionInfo, gzArray< ctxParallelExecution > &executionData, gzArray< ctxCommandBufferSubRoutine > &result) |
| gzUInt32 | ctxCopyCommandBuffer (gzUInt32 *destination, gzUInt32 *source, gzUInt32 length, gzBool addSkipCommand=FALSE, gzUInt32 *instructions=nullptr) |
| ctxRegisterUseInfo | ctxGetRegisterUsage (gzUInt32 *commands, gzUInt32 length, ctxDetailedRegisterUse *detail=NULL, gzUInt32 pass=0, gzUInt32 program=0) |
| gzArray< ctxRegisterUseInfo > | ctxGetRegisterUsage (gzUInt32 program, gzArray< ctxParallelExecution > &executionInfo, gzArray< ctxParallelExecution > &executionData, gzUInt32 *source, ctxDetailedRegisterUse *detail=NULL) |
| gzUInt32 | ctxCombineParallelExecutionInfo (gzUInt32 *commands, gzUInt32 length, gzArray< ctxParallelExecution > &executionInfo, gzArray< ctxParallelExecution > &executionData, gzUInt32 targetThreads) |
| gzUInt32 | ctxCombineParallelExecutionInfo (gzUInt32 *commands, gzUInt32 length, gzArray< ctxParallelExecution > &executionInfo, gzArray< ctxParallelExecution > &executionData, gzUInt32 targetThreads, gzArray< gzUInt32 > *commandOrigins) |
| Repack CAL and its original-word metadata together; preserve both on failure. | |
| gzArray< gzUInt32 > | ctxOptimizeRegisterUsage (gzDynamicArray< ctxRegisterUse > ®ister_use, gzBool sequential=FALSE, gzUInt32 *max_register_index=NULL) |
| gzUInt32 | ctxGetOptimizeLocalRegisterReductions (gzDynamicArray< ctxRegisterUse > ®ister_use, gzUInt32 *source, gzUInt32 command, gzUInt32 anti_command) |
| gzUInt32 | ctxCopyReducedBuffer (const gzUInt32 *source, gzUInt32 length, gzDynamicArray< gzUInt32 > &destination, ctxDetailedRegisterUse &detailUse, gzUInt32 pass=0, gzUInt32 program=0, ctxReduceFlags reduceFlags=CTX_REDUCE_PRESERVE_BACKPROP_BANKS, const gzDynamicArray< gzUInt32 > *valueKeepList=nullptr, ctxReduceProfile *profile=nullptr) |
| gzUInt32 | ctxGetStackSize (gzUInt32 *commands, gzUInt32 length) |
| ctxRegisterTranslation | ctxOptimizeRegisterUsage (ctxDetailedRegisterUse ®ister_use, gzBool sequential=FALSE) |
| ctxOptimizerStats | ctxGetOptimizerStats (const gzUInt32 *source, gzUInt32 length, ctxReduceFlags reduceFlags=CTX_REDUCE_PRESERVE_BACKPROP_BANKS, const gzDynamicArray< gzUInt32 > *valueKeepList=nullptr, gzBool includeParallelStats=TRUE) |
| gzBool | ctxTranslateRegisterUsage (ctxDetailedRegisterUse &detailUse, ctxRegisterTranslation &translation, gzUInt32 *source, gzUInt32 length) |
| Translate scalar operands and complete representable ranged sequences. | |
| typedef gzBool(*) ctxVirtualMachineProgramFunc(ctxVirtualMachineProgram *program) |
Definition at line 147 of file ctxVirtualMachine.h.
| enum ctxCompileStatus |
| Enumerator | |
|---|---|
| CTX_COMPILE_STATUS_NOT_COMPILED | |
| CTX_COMPILE_STATUS_COMPILED | |
| CTX_COMPILE_STATUS_OPTIMIZED | |
| CTX_COMPILE_STATUS_DISPOSE_COMMANDS | |
| CTX_COMPILE_STATUS_ERROR_IN_COMPILE | |
Definition at line 48 of file ctxVirtualMachine.h.
| enum ctxOptimizeFlags |
Definition at line 35 of file ctxVirtualMachine.h.
| enum ctxProgramExecution |
Execution flags for ctxVirtualMachine::execute.
Definition at line 491 of file ctxVirtualMachine.h.
| enum ctxReduceFlags |
| Enumerator | |
|---|---|
| CTX_REDUCE_DEFAULT | |
| CTX_REDUCE_STRIP_DROPCONNECT | |
| CTX_REDUCE_PRESERVE_BACKPROP_BANKS | |
| CTX_REDUCE_MAD_REORDER | |
| CTX_REDUCE_SPLIT_VALUE_STORESOURCE | |
Definition at line 59 of file ctxVirtualMachine.h.
| gzBool ctxBuildCommandBufferPasses | ( | gzUInt32 * | commands, |
| gzArray< ctxCommandBufferSubRoutine > & | subroutines, | ||
| ctxRegisterUseInfo * | updates = NULL ) |
Build the same hazard-safe passes without retaining diagnostic dependency lists.
Clears old dependency lists and pass numbers, checks complete RAW/WAR/WAW ordering and cycles, and reports the same register update flags. On success each subroutine has its execution pass and an empty dependencies list. Call ctxUpdateCommandBufferDependancies when dependency details are needed.
References CTX_EXPORT, and ctxBuildCommandBufferPasses().
Referenced by ctxBuildCommandBufferPasses().
| gzBool ctxBuildParallelCommandOrigins | ( | const ctxVirtualMachineProgram * | program, |
| const gzArray< gzUInt32 > & | parallelCommands, | ||
| const gzArray< ctxCommandBufferSubRoutine > & | routines, | ||
| gzArray< gzUInt32 > & | origins, | ||
| gzBool & | preserveDropCommands ) |
Preserve original CAL word positions after backend partitioning.
A one-word placeholder is sufficient for programs without forward masks. Returns failure for inconsistent or out-of-range partition metadata.
References CTX_EXPORT, and ctxBuildParallelCommandOrigins().
Referenced by ctxBuildParallelCommandOrigins().
| gzUInt32 ctxBuildParallelExecutionInfo | ( | gzArray< ctxParallelExecution > & | executionInfo, |
| gzArray< ctxParallelExecution > & | executionData, | ||
| gzArray< ctxCommandBufferSubRoutine > & | subroutines ) |
References CTX_EXPORT, and ctxBuildParallelExecutionInfo().
Referenced by ctxBuildParallelExecutionInfo().
| gzUInt32 ctxCombineParallelExecutionInfo | ( | gzUInt32 * | commands, |
| gzUInt32 | length, | ||
| gzArray< ctxParallelExecution > & | executionInfo, | ||
| gzArray< ctxParallelExecution > & | executionData, | ||
| gzUInt32 | targetThreads ) |
References CTX_EXPORT, and ctxCombineParallelExecutionInfo().
Referenced by ctxCombineParallelExecutionInfo(), and ctxCombineParallelExecutionInfo().
| gzUInt32 ctxCombineParallelExecutionInfo | ( | gzUInt32 * | commands, |
| gzUInt32 | length, | ||
| gzArray< ctxParallelExecution > & | executionInfo, | ||
| gzArray< ctxParallelExecution > & | executionData, | ||
| gzUInt32 | targetThreads, | ||
| gzArray< gzUInt32 > * | commandOrigins ) |
Repack CAL and its original-word metadata together; preserve both on failure.
References CTX_EXPORT, and ctxCombineParallelExecutionInfo().
| gzUInt32 ctxCopyCommandBuffer | ( | gzUInt32 * | destination, |
| gzUInt32 * | source, | ||
| gzUInt32 | length, | ||
| gzBool | addSkipCommand = FALSE, | ||
| gzUInt32 * | instructions = nullptr ) |
References CTX_EXPORT, and ctxCopyCommandBuffer().
Referenced by ctxCopyCommandBuffer().
| gzUInt32 ctxCopyReducedBuffer | ( | const gzUInt32 * | source, |
| gzUInt32 | length, | ||
| gzDynamicArray< gzUInt32 > & | destination, | ||
| ctxDetailedRegisterUse & | detailUse, | ||
| gzUInt32 | pass = 0, | ||
| gzUInt32 | program = 0, | ||
| ctxReduceFlags | reduceFlags = CTX_REDUCE_PRESERVE_BACKPROP_BANKS, | ||
| const gzDynamicArray< gzUInt32 > * | valueKeepList = nullptr, | ||
| ctxReduceProfile * | profile = nullptr ) |
References CTX_EXPORT, CTX_REDUCE_PRESERVE_BACKPROP_BANKS, and ctxCopyReducedBuffer().
Referenced by ctxCopyReducedBuffer().
| ctxCommandBufferSubRoutine ctxGetCommandBufferInfo | ( | const gzUInt32 * | commands, |
| gzUInt32 | command_len, | ||
| gzUInt32 | start_index = 0 ) |
References CTX_EXPORT, and ctxGetCommandBufferInfo().
Referenced by ctxGetCommandBufferInfo().
| gzUInt32 ctxGetOptimizeLocalRegisterReductions | ( | gzDynamicArray< ctxRegisterUse > & | register_use, |
| gzUInt32 * | source, | ||
| gzUInt32 | command, | ||
| gzUInt32 | anti_command ) |
References CTX_EXPORT, and ctxGetOptimizeLocalRegisterReductions().
Referenced by ctxGetOptimizeLocalRegisterReductions().
| ctxOptimizerStats ctxGetOptimizerStats | ( | const gzUInt32 * | source, |
| gzUInt32 | length, | ||
| ctxReduceFlags | reduceFlags = CTX_REDUCE_PRESERVE_BACKPROP_BANKS, | ||
| const gzDynamicArray< gzUInt32 > * | valueKeepList = nullptr, | ||
| gzBool | includeParallelStats = TRUE ) |
References CTX_EXPORT, CTX_REDUCE_PRESERVE_BACKPROP_BANKS, and ctxGetOptimizerStats().
Referenced by ctxGetOptimizerStats().
| gzDouble ctxGetParallelPassExecCost | ( | const gzUInt32 * | commands, |
| const ctxParallelExecution & | passInfo, | ||
| const gzArray< ctxParallelExecution > & | executionData, | ||
| const ctxExecutionCostModel & | costModel ) |
References CTX_EXPORT, and ctxGetParallelPassExecCost().
Referenced by ctxGetParallelPassExecCost().
| gzDouble ctxGetParallelPlanExecCost | ( | const gzUInt32 * | commands, |
| const gzArray< ctxParallelExecution > & | executionInfo, | ||
| const gzArray< ctxParallelExecution > & | executionData, | ||
| const ctxExecutionCostModel & | costModel ) |
References CTX_EXPORT, and ctxGetParallelPlanExecCost().
Referenced by ctxGetParallelPlanExecCost().
| gzDouble ctxGetParallelProgramExecCost | ( | const gzUInt32 * | commands, |
| const ctxParallelExecution & | execution, | ||
| const ctxExecutionCostModel & | costModel ) |
References CTX_EXPORT, and ctxGetParallelProgramExecCost().
Referenced by ctxGetParallelProgramExecCost().
| gzUInt32 ctxGetProgramMaxRegisterSize | ( | gzUInt32 * | commands, |
| gzArray< ctxCommandBufferSubRoutine > & | subroutines ) |
References CTX_EXPORT, and ctxGetProgramMaxRegisterSize().
Referenced by ctxGetProgramMaxRegisterSize().
| gzBool ctxGetProgramRegisterAccessInfo | ( | gzUInt32 * | commands, |
| gzArray< ctxCommandBufferSubRoutine > & | subroutines, | ||
| gzArray< ctxProgramRegisterAccessInfo > & | access, | ||
| gzRefList< ctxRegisterAccessDependacy > & | depends, | ||
| ctxRegisterUseInfo * | updates = NULL ) |
References CTX_EXPORT, and ctxGetProgramRegisterAccessInfo().
Referenced by ctxGetProgramRegisterAccessInfo().
| ctxRegisterUseInfo ctxGetRegisterUsage | ( | gzUInt32 * | commands, |
| gzUInt32 | length, | ||
| ctxDetailedRegisterUse * | detail = NULL, | ||
| gzUInt32 | pass = 0, | ||
| gzUInt32 | program = 0 ) |
References CTX_EXPORT, and ctxGetRegisterUsage().
Referenced by ctxGetRegisterUsage(), and ctxGetRegisterUsage().
| gzArray< ctxRegisterUseInfo > ctxGetRegisterUsage | ( | gzUInt32 | program, |
| gzArray< ctxParallelExecution > & | executionInfo, | ||
| gzArray< ctxParallelExecution > & | executionData, | ||
| gzUInt32 * | source, | ||
| ctxDetailedRegisterUse * | detail = NULL ) |
References CTX_EXPORT, and ctxGetRegisterUsage().
| gzUInt32 ctxGetStackSize | ( | gzUInt32 * | commands, |
| gzUInt32 | length ) |
References CTX_EXPORT, and ctxGetStackSize().
Referenced by ctxGetStackSize().
| gzUInt32 ctxGetSubRoutineLength | ( | gzArray< ctxCommandBufferSubRoutine > & | subroutines | ) |
References CTX_EXPORT, and ctxGetSubRoutineLength().
Referenced by ctxGetSubRoutineLength().
| gzUInt32 ctxHasRecallValues | ( | gzUInt32 * | commands, |
| gzUInt32 | search_index ) |
References CTX_EXPORT, and ctxHasRecallValues().
Referenced by ctxHasRecallValues().
| ctxRegisterTranslation ctxOptimizeRegisterUsage | ( | ctxDetailedRegisterUse & | register_use, |
| gzBool | sequential = FALSE ) |
References CTX_EXPORT, and ctxOptimizeRegisterUsage().
| gzArray< gzUInt32 > ctxOptimizeRegisterUsage | ( | gzDynamicArray< ctxRegisterUse > & | register_use, |
| gzBool | sequential = FALSE, | ||
| gzUInt32 * | max_register_index = NULL ) |
References CTX_EXPORT, and ctxOptimizeRegisterUsage().
Referenced by ctxOptimizeRegisterUsage(), and ctxOptimizeRegisterUsage().
| gzArray< ctxCommandBufferSubRoutine > ctxParallelCommandBufferSubRoutine | ( | gzUInt32 * | commands, |
| gzUInt32 * | destinationParallelCommands, | ||
| ctxCommandBufferSubRoutine | subroutine, | ||
| gzBool | combineSmallPackages = FALSE ) |
References CTX_EXPORT, and ctxParallelCommandBufferSubRoutine().
Referenced by ctxParallelCommandBufferSubRoutine().
| gzVoid ctxRebuildSubroutines | ( | gzArray< ctxParallelExecution > & | executionInfo, |
| gzArray< ctxParallelExecution > & | executionData, | ||
| gzArray< ctxCommandBufferSubRoutine > & | result ) |
References CTX_EXPORT, and ctxRebuildSubroutines().
Referenced by ctxRebuildSubroutines().
| gzBool ctxTranslateRegisterUsage | ( | ctxDetailedRegisterUse & | detailUse, |
| ctxRegisterTranslation & | translation, | ||
| gzUInt32 * | source, | ||
| gzUInt32 | length ) |
Translate scalar operands and complete representable ranged sequences.
Non-affine, undefined or overflowing range mappings return FALSE before changing commands or register-use metadata. This in-place API cannot encode a gather; callers must provide a layout compatible with the addressed ranges.
References CTX_EXPORT, and ctxTranslateRegisterUsage().
Referenced by ctxTranslateRegisterUsage().
| gzBool ctxUpdateCommandBufferDependancies | ( | gzUInt32 * | commands, |
| gzArray< ctxCommandBufferSubRoutine > & | subroutines, | ||
| ctxRegisterUseInfo * | updates = NULL ) |
References CTX_EXPORT, and ctxUpdateCommandBufferDependancies().
Referenced by ctxUpdateCommandBufferDependancies().
| GZ_USE_BIT_LOGIC | ( | ctxCompileStatus | ) |
References GZ_USE_BIT_LOGIC().
| GZ_USE_BIT_LOGIC | ( | ctxOptimizeFlags | ) |
References GZ_USE_BIT_LOGIC().
| GZ_USE_BIT_LOGIC | ( | ctxProgramExecution | ) |
References GZ_USE_BIT_LOGIC().
| GZ_USE_BIT_LOGIC | ( | ctxReduceFlags | ) |
References GZ_USE_BIT_LOGIC().