Lines Matching refs:ObjStream
299 llvm::raw_string_ostream ObjStream(ObjBuffer); in constructGenerateObjFileFromHIPFatBinary() local
336 ObjStream << "# HIP Object Generator\n"; in constructGenerateObjFileFromHIPFatBinary()
337 ObjStream << "# *** Automatically generated by Clang ***\n"; in constructGenerateObjFileFromHIPFatBinary()
341 ObjStream << " .section .hip_gpubin_handle,\"dw\"\n"; in constructGenerateObjFileFromHIPFatBinary()
343 ObjStream << " .protected " << PrimaryGpuBinHandleSymbol << "\n"; in constructGenerateObjFileFromHIPFatBinary()
344 ObjStream << " .type " << PrimaryGpuBinHandleSymbol << ",@object\n"; in constructGenerateObjFileFromHIPFatBinary()
345 ObjStream << " .section .hip_gpubin_handle,\"aw\"\n"; in constructGenerateObjFileFromHIPFatBinary()
347 ObjStream << " .globl " << PrimaryGpuBinHandleSymbol << "\n"; in constructGenerateObjFileFromHIPFatBinary()
348 ObjStream << " .p2align 3\n"; // Align 8 in constructGenerateObjFileFromHIPFatBinary()
349 ObjStream << PrimaryGpuBinHandleSymbol << ":\n"; in constructGenerateObjFileFromHIPFatBinary()
350 ObjStream << " .zero 8\n"; // Size 8 in constructGenerateObjFileFromHIPFatBinary()
354 ObjStream << " .globl " << AliasSymbol << "\n"; in constructGenerateObjFileFromHIPFatBinary()
355 ObjStream << " .set " << AliasSymbol << "," << PrimaryGpuBinHandleSymbol in constructGenerateObjFileFromHIPFatBinary()
362 ObjStream << " .section .hip_fatbin,\"dw\"\n"; in constructGenerateObjFileFromHIPFatBinary()
364 ObjStream << " .protected " << PrimaryHipFatbinSymbol << "\n"; in constructGenerateObjFileFromHIPFatBinary()
365 ObjStream << " .type " << PrimaryHipFatbinSymbol << ",@object\n"; in constructGenerateObjFileFromHIPFatBinary()
366 ObjStream << " .section .hip_fatbin,\"a\",@progbits\n"; in constructGenerateObjFileFromHIPFatBinary()
368 ObjStream << " .globl " << PrimaryHipFatbinSymbol << "\n"; in constructGenerateObjFileFromHIPFatBinary()
369 ObjStream << " .p2align " << llvm::Log2(llvm::Align(HIPCodeObjectAlign)) in constructGenerateObjFileFromHIPFatBinary()
373 ObjStream << " .globl " << AliasSymbol << "\n"; in constructGenerateObjFileFromHIPFatBinary()
374 ObjStream << " .set " << AliasSymbol << "," << PrimaryHipFatbinSymbol in constructGenerateObjFileFromHIPFatBinary()
377 ObjStream << PrimaryHipFatbinSymbol << ":\n"; in constructGenerateObjFileFromHIPFatBinary()
378 ObjStream << " .incbin "; in constructGenerateObjFileFromHIPFatBinary()
379 llvm::sys::printArg(ObjStream, BundleFile, /*Quote=*/true); in constructGenerateObjFileFromHIPFatBinary()
380 ObjStream << "\n"; in constructGenerateObjFileFromHIPFatBinary()
383 ObjStream << " .section .note.GNU-stack, \"\", @progbits\n"; in constructGenerateObjFileFromHIPFatBinary()
384 ObjStream.flush(); in constructGenerateObjFileFromHIPFatBinary()