This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add a common-avx512 CPU to match icc's -xCOMMON-AVX512 option
AbandonedPublic

Authored by craig.topper on Oct 24 2018, 12:06 PM.

Details

Reviewers
RKSimon
spatel
Summary

This adds a common-avx512 CPU to target the avx512 features common between skylake-avx512 and knl.

Diff Detail

Event Timeline

greened added inline comments.
include/llvm/Support/X86TargetParser.def
70

Is there any reason in particular this isn't grouped with the other INTEL declarations above? I don't know if it should be or not. I assume eventually AMD will have an AVX512 offering and maybe common-avx512 can be used for both Intel and AMD targets.

lib/Target/X86/X86.td
874

AVX512F is supposed to be the minimum support needed for common AVX512 functionality. Instead of "common" throughout, would it make sense to just say "avx512f?" "common-avx512" isn't a specification that exists anywhere, while "avx512f" is.

craig.topper added inline comments.Oct 24 2018, 12:48 PM
lib/Target/X86/X86.td
874

This also includes AVX512CD(strangely named FeatureCDI) which both KNL and skylake support and is enabled by the -xCOMMON-AVX512 option in icc. I'm just trying to match that existing feature. I'll admit the name sucks

greened added inline comments.Oct 24 2018, 2:34 PM
lib/Target/X86/X86.td
874

Ok, thanks for explaining. What about "avx512f-cd?" That name sucks too but is at least descriptive of what this is. "Common" seems too generic to me.

craig.topper abandoned this revision.Oct 24 2018, 3:30 PM

Abandoning after an internal discussion