Displaying 20 results from an estimated 10000 matches similar to: "Help required on running the regression tests"
2019 Jun 14
2
Help required on running the regression tests
Hi Joan,
On Fri, 14 Jun 2019 at 11:45, Joan Lluch <joan.lluch at icloud.com> wrote:
> When I started with this, I just downloaded the sources for the LLVM site, I did not even created a git for it. Then ran the CMAKE app (not from the command line) with the default settings other than also adding the ‘experimental’ targets, and boom a fully functional XCode project was created, so I gave
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
I don’t personally develop on Mac (i use Windows), but I have an analogous
setup there where i use ninja to build and Visual Studio for editing,
debugging, etc.
What i do, and I assume it will be the same or very similar for Xcode, is
to run cmake twice, once with Ninja, and once with VS (Xcode for you), from
separate directories. I build with the ninja one (“ninja clang” on command
line), and I
2019 Jul 01
3
Tablegen ridiculously slow when compiling for Debug
If someone can manage it, it wouldn't be a bad thing - obviously open up
more parallelism (I don't know how much of LLVM can be built before you hit
everything that needs tblgen run - I guess libSupport and some other bits)
On Mon, Jul 1, 2019 at 12:54 PM Zakharin, Vyacheslav P via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> [resending to the whole list]
>
>
>
>
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
Hey Joan,
Take a look at this patch, and see if it resolves your issue:
https://reviews.llvm.org/D64300 <https://reviews.llvm.org/D64300>
Thanks,
-Chris
> On Jul 7, 2019, at 3:54 PM, Chris Bieneman via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hey Joan,
>
> I looked into the Xcode build issue that you're experiencing, and it relates to a limitation in
2019 Jul 07
3
Linker errors after installing/compiling LLVM/CLANG
I’m not saying you can’t use Xcode, I’m just saying that instead of
*building* in Xcode, just type “ninja” on the command line to do your build
and then use Xcode as you normally would.
I don’t think it’s the case that LLVM does not intend to support Xcode,
just that its a community driven project, so unless someone is sufficiently
motivated to fix whatever this problem is, it might stay this way
2019 Jul 02
4
Tablegen ridiculously slow when compiling for Debug
Much of this has been discussed (over many, many years) on
https://bugs.llvm.org/show_bug.cgi?id=28222
Some of the issues that were identified included:
1 - Poor tablegen dependency handling leading to unexpected rebuilds.
2 - Debug STL iterator checks taking an insane amount of time (might be
MSVC specific).
3 - Lack of parallelization of custom commands (XCode and VS builds) -
VS at least
2019 Jul 01
2
Tablegen ridiculously slow when compiling for Debug
Hey Joan,
When looking for build support it is really useful to include a bunch of information about your build up front. Knowing that you are on macOS, and using the Xcode generator are really useful.
On macOS, BUILD_SHARED_LIBS won’t really help much because the default linker (ld64) is pretty good. Using an IDE generator and setting LLVM_USE_OPTIMIZED_TABLEGEN will kill your release builds.
2019 Jun 30
2
Tablegen ridiculously slow when compiling for Debug
This is also the case with the Visual Studio generators. Custom commands in
a single cmake file essentially get written out line by line into a single
batch file that gets processed as a custom build step. In the VS case this
means that it can, for example, run X86 and Aarch64 tablegen steps in
parallel with each other but all of the individual X86 invocations get
processed serially. I can well
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
Try using ninja generator, most people do not use Xcode for building, so
since it lesser-used, it also lesser tested. Note that it’s perfectly
possible to use Xcode for code browsing, debugging, editing while using
ninja for building, which is what I think most people do
On Sun, Jul 7, 2019 at 4:20 AM Joan Lluch via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I also filled a bug
2019 Jul 09
2
Tablegen ridiculously slow when compiling for Debug
FWIW, tablegen does not update timestamps for .inc files, if their contents is unchanged, so if you somehow affect a .td file's timestamp (without changing its contents) it will trigger rebuild of the corresponding .inc file with all subsequent incremental make builds. At the same time, this will not trigger rebuilding any targets dependent on this .inc file, since it is not modified. From
2019 Jun 30
3
Tablegen ridiculously slow when compiling for Debug
Hi Praveen,
Thanks for the tip, but Xcode seems to spend all the time running tablegen "custom shell scripts", one by one at a time, not linking. Linking is actually very fast, possibly less than a second. The “scripts” that take longer are “AArch64CommonTableGen" and “AMDGPUCommonTableGen”. As said this is on LLVM 9.0.
However, on LLVM 7.0.1, the same process takes just 5-6
2019 Jul 07
2
Linker errors after installing/compiling LLVM/CLANG
I understand that a difference between ninja and xcode is they use a different way to determine code dependencies. So to my understanding xcode needs dependencies to be properly created whereas ninja just doesn’t care. Maybe this is why ninja is able to find what it needs for the compilation to succeed, but not xcode.
So I have now looked at the CMakeLists.txt files and found that all the missing
2019 May 05
2
How to get CLang array alloca alignments to be smaller than 16 bytes?
To be honest, I don’t either know what really happens under the hood when CMake creates the xCode project for CLang+LLVM. But there’s something really explicit going on there, because the project as it’s shown in xCode does not have the same file grouping structure than the actual physical folders. Not only the project file grouping doesn't match the physical folder locations, but the group
2019 Jul 06
2
Linker errors after installing/compiling LLVM/CLANG
Hi Nelson,
Thanks for your reply.
The “build/Debug/lib” and "build/Release/lib” directories is where all the libraries go. Similarly, the executables go to “build/Debug/bin” and “build/Release/bin” before they are moved to the install directory. This is expected and normal. However, the problem is that a small number of libraries (exactly 20 in total) are not created at all for the LLVM
2019 Jul 26
2
Some xcode schemes not appearing now in Xcode after cmake install (??)
Hi all
In order to get ready for the upcoming final 9.0 release code I have now switched to the 'release/9.x' branch that I pulled from github.
Unfortunately, after running cmake in the usual way, I found that many xcode schemes are missing on the resulting project.
Particularly, I added -DLLVM_ENABLE_PROJECTS=clang to the terminal command line. The logs correctly state that ‘clang
2019 Jun 30
2
Tablegen ridiculously slow when compiling for Debug
Hi Praveen,
Please, can you elaborate on this?. What do do mean by “building as shared objects”.
Thanks,
John
> On 30 Jun 2019, at 07:32, Praveen Velliengiri <praveenvelliengiri at gmail.com> wrote:
>
> Maybe try building llvm as a shared objects..
>
> On Jun 30, 2019 1:30 AM, "Joan Lluch via llvm-dev" <llvm-dev at lists.llvm.org <mailto:llvm-dev at
2019 May 05
2
How to get CLang array alloca alignments to be smaller than 16 bytes?
Hi Tim
I created an Xcode project with CMAKE, which should have the entire lot of files. Selecting the ‘install’ scheme Xcode compiles everything including all available targets for clang and llc, which then I can fully debug. So the Xcode project definitely has all the cpp files in it.
However, I now have found that for some reason the .h files in the lib/Basic/Targets directory were not
2019 Nov 04
4
Debugging clang with debugger breakpoints ?
Hi All,
I want to understand some parts of ‘clang' by setting debug breakpoints.
I have successfully done so with “llc” but I found that debugger breakpoints do not work for ‘clang’
The apparent cause is that the clang code is run as a child process which is created in the ‘Execute' function of ‘Program.inc'. The debugger stops fine at breakpoints set on the main thread, but
2019 May 05
2
How to get CLang array alloca alignments to be smaller than 16 bytes?
> Are you looking in Clang's source, and that from the same 7.0 version?
Yes, I am, and it’s the same version (7.0.1).
“LargeArrayMinWidth” is only on the following files:
TargetInfo.cpp
TargetInfo.h
So I still think there’s something else that makes the difference on the x86 target.
Anyway, I will now investigate other targets as my temporary frontend. It is right that other targets
2019 Jun 29
2
Tablegen ridiculously slow when compiling for Debug
Hi Florian,
Ok, I ran this:
cmake -S LLVM -DCMAKE_INSTALL_PREFIX=INSTALL -DLLVM_OPTIMIZED_TABLEGEN=On -G Xcode
Compiled it again from clean, and the situation is worse than before. Incremental builds take an incredible amount of time stuck in running Tablegen scripts for all targets. Now this happens both in Release and Debug configurations. Just before this, at least Release compiled fine, but