diff options
author | Nick Sarnie <nick.sarnie@intel.com> | 2025-02-13 01:40:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 16:40:05 +0000 |
commit | cb3498c6704daefc6e5221beb757126765737aa7 (patch) | |
tree | ad4ce3a236c0620c8dee4eed0ee941a01936f27d /clang/lib/CodeGen/CodeGenModule.h | |
parent | c77d2027592c93ca1a2009a90b64b5cbdf8cfba3 (diff) | |
download | llvm-cb3498c6704daefc6e5221beb757126765737aa7.zip llvm-cb3498c6704daefc6e5221beb757126765737aa7.tar.gz llvm-cb3498c6704daefc6e5221beb757126765737aa7.tar.bz2 |
[OpenMP][OpenMPIRBuilder] Support SPIR-V device variant matches (#126801)
We should be able to use `spirv64` as a device variant match and it
should be considered a GPU.
Also add the triple to an RTTI check.
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 0956296..c6f6fd5 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1067,7 +1067,8 @@ public: 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())); } /// Get the address of the RTTI descriptor for the given type. |