[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-22 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc created https://github.com/llvm/llvm-project/pull/150022 Consider this declaration: `int foo();` This function is described in LLVM with `clang::FunctionNoProtoType` class. ([See description](https://clang.llvm.org/doxygen/classclang_1_1FunctionNoProtoType.html)) J

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-28 Thread Georgiy Samoylov via cfe-commits
sga-sc wrote: @kito-cheng @lenary @topperc guys, could you take a look, please? https://github.com/llvm/llvm-project/pull/150022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-29 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/150022 >From 7c08ebd3a3959e56799474bbad29a417f8859e93 Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 29 Jul 2025 13:28:59 +0300 Subject: [PATCH 1/2] [clang][DebugInfo] Changed way of getting callee function

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-29 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/150022 >From 94f1d8c353982b72b138131bd4127bbe84191cf7 Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 29 Jul 2025 13:28:59 +0300 Subject: [PATCH 1/2] [clang][DebugInfo] Changed way of getting callee function

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-29 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/150022 >From 4c5fb008e121531558a7a9d106642f8e954e91dc Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 29 Jul 2025 12:46:31 +0300 Subject: [PATCH 1/2] [DebugInfo] Changed way for getting callee function ---

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-29 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/150022 >From 765d83695bb45f501a06a83eaa13d048880dff5b Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 29 Jul 2025 12:46:31 +0300 Subject: [PATCH] [DebugInfo] Changed way for getting callee function --- clan

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-31 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/150022 >From 94f1d8c353982b72b138131bd4127bbe84191cf7 Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 29 Jul 2025 13:28:59 +0300 Subject: [PATCH 1/2] [clang][DebugInfo] Changed way of getting callee function

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-31 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/150022 >From 94f1d8c353982b72b138131bd4127bbe84191cf7 Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 29 Jul 2025 13:28:59 +0300 Subject: [PATCH 1/3] [clang][DebugInfo] Changed way of getting callee function

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-31 Thread Georgiy Samoylov via cfe-commits
sga-sc wrote: Ok, I see such test already exists. I added similar test for C https://github.com/llvm/llvm-project/pull/150022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-29 Thread Georgiy Samoylov via cfe-commits
sga-sc wrote: @efriedma-quic Addressed https://github.com/llvm/llvm-project/pull/150022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Fix clang dwarf info generation for unprtototyped function (PR #150022)

2025-07-30 Thread Georgiy Samoylov via cfe-commits
sga-sc wrote: Declaration with `!dbg` is emitted in case when we want to compile with optimizations and in some other cases: https://github.com/llvm/llvm-project/blob/0a8ddd396546bec7eaa4c3b7ef2f495e52bca0b8/clang/lib/CodeGen/CGDebugInfo.cpp#L6364-L6384 We call getCallSiteRelatedAttrs() functi

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc created https://github.com/llvm/llvm-project/pull/157703 This patch enables support for debug entry values. This improves quality of debug info for RISC-V >From 08b1675bf34d894d530cb215db6830e87f7ee2bb Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 2 Sep

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/157703 >From 08b1675bf34d894d530cb215db6830e87f7ee2bb Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 2 Sep 2025 18:35:36 +0300 Subject: [PATCH 1/2] [RISCV] Enabled debug entry support by default --- clang/

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/157703 >From 08b1675bf34d894d530cb215db6830e87f7ee2bb Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 2 Sep 2025 18:35:36 +0300 Subject: [PATCH 1/3] [RISCV] Enabled debug entry support by default --- clang/

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
sga-sc wrote: Yes, you are right, that file had to be deleted https://github.com/llvm/llvm-project/pull/157703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
https://github.com/sga-sc updated https://github.com/llvm/llvm-project/pull/157703 >From 08b1675bf34d894d530cb215db6830e87f7ee2bb Mon Sep 17 00:00:00 2001 From: Georgiy Samoylov Date: Tue, 2 Sep 2025 18:35:36 +0300 Subject: [PATCH 1/4] [RISCV] Enabled debug entry support by default --- clang/

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-12 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: sga-sc wrote: Added test for 32 bit RISC-V https://github.com/llvm/llvm-project/pull/157703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-13 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple

[clang] [llvm] [RISCV] Enabled debug entry support by default (PR #157703)

2025-09-20 Thread Georgiy Samoylov via cfe-commits
@@ -0,0 +1,74 @@ +;; Test RISC-V 64 bit: +; RUN: llc -emit-call-site-info -stop-after=livedebugvalues -mtriple=riscv64-linux-gnu -o - %s | FileCheck %s --check-prefix=CHECK64 +; RUN: llc -force-instr-ref-livedebugvalues=1 -emit-call-site-info -stop-after=livedebugvalues -mtriple