Added CC macro to transformations (#3795)
* Added CC macro to transformations * Fixed typo * Added MATCHER_SCOPE * Fixed review comments * Try to remove MATCHER_CALLBACK_SCOPE * Fixed matcher name * Fixed MATCHER_SCOPE * Added documentation * Fixed typo * Fixed CC for linux * Fixed names * Fixed docs * Fixed typo * FIxed comments * Add more CC macros
This commit is contained in:
1 parent
3baa305e0a
commit
e82018221c
85 files changed
+564
-310
No files matched your search
@@ -253,6 +253,13 @@ To eliminate operation, nGraph has special method that considers all limitations
|
||||
`replace_output_update_name` in case of successful replacement it automatically preserves friendly name and runtime info.
|
||||
|
||||
|
||||
## Transformation conditional compilation
|
||||
|
||||
Transformation library has two internal macros to support conditional compilation feature.
|
||||
|
||||
* `MATCHER_SCOPE(region)` - allows to disable the MatcherPass if matcher isn't used. The region name should be unique. This macro creates a local variable `matcher_name` which you should use as a matcher name.
|
||||
* `RUN_ON_FUNCTION_SCOPE(region)` - allows to disable run_on_function pass if it isn't used. The region name should be unique.
|
||||
|
||||
## Transformation writing essentials <a name="transformation_writing_essentials"></a>
|
||||
|
||||
When developing a transformation, you need to follow these transformation rules:
|
||||
|
||||
Reference in new issue
Block a user