[clang] [NFC][clang-repl] Introduce OffloadType for CUDA/HIP device selection (PR #231391)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 13 00:58:11 PDT 2026


================
@@ -147,6 +151,9 @@ class Interpreter {
   create(std::unique_ptr<CompilerInstance> CI,
          std::unique_ptr<IncrementalExecutorBuilder> IEB = nullptr);
   static llvm::Expected<std::unique_ptr<Interpreter>>
+  createWithDevice(std::unique_ptr<CompilerInstance> CI,
+                   std::unique_ptr<CompilerInstance> DCI, OffloadType Type);
----------------
vgvassilev wrote:

Here the default value should be `Detect`.

https://github.com/llvm/llvm-project/pull/231391


More information about the cfe-commits mailing list