Displaying 20 results from an estimated 8000 matches similar to: "lit conditional compilation/checking?"
2016 Jan 05
2
llvm.natvis should be included when generating LLVM.sln
As of Visual Studio 2015, natvis files can be included as part of
individual projects
<http://blogs.msdn.com/b/vcblog/archive/2015/09/28/debug-visualizers-in-visual-c-2015.aspx>,
a much better method than manually copying the file to an specific
directory in %USERPROFILE%.
I think it should be included in one of the CMakeLists.txt files, does
anybody know how I can add it?
Sincerely,
2016 Feb 11
2
Code in headers
That makes sense. Someone should stick it in the coding standards?
it's just thankless work
Absolutely, but since slow compile times (can) nuke my productivity, I may
move some code out of headers.
Sincerely,
Alexander Riccio
--
"Change the world or go home."
about.me/ariccio
<http://about.me/ariccio>
If left to my own devices, I will build more.
⁂
On Wed, Feb 10, 2016
2016 Feb 11
3
Code in headers
While investigating compile times, I noticed that there's no information in
the LLVM coding standards about code in headers. Many LLVM/Clang headers
have lots of complex code in headers - I'm specifically looking at the
Static Analyzer projects (seemingly slowest compile times, biggest
hinderance to my productivity) - that probably doesn't need to be there.
Nobody likes slow compile
2016 Apr 18
2
Redundant Twine->StringRef->Twine conversions in llvm::sys::fs::make_absolute?
llvm::sys::fs::make_absolute converts its first parameter (const Twine
¤t_directory) to StringRef p(path.data(), path.size()), and then
passes that StringRef to several functions (path::has_root_directory,
path::has_root_name, and path::append) that accept Twines as parameters.
Since llvm::StringRef can implicitly convert to an llvm::Twine, p converts
to a bunch of Twine temporaries.
In
2019 Jul 03
3
optimisation issue in an llvm IR pass
Hi Craig,
On 03.07.19 17:33, Craig Topper wrote:
> Don't the CreateICmp calls return a Value* with an i1 type? But then
> they are added to an i8 type? Not sure that works.
I had that initially:
auto cf = IRB.CreateICmpULT(Incr, ConstantInt::get(Int8Ty, 1));
auto carry = IRB.CreateZExt(cf, Int8Ty);
Incr = IRB.CreateAdd(Incr, carry);
it makes no difference to the generated assembly
2016 Feb 11
2
Code in headers
> On Feb 10, 2016, at 7:34 PM, George Burgess IV via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> > Someone should stick it in the coding standards?
>
> I'm happy to give this a shot.
My 2c: I don’t think that we can agree to abstract code guidelines without knowing what it means in practice for the codebase. If you’re interested in this, please include a diff
2019 Jul 03
2
optimisation issue in an llvm IR pass
Hello,
I have an optimisation issue in an llvm IR pass - the issue being that
unnecessary instructions are generated in the final assembly (with -O3).
I want to create the following assembly snippet:
mov dl,BYTE PTR [rsi+rdi*1]
add dl,0x1
adc dl,0x0
mov BYTE PTR [rsi+rdi*1],dl
however what is created is (variant #1):
mov dl,BYTE PTR [rsi+rdx*1]
add dl,0x1
cmp
2014 Apr 07
2
[LLVMdev] Getting FileCheck's colored output through lit (& possibly ninja)
So I manage to get clang's colored output through ninja simply by
force (CMAKE_CXX_FLAGS=-fcolor-diagnostics), which isn't ideal (if I
were to pipe ninja's output to a file it'd still have color escapes,
etc) but it works.
But I haven't found a similar solution for FileCheck & I'm wondering
has anyone already solved this problem for themselves - if so, how?
if not,
2019 Jan 24
3
Is ist a good idea to use lit and other test tools for non llvm projects?
On 2019-01-24 20:17, David Greene via llvm-dev wrote:
> alexp via llvm-dev <llvm-dev at lists.llvm.org> writes:
>
>> I have a project which uses llvm, but is (at least not yet) a
>> contribution / not in the source tree of llvm.
>> Is it a good idea (e.g. instead of using boost test framework) to use
>> the llvm testsuite related tools in this case?
>
>
2012 May 24
3
[LLVMdev] make check-lit + grep escape characters
I just want to update test/Transforms/LowerSwitch/feature.ll that
already uses grep.
It uses grep + count, probably due to shorter construction.
-Stepan.
Eric Christopher wrote:
>
> On May 24, 2012, at 12:12 AM, Stepan Dyatkovskiy wrote:
>
>> Hi all. I found that if you want to use grep with escape characters in
>> lit, you should pass it within the double slash (\\). Since
2017 Aug 02
2
can llvm-lit pass output of one RUN command as an argument to another RUN command
Is there a way to do this with llvm-lit, i.e., use the equivalent of
backticks?
foo takes a single argument, but doesn't read from stdin.
// RUN foo some_arg > %t; FileCheck %s < %t
// RUN foo `cat %t` | FileCheck --check-prefix=INVERSE
// CHECK: {{^[0-9]+$}}
// INVERSE: some_arg
thanks...
don
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2017 Sep 13
2
PSA: Potential lit workflow change
llvm-lit is already put into <output-tree>/bin by CMake.
There is a CMake target called `llvm-lit` that will generate the
<output-dir>/bin/llvm-lit script. If you built only a few specific llvm
targets such as FileCheck, etc then you may need to run this lit target
manually. If you just run "ninja" for example, or "ninja check-llvm", it's
automatically
2017 Sep 13
2
PSA: Potential lit workflow change
Hi all, I've got https://reviews.llvm.org/D37756 up for review currently
which simplifies a lot of the logic in our lit config files.
For most people, this will be completely transparent and "just work", but
it breaks one workflow that people should be aware of.
Problem: If you run lit by putting llvm-config in your path and then
running <source-root>/utils/lit/lit.py
2017 Feb 23
4
llvm-lit: 2>&1 and FileCheck
Hi all,
quite a few tests use the pattern "2>&1 | FileCheck %s". AFAIK how
stdout and stderr are merged into a single character stream is
undefined and depends e.g. on whether stdout is buffered. I think we
are often saved by the fact that standard output is written only at
the end of the program and stderr is unbuffered, i.e. always written
before stdout.
A lot of tests disable
2011 Jun 29
1
[LLVMdev] HOWTO use llvm lit tool
Hi all,
Can anybody give a tutorial about how to use llvm-lit tool?
I copy and revise Makefile and lit.cfg etc from clang to my project.
However, when I run make test it always seem unable to find the FileCheck
tool correctly.
How can I fix it?
Can anybody add test feature to llvm/project/sample?
Thanks in advance!
best,
Yabin
-------------- next part --------------
An HTML attachment was
2012 May 24
0
[LLVMdev] make check-lit + grep escape characters
On Thu, May 24, 2012 at 12:44 AM, Stepan Dyatkovskiy <stpworld at narod.ru>wrote:
> I just want to update test/Transforms/LowerSwitch/feature.ll that
> already uses grep.
> It uses grep + count, probably due to shorter construction.
>
If you are touching such a test, please convert it to FileCheck. Use of
'grep' in tests is an endless source of problems, and we are
2015 Jan 26
5
[LLVMdev] Deadlock in llvm-lit on windows 7
Hi,
I am observing a deadlock with llvm-lit on windows 7.
When I attached a debugger, the communicate() call is blocked.
In file utils/lit/lit/TestRunner.py
> # FIXME: There is probably still deadlock potential here. Yawn.
> procData = [None] * len(procs)
> procData[-1] = procs[-1].communicate()
I am invoking python directly on windows to run the unit tests.
2019 Jan 24
4
Is ist a good idea to use lit and other test tools for non llvm projects?
Hi,
I have a project which uses llvm, but is (at least not yet) a
contribution / not in the source tree of llvm.
Is it a good idea (e.g. instead of using boost test framework) to use
the llvm testsuite related tools in this case?
Alex
2012 May 24
2
[LLVMdev] make check-lit + grep escape characters
Hi all. I found that if you want to use grep with escape characters in
lit, you should pass it within the double slash (\\). Since the first
one is captured by python scripts and the second one by grep.
E.g. if you want to capture "grep icmp ule" you should pass
"grep icmp\\ ule"
So I'm going to commit the test with strings like this. How stable this
feature in lit?
2016 Apr 06
3
Calling a script from a script in a lit test
I'm trying to put together some tests for the optimization bisecting feature I'm working on and I've come across a stumbling block trying to accomplish something in a lit test.
I've got an IR file with some simple functions, one of which includes a call to another function that will be inlined during optimization. I can use this to manually test my new OptBisect class by invoking