You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FPGA] [CodeGen][NFC] Enhance Intel FPGA annotation function and optimize code (#14577)
This commit makes several improvements to the
`CodeGenModule::addGlobalIntelFPGAAnnotation` method:
- Updating the comment style to be Doxygen compliant for the
`addGlobalIntelFPGAAnnotation` function.
- Replaced `getAs<RecordType>()` with `castAs<RecordType>()` after
confirming that the variable declaration type is guaranteed to be a
`RecordType`. This change removes the need for a null check and
streamlines the code.
- Modified the base class iteration loop to use a reference (`const auto
&Base`) to avoid unnecessary copies of `CXXBaseSpecifier` objects.
These changes enhance code readability, improve code documentation and
potentially increase performance by avoiding unnecessary dynamic type
checks and copies.
---------
Signed-off-by: Soumi Manna <[email protected]>
0 commit comments