- Nov 15, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 168049
-
Dmitri Gribenko authored
llvm-svn: 168048
-
Benjamin Kramer authored
llvm-svn: 168047
-
Alexander Potapenko authored
[ASan] Revert r168040 and r168043 and take a cleaner solution suggested by Kostya: return the known frame name for fake stack instead of looking it up. llvm-svn: 168046
-
Benjamin Kramer authored
It may become a dangling pointer if the underlying SmallVector reallocates. Sadly the testcase is really large and doesn't reduce well because of SmallVector's reallocation patterns. Fixes PR14336. llvm-svn: 168045
-
Alexander Potapenko authored
llvm-svn: 168043
-
Duncan Sands authored
llvm-svn: 168042
-
Dmitri Gribenko authored
llvm-svn: 168041
-
Alexander Potapenko authored
the beginning of the fake frame when reporting an use-after-return error. Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=126 llvm-svn: 168040
-
Alexey Samsonov authored
llvm-svn: 168039
-
Alexey Samsonov authored
llvm-svn: 168038
-
Hans Wennborg authored
For global variables that get the same value stored into them everywhere, GlobalOpt will replace them with a constant. The problem is that a thread-local GlobalVariable looks like one value (the address of the TLS var), but is different between threads. This patch introduces Constant::isThreadDependent() which returns true for thread-local variables and constants which depend on them (e.g. a GEP into a thread-local array), and teaches GlobalOpt not to track such values. llvm-svn: 168037
-
Guy Benyei authored
The new OpenCL SPIR extension spec will define separate SPIR for 32 and 64 bit architectures. llvm-svn: 168036
-
Duncan Sands authored
the utility for extracting a chain of operations from the IR, thought that it might as well combine any constants it came across (rather than just returning them along with everything else). On the other hand, the factorization code would like to see the individual constants (this is quite reasonable: it is much easier to pull a factor of 3 out of 2*3 than it is to pull it out of 6; you may think 6/3 isn't so hard, but due to overflow it's not as easy to undo multiplications of constants as it may at first appear). This patch therefore makes LinearizeExprTree stupider: it now leaves optimizing to the optimization part of reassociate, and sticks to just analysing the IR. llvm-svn: 168035
-
Alexander Potapenko authored
The need for this has been reported by Jack Howarth (howarth@bromo.med.uc.edu) who's porting ASan-Darwin to GCC llvm-svn: 168032
-
Nick Lewycky authored
Fixes PR14073! llvm-svn: 168031
-
Craig Topper authored
llvm-svn: 168030
-
Craig Topper authored
llvm-svn: 168029
-
Craig Topper authored
Make a bunch of floating point operations on vectors Expand so that instruction selection won't fail. llvm-svn: 168028
-
Lang Hames authored
more sense anyway - it determines how expressions are codegen'd. It also ensures that -ffp-contract=fast has the intended effect when compiling LLVM IR. llvm-svn: 168027
-
Craig Topper authored
llvm-svn: 168026
-
Craig Topper authored
llvm-svn: 168025
-
Nick Lewycky authored
can't handle the input file type. This resulted in PR14338. llvm-svn: 168024
-
Richard Trieu authored
Fix an off-by-one error by switching < to <= in -Wtautological-constant-out-of-range-compare and added test case. llvm-svn: 168023
-
Daniel Jasper authored
The matchers rely on the complete AST being traversed as shown by the new test cases. llvm-svn: 168022
-
Andrew Trick authored
Jakub Staszak spotted this in review. I don't notice these things until I manually rerun benchmarks. But reducing unit tests is a very high priority. llvm-svn: 168021
-
Jordan Rose authored
llvm-svn: 168020
-
Jordan Rose authored
We do this by using the "most recent" good location: if a synthesized function 'A' calls another function 'B', the path notes for the call to 'B' will be placed at the same location as the path note for calling 'A'. Similarly, the call to 'A' will have a note saying "Entered call from...", and now we just don't emit that (since the user doesn't have a body to look at anyway). Previously, we were doing this for the "Calling..." notes, but not for the "Entered call from..." or "Returning to caller". This caused a crash when the path entered and then exiting a call within a synthesized body. <rdar://problem/12657843> llvm-svn: 168019
-
Sean Callanan authored
expressions that refer to ivars will not work because Clang emits IR that refers to them to get the ivar offsets. However, it is possible to search the runtime for these values. I have added support for reading the relevant tables to the Objective-C runtime, and extended ClangExpressionDeclMap to query that information if and only if it doesn't find the symbols in the binary. Also added a testcase. <rdar://problem/12628122> llvm-svn: 168018
-
Argyrios Kyrtzidis authored
not ReadExpr(). Also add a test case making sure the thread safety attributes work as expected when they come from a PCH. Fixes rdar://12584141 & http://llvm.org/PR13982 llvm-svn: 168017
-
Eli Friedman authored
current list of powerpc-darwin8 failures. llvm-svn: 168016
-
Tanya Lattner authored
llvm-svn: 168015
-
Eric Christopher authored
llvm-svn: 168014
-
NAKAMURA Takumi authored
llvm-svn: 168013
-
Richard Smith authored
type-name is looked up in the context of the complete postfix-expression. Don't forget to pass the scope into this lookup when the type-name is a template-id; it might name an alias template which can't be found within the class itself. Bug spotted by Johannes Schaub on #llvm. llvm-svn: 168011
-
Eli Friedman authored
BinaryOperator::Opcode. This is bad form, and the behavior of the static_cast in this case is unspecified according to the standard. Fixes a warning that showed up from r167992 on self-host. llvm-svn: 168010
-
Jakub Staszak authored
llvm-svn: 168009
-
Owen Anderson authored
Add doInitialization and doFinalization methods to ModulePass's, to allow them to be re-initialized and reused on multiple Module's. Patch by Pedro Artigas. llvm-svn: 168008
-
Fariborz Jahanian authored
the default. // rdar://12109031 llvm-svn: 168007
-
Jakub Staszak authored
llvm-svn: 168006
-