-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for disabling pragmas using the preprocessor, for example via
#ifdef, and for finding source locations for _Pragma in #defines. - This doesn't work on #pragma hls_unroll etc yet since CCParser doesn't look past the #endif line - This should enable putting _Pragma defines in a header using SourceManager's getFileLoc() to find the source line - It is unknown how to get macro parameters passed into the _Pragma, as the preprocessed text is unavailable - Channel strictness can use a variety of specialized macro names. - Use cases needing numeric parameters such as unroll and pipeline_init_interval, intrinsics can be used in the macros, ie __xlscc_pipeline, __xlscc_unroll PiperOrigin-RevId: 643053861
- Loading branch information
1 parent
72da329
commit 0c7892c
Showing
3 changed files
with
149 additions
and
41 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
Oops, something went wrong.