File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1675,7 +1675,7 @@ class TargetInfo : public TransferrableTargetInfo,
1675
1675
// access target-specific GPU grid values that must be consistent between
1676
1676
// host RTL (plugin), deviceRTL and clang.
1677
1677
virtual const llvm::omp::GV &getGridValue () const {
1678
- return llvm::omp::SPIRVGridValues ;
1678
+ llvm_unreachable ( " getGridValue not implemented on this target " ) ;
1679
1679
}
1680
1680
1681
1681
// / Retrieve the name of the platform as it is used in the
Original file line number Diff line number Diff line change @@ -370,6 +370,10 @@ class LLVM_LIBRARY_VISIBILITY SPIRV64TargetInfo : public BaseSPIRVTargetInfo {
370
370
371
371
void getTargetDefines (const LangOptions &Opts,
372
372
MacroBuilder &Builder) const override ;
373
+
374
+ const llvm::omp::GV &getGridValue () const override {
375
+ return llvm::omp::SPIRVGridValues;
376
+ }
373
377
};
374
378
375
379
class LLVM_LIBRARY_VISIBILITY SPIRV64AMDGCNTargetInfo final
You can’t perform that action at this time.
0 commit comments