Macroscalar processor architecture
AssigneeApple Inc.
InventorJeffry E. Gonion
Life of this patent
Estimating the term…
Abstract
A macroscalar processor architecture is described herein. In one embodiment, a processor receives instructions of a program loop having a vector block and a sequence block intended to be executed after the vector block, where the processor includes multiple slices and each of the slices is capable of executing an instruction of an iteration of the program loop substantially in parallel. For each iteration of the program loop, the processor executes an instruction of the sequence block using one of the slices while executing instructions of the vector block using a remainder of the slices substantially in parallel. Other methods and apparatuses are also described.
Claims15
A method for aggregating a program loop, the method comprising:
- determining whether a number of dynamic registers of a processor to be used in a program loop exceeds a predetermined threshold, the processor including a plurality of static registers, dynamic registers, and extended registers;
- and
- allocating one or more of the extended registers to be used in the program loop in place of at least a portion of the determined number of dynamic registers intended to be used in the program loop, such that a number of dynamic registers used in aggregating the program loop does not exceed the predetermined threshold.
A method for aggregating a program loop, the method comprising:
- identifying a static register of a processor to be accessed by an instruction of an iteration of a program loop, wherein a value of the static register is used in a subsequent iteration;
- and
- in response to the instruction executed by the processor, copying the value of the static register to a dynamic register of the processor, the dynamic register being used in the subsequent iteration of the program loop, wherein copying the value of the static register is performed without additional instructions from source code corresponding to the instruction of the iteration received by the processor.
A method for aggregating a program loop, comprising:
- identifying one or more instructions of a program loop, wherein during each iteration of the program loop, a member of a first array referenced by a first index is assigned to a member of a second array referenced by a second index dependent upon a predicate condition;
- for each iteration of the program loop, at runtime by a processor, incrementally assigning a value to a dynamic register associated with the respective iteration only if the predicate condition is satisfied during the respective iteration;
- and
- executing the one or more instructions as a vector block that assign a member of the first array to a member of the second array referenced by the dynamic register associated with each iteration.
An apparatus for aggregating a program loop, the apparatus comprising:
- means for identifying a static register of a processor to be accessed by an instruction of an iteration of a program loop, wherein a value of the static register is used in a subsequent iteration;
- and
- in response to the instruction executed by the processor, means for copying the value of the static register to a dynamic register of the processor, the dynamic register being used in the subsequent iteration of the program loop, wherein copying the value of the static register is performed without additional instructions from source code corresponding to the instruction of the iteration received by the processor.
Dependencies are inferred from the claim text.