Polyhedral AST Generation Is More Than Scanning Polyhedra. Grosser, T., Verdoolaege, S., & Cohen, A. ACM Trans. Program. Lang. Syst., 37(4):12, ACM, 2015. abstract bibtex Abstract mathematical representations such as integer polyhedra have shown to be useful to precisely analyze computational kernels and to express complex loop transformations. Such transformations rely on Abstract Syntax Tree (AST) generators to convert the mathematical representation back to an imperative program. Such generic AST generators avoid the need to resort to transformation-specific code generators, which may be very costly or technically difficult to develop as transformations become more complex. Existing AST generators have proven their effectiveness, but they hit limitations in more complex scenarios. Specifically, (1) they do not support or may fail to generate control flow for complex transformations using piecewise schedules or mappings involving modulo arithmetic; (2) they offer limited support for the specialization of the generated code exposing compact, straightline, vectorizable kernels with high arithmetic intensity necessary to exploit the peak performance of modern hardware; (3) they offer no support for memory layout transformations; (4) they provide insufficient control over the AST generation strategy, preventing their application to complex domain-specific optimizations. We present a new AST generation approach that extends classical polyhedral scanning to the full generality of Presburger arithmetic, including existentially quantified variables and piecewise schedules, and introduce new optimizations for the detection of components and shifted strides. Not limiting ourselves to control flow generation, we expose functionality to generate AST expressions from arbitrary piecewise quasi-affine expressions which enables the use of our AST generator for data-layout transformations. We complement this with support for specialization by polyhedral unrolling, user-directed versioning, and specialization of AST expressions according to the location they are generated at, and complete this work with fine-grained user control over the AST generation strategies used. Using this generalized idea of AST generation, we present how to implement complex domain-specific transformations without the need to write specialized code generators, but instead relying on a generic AST generator parametrized to a specific problem domain.
@article{Grosser2015-wx,
abstract = {Abstract mathematical representations such as integer polyhedra
have shown to be useful to precisely analyze computational
kernels and to express complex loop transformations. Such
transformations rely on Abstract Syntax Tree (AST) generators to
convert the mathematical representation back to an imperative
program. Such generic AST generators avoid the need to resort to
transformation-specific code generators, which may be very
costly or technically difficult to develop as transformations
become more complex. Existing AST generators have proven their
effectiveness, but they hit limitations in more complex
scenarios. Specifically, (1) they do not support or may fail to
generate control flow for complex transformations using
piecewise schedules or mappings involving modulo arithmetic; (2)
they offer limited support for the specialization of the
generated code exposing compact, straightline, vectorizable
kernels with high arithmetic intensity necessary to exploit the
peak performance of modern hardware; (3) they offer no support
for memory layout transformations; (4) they provide insufficient
control over the AST generation strategy, preventing their
application to complex domain-specific optimizations. We present
a new AST generation approach that extends classical polyhedral
scanning to the full generality of Presburger arithmetic,
including existentially quantified variables and piecewise
schedules, and introduce new optimizations for the detection of
components and shifted strides. Not limiting ourselves to
control flow generation, we expose functionality to generate AST
expressions from arbitrary piecewise quasi-affine expressions
which enables the use of our AST generator for data-layout
transformations. We complement this with support for
specialization by polyhedral unrolling, user-directed
versioning, and specialization of AST expressions according to
the location they are generated at, and complete this work with
fine-grained user control over the AST generation strategies
used. Using this generalized idea of AST generation, we present
how to implement complex domain-specific transformations without
the need to write specialized code generators, but instead
relying on a generic AST generator parametrized to a specific
problem domain.},
added-at = {2015-09-11T11:19:37.000+0200},
author = {Grosser, Tobias and Verdoolaege, Sven and Cohen, Albert},
biburl = {http://www.bibsonomy.org/bibtex/2f7927c56491923fb4a4330dfffe078bd/christophv},
interhash = {d8cbe4519c81ee80d34635e0d1dcad8c},
intrahash = {f7927c56491923fb4a4330dfffe078bd},
journal = {ACM Trans. Program. Lang. Syst.},
keywords = {index_set_splitting Polyhedral_compilation unrolling code_generation Expose Presburger_relations},
number = 4,
pages = 12,
publisher = {ACM},
timestamp = {2016-01-04T14:22:08.000+0100},
title = {Polyhedral {AST} Generation Is More Than Scanning Polyhedra},
volume = 37,
year = 2015
}
Downloads: 0
{"_id":"H5rqDuCCjWDaJ3GMv","bibbaseid":"grosser-verdoolaege-cohen-polyhedralastgenerationismorethanscanningpolyhedra-2015","downloads":0,"creationDate":"2015-12-18T06:38:06.435Z","title":"Polyhedral AST Generation Is More Than Scanning Polyhedra","author_short":["Grosser, T.","Verdoolaege, S.","Cohen, A."],"year":2015,"bibtype":"article","biburl":"http://www.bibsonomy.org/bib/author/tobias friedrich?items=1000","bibdata":{"bibtype":"article","type":"article","abstract":"Abstract mathematical representations such as integer polyhedra have shown to be useful to precisely analyze computational kernels and to express complex loop transformations. Such transformations rely on Abstract Syntax Tree (AST) generators to convert the mathematical representation back to an imperative program. Such generic AST generators avoid the need to resort to transformation-specific code generators, which may be very costly or technically difficult to develop as transformations become more complex. Existing AST generators have proven their effectiveness, but they hit limitations in more complex scenarios. Specifically, (1) they do not support or may fail to generate control flow for complex transformations using piecewise schedules or mappings involving modulo arithmetic; (2) they offer limited support for the specialization of the generated code exposing compact, straightline, vectorizable kernels with high arithmetic intensity necessary to exploit the peak performance of modern hardware; (3) they offer no support for memory layout transformations; (4) they provide insufficient control over the AST generation strategy, preventing their application to complex domain-specific optimizations. We present a new AST generation approach that extends classical polyhedral scanning to the full generality of Presburger arithmetic, including existentially quantified variables and piecewise schedules, and introduce new optimizations for the detection of components and shifted strides. Not limiting ourselves to control flow generation, we expose functionality to generate AST expressions from arbitrary piecewise quasi-affine expressions which enables the use of our AST generator for data-layout transformations. We complement this with support for specialization by polyhedral unrolling, user-directed versioning, and specialization of AST expressions according to the location they are generated at, and complete this work with fine-grained user control over the AST generation strategies used. Using this generalized idea of AST generation, we present how to implement complex domain-specific transformations without the need to write specialized code generators, but instead relying on a generic AST generator parametrized to a specific problem domain.","added-at":"2015-09-11T11:19:37.000+0200","author":[{"propositions":[],"lastnames":["Grosser"],"firstnames":["Tobias"],"suffixes":[]},{"propositions":[],"lastnames":["Verdoolaege"],"firstnames":["Sven"],"suffixes":[]},{"propositions":[],"lastnames":["Cohen"],"firstnames":["Albert"],"suffixes":[]}],"biburl":"http://www.bibsonomy.org/bibtex/2f7927c56491923fb4a4330dfffe078bd/christophv","interhash":"d8cbe4519c81ee80d34635e0d1dcad8c","intrahash":"f7927c56491923fb4a4330dfffe078bd","journal":"ACM Trans. Program. Lang. Syst.","keywords":"index_set_splitting Polyhedral_compilation unrolling code_generation Expose Presburger_relations","number":"4","pages":"12","publisher":"ACM","timestamp":"2016-01-04T14:22:08.000+0100","title":"Polyhedral AST Generation Is More Than Scanning Polyhedra","volume":"37","year":"2015","bibtex":"@article{Grosser2015-wx,\n abstract = {Abstract mathematical representations such as integer polyhedra\n have shown to be useful to precisely analyze computational\n kernels and to express complex loop transformations. Such\n transformations rely on Abstract Syntax Tree (AST) generators to\n convert the mathematical representation back to an imperative\n program. Such generic AST generators avoid the need to resort to\n transformation-specific code generators, which may be very\n costly or technically difficult to develop as transformations\n become more complex. Existing AST generators have proven their\n effectiveness, but they hit limitations in more complex\n scenarios. Specifically, (1) they do not support or may fail to\n generate control flow for complex transformations using\n piecewise schedules or mappings involving modulo arithmetic; (2)\n they offer limited support for the specialization of the\n generated code exposing compact, straightline, vectorizable\n kernels with high arithmetic intensity necessary to exploit the\n peak performance of modern hardware; (3) they offer no support\n for memory layout transformations; (4) they provide insufficient\n control over the AST generation strategy, preventing their\n application to complex domain-specific optimizations. We present\n a new AST generation approach that extends classical polyhedral\n scanning to the full generality of Presburger arithmetic,\n including existentially quantified variables and piecewise\n schedules, and introduce new optimizations for the detection of\n components and shifted strides. Not limiting ourselves to\n control flow generation, we expose functionality to generate AST\n expressions from arbitrary piecewise quasi-affine expressions\n which enables the use of our AST generator for data-layout\n transformations. We complement this with support for\n specialization by polyhedral unrolling, user-directed\n versioning, and specialization of AST expressions according to\n the location they are generated at, and complete this work with\n fine-grained user control over the AST generation strategies\n used. Using this generalized idea of AST generation, we present\n how to implement complex domain-specific transformations without\n the need to write specialized code generators, but instead\n relying on a generic AST generator parametrized to a specific\n problem domain.},\n added-at = {2015-09-11T11:19:37.000+0200},\n author = {Grosser, Tobias and Verdoolaege, Sven and Cohen, Albert},\n biburl = {http://www.bibsonomy.org/bibtex/2f7927c56491923fb4a4330dfffe078bd/christophv},\n interhash = {d8cbe4519c81ee80d34635e0d1dcad8c},\n intrahash = {f7927c56491923fb4a4330dfffe078bd},\n journal = {ACM Trans. Program. Lang. Syst.},\n keywords = {index_set_splitting Polyhedral_compilation unrolling code_generation Expose Presburger_relations},\n number = 4,\n pages = 12,\n publisher = {ACM},\n timestamp = {2016-01-04T14:22:08.000+0100},\n title = {Polyhedral {AST} Generation Is More Than Scanning Polyhedra},\n volume = 37,\n year = 2015\n}\n\n","author_short":["Grosser, T.","Verdoolaege, S.","Cohen, A."],"key":"Grosser2015-wx","id":"Grosser2015-wx","bibbaseid":"grosser-verdoolaege-cohen-polyhedralastgenerationismorethanscanningpolyhedra-2015","role":"author","urls":{},"keyword":["index_set_splitting Polyhedral_compilation unrolling code_generation Expose Presburger_relations"],"downloads":0},"search_terms":["polyhedral","ast","generation","more","scanning","polyhedra","grosser","verdoolaege","cohen"],"keywords":["expose","index_set_splitting polyhedral_compilation unrolling code_generation expose presburger_relations"],"authorIDs":[],"dataSources":["oHoup8Tse8r9DcDBh"]}