Patents
US 8,739,144 B2#21685347 Most CitedActiveUnited States (USPTO)Utility

Compiler optimisation like idiom recognition through pattern matching using value numbering

5Forward Citations (#21685347 Global)
0.4/yrCitation Velocity (#19386862 Global)
1.34Citation PageRank (#27172683 Global)
15Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A compiler and method for compiling source code comprising: a library of code patterns and control flow information for each code pattern, wherein each code pattern comprises one or more variable; and a processor arranged to: evaluate the control flow of an expression in the source code, wherein the expression comprises one or more variable, match the expression to one of the code patterns in the library based on the evaluated control flow information, assign value numbers to the one or more variable within the expression, determine if the expression and the matched code pattern are equivalent based on the assigned value numbers, and replace the expression in the source code with a replacement expression if the expression and the matched code pattern are equivalent.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 5.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A compiler system for compiling source code comprising: a library of code patterns and control flow information for each code pattern in the library, wherein each code pattern comprises one or more variables; and a processor arranged to: evaluate a control flow of an expression in the source code, wherein the expression comprises one or more variables, match the expression to one of the code patterns in the library based on the evaluated control flow information and the control flow information of one of the code patterns in the library, assign value numbers to the one or more variables within

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (15)

Non-Patent Literature (5)

  • Cooper Keith D et al: "Engineering a Compiler" Elsevier, Computer Science Book, ISBN/9780120884780, Section 8.3.2, 2004, pp. 1-824.
  • International Search Report and Written Opinion correlating to PCT/IB2008/055382 dated Sep. 7, 2009.
  • Jenks, Richard D., "A Pattern Compiler," 1976, ACM, p. 60-65.
  • Kawahito M et al: "A New Idiom Recognition Framework for Exploiting Hardware-Assist Instructions" Operating Systems Review ACM USA, vol. 40, No. 5, Dec. 2006, pp. 382-393.
  • Moreau et al., "A Pattern Matching Compiler for Multiple Target Languages," 2003, Springer-Verlag, p. 61-76.