[clang] [llvm] [Clang][SYCL][SPIRV] Accept IGCA targets and define macros for SYCL during device compilation (PR #227877)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 2 20:00:33 PST 2026
================
@@ -198,6 +199,21 @@ StringRef llvm::IntelGPU::getIGCATargetName(IGCATarget T) {
return "";
}
+void llvm::IntelGPU::fillValidIGCATargetList(
+ SmallVectorImpl<StringRef> &Values) {
+ // Several devices share an IGCA target, so IGCATargetNames repeats names.
+ // Sort and drop the repeats.
+ SmallVector<IGCATarget> Targets;
+ for (const IGCATargetNameEntry &E : IGCATargetNames)
+ if (IGCATarget T(E.Target, E.FeatureSet); T.isValid())
+ Targets.push_back(T);
----------------
tahonermann wrote:
This code will require updates due to changes proposed in https://github.com/llvm/llvm-project/pull/246982.
https://github.com/llvm/llvm-project/pull/227877
More information about the cfe-commits
mailing list