-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISPC codegen compatibility fixes (#105)
This PR covers numerous fixes in the ISPC (and C) code generators working around many of real-world corner cases, which had been missed (or postponed) before: * Fallback to C when VERBATIM nodes are found in AST * Allow AstLookupVisitor::lookup to be called without a type * Uses an additional instance of CodegenCVisistor that is constructed inside the ispc code generator as a fallback code generator. * Removed the whole-file VERBATIM fallback in the main function. * added missing constants * filtered kernel routines, which contain verbatim blocks * emit uncalled procedures and functions in C wrapper * don't emit `printf` debug code * rename PI into ISPC_PI to avoid name clashes with ispc constant * emit functions that use tables in C * Make sure that global data is shared between wrapper and ispc target * Exclude Eigen node types from ISPC backend This closes #83
- Loading branch information
Showing
12 changed files
with
389 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.