- May 01, 2012
-
-
Jim Grosbach authored
Aliases for adding a negative immediate when using an explicit 'w' suffix. E.g., adds.w r2, #-16 adds.w r2, r2, #-16 addw r2, #-16 addw r2, #-16 addw r2, r2, #-16 rdar://11330769 llvm-svn: 155946
-
Anna Zaks authored
llvm-svn: 155945
-
Anna Zaks authored
reason about the expression. This essentially keeps more history about how symbolic values were constructed. As an optimization, previous to this commit, we only kept the history if one of the symbols was tainted, but it's valuable keep the history around for other purposes as well: it allows us to avoid constructing conjured symbols. Specifically, we need to identify the value of ptr as ElementRegion (result of pointer arithmetic) in the following code. However, before this commit '(2-x)' evaluated to Unknown value, and as the result, 'p + (2-x)' evaluated to Unknown value as well. int *p = malloc(sizeof(int)); ptr = p + (2-x); This change brings 2% slowdown on sqlite. Fixes radar://11329382. llvm-svn: 155944
-
Rafael Espindola authored
decls to work on function templates specializations. llvm-svn: 155943
-
Douglas Gregor authored
llvm-svn: 155942
-
Jim Grosbach authored
Expressions for movw/movt don't always have an :upper16: or :lower16: on them and that's ok. When they don't, it's just a plain [0-65536] immediate result, effectively the same as a :lower16: variant kind. rdar://10550147 llvm-svn: 155941
-
Douglas Gregor authored
llvm-svn: 155940
-
Douglas Gregor authored
llvm-svn: 155939
-
David Blaikie authored
llvm-svn: 155938
-
John McCall authored
the alignment might actually exceed the max field alignment; don't assert in this case. llvm-svn: 155937
-
Patrick Beard authored
llvm-svn: 155936
-
Douglas Gregor authored
[basic.lookup.classref]p1 and p4, which concerns name lookup for nested-name-specifiers and template names, respectively, in a member access expression. C++98/03 forces us to look both in the scope of the object and in the current scope, then compare the results. C++11 just takes the result from the scope of the object, if something is found. Fixes <rdar://problem/11328502>. llvm-svn: 155935
-
Douglas Gregor authored
llvm-svn: 155933
-
John McCall authored
llvm-svn: 155932
-
Chad Rosier authored
llvm-svn: 155931
-
Preston Gurd authored
This patch marks the X86 floating point stack registers ST0-ST7 as reserved in order to avoid assertion failures in the register scavenger. The assertion failures were “Bad machine code: Using an undefined physical register” and “Bad machine code: MBB exits via unconditional fall-through but its successor differs from its CFG successor!”. llvm-svn: 155930
-
David Blaikie authored
Based on Chandler Carruth's feedback on r155869. llvm-svn: 155929
-
David Blaikie authored
This makes Clang's build warning free again. llvm-svn: 155928
-
Jim Ingham authored
Fix reporting of stop reasons when the StepOver & StepIn plans stop because of a crash or breakpoint. Added the ability for a plan to say it is done but doesn't want to be the reason for the stop. llvm-svn: 155927
-
Jim Grosbach authored
Previously, an unsupported/unknown assembler directive issued a warning. That's generally unsafe, and inconsistent with the behaviour of pretty much every system assembler. Now that the MC assemblers are mature enough to be the default on multiple targets, it's reasonable to issue errors for these. For target or platform directives that need to stay warnings, we should add explicit handlers for them in, e.g., ELFAsmParser.cpp, DarwinAsmParser.cpp, et. al., and issue the warning there. rdar://9246275 llvm-svn: 155926
-
Jim Grosbach authored
The caller is already responsible for eating any additional input on the line. Putting an additional EatToEndOfStatement() in ParseStatement() causes an entire extra statement to be consumed when treating warnings as errors. For example, test/MC/macros.s will assert() because the .endmacro directive is missed as a result. rdar://11355843 llvm-svn: 155925
-
Chad Rosier authored
goodness because it provides opportunites to cleanup things. For example, uint64_t t1(__m128i vA) { uint64_t Alo; _mm_storel_epi64((__m128i*)&Alo, vA); return Alo; } was generating movq %xmm0, -8(%rbp) movq -8(%rbp), %rax and now generates movd %xmm0, %rax rdar://11282581 llvm-svn: 155924
-
Ted Kremenek authored
llvm-svn: 155923
-
Ted Kremenek authored
Push variable declaration into nested scope (the only place where it is used). Found by static analyzer. llvm-svn: 155922
-
Fariborz Jahanian authored
// rdar://11351299 llvm-svn: 155921
-
John McCall authored
removing some that were added without a triple (and moving their tests into files that appropriately test multiple architectures). llvm-svn: 155920
-
Manman Ren authored
This patch will optimize the following cases on X86 (a > b) ? (a-b) : 0 (a >= b) ? (a-b) : 0 (b < a) ? (a-b) : 0 (b <= a) ? (a-b) : 0 FROM movl %edi, %ecx subl %esi, %ecx cmpl %edi, %esi movl $0, %eax cmovll %ecx, %eax TO xorl %eax, %eax subl %esi, %edi cmovll %eax, %edi movl %edi, %eax rdar: 10734411 llvm-svn: 155919
-
Howard Hinnant authored
Greatly scale back ambitions of emulating move semantics in C++03 mode. It was causing more problems than it solved. This fixes http://llvm.org/bugs/show_bug.cgi?id=12704. llvm-svn: 155918
-
Alexey Samsonov authored
X86: Use StackRegister instead of FrameRegister in getFrameIndexReference (to generate debug info for local variables) if stack needs realignment llvm-svn: 155917
-
James Molloy authored
Unify Options.td and CC1Options.td, in a first step towards unifying the serialization logic in Frontend and Driver. Reviewed by Eric, Doug and Chandler, and here: http://llvm.org/reviews/r/7/ llvm-svn: 155916
-
Benjamin Kramer authored
llvm-svn: 155915
-
Benjamin Kramer authored
llvm-svn: 155914
-
NAKAMURA Takumi authored
clang/test/CodeGenCXX: Fix two tests, destructors.cpp and microsoft-abi-array-cookies.cpp, for -Asserts. llvm-svn: 155913
-
Jay Foad authored
llvm-svn: 155912
-
NAKAMURA Takumi authored
clang/test/Rewriter: Remove XFAIL and add -U__declspec to other 9 tests. mingw32 tends to define built-in __declspec. llvm-svn: 155911
-
NAKAMURA Takumi authored
clang/test/Rewriter/rewrite-modern-extern-c-func-decl.mm: Remove XFAIL and add -U__declspec. mingw32 tends to define built-in __declspec. llvm-svn: 155910
-
Benjamin Kramer authored
llvm-svn: 155909
-
Eli Bendersky authored
- Improved parameter names for clarity - Added comments - emitCommonSymbols should return void because its return value is not being used anywhere - Attempt to reduce the usage of the RelocationValueRef type. Restricts it for a single goal and may serve as a step for eventual removal. llvm-svn: 155908
-
Benjamin Kramer authored
llvm-svn: 155907
-
John McCall authored
to force the emission of vtordisps. llvm-svn: 155906
-