Method and apparatus for compiler processing for a function marked with multiple execution spaces
Abstract
A method for processing a function with a plurality of execution spaces is disclosed. The method comprises creating an internal compiler representation for the function. Creating the internal compiler representation comprises copying substantially all lexical tokens corresponding to a body of the function. Further, the creating comprises inserting the lexical tokens into a plurality of conditional if-statements, wherein a conditional if-statement is generated for each corresponding execution space of said plurality of execution spaces, and wherein each conditional if-statement determines which execution space the function is executing in. During compilation, the method finally comprises performing overload resolution at a call site of an overloaded function by checking for compatibility with a first execution space specified by one of the plurality of conditional if-statements, wherein the overloaded function is called within the body of the function.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for processing a function with a plurality of execution spaces comprising: creating an internal compiler representation for said function, wherein said creating comprises: copying substantially all lexical tokens corresponding to a body of said function; and inserting said lexical tokens into a plurality of conditional if-statements, wherein a conditional if-statement is generated for each corresponding execution space of said plurality of execution spaces, and wherein each conditional if-statement determines which execution space said function is executing in; and during compilation,
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 11,556,452 B2 | System for software compiler integrity verification | 2023 | 1 |
References Cited — Backward Prior Art (22)
Non-Patent Literature (5)
- "The Authoritative Dictionary of IEEE Standards Terms, Seventh Edition", IEEE Std 100-2000, Published Feb. 27, 2007, pp. 625 & 752.
- Christopher J. Rossbach, Yuan Yu, Jon Currey, Jean-philippe Martin and Dennis Fetterly. "Dandelion: a Compiler and Runtime for Heterogeneous", [online] Nov. 3-6, 2013 [retrieved on Feb. 23, 2015], retrieved from Internet. .
- Christopher J. Rossbach, Yuan Yu, Jon Currey, Jean-philippe Martin and Dennis Fetterly. "Dandelion: a Compiler and Runtime for Heterogeneous", [online] Nov. 3-6, 2013 [retrieved on Feb. 23, 2015], retrieved from Internet. <http://research.microsoft.com/pubs/201110/sosp13-dandelion-final.pdf>.
- Fast and Focus search attachment.
- Moussa Taifi, Abdallah Khreishah, Justin Y. Shi. "Natural HPC Substrate: Exploitation of Mixed Multicore CPU and GPUs", [online] , [retrieved on 2015-02-023], retrieved from Internet. .