Compiler method for generating instructions for vector operations on a multi-endian processor
Abstract
A compiler includes a vector instruction processing mechanism that generates instructions for vector instructions in a way that assures correct operation in a bi-endian environment, wherein the processor architecture contains instructions with an inherent endian bias. The compiler uses a code generation endian preference that is specified by the user, and that determines a natural element order. When the compiler processes a computer program, it generates instructions for vector operations by determining whether the vector instruction has an endian bias that matches the specified endian preference. When the vector instruction has no endian bias, or when the endian bias of the vector instruction matches the specified endian preference, the compiler generates one or more instructions for the vector instruction as it normally does. When the endian bias of the vector instruction does not match the specified endian preference, the compiler generates instructions to fix the mismatch.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 1.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
An apparatus comprising: at least one processor; a memory coupled to the at least one processor; a computer program residing in the memory, the computer program including a plurality of instructions; an endian preference for the apparatus that defines a natural element order for vector instructions; and a compiler residing in the memory and executed by the at least one processor, the compiler including a vector instruction processing mechanism that determines when a vector instruction has an inherent element order that is a mismatch to the natural element order, and in response, generates at l
- Claim 2Depends on #1
The apparatus of claim 1 wherein the vector processing mechanism determines when the vector instruction specifies a first element number, and in response, generates an instruction
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2017123792 A1 | Processors Supporting Endian Agnostic SIMD Instructions and Methods | — | 16 |
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Appendix P-List of IBM Patents or Patent Applications Treated As Related, dated Nov. 14, 2016.
- Appendix P—List of IBM Patents or Patent Applications Treated As Related, dated Nov. 14, 2016.
- Bailey et al., "Processor-Centric Design: Processors, Multi-Processors, and Software", Chapter 6 of ESL Models and their Applications, Embedded Systems, 2010.
- Brevnov et al., "Writing a Bi-Endian Compiler", Dr. Dobb's, The World of Software Development, Jul. 2, 2012.
- Burger et al., The SimpleScalar tool set, version 2.0., [Online] 1997, ACM SIGARCH Computer Architecture News 25.3 (1997), [Retrieved from the Internet] <http://dx.doi.org/10.1145/268806.268810> pp. 13-25.