summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* FileCheck, PR5239: Try to find the intended match on failures, but looking for aDaniel Dunbar2009-11-221-4/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | good nearby fuzzy match. Frequently the input is nearly correct, and just showing the user the a nearby sensible match is enough to diagnose the problem. - The "fuzzyness" is pretty simple and arbitrary, but worked on my three test cases. If you encounter problems, or places you think FileCheck should have guessed but didn't, please add test cases to PR5239. For example, previously FileCheck would report this: -- t.cpp:21:55: error: expected string not found in input // CHECK: define void @_Z2f25f2_s1([[i64_i64_ty]] %a0) ^ <stdin>:19:30: note: scanning from here define void @_Z2f15f1_s1(%1) nounwind { ^ <stdin>:19:30: note: with variable "i64_i64_ty" equal to "%0" -- and now it also reports this: -- <stdin>:27:1: note: possible intended match here define void @_Z2f25f2_s1(%0) nounwind { ^ -- which makes it clear that the CHECK just has an extra ' %a0' in it, without having to check the input. llvm-svn: 89631
* Recognize .hpp as a C++ header.Daniel Dunbar2009-11-221-0/+1
| | | | llvm-svn: 89630
* Add clang -cc1 parsing of analyzer options.Daniel Dunbar2009-11-224-4/+137
| | | | llvm-svn: 89629
* FileCheck: When a string using variable references fails to match, printDaniel Dunbar2009-11-221-4/+50
| | | | | | | additional information about the current definitions of the variables used in the string. llvm-svn: 89628
* SourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the ↵Daniel Dunbar2009-11-222-20/+30
| | | | | | source line output. llvm-svn: 89627
* Allow '_' in FileCheck variable names, it is nice to have at least oneDaniel Dunbar2009-11-222-3/+4
| | | | | | | separate character. - Chris, OK? llvm-svn: 89626
* CMake: Add support for running tests with valgrind.Daniel Dunbar2009-11-221-0/+5
| | | | llvm-svn: 89625
* Fix LookupResult's sanity-check to handle shadow decls.John McCall2009-11-221-1/+2
| | | | llvm-svn: 89624
* Change CheckDeadStores to use Expr::isNullPointerConstant, which will ↵Ted Kremenek2009-11-222-7/+24
| | | | | | | | correctly determine whether an expression is a null pointer constant. Patch by Kovarththanan Rajaratnam! llvm-svn: 89621
* Add getFrameIndexReference() to TargetRegisterInfo, which allows targets toJim Grosbach2009-11-222-5/+18
| | | | | | | | | tell debug info which base register to use to reference a frame index on a per-index basis. This is useful, for example, in the presence of dynamic stack realignment when local variables are indexed via the stack pointer and stack-based arguments via the frame pointer. llvm-svn: 89620
* Move default FrameReg val to getFrameIndexReference(). Otherwise, debug info ↵Jim Grosbach2009-11-221-1/+2
| | | | | | can get bogus values. llvm-svn: 89618
* Use EmitStoreOfScalar when copying the scalar to the space allocated by 'new'.Anders Carlsson2009-11-222-2/+10
| | | | llvm-svn: 89613
* 80-column cleanupJim Grosbach2009-11-221-10/+18
| | | | llvm-svn: 89612
* When laying out bitfields, make sure that the data size is always aligned to ↵Anders Carlsson2009-11-223-11/+45
| | | | | | a byte. This fixes PR5580. llvm-svn: 89611
* Update a test to FileCheck.Anders Carlsson2009-11-221-3/+2
| | | | llvm-svn: 89610
* Use intptr_t from stdint.h (in freestanding mode) instead of redefining it hereKen Dyck2009-11-221-2/+2
| | | | | | with __INTPTR_TYPE__. llvm-svn: 89609
* Teach MachineBasicBlock::updateTerminator() to handle a failing ↵Jakob Stoklund Olesen2009-11-221-2/+8
| | | | | | | | TII->ReverseBranchCondition(Cond) call. This fixes the MallocBench/cfrac test case regression. llvm-svn: 89608
* Update doc re: LLVM_BUILD_EXAMPLES.Daniel Dunbar2009-11-221-1/+1
| | | | llvm-svn: 89607
* Use ExtractElementInst::Create instead of new; patch by Artur Pietrek!Daniel Dunbar2009-11-221-1/+1
| | | | llvm-svn: 89606
* Test case for bug fixed in r89457.David Chisnall2009-11-221-0/+6
| | | | llvm-svn: 89605
* Move bit-field layout out into a separate function. No functionality change.Anders Carlsson2009-11-222-69/+87
| | | | llvm-svn: 89604
* Fix for PR5233.Edward O'Callaghan2009-11-221-1/+3
| | | | llvm-svn: 89603
* add fixme for dubious code. Duncan, what do you think?Chris Lattner2009-11-221-0/+1
| | | | llvm-svn: 89602
* remove a silly condition that doesn't make a lot of sense anymore.Chris Lattner2009-11-222-5/+17
| | | | llvm-svn: 89601
* reduce indentation, no functionality change.Chris Lattner2009-11-221-85/+91
| | | | llvm-svn: 89600
* Remove the AliasAnalysis::getMustAliases method, which is dead.Chris Lattner2009-11-229-95/+1
| | | | | | | | The hasNoModRefInfoForCalls isn't worth it as a filter because basicaa provides m/r info and everything chains to it, so remove it. llvm-svn: 89599
* Define SIG_ATOMIC_MIN and SIG_ATOMIC_MAX in terms of __SIG_ATOMIC_WIDTH__.Ken Dyck2009-11-221-2/+2
| | | | llvm-svn: 89598
* Define __SIG_ATOMIC_WIDTH__ for use in stdint.h.Ken Dyck2009-11-222-0/+12
| | | | llvm-svn: 89597
* Miss two, PR5307.Edward O'Callaghan2009-11-222-6/+30
| | | | llvm-svn: 89596
* Convert Thumb2 tests to FileCheck for PR5307.Edward O'Callaghan2009-11-2212-26/+130
| | | | llvm-svn: 89595
* Turns out stuff gets allocated to different registers depending on the ↵Benjamin Kramer2009-11-221-1/+1
| | | | | | subtarget. llvm-svn: 89594
* Convert ARM tests to FileCheck for PR5307.Edward O'Callaghan2009-11-227-35/+137
| | | | llvm-svn: 89593
* Undefined compound assignment result is checked in ↵Zhongxing Xu2009-11-221-9/+0
| | | | | | UndefinedAssignmentChecker. So this check is redundant. llvm-svn: 89592
* Remove invalid comments. The result is undefined only when operands are ↵Zhongxing Xu2009-11-221-2/+0
| | | | | | undefined. llvm-svn: 89591
* Save and restore the HasGen flag in MallocChecker.Zhongxing Xu2009-11-222-0/+3
| | | | llvm-svn: 89590
* Convert test to FileCheck.Benjamin Kramer2009-11-221-2/+6
| | | | llvm-svn: 89589
* Forgot to alter RUN line when converting to FileCheck.Edward O'Callaghan2009-11-221-1/+1
| | | | llvm-svn: 89588
* Don't include a dead header.Benjamin Kramer2009-11-221-1/+0
| | | | llvm-svn: 89587
* Fix for bad FileCheck converts in revision 89584.Edward O'Callaghan2009-11-223-24/+23
| | | | llvm-svn: 89586
* Remove UndefinedAssignmentChecker's header.Zhongxing Xu2009-11-224-36/+21
| | | | llvm-svn: 89585
* Convert a few tests to FileCheck for PR5307.Edward O'Callaghan2009-11-2211-27/+67
| | | | llvm-svn: 89584
* Use intptr_t rather than long so that this test will not fail on LLP64 systems,Alexis Hunt2009-11-221-4/+6
| | | | | | where long is only 32-bits and so a reinterpret_cast would be ill-formed. llvm-svn: 89583
* Fix whitespace.Bob Wilson2009-11-223-288/+267
| | | | llvm-svn: 89582
* Fix pr5470. Tablegen handles template arguments by temporarily setting theirBob Wilson2009-11-222-8/+30
| | | | | | | | | | | values, resolving references to them, and then removing the definitions. If a template argument is set to an undefined value, we need to resolve references to that argument to an explicit undefined value. The current code leaves the reference to the template argument as it is, which causes an assertion failure later when the definition of the template argument is removed. llvm-svn: 89581
* If a C++ qualified id is followed by a postfix suffix, it is never the directJohn McCall2009-11-223-1/+58
| | | | | | | | | | | | | | operand of an addressof operator, and so we should not treat it as an abstract member-pointer expression and therefore suppress the implicit member access. This is really a well-formedness constraint on expressions: a DeclRefExpr of a FieldDecl or a non-static CXXMethodDecl (or template thereof, or unresolved collection thereof) should not be allowed in an arbitrary location in the AST. Arguably it shouldn't be allowed anywhere and we should have a different expr node type for this. But unfortunately we don't have a good way of enforcing this kind of constraint right now. llvm-svn: 89578
* Remove dead code. While there, also turn a few 'T* ' into 'T *' to match theNick Lewycky2009-11-221-8/+4
| | | | | | rest of the file. llvm-svn: 89577
* Generate more correct debug info for frame indices.Jim Grosbach2009-11-222-35/+53
| | | | llvm-svn: 89576
* Reorganize the intermediate BuildDeclarationNameExpr routines again.John McCall2009-11-223-87/+82
| | | | llvm-svn: 89575
* Minor optimization: when doing eq/ne comparions and RHS is a constant - swap ↵Anton Korobeynikov2009-11-221-0/+8
| | | | | | operands, this will allow us to fold imm into comparison. llvm-svn: 89574
* Drop unsupported imm operandsAnton Korobeynikov2009-11-221-31/+0
| | | | llvm-svn: 89573
OpenPOWER on IntegriCloud