[clang] [llvm] [Clang][SYCL] Define Intel IGCA preprocessor macro definitions for SYCL during device compilation (PR #227877)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 8 12:32:06 PST 2026
================
@@ -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
More information about the cfe-commits
mailing list