[all-commits] [llvm/llvm-project] d220d5: [clang-repl] Initialized HIP environment for clang...

Aditya Sinha via All-commits all-commits at lists.llvm.org
Fri Sep 25 10:26:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d220d5e8239db918bd68f404dae589385a8029e8
      https://github.com/llvm/llvm-project/commit/d220d5e8239db918bd68f404dae589385a8029e8
  Author: Aditya Sinha <155882262+AdityaSinha149 at users.noreply.github.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M clang/include/clang/Interpreter/Interpreter.h
    M clang/lib/Interpreter/Interpreter.cpp
    A clang/test/Interpreter/HIP/hip-environment.hip
    A clang/test/Interpreter/HIP/lit.local.cfg
    M clang/test/lit.cfg.py
    M clang/tools/clang-repl/ClangRepl.cpp

  Log Message:
  -----------
  [clang-repl] Initialized HIP environment for clang-repl (#217582)

This PR initializes the HIP environment for clang-repl. Since an
IncrementalHipDeviceParser does not exist yet, a message is printed
after the environment setup indicating that the HIP environment was set
up but is not yet supported.

It also adds a test file that runs clang-repl with the -hip option and
checks that this message is printed. Once the parser is built, the
current test file will be removed and replaced with tests that verify
the complete flow.

This PR has a prerequisite, #217228, which skips emitting the
`__hip_cuid_` global under incremental extensions. Without it,
clang-repl's HIP mode would emit the same symbol in every incremental
module and fail at JIT link with a duplicate-symbol error.

Assisted by Claude Opus 4.8



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list