Check for target(popcnt) capability before usage
ClosedPublic

Authored by george.karpenkov on Thu, Apr 20, 2:49 PM.

Details

Summary

Older compilers (e.g. LLVM 3.4) do not support the attribute target("popcnt").
In order to support those, this diff check the attribute support using the preprocessor.

Diff Detail

Repository
rL LLVM
kcc accepted this revision.Thu, Apr 20, 3:47 PM

LGTM, but please double-check that we get proper attribute in the fresh compiler.

This revision is now accepted and ready to land.Thu, Apr 20, 3:47 PM
This revision was automatically updated to reflect the committed changes.