[clang] [NFC][clang-repl] Introduce OffloadType for CUDA/HIP device selection (PR #231391)
Aditya Sinha via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 00:33:07 PDT 2026
================
@@ -515,14 +522,20 @@ Interpreter::createWithCUDA(std::unique_ptr<CompilerInstance> CI,
Interp->DeviceCI = std::move(DCI);
- auto DeviceParser = std::make_unique<IncrementalCUDADeviceParser>(
- *Interp->DeviceCI, *Interp->getCompilerInstance(),
- Interp->DeviceAct.get(), IMVFS, Err, Interp->PTUs);
+ if (Type == OffloadType::HIP) {
+ // FIXME: HIP device parsing is not supported yet; it should use an
----------------
AdityaSinha149 wrote:
makes sense, did the change. Thanks for the review
https://github.com/llvm/llvm-project/pull/231391
More information about the cfe-commits
mailing list