[PATCH] D107370: [X86] Split Subtarget ISA / Security / Tuning Feature Flags Definitions. NFC
Pengfei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 3 20:58:40 PDT 2021
pengfei added inline comments.
================
Comment at: llvm/lib/Target/X86/X86.td:36-37
def FeatureNOPL : SubtargetFeature<"nopl", "HasNOPL", "true",
"Enable NOPL instruction">;
----------------
Should this be moved together with FeatureFast7ByteNOP etc.?
================
Comment at: llvm/lib/Target/X86/X86.td:281-295
+// Ivy Bridge and newer processors have enhanced REP MOVSB and STOSB (aka
+// "string operations"). See "REP String Enhancement" in the Intel Software
+// Development Manual. This feature essentially means that REP MOVSB will copy
+// using the largest available size instead of copying bytes one by one, making
+// it at least as fast as REPMOVS{W,D,Q}.
+def FeatureERMSB
+ : SubtargetFeature<
----------------
These seem tuning features?
================
Comment at: llvm/lib/Target/X86/X86.td:307
+// mitigate potential Spectre v2 attacks against them.
+def FeatureRetpolineIndirectCalls
+ : SubtargetFeature<
----------------
Is it better if we can make security features and tuning features begin with e.g., MitigationXXXX and TuningXXX respectively?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107370/new/
https://reviews.llvm.org/D107370
More information about the llvm-commits
mailing list