[clang] [clang-repl] Add OffloadType enum and HIP device parser skeleton (PR #231391)

Aditya Sinha via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 13 15:49:16 PDT 2026


================
@@ -479,6 +479,18 @@ llvm::Expected<std::unique_ptr<Interpreter>> Interpreter::create(
 llvm::Expected<std::unique_ptr<Interpreter>>
 Interpreter::createWithCUDA(std::unique_ptr<CompilerInstance> CI,
                             std::unique_ptr<CompilerInstance> DCI) {
+  return createWithDevice(std::move(CI), std::move(DCI), OffloadType::CUDA);
+}
+
+llvm::Expected<std::unique_ptr<Interpreter>>
+Interpreter::createWithDevice(std::unique_ptr<CompilerInstance> CI,
----------------
AdityaSinha149 wrote:

Currently because `-hip` option isn't available, a lit test won't be possible for this PR. Should i make a unittest or put the lit test in the next PR adding the `-hip` option.

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


More information about the cfe-commits mailing list