[clang] [clang-repl] Put CompilerInstance from IncrementalAction to use for non-assert/assert builds (PR #155400)

2025-08-27 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 closed https://github.com/llvm/llvm-project/pull/155400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Put CompilerInstance from IncrementalAction to use for non-assert/assert builds (PR #155400)

2025-08-27 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Thanks for the review. Merging ! https://github.com/llvm/llvm-project/pull/155400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Put CompilerInstance from IncrementalAction to use for non-assert/assert builds (PR #155400)

2025-08-26 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Thanks @mikaelholmen for the report. https://github.com/llvm/llvm-project/pull/155400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Put CompilerInstance from IncrementalAction to use for non-assert/assert builds (PR #155400)

2025-08-26 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: This way 1) Code is more readable (no shadowing) 2) The warning should go away. https://github.com/llvm/llvm-project/pull/155400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [clang-repl] Put CompilerInstance from IncrementalAction to use for non-assert/assert builds (PR #155400)

2025-08-26 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/155400 See https://github.com/llvm/llvm-project/pull/137458#discussion_r2300649286 >From ef003a25307a467d4b9f9e22498c9ac8851c5a02 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Tue, 26 Aug 2025 17:42:48 +0530 Subj

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-08-26 Thread Anutosh Bhat via cfe-commits
@@ -0,0 +1,90 @@ +//===--- IncrementalAction.h - Incremental Frontend Action -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-08-26 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: > It seems like the direction is reasonable. Could you update the PR > description and the commit message to capture the intent of this PR? Thank you. I have updated the PR description and we can update the commit message to convey the same while squashing & merging I suppose

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-08-26 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: This works as expected now ! ``` anutosh491@vv-nuc:/build/anutosh491/llvm-project/build2/bin$ ./clang-repl --cuda clang-repl> extern "C" int printf(const char*, ...); clang-repl> template __device__ inline T sum(T a, T b) { return a + b; } clang-repl> __global__ void test_ker

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-08-26 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 >From 1d773dea825579e43485b99d57931c6fa19f1768 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Sat, 26 Apr 2025 18:56:38 +0530 Subject: [PATCH 1/4] Delegate CodeGen related operations for PTU to IncrementalP

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-08-26 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/137458 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-08-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 >From 1d773dea825579e43485b99d57931c6fa19f1768 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Sat, 26 Apr 2025 18:56:38 +0530 Subject: [PATCH 1/2] Delegate CodeGen related operations for PTU to IncrementalP

[clang] [clang-repl] Address error recovery fixing infinite loop while parsing (PR #127569)

2025-08-21 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Thanks for the reply. > I suspect we could somehow invert the rule considering eof as a > non-terminator when incremental extensions is on. In this case we will have > to figure out the places where eof should be treated as a terminator... So if i understand correctly, we co

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 closed https://github.com/llvm/llvm-project/pull/154513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Thanks for the review. Merging! https://github.com/llvm/llvm-project/pull/154513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 auto_merge_enabled https://github.com/llvm/llvm-project/pull/154513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/154513 >From e5b449adbd6b4fad167ac700287591a4a8772c7b Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Wed, 20 Aug 2025 16:18:43 +0530 Subject: [PATCH] Fix InstantiateTemplate & Value test while building against ems

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/154513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Towards https://github.com/llvm/llvm-project/issues/153461 I guess only Undo remains after this ! https://github.com/llvm/llvm-project/pull/154513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: cc @mcbarton @vgvassilev https://github.com/llvm/llvm-project/pull/154513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/154513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix InstantiateTemplate & Value test while building against emscripten (PR #154513)

2025-08-20 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/154513 Building with assertions flag (-sAssertions=2) gives me these ``` [ RUN ] InterpreterTest.InstantiateTemplate Aborted(Assertion failed: undefined symbol '__clang_Interpreter_SetValueWithAlloc'. perhaps a si

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 closed https://github.com/llvm/llvm-project/pull/150977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Could you squash the commits into few meaningful ones ? https://github.com/llvm/llvm-project/pull/150977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-13 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Would also probably make sense to add a very simple "Fix me" comment isn't it ? (skipping them as such conveys that those particular tests probably shouldn't work for emscripten) https://github.com/llvm/llvm-project/pull/150977 ___

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-13 Thread Anutosh Bhat via cfe-commits
@@ -38,8 +38,10 @@ class InterpreterTestBase : public ::testing::Test { } void SetUp() override { +#ifndef __EMSCRIPTEN__ if (!HostSupportsJIT()) GTEST_SKIP(); +#endif anutosh491 wrote: So trying to understand this better, HostSupportsJIT() wo

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-08-06 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 approved this pull request. LGTM. Thanks ! https://github.com/llvm/llvm-project/pull/147478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-30 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 approved this pull request. Looks okay to me, let's see what other reviewers have to say. https://github.com/llvm/llvm-project/pull/147478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-07-30 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: > I think this PR is ready to go in now as a first step in having Emscripten > tests for llvm clang-repl interpreter. So we would be testing this through cppinterop's CI is it ? > the test crashes gtest Interested in seeing what the error message says. We can fix it later if

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-07-29 Thread Anutosh Bhat via cfe-commits
@@ -29,8 +29,9 @@ Target &llvm::getTheWebAssemblyTarget64() { extern "C" LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyTargetInfo() { - RegisterTarget X(getTheWebAssemblyTarget32(), "wasm32", - "WebAssembly 32-bit", "WebAsse

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-07-29 Thread Anutosh Bhat via cfe-commits
@@ -37,6 +37,9 @@ TEST(IncrementalCompilerBuilder, SetCompilerArgs) { } TEST(IncrementalCompilerBuilder, SetTargetTriple) { +#ifdef __EMSCRIPTEN__ + GTEST_SKIP() << "Test fails for Emscipten builds"; +#endif anutosh491 wrote: Hmm, we should be able to fetch

[clang] [REAPPLY][Clang-Repl] Add support for out-of-process execution. #110418 (PR #144064)

2025-07-08 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 milestoned https://github.com/llvm/llvm-project/pull/144064 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-06-10 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Hi, On phone right now so shall have a better look at the error in sometime but just for some clarification, the parsing error is expected (we had a seg fault on master for this whereas a parsing error is expected and that's what the Pr is trying to achieve) https://github

[clang] Revert "[clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (#142749) (PR #142933)

2025-06-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/142933 >From ff70ffb72ad5c424b49f41b189699a2dcd69d00c Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Thu, 5 Jun 2025 14:31:53 +0530 Subject: [PATCH] Revert "[clang-repl] Ensure clang-repl accepts all C keywords su

[clang] Revert "[clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (#142749) (PR #142933)

2025-06-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/142933 This reverts commit 7ca7bcb7d8dcf26fc0281697fe47aa6cdb3884c0. >From 6652fcc6d8b61e66cae4dc05a4192c0668b1eb11 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Thu, 5 Jun 2025 14:31:53 +0530 Subject: [PATCH]

[clang] [clang-repl] Mark disambiguate-decl-stmt.cpp as UNSUPPORTED on ppc64le and AIX (PR #142923)

2025-06-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 converted_to_draft https://github.com/llvm/llvm-project/pull/142923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (#142749) (PR #142933)

2025-06-05 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Needed a revert as we added a test for running `_Float16` with clang-repl only to realize later that it should be conditionally ignored for platforms such as ppc64le and AIX https://github.com/llvm/llvm-project/pull/142933 ___ cfe-c

[clang] [clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (PR #142749)

2025-06-04 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 closed https://github.com/llvm/llvm-project/pull/142749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (PR #142749)

2025-06-04 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Should help us in the long run and fix the errors we see while including input/output based header on xeus-cpp-lite (happens cause these internally reference `_Noreturn` that clang-repl currently fails to understand) ![image](https://github.com/user-attachments/assets/d5da48b

[clang] [clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (PR #142749)

2025-06-04 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: The error comes from here to be precise https://github.com/llvm/llvm-project/blob/41841e625db8d14d6701e7cb211b2fcab6a32a50/clang/lib/Parse/Parser.cpp#L1026-L1028 `IsDeclarationStatement` should be true but return false enabling a faulty call to `ParseTopLevelStmtDecl` https:/

[clang] [clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (PR #142749)

2025-06-04 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: On **Main** ``` anutosh491@vv-nuc:/build/anutosh491/llvm-project/build/bin$ ./clang-repl clang-repl> _Alignas(16) int x; clang-repl> int align = _Alignof(double); clang-repl> _Atomic int atomic_var = 0; clang-repl> _Complex double complex_val = 1.0 + 2.0i; clang-repl> _Float16 f

[clang] [clang-repl] Ensure clang-repl accepts all C keywords supported in all language models (PR #142749)

2025-06-04 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/142749 As can be seen through the docs (https://github.com/llvm/llvm-project/blob/7e1fa09ce2a228c949ce4490c98f2c73ed8ada00/clang/docs/LanguageExtensions.rst#c-keywords-supported-in-all-language-modes), Clang suppor

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-06-02 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/3b4c51bb3243a02526313c51207a674139b67a00 https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-06-02 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 milestoned https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-06-02 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 closed https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-06-02 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/127467 >From bd1b0b2a14afeb73755db3a7deb6bffd4f50778c Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Mon, 17 Feb 2025 15:33:20 +0530 Subject: [PATCH 1/4] Fix error recovery while PTU cleanup --- clang/lib/Interpr

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-06-02 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/127467 >From bd1b0b2a14afeb73755db3a7deb6bffd4f50778c Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Mon, 17 Feb 2025 15:33:20 +0530 Subject: [PATCH 1/3] Fix error recovery while PTU cleanup --- clang/lib/Interpr

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-05-13 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/127467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-05-13 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/127467 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,san

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-05-13 Thread Anutosh Bhat via cfe-commits
@@ -14,4 +15,13 @@ auto r2 = l2(); auto r3 = l2(); // CHECK: TWO -%quit +// Verify non-local lambda capture error is correctly reported +int x = 42; + +// expected-error {{non-local lambda expression cannot have a capture-default}} +auto capture = [&]() { return x * 2; }; + --

[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

2025-05-13 Thread Anutosh Bhat via cfe-commits
@@ -14,4 +15,13 @@ auto r2 = l2(); auto r3 = l2(); // CHECK: TWO -%quit +// Verify non-local lambda capture error is correctly reported +int x = 42; + +// expected-error {{non-local lambda expression cannot have a capture-default}} +auto capture = [&]() { return x * 2; }; + --

[clang] [clang] Add support for Debian 14 Forky and Debian 15 Duke (PR #138460)

2025-05-06 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: > Someone probably ought to open an issue for this caveat. I don't know who would be responsible for looking into this just yet :| Can we raise something and tag someone responsible for this ? https://github.com/llvm/llvm-project/pull/138460 __

[clang] [clang] Add support for Debian 14 Forky and Debian 15 Duke (PR #138460)

2025-05-06 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: I did the same and worked pretty smoothly. Thank you :) https://github.com/llvm/llvm-project/pull/138460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-06 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Deleting the branch and cherry picking seems problematic (https://github.com/llvm/llvm-project/pull/138460#issuecomment-2853718367) hence I've restored it and tried cherry picking again ! https://github.com/llvm/llvm-project/pull/138091 ___

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-06 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/529b6fcb00aabbed17365e5fb3abbc2ae127c967 https://github.com/llvm/llvm-project/pull/138091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [clang] Add support for Debian 14 Forky and Debian 15 Duke (PR #138460)

2025-05-06 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: > Seems like the cherry-pick only works if the branch of the PR still exists. 🤔 Thanks for pointing this out. I faced a similar issue when I deleted the branch and tried cherry picking ! Now that I've restored the branch, should I try cherry picking again ? https://github.co

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-05 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/529b6fcb00aabbed17365e5fb3abbc2ae127c967 https://github.com/llvm/llvm-project/pull/138091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-05-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 >From 1d773dea825579e43485b99d57931c6fa19f1768 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Sat, 26 Apr 2025 18:56:38 +0530 Subject: [PATCH 1/2] Delegate CodeGen related operations for PTU to IncrementalP

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-05-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,san

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-05-05 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/137458 >From 1d773dea825579e43485b99d57931c6fa19f1768 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Sat, 26 Apr 2025 18:56:38 +0530 Subject: [PATCH 1/2] Delegate CodeGen related operations for PTU to IncrementalP

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-01 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/138091 >From aba1800393455fd99feeb9017a4ead4fd582 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Thu, 1 May 2025 12:16:06 +0530 Subject: [PATCH] Fix destructor for interpreter for the cuda negation case --- c

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-01 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/138091 >From 8783ea05d2d7f4504978427764da7e78c088aa39 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Thu, 1 May 2025 12:16:06 +0530 Subject: [PATCH 1/2] Fix destructor for interpreter for the cuda negation case --

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-01 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: The cuda tests for the negation case should now work (not segfault because libcudart.so is not found but simply get skipped). ``` 1: Test command: /build/anutosh491/CppInterOp/build1/unittests/CppInterOp/CppInterOpTests/unittests/bin/Release/CppInterOpTests 1: Working Director

[clang] [clang-repl] Fix destructor for interpreter for the cuda negation case (PR #138091)

2025-05-01 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/138091 Check this error for more context (https://github.com/compiler-research/CppInterOp/actions/runs/14749797085/job/41407625681?pr=491#step:10:531) This fails with ``` * thread #1, name = 'CppInterOpTests', sto

[clang] [clang-repl] Implement LoadDynamicLibrary for clang-repl wasm use cases (PR #133037)

2025-04-28 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/8f56394487a4d454be0637667267ad37bd636d0f https://github.com/llvm/llvm-project/pull/133037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-28 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/21fb19f3b5d572f608e959af895d781b9b24fbbd https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-28 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: /cherry-pick [21fb19f](https://github.com/llvm/llvm-project/commit/21fb19f3b5d572f608e959af895d781b9b24fbbd) https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [clang-repl] Implement LoadDynamicLibrary for clang-repl wasm use cases (PR #133037)

2025-04-28 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: /cherry-pick [8f56394](https://github.com/llvm/llvm-project/commit/8f56394487a4d454be0637667267ad37bd636d0f) https://github.com/llvm/llvm-project/pull/133037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [clang-repl] Delegate CodeGen related operations for PTU to IncrementalParser (PR #137458)

2025-04-26 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/137458 Read discussion https://github.com/llvm/llvm-project/pull/136404#discussion_r2059149768 and the following comments for context >From 1d773dea825579e43485b99d57931c6fa19f1768 Mon Sep 17 00:00:00 2001 From: a

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From d10dab46a0d95ad5e3d44ac826efd18c8aa645ee Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH] Fix cuda flag with clang-repl --- clang/include/clang/Interpre

[clang] [clang-repl] Handle frontend options for clang-repl before calling executeAction (PR #132670)

2025-04-25 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Hey @serge-sans-paille , Gentle ping. This should be ready from my side. Would be great if you could review it anytime soon. https://github.com/llvm/llvm-project/pull/132670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [clang-repl] Implement LoadDynamicLibrary for clang-repl wasm use cases (PR #133037)

2025-04-25 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Hey @vgvassilev could you help me add a milestone label for this PR to address this failure https://github.com/llvm/llvm-project/pull/133037#issuecomment-2771480167 https://github.com/llvm/llvm-project/pull/133037 ___ cfe-commits ma

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From d10dab46a0d95ad5e3d44ac826efd18c8aa645ee Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/2] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From d10dab46a0d95ad5e3d44ac826efd18c8aa645ee Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/4] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From d10dab46a0d95ad5e3d44ac826efd18c8aa645ee Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/3] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 6c64e64c4a3b56f50808cae244b29da1231525f1 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/5] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
@@ -760,8 +787,10 @@ std::unique_ptr Interpreter::GenModule() { return nullptr; } -CodeGenerator *Interpreter::getCodeGen() const { - FrontendAction *WrappedAct = Act->getWrapped(); +CodeGenerator *Interpreter::getCodeGen(IncrementalAction *Action) const { + if (!Action) +

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From d10dab46a0d95ad5e3d44ac826efd18c8aa645ee Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/2] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 6c64e64c4a3b56f50808cae244b29da1231525f1 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/6] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 6c64e64c4a3b56f50808cae244b29da1231525f1 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/7] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
@@ -760,8 +787,10 @@ std::unique_ptr Interpreter::GenModule() { return nullptr; } -CodeGenerator *Interpreter::getCodeGen() const { - FrontendAction *WrappedAct = Act->getWrapped(); +CodeGenerator *Interpreter::getCodeGen(IncrementalAction *Action) const { + if (!Action) +

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-25 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 6c64e64c4a3b56f50808cae244b29da1231525f1 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/4] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
@@ -50,25 +50,6 @@ IncrementalCUDADeviceParser::Parse(llvm::StringRef Input) { if (!PTU) return PTU.takeError(); - auto PTX = GeneratePTX(); anutosh491 wrote: Yes absolutely ! Sorry for overlooking this. Made the change. https://github.com/llvm/llvm-

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 6c64e64c4a3b56f50808cae244b29da1231525f1 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/3] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
@@ -760,8 +787,10 @@ std::unique_ptr Interpreter::GenModule() { return nullptr; } -CodeGenerator *Interpreter::getCodeGen() const { - FrontendAction *WrappedAct = Act->getWrapped(); +CodeGenerator *Interpreter::getCodeGen(IncrementalAction *Action) const { + if (!Action) +

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
@@ -28,20 +28,21 @@ IncrementalCUDADeviceParser::IncrementalCUDADeviceParser( std::unique_ptr DeviceInstance, CompilerInstance &HostInstance, llvm::IntrusiveRefCntPtr FS, -llvm::Error &Err, const std::list &PTUs) +llvm::Error &Err, std::list &PTUs) : In

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 6c64e64c4a3b56f50808cae244b29da1231525f1 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/2] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
@@ -28,20 +28,21 @@ IncrementalCUDADeviceParser::IncrementalCUDADeviceParser( std::unique_ptr DeviceInstance, CompilerInstance &HostInstance, llvm::IntrusiveRefCntPtr FS, -llvm::Error &Err, const std::list &PTUs) anutosh491 wrote: Thanks for po

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
@@ -560,6 +576,16 @@ Interpreter::Parse(llvm::StringRef Code) { llvm::Expected DeviceTU = DeviceParser->Parse(Code); if (auto E = DeviceTU.takeError()) return std::move(E); + +RegisterPTU(*DeviceTU, nullptr, DeviceAct.get()); + +llvm::Expected PTX = Device

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
@@ -760,8 +787,10 @@ std::unique_ptr Interpreter::GenModule() { return nullptr; } -CodeGenerator *Interpreter::getCodeGen() const { - FrontendAction *WrappedAct = Act->getWrapped(); +CodeGenerator *Interpreter::getCodeGen(IncrementalAction *Action) const { + if (!Action) +

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
@@ -28,20 +28,21 @@ IncrementalCUDADeviceParser::IncrementalCUDADeviceParser( std::unique_ptr DeviceInstance, CompilerInstance &HostInstance, llvm::IntrusiveRefCntPtr FS, -llvm::Error &Err, const std::list &PTUs) +llvm::Error &Err, std::list &PTUs) : In

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Making a note of the major changes below ! https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 6c64e64c4a3b56f50808cae244b29da1231525f1 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH] Fix cuda flag with clang-repl --- clang/include/clang/Interpre

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 87ca1f6992d1413d1d2b2e0d230b4f41e1979fef Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/2] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 87ca1f6992d1413d1d2b2e0d230b4f41e1979fef Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH] Fix cuda flag with clang-repl --- clang/include/clang/Interpre

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-24 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 1f7205615f8d11c1b58e2a2760f85663f97767c5 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/4] Fix cuda flag with clang-repl --- clang/include/clang/Inte

  1   2   3   >