Compiling scalar code for a single instruction multiple data (SIMD) execution engine
Abstract
A mechanism is provided for performing scalar operations using a SIMD data parallel execution unit. With the mechanisms of the illustrative embodiments, scalar operations in application code are identified that may be executed using vector operations in a SIMD data parallel execution unit. The scalar operations are converted, such as by a static or dynamic compiler, into one or more vector load instructions and one or more vector computation instructions. In addition, control words may be generated to adjust the alignment of the scalar values for the scalar operation within the vector registers to which these scalar values are loaded using the vector load instructions. The alignment amounts for adjusting the scalar values within the vector registers may be statically or dynamically determined.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 14.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, in a data processing system, for generating code to perform scalar operations on a vector execution unit, comprising: receiving application code, wherein the application code includes a scalar operation; generating a first load vector instruction, based on the scalar operation, for loading a first scalar value into a first vector register; generating a second load vector instruction, based on the scalar operation, for loading a second scalar value into a second vector register; generating a vector computational instruction for combining the first scalar value in the first vector regi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (22)
Non-Patent Literature (4)
- Eichenberger et al., "Vectorization for SIMD Architectures with Alignment Constraints", PLDI'04, Jun. 9-11, 2004, Washington, D.C., ACM, 12 pages.
- Franchetti et al., "Efficient Utilization of SIMD Extensions," IEEE, Feb. 2005.
- USPTO U.S. Appl. No. 11/278,639, Image File Wrapper printed on Aug. 3, 2010, 1 page.
- Wu, Peng et al., "Efficient SIMD Code Generation for Runtime Alignment and Length Conversion", Proceedings of the International Symposium on Code Generation and Optimization (CGO), 2005, 12 pages.