[all-commits] [llvm/llvm-project] 0b4f72: [clang-repl] Implement IncrementalHIPDeviceParser ...

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


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

  Changed paths:
    M clang/include/clang/CodeGen/CodeGenAction.h
    M clang/include/clang/Interpreter/Interpreter.h
    M clang/lib/CodeGen/BackendConsumer.h
    M clang/lib/CodeGen/CodeGenAction.cpp
    M clang/lib/Interpreter/DeviceOffload.cpp
    M clang/lib/Interpreter/DeviceOffload.h
    M clang/lib/Interpreter/Interpreter.cpp
    M clang/unittests/Basic/CMakeLists.txt
    A clang/unittests/Basic/TargetIDTest.cpp

  Log Message:
  -----------
  [clang-repl] Implement IncrementalHIPDeviceParser for HIP device compilation (#218337)

This PR implements the IncrementalHIPDeviceParser. It takes each
incremental statement's device code and lowers it all the way to a
loadable HIP fat binary: linking the ROCm device libraries, running the
AMDGPU optimization/codegen pipeline, producing a .hsaco code object,
and embedding it as __hip_fatbin for the host runtime to register and
launch.

This PR only adds the parser class, wiring it into Interpreter.cpp and
the end-to-end tests will come in a follow-up.

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