<div dir="ltr">Hi All,<div><br></div><div>Clang documentation claims that __attribute__ ((target("XXX"))) is supported in clang, seeĀ <a href="http://clang.llvm.org/docs/AttributeReference.html#target-gnu-target">http://clang.llvm.org/docs/AttributeReference.html#target-gnu-target</a> But the semantic of the attribute is significantly different in Clang and GCC (see GCC documentation <a href="https://gcc.gnu.org/wiki/FunctionMultiVersioning">https://gcc.gnu.org/wiki/FunctionMultiVersioning</a>). In short Clang allows to specify target CPU for a single function but GCC allows to specify set of functions optimized for different CPUs and generates dynamic dispatching code. Is it intentional difference in the semantic of the attribute or it is just missing feature that needs to be implemented?</div><div><br></div><div>--</div><div>Best regards,</div><div>Dmitry Polukhin</div><div>Software Engineer</div><div>Intel Compiler Team</div><div><br></div></div>