[llvm] [CodeGen][MRI] Introduce synthetic register classes (PR #86006)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 04:50:23 PDT 2024


================
@@ -101,6 +102,9 @@ class MCRegisterClass {
 
   /// Return true if this register class has a defined BaseClassOrder.
   bool isBaseClass() const { return BaseClass; }
+  /// isSynthetic - Return true if this is a synthetic class. This field helps
+  /// targets to dynamically enable the regclass during codegen.
+  bool isSynthetic() const { return Synthetic; }
----------------
Pierre-vh wrote:

What is the reasoning for the "syntethic" name? I feel like "dynamic" suits it more, no?
When I see synthetic I imagine a capability to generate a RC using C++, but these still need to be defined in .td

https://github.com/llvm/llvm-project/pull/86006


More information about the llvm-commits mailing list