This is an archive of the discontinued LLVM Phabricator instance.

Check for target(popcnt) capability before usage
ClosedPublic

Authored by george.karpenkov on Apr 20 2017, 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

Event Timeline

kcc accepted this revision.Apr 20 2017, 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.Apr 20 2017, 3:47 PM
This revision was automatically updated to reflect the committed changes.