Optimization directives can be also applied to objects or scopes defined in a class. The difference is typically that classes are defined in a header file. Use one of the following actions to open the header file:
- From the Explorer view in the Vitis HLS GUI,
Includesfolder, double-click the header file to open it in the Code Editor.
- From within an open source code file, place the cursor over the
#includestatement for the header file, hold down the Ctrl key, and click the header file to open it in the Code Editor.
The Directives tab is populated with the objects in the header file, and directives can be applied.