- Nov 18, 2011
-
-
Kostya Serebryany authored
fall back to explicit list of allowed linkages when instrumenting globals in asan; add a test check that asan does not touch linkonce_odr llvm-svn: 144933
-
Anna Zaks authored
When the solver and SValBuilder cannot reason about symbolic expressions (ex: (x+1)*y ), the analyzer conjures a new symbol with no ties to the past. This helps it to recover some path-sensitivity. However, this breaks the taint propagation. With this commit, we are going to construct the expression even if we cannot reason about it later on if an operand is tainted. Also added some comments and asserts. llvm-svn: 144932
-
Ted Kremenek authored
Fix bug in RefCountedBase/RefCountedBaseVPTR where the reference count was accidentally copied as part of the copy constructor. This could result in objects getting leaked because there reference count was too high. llvm-svn: 144931
-
Ted Kremenek authored
Make 'LangOptions' in CompilerInvocation a heap-allocated, reference counted object. I discovered that llvm::RefCountedBase<T> has a bug where the reference count is copied in the copy constructor, which means that there were cases when the CompilerInvocation objects created by ASTUnit were actually leaked. When I fixed that bug locally, it showed that a whole bunch of code assumed that the LangOptions object that was part of CompilerInvocation was still alive. By making it heap-allocated and reference counted, we can keep it around after the CompilerInvocation object goes away. As part of this change, change CompilerInvocation:getLangOptions() to return a pointer, acting as another clue that this object may outlive the CompilerInvocation object. This commit doesn't fix the CompilerInvocation leak itself. That will come when I commit the fix to llvm::RefCountedBase<T> to mainline LLVM. llvm-svn: 144930
-
Ted Kremenek authored
Simplify crash cleanup logic in ASTUnit::LoadFromCommandLine() by zeroing out two IntrusiveRefCnt pointers after we have assigned their respective values into fields of ASTUnit. llvm-svn: 144929
-
- Nov 17, 2011
-
-
Anna Zaks authored
llvm-svn: 144928
-
Anna Zaks authored
Naming could be improved.. But we should first rename the classes in the SVal hierarchy. llvm-svn: 144927
-
Richard Smith authored
and base-to-derived casts, and add proper handling of temporaries. llvm-svn: 144926
-
Douglas Gregor authored
preprocess/parse a header, report back with an actual module (which may be a submodule) rather than just the name of the module. llvm-svn: 144925
-
Greg Clayton authored
file actions have been specified. llvm-svn: 144922
-
Douglas Gregor authored
modules (obviously) describe frameworks, and understand the header layout of frameworks. llvm-svn: 144921
-
Chad Rosier authored
llvm-svn: 144920
-
Johnny Chen authored
Use this option with care as you would need to build the inferior(s) by hand and build the executable(s) with the correct name(s). This option can be used with '-# n' to stress test certain test cases for n number of times. An example: [11:55:11] johnny:/Volumes/data/lldb/svn/trunk/test/python_api/value $ ls Makefile TestValueAPI.pyc linked_list TestValueAPI.py change_values main.c [11:55:14] johnny:/Volumes/data/lldb/svn/trunk/test/python_api/value $ make EXE=test_with_dsym clang -gdwarf-2 -O0 -arch x86_64 -c -o main.o main.c clang -gdwarf-2 -O0 -arch x86_64 main.o -o "test_with_dsym" /usr/bin/dsymutil -o "test_with_dsym.dSYM" "test_with_dsym" [11:55:20] johnny:/Volumes/data/lldb/svn/trunk/test/python_api/value $ cd ../.. [11:55:24] johnny:/Volumes/data/lldb/svn/trunk/test $ ./dotest.py -v -# 10 -S -f ValueAPITestCase.test_with_dsym LLDB build dir: /Volumes/data/lldb/svn/trunk/build/Debug LLDB-89 Path: /Volumes/data/lldb/svn/trunk URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk Repository Root: https://johnny@llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 144914 Node Kind: directory Schedule: normal Last Changed Author: gclayton Last Changed Rev: 144911 Last Changed Date: 2011-11-17 09:22:31 -0800 (Thu, 17 Nov 2011) Session logs for test failures/errors/unexpected successes will go into directory '2011-11-17-11_55_29' Command invoked: python ./dotest.py -v -# 10 -S -f ValueAPITestCase.test_with_dsym ---------------------------------------------------------------------- Collected 1 test 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 1.163s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 0.200s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 0.198s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 0.199s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 0.239s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 1.215s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 0.105s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 0.098s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 0.195s OK 1: test_with_dsym (TestValueAPI.ValueAPITestCase) Exercise some SBValue APIs. ... ok ---------------------------------------------------------------------- Ran 1 test in 1.197s OK [11:55:34] johnny:/Volumes/data/lldb/svn/trunk/test $ llvm-svn: 144919
-
Greg Clayton authored
monitoring on darwin in the host layer. llvm-svn: 144918
-
Tobias Grosser authored
We disable Polly by default and add a new option '-polly' that enables Polly. This allows us to create an the alias $ alias clang clang -Xclang -load -Xclang LLVMPolly.so which loads Polly always into clang. It can now be enabled by running: $ clang -O3 -mllvm -polly file.c To enable it by default an alias pollycc can be create $ alias pollycc clang -O3 -mllvm -polly llvm-svn: 144917
-
Douglas Gregor authored
file as a virtual file with the stored modification time and size. llvm-svn: 144916
-
Johnny Chen authored
llvm-svn: 144915
-
Daniel Dunbar authored
llvm-svn: 144913
-
Greg Clayton authored
llvm-svn: 144911
-
Howard Hinnant authored
llvm-svn: 144910
-
Tobias Grosser authored
Instead we switch to the recommended getName(). This fixes compilation with recent versions of LLVM. llvm-svn: 144909
-
Tobias Grosser authored
llvm-svn: 144908
-
Tobias Grosser authored
llvm-svn: 144907
-
Tobias Grosser authored
llvm-svn: 144906
-
Tobias Grosser authored
Suggested by Sebastian Pop. llvm-svn: 144905
-
Tobias Grosser authored
Suggested by Sebastian Pop. llvm-svn: 144904
-
Tobias Grosser authored
llvm-svn: 144903
-
Tobias Grosser authored
Suggested by Sebastian Pop. llvm-svn: 144902
-
Tobias Grosser authored
Fix suggested by Sebastian Pop. llvm-svn: 144901
-
Tobias Grosser authored
llvm-svn: 144900
-
Tobias Grosser authored
- Use uppercase letters according to the LLVM coding style - Rename functions to not include 'tiledSchedule', but just Schedule. This is more correct as tiling might be disabled. llvm-svn: 144899
-
Tobias Grosser authored
Style fix, noted by Sebastian Pop. llvm-svn: 144898
-
NAKAMURA Takumi authored
llvm-svn: 144897
-
Craig Topper authored
Fix SSE/AVX integer comparison patterns to understand that all integer vector loads are promoted to i64 vector loads so patterns need a bitconvert. Also slightly simplify the AVX2 variable shift patterns by using the predefined bitconvert pattern fragments. llvm-svn: 144896
-
Chad Rosier authored
llvm-svn: 144888
-
NAKAMURA Takumi authored
llvm-svn: 144887
-
Chad Rosier authored
ADDs. MaxOffs is used as a threshold to limit the size of the offset. Tradeoffs being: (1) If we can't materialize the large constant then we'll cause fast-isel to bail. (2) Too large of an offset can't be directly encoded in the ADD resulting in a MOV+ADD. Generally not a bad thing because otherwise we would have had ADD+ADD, but on Thumb this turns into a MOVS+MOVT+ADD. Working on a fix for that. (3) Conversely, too low of a threshold we'll miss opportunities to coalesce ADDs. rdar://10412592 llvm-svn: 144886
-
Craig Topper authored
llvm-svn: 144885
-
NAKAMURA Takumi authored
Revert r132539 for now, "My testing shows that function stat has no problem with trailing separators. (tested on Windows and Darwin)." It caused PR10331. MSVCRT stat() cannot strip trailing '/'. (can '\') llvm-svn: 144884
-
David Blaikie authored
llvm-svn: 144883
-