summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* When building a module, use the macro definitions on the command lineDouglas Gregor2011-10-176-6/+41
| | | | | | | | | as part of the hash rather than ignoring them. This means we'll end up building more module variants (overall), but it allows configuration macros such as NDEBUG to work so long as they're specified via command line. More to come in this space. llvm-svn: 142187
* Fixed merge-mistake where ActOnAccessSpecifier was called twice for every ↵Erik Verbruggen2011-10-172-20/+21
| | | | | | access specifier. The testcase has been changed to catch this too. llvm-svn: 142186
* Don't download and compile compiler-rt, libcxx, and libcxxabi by default.Bill Wendling2011-10-171-2/+2
| | | | llvm-svn: 142185
* ScopInfo: Fix ctx->ref != 0 problemTobias Grosser2011-10-171-1/+2
| | | | | | Reported by: Yabin Hu <yabin.hwu@gmail.com> llvm-svn: 142184
* Clean the triple, add check lines.Nadav Rotem2011-10-171-5/+8
| | | | llvm-svn: 142183
* Previously v2i32 vectors were legalized to v4i32. Now, they are legalized toNadav Rotem2011-10-172-43/+0
| | | | | | v2i64. These tests do not check MMX nor zmoving into them. llvm-svn: 142182
* Perform an lvalue-to-rvalue conversion on an array index in a ↵Richard Smith2011-10-172-1/+9
| | | | | | __builtin_offsetof expression. llvm-svn: 142179
* Don't use inline assembly in 64-bit Visual Studio. Unfortunately, this means ↵Craig Topper2011-10-172-24/+19
| | | | | | that cpuid leaf 7 can't be queried on versions of Visual Studio earlier than VS 2008 SP1. Fixes PR11147. llvm-svn: 142177
* Add comment explaining that the order of processing doesn't matter here.Bill Wendling2011-10-171-0/+1
| | | | llvm-svn: 142176
* Update to disable asserts. Build a phase 3 compiler, and compare phase 2 ↵Bill Wendling2011-10-171-2/+40
| | | | | | files against phase 3. llvm-svn: 142173
* Test case for CanLowerReturn fix (r141981)Hal Finkel2011-10-171-0/+19
| | | | llvm-svn: 142172
* Add PPC 440 scheduler and some associated tests (new files)Hal Finkel2011-10-173-0/+623
| | | | llvm-svn: 142171
* Add PPC 440 scheduler and some associated testsHal Finkel2011-10-179-2/+53
| | | | llvm-svn: 142170
* Add a routine to swap branch instruction operands, and update anyChandler Carruth2011-10-174-9/+59
| | | | | | | | | | | | profile metadata at the same time. Use it to preserve metadata attached to a branch when re-writing it in InstCombine. Add metadata to the canonicalize_branch InstCombine test, and check that it is tranformed correctly. Reviewed by Nick Lewycky! llvm-svn: 142168
* Slightly simplify a constant expression check. No functional change.Richard Smith2011-10-161-3/+3
| | | | llvm-svn: 142167
* Overhaul the 'test-release' script.Bill Wendling2011-10-161-158/+96
| | | | | | | This removes support for building llvm-gcc. It will eventually add support for building other projects. llvm-svn: 142165
* Delete a dead member. Dunno if this was ever used, but the current codeChandler Carruth2011-10-161-6/+3
| | | | | | | directly manipulates the weights inside of the BranchProbabilityInfo that is passed in. llvm-svn: 142163
* Add a proper LLVM banner to this file.Chandler Carruth2011-10-161-0/+13
| | | | llvm-svn: 142162
* Add a testcase for r142121 based on an idea from Richard Smith. Thanks!Chandler Carruth2011-10-161-0/+12
| | | | llvm-svn: 142160
* Split apart the state accumulated during constant expression evaluation and theRichard Smith2011-10-163-55/+76
| | | | | | | end result. Use this split to propagate state information and diagnostics through more of constant expression evaluation. llvm-svn: 142159
* Add tripple and stabalize a few more tests.Nadav Rotem2011-10-164-11/+11
| | | | llvm-svn: 142158
* Add sema checks for calls to functions taking static array parametersPeter Collingbourne2011-10-165-0/+111
| | | | llvm-svn: 142157
* Update the tree before applying patch.Bill Wendling2011-10-161-0/+2
| | | | llvm-svn: 142155
* Add triple to tests.Nadav Rotem2011-10-162-3/+3
| | | | llvm-svn: 142154
* fix a typo in the testNadav Rotem2011-10-161-1/+1
| | | | llvm-svn: 142153
* Enable element promotion type legalization by deafault.Nadav Rotem2011-10-1624-106/+107
| | | | | | Changed tests which assumed that vectors are legalized by widening them. llvm-svn: 142152
* Oops! Fix testcase.Nick Lewycky2011-10-161-2/+2
| | | | llvm-svn: 142151
* When looking for dependencies on the src pointer, scan the src pointer. ScanningNick Lewycky2011-10-162-13/+36
| | | | | | on the memcpy call will pull up other unrelated stuff. Fixes PR11142. llvm-svn: 142150
* Remove the the test which checks the saving of a vector of booleans into memory.Nadav Rotem2011-10-161-11/+0
| | | | | | | | The decision was to pack the bits. Currently no codegen supports this. Currently, all of the bits in the vector are saved into the same address in memory. llvm-svn: 142149
* Implement overload resolution from init lists for scalar parameter types.Sebastian Redl2011-10-162-1/+107
| | | | llvm-svn: 142148
* Diagnose when omitting braces in direct list-initialization in C++0x.Sebastian Redl2011-10-164-45/+54
| | | | | | This also applies to C99-style aggregate literals, should they be used in C++11, since they are effectively identical to constructor call list-initialization syntax. llvm-svn: 142147
* In the verify-only pass, check that items that don't have an initializer in ↵Sebastian Redl2011-10-161-17/+62
| | | | | | an init list can be value-initialized, at least when designated initializers are not involved. No test case yet, since early failures cannot be distinguished from late failures until overload resolution works. llvm-svn: 142146
* Check for unavailable declarations in Sema::CanUseDecl.Sebastian Redl2011-10-161-0/+6
| | | | llvm-svn: 142145
* Prove that non-overloaded function calls using init list arguments work.Sebastian Redl2011-10-161-0/+5
| | | | llvm-svn: 142144
* Drop the Diagnose parameter from Sema::PerformImplicitConversion again and ↵Sebastian Redl2011-10-163-15/+22
| | | | | | instead use TryImplicitConversion in CheckSingleAssignmentConstraints when that function is in no-diagnostics mode. llvm-svn: 142143
* Make a C-style cast a const-cast, to suppress a GCC warning. I should fix ↵Sebastian Redl2011-10-161-1/+1
| | | | | | the underlying issue eventually, but this interface will probably change anyway. llvm-svn: 142142
* Add X86 PEXTR and PDEP instructions.Craig Topper2011-10-169-31/+137
| | | | llvm-svn: 142141
* Let printf do the formatting instead aligning strings ourselves.Benjamin Kramer2011-10-165-30/+24
| | | | | | While at it, merge some format strings. llvm-svn: 142140
* Twinify better.Benjamin Kramer2011-10-161-20/+15
| | | | llvm-svn: 142139
* Remove the leftover partial comment.David Blaikie2011-10-161-1/+0
| | | | llvm-svn: 142138
* Add AsmToken::getEndLoc and use it to add ranges to x86 asm register parsing.Benjamin Kramer2011-10-163-9/+19
| | | | | | | | <stdin>:1:12: error: register %rax is only available in 64-bit mode incl %rax ^~~~ llvm-svn: 142137
* tools/CMakeLists.txt: Fixup r142103. I don't remember why I had missed the line.NAKAMURA Takumi2011-10-161-1/+1
| | | | llvm-svn: 142136
* X86AsmParser: Synthesize EndLoc for tokens out of StartLoc + Length and ↵Benjamin Kramer2011-10-161-3/+4
| | | | | | | | | | print ranges for invalid operands. <stdin>:1:4: error: invalid instruction mnemonic 'abc' abc incl %edi ^~~ llvm-svn: 142135
* Fix a silly bug introduced in r142133.Chandler Carruth2011-10-161-2/+2
| | | | llvm-svn: 142134
* Clean up some cruft in the library path searching logic by makingChandler Carruth2011-10-161-27/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'libdir' mean the actual library directory, not the GCC subdirectory of the library directory. That was just a confusing pattern. Instead, supply proper GCC subdirectories when scanning for various triple-based subdirectories with a GCC installation in them. This also makes it much more obvious how multiarch installations, which have a triple-based prefix as well as suffix work. Also clean up our handling of these triple-prefixed trees by using them in both a multiarch pattern and a non-multiarch pattern whenever they exist. Note that this *does not* match what GCC does on Debian, the only truly multiarch installation I've been able to get installed and test on. GCC appears to have a bug, and ends up searching paths like '/lib/../../lib32' which makes no sense what-so-ever. Instead, I've tried to encode the rational logic that seems clearly intended by GCC's pattern. GCC ends up with patterns like: /lib/../../lib32 /usr/lib/../../lib32 /usr/lib/x86_64-linux-gnu/../..lib32 Only the last one makes any sense having a '/../..' in it, so in Clang, that's the only one which gets a '/../..' in it. I *think* this will fix Debian multiarch links. I'm committing without baking this logic into our test suite so I can test on a few different systems. If all goes well (and no one screams) I'll check in some more comprehensive tests for multiarch behavior tomorrow. llvm-svn: 142133
* PR11143: Save the old diagnostic handler and call it when munging ↵Benjamin Kramer2011-10-162-3/+18
| | | | | | | | diagnostics for #line directives. This reenables proper inline asm diagnostics in clang llvm-svn: 142132
* Convert inline asm source ranges into clang SourceRanges and print them with ↵Benjamin Kramer2011-10-161-2/+11
| | | | | | | | | | | | | | the instantiated note. t.c:2:7: error: invalid operand for instruction asm("movl 0(%rax), 0(%edx)"); ^ <inline asm>:1:16: note: instantiated into assembly here movl 0(%rax), 0(%edx) ^~~~~~~ 1 error generated. llvm-svn: 142131
* Fix a bug in LowerV2I64Splat, which generated a BUILD_VECTOR for which there wasNadav Rotem2011-10-162-3/+9
| | | | | | no pattern. llvm-svn: 142130
* I fixed this with r142127; these notes now make sense even w/o the caret.Chandler Carruth2011-10-161-1/+0
| | | | llvm-svn: 142129
* Hoist the logic I added to compute the macro name into a helperChandler Carruth2011-10-161-16/+30
| | | | | | function. No functionality changed. llvm-svn: 142128
OpenPOWER on IntegriCloud