================
@@ -1391,6 +1392,9 @@ class TargetInfo : public TransferrableTargetInfo,
   /// Get the ABI currently in use.
   virtual StringRef getABI() const { return StringRef(); }
 
+  /// Get the CPU name to pass to the LLVM backend.
+  virtual StringRef getBackendCPU() const { return getTargetOpts().CPU; }
----------------
tahonermann wrote:

I find the term "backend CPU" confusing here. The comments that accompany 
`TargetOptions::CPU` use the "target CPU" terminology. Would that not be 
appropriate here?

```suggestion
  /// Get the CPU name to pass to the LLVM backend.
  virtual StringRef getTargetCPU() const { return getTargetOpts().CPU; }
```

https://github.com/llvm/llvm-project/pull/227877
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to