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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits