[clang] [llvm] Split fmv and extensions (PR #92882)
Alexandros Lamprineas via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 05:26:49 PDT 2024
================
@@ -0,0 +1,84 @@
+// Function MultiVersioning (FMV) properties
+
+// Something you can add to target_version or target_clones
+class FMVExtension<string n, string b, string f, int p> {
+ // Name, as spelled in target_version or target_clones. e.g. "memtag"
+ string Name = n;
+
+ // A C++ expression giving the number of the bit in the FMV ABI.
+ // Currently this is given as a value from the enum "CPUFeatures".
+ // If this is not set, it indicates that this is not an FMV extension.
+ string Bit = b;
+
+ // SubtargetFeatures to enable for code functions with this FMV feature.
+ // TODO list<SubtargetFeature> BackendFeatures = f;
+ string BackendFeatures = f;
+
+ // The FMV priority.
+ int Priority = p;
----------------
labrinea wrote:
unsigned?
https://github.com/llvm/llvm-project/pull/92882
More information about the llvm-commits
mailing list