summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ObjectiveC migrator. methods which look like a getter andFariborz Jahanian2013-09-113-10/+32
| | | | | | start with "get" are inferreed as a readonly properties. llvm-svn: 190532
* Added regression tests.Serge Pavlov2013-09-111-0/+13
| | | | llvm-svn: 190531
* [analyzer] Handle zeroing constructors for fields of structs with empty bases.Jordan Rose2013-09-112-4/+37
| | | | | | | | | | | | | | | | | | | RegionStore tries to protect against accidentally initializing the same region twice, but it doesn't take subregions into account very well. If the outer region being initialized is a struct with an empty base class, the offset of the first field in the struct will be 0. When we initialize the base class, we may invalidate the contents of the struct by providing a default value of Unknown (or some new symbol). We then go to initialize the member with a zeroing constructor, only to find that the region at that offset in the struct already has a value. The best we can do here is to invalidate that value and continue; neither the old default value nor the new 0 is correct for the entire struct after the member constructor call. The correct solution for this is to track region extents in the store. <rdar://problem/14914316> llvm-svn: 190530
* clang-cl: Warn about overriding /MD with /MT etc.Hans Wennborg2013-09-115-13/+29
| | | | | | | This also bakes the /M options into a separate option group to make them easier to refer to from the code. llvm-svn: 190529
* Teach RAV to visit parameter variable declarations of implicit functions. ↵Michael Han2013-09-114-2/+43
| | | | | | | | | | | | | | | Fixes PR16182. Normally RAV visits parameter variable declarations of a function by traversing the TypeLoc of the parameter declarations. However, for implicit functions, their parameters don't have any TypeLoc, because they are implicit. So for implicit functions, we visit their parameter variable declarations by traversing them through the function declaration, and visit them accordingly. Reviewed by Richard Smith and Manuel Klimek. llvm-svn: 190528
* llvm-tblgen: Mangle operand replacements into the strings in printAliasInstr.Benjamin Kramer2013-09-111-40/+45
| | | | | | Cuts down the bloat in the AArch64 asm writer a bit. llvm-svn: 190527
* fix xcore-opts.c testRobert Lytton2013-09-111-1/+1
| | | | llvm-svn: 190526
* Adding some additional test cases for the cleanup attribute.Aaron Ballman2013-09-111-0/+11
| | | | llvm-svn: 190525
* Revert r190520 as it wasn't the right fix.Daniel Jasper2013-09-111-2/+0
| | | | llvm-svn: 190524
* Don't expose symbols of lle_ functions.Benjamin Kramer2013-09-111-7/+6
| | | | | | + formatting fixes. llvm-svn: 190523
* [mips][msa] Added test cases that were supposed to be part of r190507, ↵Daniel Sanders2013-09-113-0/+734
| | | | | | r190509, r190512, and r190518. llvm-svn: 190522
* Fix 2 cases of uninitialized reads of an invalid PresumedLoc.Evgeniy Stepanov2013-09-112-15/+17
| | | | | | | | | The code in CGExpr was added back in 2012 (r165536) but not exercised in tests until recently. Detected on the MemorySanitizer bootstrap bot. llvm-svn: 190521
* Add empty virtual destructor...Daniel Jasper2013-09-111-0/+2
| | | | | | ... as this otherwise triggers -Wnon-virtual-dtor. llvm-svn: 190520
* Support for CR LF newlines.Alexander Kornienko2013-09-114-36/+78
| | | | | | | | | | | | | | | | | | Summary: reformat() tries to determine the newline style used in the input (either LF or CR LF), and uses it for the output. Maybe not every single case is supported, but at least the bug described in http://llvm.org/PR17182 should be resolved. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D1643 llvm-svn: 190519
* [mips][msa] Added support for matching mulv, nlzc, sll, sra, srl, and subv ↵Daniel Sanders2013-09-114-24/+383
| | | | | | from normal IR (i.e. not intrinsics) llvm-svn: 190518
* clang-tools-extra/test/clang-modernize/HeaderReplacements/main.cpp: Tweak ↵NAKAMURA Takumi2013-09-111-2/+2
| | | | | | sed(1) to let paths with a driveletter quoted in *_expected.yaml. llvm-svn: 190517
* Fix the ASan dll_thunk pathTimur Iskhodzhanov2013-09-112-3/+2
| | | | llvm-svn: 190516
* Simplify code with the in place path::native. No functionality change.Benjamin Kramer2013-09-112-7/+4
| | | | llvm-svn: 190515
* llvm-tblgen: Stabilize subreg index tables.Benjamin Kramer2013-09-111-2/+2
| | | | | | Otherwise SequenceToOffsetTable will sort by pointer and becomes non-deterministic. llvm-svn: 190514
* [TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a ↵Alexey Samsonov2013-09-113-2/+4
| | | | | | Go build llvm-svn: 190513
* [mips][msa] Added support for matching fadd, fdiv, flog2, fmul, frint, ↵Daniel Sanders2013-09-114-16/+279
| | | | | | fsqrt, and fsub from normal IR (i.e. not intrinsics) llvm-svn: 190512
* Modularize: Use in-place version of sys::path::native.Benjamin Kramer2013-09-111-2/+2
| | | | llvm-svn: 190511
* Path: Add an in-place version of path::native.Benjamin Kramer2013-09-112-14/+16
| | | | | | | | This reflects the common use case of nativizing a prepared path. The existing version invokes undefined behavior if input = output, add an assert to catch that case. llvm-svn: 190510
* [mips][msa] Added support for matching div_[su] from normal IR (i.e. not ↵Daniel Sanders2013-09-113-9/+151
| | | | | | intrinsics) llvm-svn: 190509
* Split -Wunused-variable warning.Daniel Jasper2013-09-114-1/+14
| | | | | | | | | | | With r190382, -Wunused-variable warns about unused const variables when appropriate. For codebases that use -Werror, this poses a problem as existing unused const variables need to be cleaned up first. To make the transistion easier, this patch splits -Wunused-variable by pulling out an additional -Wunused-const-variable (by default activated along with -Wunused-variable). llvm-svn: 190508
* [mips][msa] Added support for matching addv from normal IR (i.e. not intrinsics)Daniel Sanders2013-09-113-8/+90
| | | | | | The corresponding intrinsic is now lowered into equivalent IR (ISD::ADD) before instruction selection. llvm-svn: 190507
* [mips][msa] Separate the configuration of int/float vector types since they ↵Daniel Sanders2013-09-112-9/+25
| | | | | | | | will diverge soon No functional change llvm-svn: 190506
* [mips][msa] Corrected the definition of the dotp_[su].[hwd] intrinsicsDaniel Sanders2013-09-115-83/+117
| | | | | | | The elements of the operands should be half the width of the elements of the result. llvm-svn: 190505
* [Sanitizer] build sanitizer_common library with -Wglobal-constructorsAlexey Samsonov2013-09-111-0/+4
| | | | llvm-svn: 190504
* [TSan] Use Clang to compile and link TSan unit tests with TSan runtimeAlexey Samsonov2013-09-114-26/+72
| | | | llvm-svn: 190503
* config-ix.cmake: Tweak stray endif(...) to suppress a warning in CMake.NAKAMURA Takumi2013-09-111-1/+1
| | | | llvm-svn: 190502
* SemaTemplateDeduction.cpp: Prune two stray \param(s), TPOC and ↵NAKAMURA Takumi2013-09-111-6/+0
| | | | | | NumCallArguments in Sema::getMostSpecialized(). They were removed since r190444. [-Wdocumentation] llvm-svn: 190501
* Remove unused diagnostics.Benjamin Kramer2013-09-111-4/+0
| | | | llvm-svn: 190500
* Simplify the checking of function attributes by using the simple methods.Bill Wendling2013-09-111-6/+3
| | | | llvm-svn: 190499
* Use type form of getIntPtrTypeMatt Arsenault2013-09-111-2/+2
| | | | | | | This doesn't change anything since malloc always returns address space 0. llvm-svn: 190498
* Support for modular module-map-filesDaniel Jasper2013-09-118-2/+85
| | | | | | | | | | | | | | | | | | | This patch is the first step to make module-map-files modular (instead of requiring a single "module.map"-file per include directory). This step adds a new "extern module" declaration that enables module-map-files to reference one another along with a very basic implementation. The next steps are: * Combine this with the use-declaration (from http://llvm-reviews.chandlerc.com/D1546) in order to only load module map files required for a specific compilation. * Add an additional flag to start with a specific module-map-file (instead of requiring there to be at least one "module.map"). Review: http://llvm-reviews.chandlerc.com/D1637 llvm-svn: 190497
* Fix a bug where -msse followed by -mno-sse would leave MMX enabled.Craig Topper2013-09-112-2/+16
| | | | llvm-svn: 190496
* Fix typoRui Ueyama2013-09-111-1/+1
| | | | llvm-svn: 190492
* Teach loop-idiom about address space pointer sizesMatt Arsenault2013-09-116-12/+381
| | | | llvm-svn: 190491
* Add bracesMatt Arsenault2013-09-111-6/+9
| | | | llvm-svn: 190490
* Fix YAML tests again.Rui Ueyama2013-09-117-26/+26
| | | | llvm-svn: 190489
* [-cxx-abi microsoft] Canonicalize array parameters betterDavid Majnemer2013-09-112-27/+57
| | | | | | | | | | | | | | | Summary: More accurately characterize the nature of array parameters. Doing this removes false back-reference opportunities. Remove some hacks now that we characterize these better. Reviewers: rnk, timurrrr, whunt, cdavis5x CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1626 llvm-svn: 190488
* Fix YAML tests.Rui Ueyama2013-09-114-28/+28
| | | | llvm-svn: 190487
* Do not quote YAML plain string myself. Let YAMLIO do that.Rui Ueyama2013-09-112-19/+16
| | | | llvm-svn: 190486
* Re-submit r190469: YAMLIO: Fix string quoting logic.Rui Ueyama2013-09-112-2/+71
| | | | llvm-svn: 190485
* volatile types are not trivially copyable.Eli Friedman2013-09-113-4/+11
| | | | | | PR17123. llvm-svn: 190484
* Fix test.Eli Friedman2013-09-111-1/+1
| | | | llvm-svn: 190483
* Fix is_trivially_constructible preconditions.Eli Friedman2013-09-112-13/+20
| | | | | | | | | Fixes a crash in cases where the first argument was an incomplete type or an uninstantiated template type. <rdar://problem/14938471> llvm-svn: 190482
* Disable the bool and enum sanitizers when emitting the implicitly-defined copyNick Lewycky2013-09-112-10/+118
| | | | | | constructor, copy assignment operator and move assignment operator. llvm-svn: 190481
* Revert "YAMLIO: Fix string quoting logic." (r190469)Hans Wennborg2013-09-112-67/+2
| | | | | | It was turning the buildbots red. llvm-svn: 190480
OpenPOWER on IntegriCloud