- Dec 07, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 169602
-
Kostya Serebryany authored
[asan] intercept prctl(PR_SET_NAME) and set the thread name. Output the thread names (if non-empty) in asan reports llvm-svn: 169601
-
Dmitry Vyukov authored
llvm-svn: 169600
-
Matthew Curtis authored
compatibility llvm-svn: 169599
-
Kostya Serebryany authored
[sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just for linux so far (using prctl(PR_GET_NAME)) llvm-svn: 169598
-
Evgeniy Stepanov authored
Ubuntu Precise compatibility. llvm-svn: 169597
-
Sean Silva authored
NOTE: If you have any patches in the works that modify LangRef, you will need to rewrite the changes to LangRef.html to their equivalents in LangRef.rst. If you need assistance feel free to contact me. Since LangRef is mission-critical for the project and "normative", I have taken extra care to ensure that no content was lost or altered in the conversion. The content was converted with a tool called `pandoc`, so there is no chance for a human error like accidentally forgetting a sentence or whatever. After the initial conversion by `pandoc`, only changes to the markup were done. This is just the most literal conversion of the HTML document as possible. It might be worth exploring some way to chop up this massive document into separate pages, e.g. something like `docs/LangRef/Instructions.rst`, `docs/LangRef/Intrinsics.rst`, etc. with `docs/LangRef.rst` being an "intro/navigation page" of sorts. On the other hand, that loses the ability to {Ctrl,Cmd}-F for a given term right from your browser. IMO, I think our stylesheet needs some work because I find it hard to tell what level of nesting some of the headings are at (e.g. "is this a new section or is it a subsection?"). The issue is present on other pages, but the sheer size and deep section structure of LangRef really brings this issue out. If there are any web designers out there in the community it would be awesome if you tried to come up with something nicer. llvm-svn: 169596 -
Kostya Serebryany authored
[sanitizer] try not to use libc mem* functions in sanitizer_common tests (conflicts with our own interceptors) llvm-svn: 169595
-
Daniel Jasper authored
Now not joining keywords with '::' and not putting a space between a pointer pointer. llvm-svn: 169594
-
Kostya Serebryany authored
[sanitizer] fix the build on ancient gcc which has stricter rules about what can be put on TLS. Long term, we absolutely must build the run-times with the fresh target clang llvm-svn: 169593
-
Dmitry Vyukov authored
llvm-svn: 169592
-
Evgeniy Stepanov authored
MSan uses a TLS slot to pass shadow for function arguments and return values. This makes all instrumented functions not readonly, and at the same time requires that all callees of an instrumented function that may be MSan-instrumented do not have readonly attribute (otherwise some of the instrumentation may be optimized out). llvm-svn: 169591
-
Ted Kremenek authored
The same queries can happen thousands of times. This reduces the analysis time on one heavy Objective-C file by 2.4%. llvm-svn: 169589
-
John McCall authored
We were emitting calls to blocks as if all arguments were required --- i.e. with signature (A,B,C,D,...) rather than (A,B,...). This patch fixes that and accounts for the implicit block-context argument as a required argument. In addition, this patch changes the function type under which we call unprototyped functions on platforms like x86-64 that guarantee compatibility of variadic functions with unprototyped function types; previously we would always call such functions under the LLVM type T (...)*, but now we will call them under the type T (A,B,C,D,...)*. This last change should have no material effect except for making the type conventions more explicit; it was a side-effect of the most convenient implementation. llvm-svn: 169588
-
NAKAMURA Takumi authored
llvm-svn: 169587
-
Ted Kremenek authored
Further reduce analysis time by 0.2% on a heavy Objective-C example by avoiding over-eager canonicalization of clusters. llvm-svn: 169586
-
Jakob Stoklund Olesen authored
This is the preferred way of creating bundled machine instructions. llvm-svn: 169585
-
Jakob Stoklund Olesen authored
Like the MachineInstrBuilder, this class makes it easier to build bundles of MachineInstrs. llvm-svn: 169584
-
Jakob Stoklund Olesen authored
This is still a work in progress. The purpose is to make bundling and unbundling operations explicit, and to catch errors where bundles are broken or created inadvertently. The old IsInsideBundle flag is replaced by two MI flags: BundledPred which has the same meaning as IsInsideBundle, and BundledSucc which is set on instructions that are bundled with a successor. Having two flags provdes redundancy to detect when a bundle is inadvertently torn by a splice() or insert(), and it makes it possible to write bundle iterators that don't need to peek at adjacent instructions. The new flags can't be manipulated directly (once setIsInsideBundle is gone). Instead there are MI functions to make and break bundle bonds. The setIsInsideBundle function will be removed in a future commit. It should be replaced by bundleWithPred(). llvm-svn: 169583
-
rdar://problem/12831670Jason Molenda authored
When using the same-device optimization for shared cache libraries, if we have an invalid load address for __LINKEDIT, don't try to read anything out of lldb's own address space. Reading it out of the remote address space will fail gracefully if we have bad addresses but reading it out of lldb's own address space will result in a crash. llvm-svn: 169582
-
David Blaikie authored
llvm-svn: 169581
-
Akira Hatanaka authored
use. llvm-svn: 169580
-
Akira Hatanaka authored
llvm-svn: 169579
-
Akira Hatanaka authored
llvm-svn: 169578
-
Akira Hatanaka authored
llvm-svn: 169577
-
Richard Smith authored
llvm-svn: 169576
-
Alexey Samsonov authored
llvm-svn: 169575
-
Richard Smith authored
llvm-svn: 169574
-
Chandler Carruth authored
by virtue of inbounds GEPs that preclude a null pointer. This is a very common pattern in the code generated by std::vector and other standard library routines which use allocators that test for null pervasively. This is one step closer to teaching Clang+LLVM to be able to produce an empty function for: void f() { std::vector<int> v; v.push_back(1); v.push_back(2); v.push_back(3); v.push_back(4); } Which is related to getting them to completely fold SmallVector push_back sequences into constants when inlining and other optimizations make that a possibility. llvm-svn: 169573 -
Ted Kremenek authored
llvm-svn: 169572
-
Ted Kremenek authored
This reduces analysis time by 1.2% on one test case (Objective-C), but also cleans up some of the code conceptually as well. We can possible just make RegionBindingsRef -> RegionBindings, but I wanted to stage things. After this, we should revisit Jordan's optimization of not canonicalizing the immutable AVL trees for the cluster bindings as well. llvm-svn: 169571
-
Jordan Rose authored
Thanks for reminding me about copy-elision, David. Passing references here doesn't help when we could get move construction in C++11. If we really cared, we'd use std::swap to steal the reference from the temporary arg, but it's probably not /that/ critical outside of Profile anyway. llvm-svn: 169570
-
NAKAMURA Takumi authored
Makefile.common: Update a description, s/Source/SOURCES/ , according to MakefileGuide.html#control-variables . llvm-svn: 169569
-
NAKAMURA Takumi authored
- Use SOURCES instead of Source. See Makefile.rules and MakefileGuide.html. - Don't assume the current directory. $(wildcard *.cc) doesn't match anything on corresponding build directory. llvm-svn: 169568
-
rdar://problem/8908550Greg Clayton authored
Added "--address" as an available option for "source list". llvm-svn: 169567
-
NAKAMURA Takumi authored
llvm-svn: 169566
-
Eli Bendersky authored
llvm-svn: 169565
-
Alexey Samsonov authored
llvm-svn: 169564
-
Jordan Rose authored
Suggested by David Blaikie. ExplodedNode, CallEvent, and CheckerContext all hang onto their ProgramState, so the accessors can return a reference to the internal state rather than preemptively copying it. This helps avoid temporary ProgramStateRefs, though local variables will still (correctly) do an extra retain and release. llvm-svn: 169563
-
Logan Chien authored
and will break the build on buildbot. llvm-svn: 169562
-