Framework for generating mixed-mode operations in loop-level simdization
Abstract
Generating mixed-mode operations in the compilation of program code for processors having vector or SIMD processing units is disclosed. In a preferred embodiment of the present invention, program instructions making up the body of a loop are abstracted into virtual vector instructions. These virtual vector instructions are treated, for initial code optimization purposes, as vector instructions (i.e., instructions written for the vector unit). The virtual vector instructions are eventually expanded into native code for the target processor, at which time a determination is made for each virtual vector instruction as to whether to expand the virtual vector instruction into native vector instructions, into native scalar instructions, into calls to pre-defined library functions, or into a combination of these. A cost model is used to determine the optimal choice of expansion based on hardware/software constraints, performance costs/benefits, and other criteria.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 29 · Forward citations: 23.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: identifying a loop containing statements that operate over an array of values, wherein each statement includes one or more operations and at least one of the statements includes a plurality of the operations; transforming the operations into a set of virtual vector operations; individually selecting an expansion for each of the virtual vector operations, wherein the selection is based upon a cost model and the expansion associated with each of the virtual vector operations materializes as one or more distinct expansions chosen from a plurality of possi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 23 total)
References Cited — Backward Prior Art (29)
Non-Patent Literature (5)
- Allen et al., "Automatic Translation of FORTRAN Programs to Vector Form," ACM Transactions on Programming Languages and Systems, v. 9, No. 4, Oct. 1987, p. 491-542.
- AltiVec(TM) Technology Programming Interface Manual, 1999, 262 pages.
- AltiVec™ Technology Programming Interface Manual, 1999, 262 pages.
- Arafeh et al., "Vectorization and Parallelization Interactive Assistant," 1988, ACM 0-89791-260-8/88/0002/0573, pp. 573-577.
- Bik et al., "Automatic Intra-Register Vectorizatoin for the Intel Architecture," International Journal of Parallel Programming, vol. 30, No. 2, Apr. 2002 (p. 65-98).