[PATCH] D100085: [X86] Support -march=rocketlake
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 8 19:58:39 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/X86/X86.td:271-273
-def FeatureSGX : SubtargetFeature<"sgx", "HasSGX", "true",
- "Enable Software Guard Extensions">;
def FeatureCLFLUSHOPT : SubtargetFeature<"clflushopt", "HasCLFLUSHOPT", "true",
----------------
skan wrote:
> craig.topper wrote:
> > Clang still puts it in target-features attribute so you can’t delete this or you’ll get a warning that the feature doesn’t exist.
> If you delete the definition of FeatureSGX, you need to remove the related code in X86Subtarget.h too. BTW, I don't think "there are no IR intrinsics for a feature" is a good reason to remove a feature.
I only said to remove it from the CPUs because for llc -march=skylake it doesn’t matter if we enable SGX because there’s nothing you can test from llc.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100085/new/
https://reviews.llvm.org/D100085
More information about the cfe-commits
mailing list