[Lldb-commits] [lldb] [lld] [llvm] [flang] [libc] [libcxx] [clang-tools-extra] [compiler-rt] [clang] [libcxxabi] [libunwind] [AMDGPU] Add test for GCNRegPressure tracker bug (PR #73786)

2023-11-30 Thread Piotr Sobczak via lldb-commits

piotrAMD wrote:

Rebased and added missing live-throughs.

https://github.com/llvm/llvm-project/pull/73786
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [lldb] [compiler-rt] [lld] [libc] [libcxx] [llvm] [flang] [clang-tools-extra] [clang] [libunwind] [libcxxabi] [AMDGPU] Add test for GCNRegPressure tracker bug (PR #73786)

2023-11-30 Thread Piotr Sobczak via lldb-commits

https://github.com/piotrAMD closed 
https://github.com/llvm/llvm-project/pull/73786
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [clang] [libcxx] [llvm] [lld] [compiler-rt] [flang] [libc] [lldb] [clang-tools-extra] [AMDGPU] Update IEEE and DX10_CLAMP for GFX12 (PR #75030)

2023-12-13 Thread Piotr Sobczak via lldb-commits

https://github.com/piotrAMD closed 
https://github.com/llvm/llvm-project/pull/75030
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [lld] [libc] [clang] [flang] [llvm] [lldb] [clang-tools-extra] [libcxx] [mlir] [compiler-rt] [AMDGPU] Min/max changes for GFX12 (PR #75214)

2023-12-13 Thread Piotr Sobczak via lldb-commits

https://github.com/piotrAMD closed 
https://github.com/llvm/llvm-project/pull/75214
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [clang] [lld] [flang] [llvm] [compiler-rt] [openmp] [lldb] [clang-tools-extra] [libcxx] [libc] [mlir] AMDGPU: Do not generate non-temporal hint when Load_Tr intrinsic did not specify it

2024-01-23 Thread Piotr Sobczak via lldb-commits


@@ -13,9 +13,8 @@ define amdgpu_kernel void @global_load_tr_b64(ptr 
addrspace(1) %addr, ptr addrsp
 ; GFX12-SDAG-W32-NEXT:s_load_b128 s[0:3], s[0:1], 0x24
 ; GFX12-SDAG-W32-NEXT:v_mov_b32_e32 v2, 0
 ; GFX12-SDAG-W32-NEXT:s_wait_kmcnt 0x0
-; GFX12-SDAG-W32-NEXT:global_load_tr_b64 v[0:1], v2, s[0:1] offset:32 
th:TH_LOAD_NT
+; GFX12-SDAG-W32-NEXT:global_load_tr_b64 v[0:1], v2, s[0:1] offset:32

piotrAMD wrote:

Thanks!

https://github.com/llvm/llvm-project/pull/79104
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [lld] [lldb] [libcxx] [clang] [libc] [clang-tools-extra] [flang] [llvm] [AMDGPU] Add pal metadata 3.0 support to callable pal funcs (PR #67104)

2024-02-05 Thread Piotr Sobczak via lldb-commits


@@ -1025,6 +1025,26 @@ void AMDGPUAsmPrinter::EmitProgramInfoSI(const 
MachineFunction &MF,
   OutStreamer->emitInt32(MFI->getNumSpilledVGPRs());
 }
 
+// Helper function to add common PAL Metadata 3.0+
+static void EmitPALMetadataCommon(AMDGPUPALMetadata *MD,
+  const SIProgramInfo &CurrentProgramInfo,
+  CallingConv::ID CC,
+  const MCSubtargetInfo &ST) {
+  MD->setHwStage(CC, ".ieee_mode", (bool)CurrentProgramInfo.IEEEMode);

piotrAMD wrote:

Maybe, but I wasn't sure. Seems we generally do not bother to do gfxip checks 
for others (e.g., "MemOrdered" is only supported on gfx10 and gfx11).

https://github.com/llvm/llvm-project/pull/67104
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


[Lldb-commits] [lld] [lldb] [libcxx] [clang] [libc] [clang-tools-extra] [flang] [llvm] [AMDGPU] Add pal metadata 3.0 support to callable pal funcs (PR #67104)

2024-02-05 Thread Piotr Sobczak via lldb-commits


@@ -1025,6 +1025,26 @@ void AMDGPUAsmPrinter::EmitProgramInfoSI(const 
MachineFunction &MF,
   OutStreamer->emitInt32(MFI->getNumSpilledVGPRs());
 }
 
+// Helper function to add common PAL Metadata 3.0+
+static void EmitPALMetadataCommon(AMDGPUPALMetadata *MD,
+  const SIProgramInfo &CurrentProgramInfo,
+  CallingConv::ID CC,
+  const MCSubtargetInfo &ST) {
+  MD->setHwStage(CC, ".ieee_mode", (bool)CurrentProgramInfo.IEEEMode);

piotrAMD wrote:

Sounds good.

https://github.com/llvm/llvm-project/pull/67104
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits