summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bug fix: disallow a variable template to be redeclared as a non-templated ↵Larisse Voufo2013-08-1410-62/+59
| | | | | | variable llvm-svn: 188350
* clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp: Use "%/t" ↵NAKAMURA Takumi2013-08-141-6/+3
| | | | | | | | instead of "%t" on sed(1) to avoid \'s expanded to control chars. The feature, "%/t", has been introduced in llvm/lit since r188348. llvm-svn: 188349
* Lit: Introduce "%/[STpst] into parseIntegratedTestScript(), to normalize ↵NAKAMURA Takumi2013-08-141-0/+9
| | | | | | substitutions. llvm-svn: 188348
* clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp: Use ↵NAKAMURA Takumi2013-08-141-4/+12
| | | | | | FileCheck instead of grep(1). llvm-svn: 188347
* Driver: Forward -Wl, and -Xlink arguments when using windows linkerHans Wennborg2013-08-142-1/+10
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1394 llvm-svn: 188346
* clang-tools-extra/test/cpp11-migrate/HeaderReplacements/main.cpp: Suppress ↵NAKAMURA Takumi2013-08-141-0/+3
| | | | | | this on win32, for now. Investigating. llvm-svn: 188345
* [mips] Fix bug in parsing accumulator registers.Akira Hatanaka2013-08-142-2/+16
| | | | llvm-svn: 188344
* [mips] Use register operands instead of register classes in DSP instructionAkira Hatanaka2013-08-143-209/+309
| | | | | | definitions. llvm-svn: 188343
* [mips] Rename DSPRegs.Akira Hatanaka2013-08-145-113/+117
| | | | llvm-svn: 188342
* [mips] Rename HIRegs and LORegs.Akira Hatanaka2013-08-1410-84/+83
| | | | llvm-svn: 188341
* llvm/test/CodeGen/X86/setcc-sentinals.ll: Relax expressions for x86_64-win32.NAKAMURA Takumi2013-08-141-2/+2
| | | | llvm-svn: 188340
* Fix always creating GEP with i32 indicesMatt Arsenault2013-08-143-13/+38
| | | | | | | | | | | | | | | | Use the pointer size if datalayout is available. Use i64 if it's not, which is consistent with what other places do when the pointer size is unknown. The test doesn't really test this in a useful way since it will be transformed to that later anyway, but this now tests it for non-zero arrays and when datalayout isn't available. The cases in visitGetElementPtrInst should save an extra re-visit to the newly created GEP since it won't need to cleanup after itself. llvm-svn: 188339
* Use type helper functions instead of castMatt Arsenault2013-08-142-11/+8
| | | | llvm-svn: 188338
* Use array initializer, space around operatorMatt Arsenault2013-08-141-5/+3
| | | | llvm-svn: 188337
* [mips] Properly parse registers that appear in inline-asm constraints.Akira Hatanaka2013-08-143-0/+104
| | | | llvm-svn: 188336
* Refine diagnostics in my last patch.Fariborz Jahanian2013-08-142-2/+3
| | | | | | // rdar://14303083 llvm-svn: 188335
* Don't produce duplicate notes if we have deduction failure notes when resolvingRichard Smith2013-08-145-15/+22
| | | | | | the address of an overloaded function template. llvm-svn: 188334
* Implement LWG Issue #2187 (emplace_back and emplace for vector<bool>)Marshall Clow2013-08-134-1/+140
| | | | llvm-svn: 188333
* ObjectiveC [QoI] issue warning if an element of an nsarrayFariborz Jahanian2013-08-134-4/+21
| | | | | | | expresison is a concatenated nsstring element. // rdar://14303083 llvm-svn: 188332
* clang-cl: Support /link option and set target to win32Hans Wennborg2013-08-134-0/+25
| | | | | | | | | | | | | This adds support for the /link option, which forwards subsequent arguments to the linker. The test for this will only work when targetting win32. Since that's the only target where clang-cl makes sense, use that target by default. Differential Revision: http://llvm-reviews.chandlerc.com/D1388 llvm-svn: 188331
* Fix Altivec vector literal parser hack for C++11.Eli Friedman2013-08-133-3/+39
| | | | | | | It doesn't make any sense to accept "..." in the argument to a C-style cast, so use a separate expression list parsing routine which rejects it. PR16874. llvm-svn: 188330
* BBVectorize: Add initial stores to the write set when tracking usesHal Finkel2013-08-132-0/+153
| | | | | | | | | | | | | | | | When computing the use set of a store, we need to add the store to the write set prior to iterating over later instructions. Otherwise, if there is a later aliasing load of that store, that load will not be tagged as a use, and bad things will happen. trackUsesOfI still adds later dependent stores of an instruction to that instruction's write set, but it never sees the original instruction, and so when tracking uses of a store, the store must be added to the write set by the caller. Fixes PR16834. llvm-svn: 188329
* Remove duplicate copy of testcase in r188327.Nick Lewycky2013-08-131-26/+0
| | | | llvm-svn: 188328
* Revert r187191, which broke opt -mem2reg on the testcases included in PR16867.Nick Lewycky2013-08-137-325/+168
| | | | | | | | | | | | However, opt -O2 doesn't run mem2reg directly so nobody noticed until r188146 when SROA started sending more things directly down the PromoteMemToReg path. In order to revert r187191, I also revert dependent revisions r187296, r187322 and r188146. Fixes PR16867. Does not add the testcases from that PR, but both of them should get added for both mem2reg and sroa when this revert gets unreverted. llvm-svn: 188327
* [Mips][msa] Value types for MSA support.Jack Carter2013-08-134-24/+33
| | | | | | | | | Added v8f16 to ValueTypes.h, ValueTypes.cpp, ValueTypes.td, and CodeGenTarget.cpp Patch by Daniel Sanders llvm-svn: 188326
* Link in the ubsan runtime when building shared objects.Nick Lewycky2013-08-132-4/+1
| | | | llvm-svn: 188325
* sizeof(void) etc. should be a hard error in C++.Eli Friedman2013-08-1310-11/+36
| | | | | | PR16872. llvm-svn: 188324
* Options: explicit handling of --Hans Wennborg2013-08-132-30/+1
| | | | | | | | | | | Clients of the option parsing library should handle it explicitly using a KIND_REMAINING_ARGS option. Clang and lld have been updated in r188316 and r188318, respectively. Also fix -Wsign-compare warning in the option parsing test. llvm-svn: 188323
* Eradicate tabsMarshall Clow2013-08-133-3/+3
| | | | llvm-svn: 188322
* Update for N3657 and issue 2010Marshall Clow2013-08-131-2/+2
| | | | llvm-svn: 188321
* Second half (map/multimap) of N3657Marshall Clow2013-08-1311-57/+951
| | | | llvm-svn: 188320
* [dfsan] Introduce dfsan_read_label runtime function.Peter Collingbourne2013-08-134-1/+17
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1349 llvm-svn: 188319
* [PECOFF] Handle "--" option explicitlyHans Wennborg2013-08-133-0/+21
| | | | | | | | | This used to be handled automagically by the option parsing library, but after LLVM r188314, we should handle it ourselves. No functionality change, but adds a test. llvm-svn: 188318
* <rdar://problem/14717184>Greg Clayton2013-08-132-3/+18
| | | | | | Improve the documentation for the new target.memory-module-load-level setting, and also return an error when there is no nlist data when appropriate. llvm-svn: 188317
* Handle "--" explicitly in the driverHans Wennborg2013-08-132-9/+19
| | | | | | | | | | Anything that comes after -- is treated as an input file. This used to be handled automagically by the option parsing library, but after LLVM r188314, we should handle it ourselves. No functionality change. llvm-svn: 188316
* DAG: Combine (and (setne X, 0), (setne X, -1)) -> (setuge (add X, 1), 2)Jim Grosbach2013-08-133-0/+40
| | | | | | | | | | | | | | | | | | | | | | | A common idiom is to use zero and all-ones as sentinal values and to check for both in a single conditional ("x != 0 && x != (unsigned)-1"). That generates code, for i32, like: testl %edi, %edi setne %al cmpl $-1, %edi setne %cl andb %al, %cl With this transform, we generate the simpler: incl %edi cmpl $1, %edi seta %al Similar improvements for other integer sizes and on other platforms. In general, combining the two setcc instructions into one is better. rdar://14689217 llvm-svn: 188315
* Options: Add new option kind that consumes remaining argumentsHans Wennborg2013-08-136-0/+47
| | | | | | | | | | | | | | | | This adds KIND_REMAINING_ARGS, a class of options that consume all remaining arguments on the command line. This will be used to support /link in clang-cl, which is used to forward all remaining arguments to the linker. It also allows us to remove the hard-coded handling of "--", allowing clients (clang and lld) to implement that functionality themselves with this new option class. Differential Revision: http://llvm-reviews.chandlerc.com/D1387 llvm-svn: 188314
* [Mips][msa] Added initial MSA support.Jack Carter2013-08-138-1/+176
| | | | | | | | | | | | * msa SubtargetFeature * registers * ld.[bhwd], and st.[bhwd] instructions Does not correctly prohibit use of both 32-bit FPU registers and MSA together. Patch by Daniel Sanders llvm-svn: 188313
* [Mips] Support for unaligned load/store microMips instructionsJack Carter2013-08-1310-3/+157
| | | | | | | | This includes instructions lwl, lwr, swl and swr. Patch by Zoran Jovnovic llvm-svn: 188312
* [lit] Support use of setup.py from other directories.Daniel Dunbar2013-08-131-1/+8
| | | | llvm-svn: 188309
* Enhanced test for header guards.John Thompson2013-08-133-0/+11
| | | | llvm-svn: 188308
* Fix implementation of C11 6.2.7/4 and C++11 [dcl.array]p3:Richard Smith2013-08-1314-95/+421
| | | | | | | | | | | | | When a local extern declaration redeclares some other entity, the type of that entity is merged with the prior type if the prior declaration is visible (in C) or is declared in the same scope (in C++). - Make LookupRedeclarationWithLinkage actually work in C++, use it in the right set of cases, and make it track whether it found a shadowed declaration. - Track whether we found a declaration in the same scope (for C++) including across serialization and template instantiation. llvm-svn: 188307
* Avoid errors on header guards using #if defined(NAME).John Thompson2013-08-131-0/+2
| | | | llvm-svn: 188306
* Changed LLVM configure options to reflect the newSean Callanan2013-08-131-1/+1
| | | | | | way of making LLVM not rely on terminfo. llvm-svn: 188305
* Have Range::overlapsWith use positive logicEdwin Vane2013-08-132-3/+2
| | | | | | Improved test to catch missing case. llvm-svn: 188304
* ObjectiveC migrator: Fixes a crash and makes coupleFariborz Jahanian2013-08-133-6/+47
| | | | | | of harmless changes. llvm-svn: 188303
* Update makeLibCall to return both the call and the chain associated with the ↵Michael Gottesman2013-08-136-67/+80
| | | | | | | | | | | | | | | libcall instead of just the call. This allows us to specify libcalls that return void. LowerCallTo returns a pair with the return value of the call as the first element and the chain associated with the return value as the second element. If we lower a call that has a void return value, LowerCallTo returns an SDValue with a NULL SDNode and the chain for the call. Thus makeLibCall by just returning the first value makes it impossible for you to set up the chain so that the call is not eliminated as dead code. I also updated all references to makeLibCall to reflect the new return type. llvm-svn: 188300
* Fixes test failure on darwin introduced by r188274Tareq A. Siraj2013-08-132-10/+11
| | | | | | | | | | Reworked how the tests dealt with paths. Instead of removing the full path name, put a marker in the expected file and replace the marker with the full path before running diff. Differential Revision: http://llvm-reviews.chandlerc.com/D1381 llvm-svn: 188299
* Output DW_AT_stmt_list dwarf debug info as DW_FORM_sec_offset instead of ↵Carlo Kok2013-08-132-1/+41
| | | | | | DW_FORM_data4 as it is a section offset (fixes the coff/dwarf debug info statement locations) llvm-svn: 188297
* For COFF only: dwarf debug info output a label reference as a section ↵Carlo Kok2013-08-133-6/+10
| | | | | | relative item only when it's one of dw_from strp, sec_offset, ref_addr or op_call_ref instead of going by size. llvm-svn: 188296
OpenPOWER on IntegriCloud