[llvm] [clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2024-01-04 Thread Jan Svoboda via cfe-commits
@@ -0,0 +1,48 @@ +//===-- Utils.h ---===// +// +// 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:

[llvm] [clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2024-01-04 Thread Jan Svoboda via cfe-commits
@@ -383,6 +383,9 @@ class FrontendOptions { LLVM_PREFERRED_TYPE(bool) unsigned ModulesShareFileManager : 1; + /// Connect to module build daemon + unsigned ModuleBuildDaemon : 1; jansvoboda11 wrote: Mark this with `LLVM_PREFERRED_TYPE(bool)`, like the

[llvm] [clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2024-01-04 Thread Jan Svoboda via cfe-commits
@@ -0,0 +1,48 @@ +//===-- Utils.h ---===// +// +// 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:

[llvm] [clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2024-01-04 Thread Jan Svoboda via cfe-commits
@@ -0,0 +1,60 @@ +//=== SocketMsgSupport.cpp ===// +// +// 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:

[llvm] [clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-12-14 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: > This seems like something that shouldn't be in the compiler binary itself. > There should be a separate binary for this type of thing. Discussed here: https://discourse.llvm.org/t/rfc-modules-build-daemon-build-system-agnostic-support-for-explicitly-built-modules/71524

[llvm] [clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-12-14 Thread Nico Weber via cfe-commits
nico wrote: This seems like something that shouldn't be in the compiler binary itself. There should be a separate binary for this type of thing. https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-11-01 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,135 @@ +//===- SocketMsgSupport.h -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-11-01 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,41 @@ +//===-- Client.h --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-11-01 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue edited https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-11-01 Thread Connor Sughrue via cfe-commits
@@ -3738,6 +3737,19 @@ static bool RenderModulesOptions(Compilation , const Driver , Std->containsValue("c++latest") || Std->containsValue("gnu++latest")); bool HaveModules = HaveStdCXXModules; + // -fmodule-build-daemon enables module build daemon functionality +

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,135 @@ +//===- SocketMsgSupport.h -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-30 Thread via cfe-commits
@@ -0,0 +1,41 @@ +//===-- Client.h --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-25 Thread Michael Spencer via cfe-commits
@@ -15,21 +12,12 @@ int main() {return 0;} // RUN: %clang -fmodule-build-daemon=mbd-handshake -Rmodule-build-daemon %t/main.c &> %t/output-existing // RUN: cat %t/output-existing | FileCheck %s --check-prefix=CHECK-EXIST -// CHECK: remark: Trying to spawn module build daemon

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-25 Thread Michael Spencer via cfe-commits
Bigcheese wrote: > I had a couple of questions. I guess my main concern here is that the TODO > for portability might turn out to be quite heavy lifting. Perhaps we should > be looking to abstract the socket-like interface at a lower level. We have someone working on a simple socket library

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-25 Thread Michael Spencer via cfe-commits
Bigcheese wrote: > > Implementing a timeout as part of this patch as a safety measure seems > > worth while too but I'm not sure I understand your final solution. You all > > spawned a clang job that had to communicate with the daemon to make sure > > one did not exist? > > It is something

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-25 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 5def87462e3b48cfebafdc2526ac929f5cb9cea3 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/6] [clang][MBD] set up module build daemon infrastructure The

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-25 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,134 @@ +//===- SocketMsgSupport.h -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-25 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,211 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-09 Thread Iain Sandoe via cfe-commits
https://github.com/iains commented: I had a couple of questions. I guess my main concern here is that the TODO for portability might turn out to be quite heavy lifting. Perhaps we should be looking to abstract the socket-like interface at a lower level.

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-09 Thread Steven Wu via cfe-commits
cachemeifyoucan wrote: > Implementing a timeout as part of this patch as a safety measure seems worth > while too but I'm not sure I understand your final solution. You all spawned > a clang job that had to communicate with the daemon to make sure one did not > exist? It is something like

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-09 Thread Iain Sandoe via cfe-commits
https://github.com/iains edited https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-09 Thread Iain Sandoe via cfe-commits
@@ -3738,6 +3737,19 @@ static bool RenderModulesOptions(Compilation , const Driver , Std->containsValue("c++latest") || Std->containsValue("gnu++latest")); bool HaveModules = HaveStdCXXModules; + // -fmodule-build-daemon enables module build daemon functionality +

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-09 Thread Iain Sandoe via cfe-commits
@@ -0,0 +1,134 @@ +//===- SocketMsgSupport.h -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-09 Thread Iain Sandoe via cfe-commits
@@ -0,0 +1,41 @@ +//===-- Client.h --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-08 Thread Iain Sandoe via cfe-commits
iains wrote: A possible mechanism might be to have a watchdog process, with which instances of the server are registered with a time-to-live. I guess this might be easier to construct as a scheme for test-suites than for end-user. https://github.com/llvm/llvm-project/pull/67562

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-07 Thread Connor Sughrue via cfe-commits
cpsughrue wrote: > I haven't read the PR in details but one thing we found difficult to do is > how to write a test for daemon spawning logic, because if anything went > wrong, you left an unbounded daemon process on CI node. > > The strategy in this PR (try to kill it after the test

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-05 Thread Steven Wu via cfe-commits
@@ -0,0 +1,302 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-05 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan commented: I haven't read the PR in details but one thing we found difficult to do is how to write a test for daemon spawning logic, because if anything went wrong, you left an unbounded daemon process on CI node. The strategy in this PR (try to kill it

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,302 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,211 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,211 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,109 @@ +//===- SocketSupport.cpp --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,128 @@ +//===- SocketSupport.cpp --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,109 @@ +//===- SocketSupport.cpp --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,109 @@ +//===- SocketSupport.cpp --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,211 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,211 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,211 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,211 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-04 Thread Michael Spencer via cfe-commits
@@ -261,6 +261,11 @@ def err_test_module_file_extension_version : Error< "test module file extension '%0' has different version (%1.%2) than expected " "(%3.%4)">; +def warn_module_build_daemon : Warning<"%0">, + InGroup; +def remark_module_build_daemon : Remark<"%0">,

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-30 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 5def87462e3b48cfebafdc2526ac929f5cb9cea3 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/5] [clang][MBD] set up module build daemon infrastructure The

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-30 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 5def87462e3b48cfebafdc2526ac929f5cb9cea3 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/4] [clang][MBD] set up module build daemon infrastructure The

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-30 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue edited https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-30 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 5def87462e3b48cfebafdc2526ac929f5cb9cea3 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/3] [clang][MBD] set up module build daemon infrastructure The

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-29 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,18 @@ +// Check that clang invocation can spawn and handshake with module build daemon + +// REQUIRES: !system-windows + +// RUN: if pgrep -f "cc1modbuildd mbd-handshake"; then pkill -f "cc1modbuildd mbd-handshake"; fi +// RUN: rm -rf mbd-handshake %t

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-29 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 9c8e6c71084e1f0e7a96987b7aa2d251b02bea48 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/3] [clang][MBD] set up module build daemon infrastructure The

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-29 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff b4a89a5edf08af9e03324274ebdce7e032ce 18d413991f49162923172fbb8ee5016eef954636 --

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-29 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 9c8e6c71084e1f0e7a96987b7aa2d251b02bea48 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/3] [clang][MBD] set up module build daemon infrastructure The

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-29 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,128 @@ +//===- SocketSupport.cpp --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue unresolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,267 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,267 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue resolved https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 9c8e6c71084e1f0e7a96987b7aa2d251b02bea48 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH 1/2] [clang][MBD] set up module build daemon infrastructure The

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-28 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,18 @@ +// Check that clang invocation can spawn and handshake with module build daemon + +// REQUIRES: !system-windows + +// RUN: if pgrep -f "cc1modbuildd mbd-handshake"; then pkill -f "cc1modbuildd mbd-handshake"; fi +// RUN: rm -rf mbd-handshake %t

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,267 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,267 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,267 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,267 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,18 @@ +// Check that clang invocation can spawn and handshake with module build daemon + +// REQUIRES: !system-windows + +// RUN: if pgrep -f "cc1modbuildd mbd-handshake"; then pkill -f "cc1modbuildd mbd-handshake"; fi +// RUN: rm -rf mbd-handshake %t +// RUN:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,167 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,18 @@ +// Check that clang invocation can spawn and handshake with module build daemon Bigcheese wrote: This test should also check that clang can connect to an existing MBD without spawning a new one. https://github.com/llvm/llvm-project/pull/67562

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,128 @@ +//===- SocketSupport.cpp --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,128 @@ +//===- SocketSupport.cpp --===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,31 @@ +//===-- SocketSupport.h ---===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese requested changes to this pull request. https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,167 @@ +//===- Client.cpp -===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,18 @@ +// Check that clang invocation can spawn and handshake with module build daemon + +// REQUIRES: !system-windows + +// RUN: if pgrep -f "cc1modbuildd mbd-handshake"; then pkill -f "cc1modbuildd mbd-handshake"; fi +// RUN: rm -rf mbd-handshake %t

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -2836,6 +2836,18 @@ defm declspec : BoolOption<"f", "declspec", NegFlag, BothFlags<[], [ClangOption, CC1Option], " __declspec as a keyword">>, Group; + +def fmodule_build_daemon : Flag<["-"], "fmodule-build-daemon">, Group, + Flags<[NoXarchOption]>, +

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
@@ -0,0 +1,44 @@ +//===- Protocol.h -===// Bigcheese wrote: Client.h https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese edited https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 9c8e6c71084e1f0e7a96987b7aa2d251b02bea48 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH] [clang][MBD] set up module build daemon infrastructure The module

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From ecea06aeedac75896e4d243420bc590e07891713 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH] [clang][MBD] set up module build daemon infrastructure The module

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue deleted https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue deleted https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue updated https://github.com/llvm/llvm-project/pull/67562 >From 4153aeb4e06c6bec6e27dd2c814708a3a8b8c842 Mon Sep 17 00:00:00 2001 From: cpsughrue Date: Sun, 9 Jul 2023 23:19:58 -0400 Subject: [PATCH] [clang][MBD] set up module build daemon infrastructure The module

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue edited https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue edited https://github.com/llvm/llvm-project/pull/67562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,273 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread Connor Sughrue via cfe-commits
@@ -0,0 +1,273 @@ +//===--- cc1modbuildd_main.cpp - Clang CC1 Module Build Daemon ===// +// +// 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:

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-09-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Changes The module build daemon (mbd) will be a cc1 tool that helps convert implicit module command lines to explicit module command lines. The basic workflow is as follows: A clang invocation will check whether a mbd exists. If not, the

  1   2   >