Author: Petr Hosek
Date: 2021-04-06T23:22:08-07:00
New Revision: 000cf84cf1bb2f5475600737c16c3ccf43096f58
URL:
https://github.com/llvm/llvm-project/commit/000cf84cf1bb2f5475600737c16c3ccf43096f58
DIFF:
https://github.com/llvm/llvm-project/commit/000cf84cf1bb2f5475600737c16c3ccf43096f58.diff
LO
Author: Petr Hosek
Date: 2021-04-20T12:30:35-07:00
New Revision: ae8b2cab67408a043a4fe964d16e4803553c4ee0
URL:
https://github.com/llvm/llvm-project/commit/ae8b2cab67408a043a4fe964d16e4803553c4ee0
DIFF:
https://github.com/llvm/llvm-project/commit/ae8b2cab67408a043a4fe964d16e4803553c4ee0.diff
LO
Author: Petr Hosek
Date: 2021-04-20T13:25:38-07:00
New Revision: f5efe0aa048b2bd3363b3a53efe9ae7367244801
URL:
https://github.com/llvm/llvm-project/commit/f5efe0aa048b2bd3363b3a53efe9ae7367244801
DIFF:
https://github.com/llvm/llvm-project/commit/f5efe0aa048b2bd3363b3a53efe9ae7367244801.diff
LO
Author: Petr Hosek
Date: 2021-04-20T13:43:56-07:00
New Revision: caff17e503fe81d69e90dd69b14f5149659f9db4
URL:
https://github.com/llvm/llvm-project/commit/caff17e503fe81d69e90dd69b14f5149659f9db4
DIFF:
https://github.com/llvm/llvm-project/commit/caff17e503fe81d69e90dd69b14f5149659f9db4.diff
LO
Author: Petr Hosek
Date: 2021-04-21T15:39:03-07:00
New Revision: f749550cfe9f0bf2364abb2139835348587062ed
URL:
https://github.com/llvm/llvm-project/commit/f749550cfe9f0bf2364abb2139835348587062ed
DIFF:
https://github.com/llvm/llvm-project/commit/f749550cfe9f0bf2364abb2139835348587062ed.diff
LO
Author: Petr Hosek
Date: 2021-04-21T15:39:03-07:00
New Revision: f749550cfe9f0bf2364abb2139835348587062ed
URL:
https://github.com/llvm/llvm-project/commit/f749550cfe9f0bf2364abb2139835348587062ed
DIFF:
https://github.com/llvm/llvm-project/commit/f749550cfe9f0bf2364abb2139835348587062ed.diff
LO
Author: Petr Hosek
Date: 2021-01-04T14:24:46-08:00
New Revision: f67d3dbdb930eaf92668b47696e51ef0b2c3c3a5
URL:
https://github.com/llvm/llvm-project/commit/f67d3dbdb930eaf92668b47696e51ef0b2c3c3a5
DIFF:
https://github.com/llvm/llvm-project/commit/f67d3dbdb930eaf92668b47696e51ef0b2c3c3a5.diff
LO
Author: Petr Hosek
Date: 2021-10-07T16:44:40-07:00
New Revision: ebcfd3ae8cc506e5f6056517dc295b74a3463d24
URL:
https://github.com/llvm/llvm-project/commit/ebcfd3ae8cc506e5f6056517dc295b74a3463d24
DIFF:
https://github.com/llvm/llvm-project/commit/ebcfd3ae8cc506e5f6056517dc295b74a3463d24.diff
LO
Author: Noah Shutty
Date: 2021-10-18T12:08:49-07:00
New Revision: 92b8cc52bbc8194f2cd6a5f742b874969421afca
URL:
https://github.com/llvm/llvm-project/commit/92b8cc52bbc8194f2cd6a5f742b874969421afca
DIFF:
https://github.com/llvm/llvm-project/commit/92b8cc52bbc8194f2cd6a5f742b874969421afca.diff
L
Author: Petr Hosek
Date: 2021-10-18T12:24:05-07:00
New Revision: 8e46e34d243524b9a1f9487718ea60e990b35fa3
URL:
https://github.com/llvm/llvm-project/commit/8e46e34d243524b9a1f9487718ea60e990b35fa3
DIFF:
https://github.com/llvm/llvm-project/commit/8e46e34d243524b9a1f9487718ea60e990b35fa3.diff
LO
Author: Noah Shutty
Date: 2021-10-18T18:57:25-07:00
New Revision: e678c51177102845c93529d457b020f969125373
URL:
https://github.com/llvm/llvm-project/commit/e678c51177102845c93529d457b020f969125373
DIFF:
https://github.com/llvm/llvm-project/commit/e678c51177102845c93529d457b020f969125373.diff
L
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/105999
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -127,16 +133,86 @@ std::string getFormatString() {
// GetMainExecutable (since some platforms don't support taking the
// address of main, and some platforms can't implement GetMainExecutable
// without being given the address of a function in the main executable).
-std::str
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/96555
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -142,7 +142,7 @@ if(WIN32 OR LLVM_WINSYSROOT)
set(RUNTIMES_${target}_CMAKE_MODULE_LINKER_FLAGS ${WINDOWS_LINK_FLAGS} CACHE
STRING "")
endif()
-foreach(target
aarch64-unknown-linux-gnu;armv7-unknown-linux-gnueabihf;i386-unknown-linux-gnu;riscv64-unknown-linux-gnu;x86_64-
@@ -28,6 +28,19 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
if (NOT LLVM_RUNTIMES_BUILD)
load_llvm_config()
endif()
+ if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE)
petrhosek wrote:
We support building `builtins` directly by runni
@@ -28,6 +28,19 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
if (NOT LLVM_RUNTIMES_BUILD)
load_llvm_config()
endif()
+ if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE)
+set(print_target_triple ${CMAKE_CXX_COMPILER}
--target=${LLVM_RUNTIME_TRIPLE}
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/89425
>From eb2459876526b78c97b04801dd07bd53540b2892 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Tue, 15 Feb 2022 22:59:58 -0800
Subject: [PATCH 1/2] [CMake] Use Clang to infer the target triple
When using Clang
@@ -181,6 +181,20 @@ message(STATUS "LLVM default target triple:
${LLVM_DEFAULT_TARGET_TRIPLE}")
set(LLVM_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}")
+if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE)
+ set(print_target_triple ${CMAKE_CXX_COMPILER}
--target=${LLVM_RU
@@ -28,6 +28,19 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
if (NOT LLVM_RUNTIMES_BUILD)
load_llvm_config()
endif()
+ if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE)
petrhosek wrote:
I have updated the block in `compiler-rt/cmake/M
petrhosek wrote:
> Does it really needed?
It is, #89234 only covers compiler-rt but not other runtime libraries such as
libc or libc++ so you might end up with the following:
```
lib/19/clang/lib/x86_64-unknown-linux-gnu/libclang_rt.builtins.a
lib/x86_64-linux-gnu/libc++.a
```
The driver will
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/96736
We want to support using a complete Clang/LLVM toolchain that includes LLVM
libc and libc++ for baremetal targets. To do so, we need the driver to add the
necessary include paths.
>From db5ae584cc00717d667d42
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/96803
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/96736
>From db5ae584cc00717d667d423a99d71a8d3ac46805 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Mon, 10 Jun 2024 20:27:52 +
Subject: [PATCH 1/2] [Driver] Support using toolchain libc and libc++ for
baremeta
@@ -296,6 +300,47 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList
&DriverArgs,
return;
const Driver &D = getDriver();
+ std::string Target = getTripleString();
+
+ auto AddCXXIncludePath = [&](StringRef Path) {
+std::string Version = detectLibcxxVers
@@ -296,6 +300,47 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList
&DriverArgs,
return;
const Driver &D = getDriver();
+ std::string Target = getTripleString();
+
+ auto AddCXXIncludePath = [&](StringRef Path) {
petrhosek wrote:
No, we a
@@ -296,6 +300,47 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList
&DriverArgs,
return;
const Driver &D = getDriver();
+ std::string Target = getTripleString();
+
+ auto AddCXXIncludePath = [&](StringRef Path) {
+std::string Version = detectLibcxxVers
@@ -296,6 +300,47 @@ void BareMetal::AddClangCXXStdlibIncludeArgs(const ArgList
&DriverArgs,
return;
const Driver &D = getDriver();
+ std::string Target = getTripleString();
+
+ auto AddCXXIncludePath = [&](StringRef Path) {
+std::string Version = detectLibcxxVers
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/96924
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
> @petrhosek Can someone explain why the clang executable in these tests is
> called `llvm` on the Fuchsia bots?
We enable the
[`LLVM_TOOL_LLVM_DRIVER_BUILD`](https://github.com/llvm/llvm-project/blob/48deb3568eb2452ff385b04b8f71c34121f47387/clang/cmake/caches/Fuchsia-stage2.c
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/112249
This addresses an issue introduced in #112041.
>From 8f2e6b76edf09812cfb9a26b13ebcadf711f8b8e Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Mon, 14 Oct 2024 18:49:29 +
Subject: [PATCH] [HIP] Suport LLVM
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/112249
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -466,7 +467,7 @@ void HIP::constructGenerateObjFileFromHIPFatBinary(
"-o", Output.getFilename(),
"-x", "assembler",
ObjinFile, "-c"};
- const char *Clang = Args.MakeArgString(C.getDriver().ClangE
petrhosek wrote:
I tested this locally in a clean build but I'm seeing the following build error:
```
CMake Error:
Running
'/usr/local/google/home/phosek/fuchsia/prebuilt/third_party/ninja/linux-x64/ninja'
'-C'
'/usr/local/google/home/phosek/llvm/llvm-project/build/fuchsia/runtimes/runti
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/113267
This cache file demonstrates how to build a complete baremetal Clang/LLVM
toolchain that can be used to build the Pico SDK.
>From 781d226916e6bc477494f707085b9ccab72befb6 Mon Sep 17 00:00:00 2001
From: Petr H
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/113267
>From 781d226916e6bc477494f707085b9ccab72befb6 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Mon, 21 Oct 2024 23:24:11 -0700
Subject: [PATCH 1/2] CMake cache file for building Pico SDK toolchain
This cache
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/111791
This is a dependency of #80007.
>From f9087b9d82954af96c80a41527dbe33e8d987086 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Thu, 10 Oct 2024 04:24:01 +
Subject: [PATCH] [Fuchsia][CMake] Set output name
petrhosek wrote:
> @petrhosek Where is the cache generating that build?
>
> The fix for this is:
>
> ```
> # On embedded platforms that don't support shared library targets, CMake
> implicitly changes shared
> # library targets to be static library targets. This results in duplicate
> definit
https://github.com/petrhosek approved this pull request.
Thanks for making the change!
https://github.com/llvm/llvm-project/pull/110804
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
> > > @petrhosek Can someone explain why the clang executable in these tests is
> > > called `llvm` on the Fuchsia bots?
> >
> >
> > We enable the
> > [`LLVM_TOOL_LLVM_DRIVER_BUILD`](https://github.com/llvm/llvm-project/blob/48deb3568eb2452ff385b04b8f71c34121f47387/clang/cmak
@@ -230,11 +230,22 @@ else()
endif()
set(LIBCXX_SUPPORTED_ABI_LIBRARIES none libcxxabi system-libcxxabi libcxxrt
libstdc++ libsupc++ vcruntime)
-set(LIBCXX_CXX_ABI "${LIBCXX_DEFAULT_ABI_LIBRARY}" CACHE STRING "Specify C++
ABI library to use. Supported values are ${LIBCXX_SUP
@@ -230,11 +230,22 @@ else()
endif()
set(LIBCXX_SUPPORTED_ABI_LIBRARIES none libcxxabi system-libcxxabi libcxxrt
libstdc++ libsupc++ vcruntime)
-set(LIBCXX_CXX_ABI "${LIBCXX_DEFAULT_ABI_LIBRARY}" CACHE STRING "Specify C++
ABI library to use. Supported values are ${LIBCXX_SUP
https://github.com/petrhosek commented:
LGTM
https://github.com/llvm/llvm-project/pull/112741
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/102371
>From 6dbb8be2352d0cdad44d293f7cc5c13f55ec243d Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Wed, 7 Aug 2024 07:40:09 +
Subject: [PATCH 1/2] [Fuchsia][CMake] Enable new libc header gen
All issues blocki
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/102371
>From 6dbb8be2352d0cdad44d293f7cc5c13f55ec243d Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Wed, 7 Aug 2024 07:40:09 +
Subject: [PATCH] [Fuchsia][CMake] Enable new libc header gen
All issues blocking t
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/102371
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
I think this is due to
https://github.com/llvm/llvm-project/blob/c3edeaa61bf0e7faed6c26f693b4fcd9102ba1ec/compiler-rt/lib/builtins/cpu_model/aarch64/lse_atomics/fuchsia.inc#L7
which I believe is yet another instance of #56070.
https://github.com/llvm/llvm-project/pull/112277
_
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/109364
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
> To be clear, are you asking _me_ to make a followup PR to change that
> identifier in this already-landed patch, or are you going to do it?
>
> (Just to avoid the situation where both of us do it, or both of us think the
> other is going to)
If you have time to implement it
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/116938
All issues blocking this were resolved.
>From 3ec4710a6f362e1d63b854c80ad2d7dcb40a24b0 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Wed, 13 Nov 2024 11:45:54 -0800
Subject: [PATCH] [Fuchsia][CMake] Enable
@@ -230,11 +230,22 @@ else()
endif()
set(LIBCXX_SUPPORTED_ABI_LIBRARIES none libcxxabi system-libcxxabi libcxxrt
libstdc++ libsupc++ vcruntime)
-set(LIBCXX_CXX_ABI "${LIBCXX_DEFAULT_ABI_LIBRARY}" CACHE STRING "Specify C++
ABI library to use. Supported values are ${LIBCXX_SUP
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/112277
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/116420
These are needed by some of our users.
>From 028021ded3dee3f55ba26540f5c9cf1a1e8cbb36 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Tue, 12 Nov 2024 19:50:46 +
Subject: [PATCH] [Fuchsia] Include runtime
petrhosek wrote:
> The runtimes build already builds the toolchain and then builds the runtimes
> with the just-built toolchain. Can we build the LTO-optimized libc++ as part
> of stage1 and have stage2 be what the current stage3 is, to avoid any
> redundancy? I really like the direction here
@@ -128,12 +128,14 @@ BareMetal::BareMetal(const Driver &D, const llvm::Triple
&Triple,
}
}
+namespace clang {
+namespace driver {
+namespace toolchains {
/// Is the triple {arm,armeb,thumb,thumbeb}-none-none-{eabi,eabihf} ?
-static bool isARMBareMetal(const llvm::Triple &
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/116174
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/116174
Reverts llvm/llvm-project#102371
>From be995b825da9c12c8fead48d2e5ba575f154bddf Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Wed, 13 Nov 2024 23:32:07 -0800
Subject: [PATCH] Revert "[Fuchsia][CMake] Enable
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/116420
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/116420
>From 028021ded3dee3f55ba26540f5c9cf1a1e8cbb36 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Tue, 12 Nov 2024 19:50:46 +
Subject: [PATCH 1/2] [Fuchsia] Include runtimes for armv8.1m.main-none-eabi
These
@@ -31,6 +31,7 @@ set(LLVM_STATIC_LINK_CXX_STDLIB ON CACHE BOOL "")
set(LLVM_USE_RELATIVE_PATHS_IN_FILES ON CACHE BOOL "")
set(LLDB_ENABLE_CURSES OFF CACHE BOOL "")
set(LLDB_ENABLE_LIBEDIT OFF CACHE BOOL "")
+set(LIBCXX_INCLUDE_BENCHMARKS OFF CACHE BOOL "")
pet
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/118691
We have users that target baremetal aarch64.
>From b9a09c6a5b4966ff7e614ace8a0e6a5a6a1916f4 Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Wed, 4 Dec 2024 00:47:10 -0800
Subject: [PATCH] [Fuchsia] Enable bar
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/118704
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/118416
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/117140
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek edited
https://github.com/llvm/llvm-project/pull/105893
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
Can you include a test as well?
https://github.com/llvm/llvm-project/pull/121875
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek edited
https://github.com/llvm/llvm-project/pull/121875
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -20,7 +20,7 @@ set(LIBUNWIND_C_SOURCES
)
set_source_files_properties(${LIBUNWIND_C_SOURCES}
PROPERTIES
- COMPILE_FLAGS "-std=c99")
+ COMPILE_FLAGS "-std=c99 -fexceptions")
-
petrhosek wrote:
> I believe all comments have been addressed. friendly ping. @petrhosek any
> feedback please?
The high-level comment is that the continuous mode isn't PGO specific, it was
actually originally developed primarily for coverage, although it can be used
for PGO as well due to th
@@ -2916,6 +2917,12 @@ instrumentation:
$ LLVM_PROFILE_FILE="code-%m.profraw" ./code
+ Although rare, binary signatures used by the ``%m`` specifier can have
+ collisions. In this case, the ``%b`` specifier, which expands to the binary
+ ID (build ID), can be added
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/123963
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/122565
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
LGTM
https://github.com/llvm/llvm-project/pull/126293
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/120323
>From 025652fd24c1dd13a3d628bd1a56c26e715badaa Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Fri, 6 Mar 2020 17:23:35 -0800
Subject: [PATCH] [Fuchsia] Support PGO
Enable 2-stage builds with PGO.
---
.../ca
https://github.com/petrhosek ready_for_review
https://github.com/llvm/llvm-project/pull/120323
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/126306
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
> Just saw this in LLVM weekly. But this is not supported on Windows right?
> Only the UNIX platforms that can mmap? In that case it the limitation needs
> to be documented
It is supported! We have [an `mmap` implementation for
Windows](https://github.com/llvm/llvm-project/bl
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/126876
Using LLVM build itself for PGO training is convenient and a great starting
point but it also has several issues:
* LLVM build implicitly depends on tools other than CMake and C/C++ compiler
and if those too
petrhosek wrote:
@tstellar We're trying to build a more minimal corpus that would address the
issues I listed with @ilovepi. In the meantime, it'd be helpful to have this
option since the current implementation actually breaks on our builders (which
don't have host toolchain and sysroot instal
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/118691
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/119633
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
> > I think this change could be made a lot smaller by doing a clean up first,
> > bringing the BareMetal driver closer to other drivers, before attempting to
> > merge the RISCVToolChain driver into it.
>
> Could you describe in a bit more detail which bits you think need to
https://github.com/petrhosek updated
https://github.com/llvm/llvm-project/pull/117362
>From f9f2fb604d49496fbbc65948d657de7f2638123c Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Fri, 22 Nov 2024 10:47:06 -0800
Subject: [PATCH 1/2] [libcxx] Support for using timespec_get
clock_gettime is a P
@@ -0,0 +1,785 @@
+//===-- Mustache.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: Ap
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/120323
Enable 2-stage builds with PGO.
>From 025652fd24c1dd13a3d628bd1a56c26e715badaa Mon Sep 17 00:00:00 2001
From: Petr Hosek
Date: Fri, 6 Mar 2020 17:23:35 -0800
Subject: [PATCH] [Fuchsia] Support PGO
Enable 2-s
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/117362
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/120370
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/119810
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -134,3 +147,42 @@ if(CLANG_ORDER_FILE AND
set_target_properties(clang PROPERTIES LINK_DEPENDS ${CLANG_ORDER_FILE})
endif()
endif()
+
+if (CLANG_BOLT AND NOT LLVM_BUILD_INSTRUMENTED)
+ # Add a clang-bolt target for backwards compatibility.
+ add_custom_target(clang-bo
@@ -558,7 +560,107 @@ def genOrderFile(args):
return 0
+def bolt_optimize(args):
+parser = argparse.ArgumentParser("%prog [options] ")
+parser.add_argument("--method")
+parser.add_argument("--input")
+parser.add_argument("--instrumented-output")
+pars
@@ -790,7 +790,9 @@ template
class LLVM_LIBRARY_VISIBILITY UEFITargetInfo : public OSTargetInfo {
protected:
void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
-MacroBuilder &Builder) const override {}
+MacroBuilder
https://github.com/petrhosek ready_for_review
https://github.com/llvm/llvm-project/pull/111719
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/111719
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
Can you include a test for this change?
https://github.com/llvm/llvm-project/pull/111719
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek approved this pull request.
https://github.com/llvm/llvm-project/pull/111473
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek created
https://github.com/llvm/llvm-project/pull/117362
clock_gettime is a POSIX API that may not be available on platforms like
baremetal; timespec_get is the C11 equivalent. This change adds support for
using timespec_get instead of clock_gettime to improve comp
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/116938
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/petrhosek closed
https://github.com/llvm/llvm-project/pull/101259
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
petrhosek wrote:
The `BareMetal` driver currently isn't very idiomatic (compared to other
drivers like `Generic_GCC`) and duplicates a lot of the logic that has been
already factored out in other drivers. I think this change could be made a lot
smaller by doing a clean up first, bringing the `
@@ -0,0 +1,113 @@
+//===--- Mustache.h -*- 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: Ap
801 - 900 of 969 matches
Mail list logo