![]() |
AI Engine-ML v2 Intrinsics User Guide
v2025.1
|
We have available ADDMAC and ADDMSC intrinsics (please refer to Multiply Accumulate). For this reason, we include pattern-matching rules in the compiler to merge the operations ADD + MAC/MSC when these patterns are found in the code, i.e.:
ADD + MAC -> ADDMACSUB + MAC -> ADDMACADD + MSC -> ADDMSCSUB + MSC -> ADDMSCFor all the available datatypes and configuration parameters (i.e., _conf variants for the addition and multiplication), we have defined the following rules (these are simplified and do not show the actual datatypes or the configuration parameters):
All of these rules have been defined for all native datatypes, since emulated datatypes are based on these types.