- Oct 13, 2011
-
-
Jakob Stoklund Olesen authored
llvm-svn: 141834
-
Jakob Stoklund Olesen authored
The inline asm operand constraint is initially encoded in the virtual register for the operand, but that register class may change during coalescing, and the original constraint is lost. Encode the original register class as part of the flag word for each inline asm operand. This makes it possible to recover the actual constraint required by inline asm, just like we can for normal instructions. llvm-svn: 141833
-
Greg Clayton authored
llvm-svn: 141832
-
Eli Friedman authored
llvm-svn: 141831
-
Bill Wendling authored
our current machine instruction defines a register with the same register class as what's being replaced. This showed up in the SPEC 403.gcc benchmark, where it would ICE because a tail call was expecting one register class but was given another. (The machine instruction verifier catches this situation.) <rdar://problem/10270968> llvm-svn: 141830
-
Eli Friedman authored
Use a utility from MathExtras to clarify a check and avoid undefined behavior. Based on patch by Ahmed Charles. llvm-svn: 141829
-
Owen Anderson authored
The VMAs stored in the symbol table of a MachO file are absolute addresses, not offsets from the section. llvm-svn: 141828
-
Eli Friedman authored
Use unsigned multiply to hash integers, so we don't end up with undefined behavior for large signed integers. Based on patch by Ahmed Charles. llvm-svn: 141827
-
Johnny Chen authored
llvm-svn: 141826
-
Lang Hames authored
Removed colons from some target datalayout strings in test, since they don't match the required format. llvm-svn: 141825
-
Owen Anderson authored
llvm-svn: 141824
-
Johnny Chen authored
llvm-svn: 141823
-
Owen Anderson authored
sectionContainsSymbol needs to be based on VMA's rather than section indices to properly account for files with segment load commands that contain no sections. llvm-svn: 141822
-
Sean Callanan authored
lifetime of ClangExpressionDeclMap. This allows ClangExpressionVariables found during parsing to be queried for their containing namespaces during expression execution. Other clients (like ClangFunction) explicitly delete this state, so they should not result in any memory leaks. llvm-svn: 141821
-
Eli Friedman authored
Fix a couple hash functions so that they do not depend on undefined shifts. Based on patch by Ahmed Charles. llvm-svn: 141820
-
- Oct 12, 2011
-
-
Jim Grosbach authored
The disassembler needs to use the AM5 factory methods instead of just building up the immediate directly. llvm-svn: 141819
-
Eli Friedman authored
Fix APFloat::getSmallestNormalized so the shift doesn't depend on undefined behavior. Patch from Ahmed Charles. llvm-svn: 141818
-
Johnny Chen authored
llvm-svn: 141817
-
Eli Friedman authored
Fix APFloat::getLargest so that it actually returns the correct value. Found by accident while reviewing a patch to nearby code. llvm-svn: 141816
-
Owen Anderson authored
llvm-svn: 141815
-
Kevin Enderby authored
for cpp pre-processed assembly we give correct filename and line numbers when reporting errors in assembly files when using clang and -integrated-as on .s files. rdar://8998895 llvm-svn: 141814
-
Evan Cheng authored
Disable machine LICM speculation check (for profitability) until I have time to investigate the regressions. llvm-svn: 141813
-
Cameron Zwarich authored
rather than the previous index. If a block has a single instruction, the previous index may be in a different basic block. I have no clue how this used to work on all of test-suite, because now this failure is seen quite often when trying to compile code with -strong-phi-elim. This fixes PR10252. llvm-svn: 141812
-
Jim Grosbach authored
llvm-svn: 141811
-
Johnny Chen authored
llvm-svn: 141810
-
Douglas Gregor authored
part of template argument deduction is ill-formed, we mark it as invalid and treat it as a deduction failure. If we happen to find that specialization again, treat it as a deduction failure rather than silently building a call to the declaration. Fixes PR11117, a marvelous bug where deduction failed after creating an invalid specialization, causing overload resolution to pick a different candidate. Then we performed a similar overload resolution later, and happily picked the invalid specialization to call... resulting in a silent link failure. llvm-svn: 141809
-
Sean Callanan authored
calls to the FindExternalVisibleDecls function. FindExternalVisibleDecls was recording whether it had found generic function symbols in variables that were local to the function. Now, however, multiple calls occur in response to one request from Clang, since we may be searching across namespaces. To support that, I moved the local variables into a bitfield in NameSearchContext. llvm-svn: 141808
-
Nick Lewycky authored
llvm-svn: 141807
-
Ted Kremenek authored
llvm-svn: 141806
-
Bob Wilson authored
This changes clang to match GCC's behavior for __extension__, which temporarily disables the -pedantic flag. Warnings that are enabled without -pedantic are not affected. Besides the general goodness of matching GCC's precedent, my motivation for this is that macros in the arm_neon.h header need to use __extension__ to avoid pedantic complaints about their use of statement expressions, yet we still want to warn about incompatible pointer arguments for those macros. llvm-svn: 141804
-
Rafael Espindola authored
the same behavior of gcc by keeping the attribute out of the function type. llvm-svn: 141803
-
Ted Kremenek authored
Implement built-in macro '__has_warning', which allows one to query if a warning flag is valid. Fixes <rdar://problem/10263428>. llvm-svn: 141802
-
Douglas Gregor authored
We'd also like for "C++11" or "c++11" to be used for the warning groups, but without removing the old warning flags. Patches welcome; I've run out of time to work on this today. llvm-svn: 141801
-
Johnny Chen authored
llvm-svn: 141800
-
Johnny Chen authored
which contains the lldb init file and a utils.py Python module in order to add the 'pwd', 'cd', and 'system' lldb commands. llvm-svn: 141799
-
Douglas Gregor authored
llvm-svn: 141798
-
Sean Callanan authored
proper namespace-aware APIs. llvm-svn: 141797
-
Eric Christopher authored
llvm-svn: 141796
-
Douglas Gregor authored
llvm-svn: 141795
-
Jim Grosbach authored
llvm-svn: 141794
-