[clang] [llvm] [OpenMP][OpenMPIRBuilder] Support SPIR-V device variant matches (PR #126801)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 07:21:34 PST 2025
================
@@ -1067,7 +1067,8 @@ class CodeGenModule : public CodeGenTypeCache {
bool shouldEmitRTTI(bool ForEH = false) {
return (ForEH || getLangOpts().RTTI) && !getLangOpts().CUDAIsDevice &&
!(getLangOpts().OpenMP && getLangOpts().OpenMPIsTargetDevice &&
- (getTriple().isNVPTX() || getTriple().isAMDGPU()));
+ (getTriple().isNVPTX() || getTriple().isAMDGPU() ||
+ getTriple().isSPIRV()));
----------------
jhuber6 wrote:
I just mean most of these nonstandard hacks are only for offloading languages.
https://github.com/llvm/llvm-project/pull/126801
More information about the llvm-commits
mailing list