[clang] [clang-repl] Emit an AMDGPU object for the HIP device module (PR #234498)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 00:54:18 PDT 2026


================
@@ -56,6 +56,13 @@ class IncrementalHIPDeviceParser : public IncrementalDeviceParser {
   llvm::Error GenerateOffloadBinary() override;
 
   ~IncrementalHIPDeviceParser() override;
+
+private:
+  // Generate the AMDGPU object file for the last PTU.
+  llvm::Expected<llvm::StringRef> GenerateDeviceObject();
+
+  CompilerInstance &DeviceCI;
+  llvm::SmallVector<char, 0> ObjectContent;
----------------
vgvassilev wrote:

I'd move that to the beginning of the class and drop the `private` keyword.

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


More information about the cfe-commits mailing list