Generating compiled code that indicates register liveness
Abstract
Object code is generated from an internal representation that includes a plurality of source operands. The generating includes performing for each source operand in the internal representation determining whether a last use has occurred for the source operand. The determining includes accessing a data flow graph to determine whether all uses of a live range have been emitted. If it is determined that a last use has occurred for the source operand, an architected resource associated with the source operand is marked for last-use indication. A last-use indication is then generated for the architected resource. Instructions and the last-use indications are emitted into the object code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for indicating register liveness status in compiled code comprising: generating, by a compiler, object code from a plurality of instructions in an internal representation (IR), the generating comprising, for each of the IR instructions: determining whether a source operand of the IR instruction represents a last-use of a register, the determining comprising accessing a data flow graph to determine whether object code instructions for all other uses of a live range have been emitted by the compiler; and emitting an object code instruction generated from the IR instruction, and a last-u
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Adve et al., "Changing Interaction of Compiler and Architecture", 1997, 8 pages.
- Alto: A Platform for Object Code Modification Robert Muth Title, Abstract, and Chapter 3 Published: 1999.
- Bednarski et al; "Energy-Optimal Integrated VLIW Code Generation"; Proceedings of 11th Workshop on Compliers for Parallel Computers; 2004; pp. 1-14.
- Butts et al.; "Use-Based Register Caching with Decoupled Indexing"; Proceedings of the 31st Annual Symposium on Computer Architecture; Jun. 2004; pp. 1-12.
- Cosmin Oancea, "Machine-Code Generation for Functions," Department of Comupter Science-Univeristy of Copenhagen, Published 2012, 31 pages.