summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add missing #endif in documentation.Ted Kremenek2012-01-041-0/+1
| | | | llvm-svn: 147556
* Support __has_attribute for objc_suppress_autosynthesisFariborz Jahanian2012-01-042-1/+3
| | | | | | which is automatic with proper spelling :). llvm-svn: 147555
* Improved comment to explain why we can use __cxa_get_globals_fast hereMarshall Clow2012-01-041-0/+4
| | | | llvm-svn: 147554
* Silence warnings of a mysterious compiler that still defaults to C89.Benjamin Kramer2012-01-041-2/+2
| | | | llvm-svn: 147553
* Driver/Darwin: Remove a hack that avoided passing -demangle to iOS linkers.Daniel Dunbar2012-01-041-7/+1
| | | | llvm-svn: 147552
* Added logging to track when the IR interpreterSean Callanan2012-01-041-0/+10
| | | | | | resolves values in registers. llvm-svn: 147551
* Simplify more DenseMap.find users.Benjamin Kramer2012-01-042-8/+4
| | | | llvm-svn: 147550
* Added examples of commands that list and deleteSean Callanan2012-01-041-0/+22
| | | | | | breakpoints. llvm-svn: 147549
* Add __has_feature(modules) to indicate when modules are available (inDouglas Gregor2012-01-042-2/+17
| | | | | | | | | any language variant), and restrict __has_feature(objc_modules) to mean that we also have the Objective-C @import syntax. I anticipate __has_feature(cxx_modules) and/or __has_feature(c_modules) for when we nail down the module syntax for C/C++. llvm-svn: 147548
* Just getting started on the personality routine. This is just a skeleton. ↵Howard Hinnant2012-01-042-6/+107
| | | | | | Still learning how to fill it in... llvm-svn: 147547
* StringMap.find never points to an empty bucket or tombstone, skip the check.Benjamin Kramer2012-01-041-2/+2
| | | | llvm-svn: 147546
* Fix test so it doesn't depend on the host's calling convention lowering code.Eli Friedman2012-01-041-6/+6
| | | | llvm-svn: 147545
* Simplify code. No functionality change.Benjamin Kramer2012-01-041-7/+4
| | | | | | | Using DenseMap iterators isn't free as they have to check for empty buckets. Dominator queries are common so this gives a minor speedup. llvm-svn: 147544
* add polly.sh scriptSebastian Pop2012-01-042-0/+70
| | | | llvm-svn: 147543
* use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJITSebastian Pop2012-01-0414-11/+59
| | | | | | | | | | Get back getHostTriple. For JIT compilation, use the host triple instead of the default target: this fixes some JIT testcases that used to fail when the compiler has been configured as a cross compiler. llvm-svn: 147542
* Enable -soft-float for MIPS.Akira Hatanaka2012-01-041-7/+10
| | | | llvm-svn: 147541
* Fixed the help text for raw commands like "expr"Sean Callanan2012-01-042-0/+17
| | | | | | | | | | | | | | | | | | | | to include -- in sample command lines. Now LLDB prints expression [-f <format>] -- <expr> instead of expression [-f <format>] <expr> and also adds a new example line: expression <expr> to show that in the absense of arguments the -- can be ommitted. llvm-svn: 147540
* Instead of blindly printing a string whenSean Callanan2012-01-041-3/+33
| | | | | | | | | eFormatCString is specified, I have made DataExtractor::Dump properly escape the string. This prevents LLDB from printing characters that confuse terminals. llvm-svn: 147536
* Implement declaration merging for variables in disjoint modules.Douglas Gregor2012-01-044-1/+48
| | | | llvm-svn: 147535
* Implement declaration merging for non-template functions fromDouglas Gregor2012-01-045-44/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | different modules. This implementation is a first approximation of what we want, using only the function type to determine equivalence. Later, we'll want to deal with some of the more subtle issues, including: - C allows a prototyped declaration and a non-prototyped declaration to be merged, which we should support - We may want to ignore the return type when merging, then complain if the return types differ. Or, we may want to leave it as it us, so that we only complain if overload resolution eventually fails. - C++ non-static member functions need to consider cv-qualifiers and ref-qualifiers. - Function templates need to consider the template parameters and return type. - Function template specializations will have special rules. - We can now (accidentally!) end up overloading in C, even without the "overloadable" attribute, and will need to detect this at some point. The actual detection of "is this an overload?" is implemented by Sema::IsOverload(), which will need to be moved into the AST library for re-use here. That will be a future refactor. llvm-svn: 147534
* Implement declaration merging for typedefs loaded from disjointDouglas Gregor2012-01-042-27/+38
| | | | | | | | | | | modules, so long as the typedefs refer to the same underlying type. This ensures that the typedefs end up in the same redeclaration chain. To test this, fix name lookup for C/Objective-C to properly deal with multiple declarations with the same name in the same scope. llvm-svn: 147533
* Better commentMarshall Clow2012-01-041-1/+1
| | | | llvm-svn: 147532
* Penryn doesn't support sse4.2, don't enable it in the first place.Benjamin Kramer2012-01-041-2/+1
| | | | | | | While the code took care of disabling the sse42 flag it didn't know about popcnt. This broke -march=native on penryn. llvm-svn: 147531
* Restore r147493 and remove the part of the test that was checking the wrong ↵David Chisnall2012-01-042-8/+32
| | | | | | thing. llvm-svn: 147530
* Remove pointless asserts.Nick Lewycky2012-01-041-2/+0
| | | | llvm-svn: 147529
* Teach instcombine all sorts of great stuff about shifts that have exact, nuw orNick Lewycky2012-01-043-8/+113
| | | | | | nsw bits on them. llvm-svn: 147528
* Allow vector shuffle normalizing to use concat vector even if the sources ↵Craig Topper2012-01-041-11/+24
| | | | | | are commuted in the shuffle mask. llvm-svn: 147527
* Extend ConditionBRVisitor to handle condition variable assignments.Ted Kremenek2012-01-043-4/+259
| | | | llvm-svn: 147526
* Implement VECTOR_SHUFFLE canonicalizations during DAG combine.Craig Topper2012-01-041-2/+50
| | | | llvm-svn: 147525
* Don't treat 'import' as a contextual keyword when we're in a caching lexer, ↵Douglas Gregor2012-01-044-11/+30
| | | | | | or when modules are disabled. llvm-svn: 147524
* Process attributes in explicit function template instantiations. Fixes part ofRafael Espindola2012-01-042-0/+8
| | | | | | PR11690. llvm-svn: 147523
* Add an explicit LambdaExprContext to Declarator, to parallel ↵Eli Friedman2012-01-044-5/+20
| | | | | | BlockLiteralContext. Use it to ensure semantic analysis of types isn't confused by the lack of a type specifier. llvm-svn: 147522
* test/CodeGen/X86/jump_sign.ll: Add -mcpu=pentiumpro for non-x86 hosts. It ↵NAKAMURA Takumi2012-01-041-1/+1
| | | | | | uses "cmov". llvm-svn: 147521
* Have functions return structures smaller than 128-bit in registers if ABIAkira Hatanaka2012-01-041-3/+54
| | | | | | is either N32 or N64. llvm-svn: 147520
* Rename immLUiOpnd.Akira Hatanaka2012-01-042-3/+3
| | | | llvm-svn: 147519
* - Define base classes for Jump-and-link instructions and make 32-bit and 64-bitAkira Hatanaka2012-01-042-42/+27
| | | | | | | | | versions derive from them. - JALR64 is not needed since N64 does not emit jal. - Add template parameter to BranchLink that sets the rt field. - Fix the set of temporary registers for O32 and N64. llvm-svn: 147518
* Fix messed-up indentation in r147515.Eli Friedman2012-01-041-7/+7
| | | | llvm-svn: 147517
* Have getRegForInlineAsmConstraint return the correct register class when targetAkira Hatanaka2012-01-043-4/+64
| | | | | | is Mips64. llvm-svn: 147516
* Stub out the Sema interface for lambda expressions, and change the parser to ↵Eli Friedman2012-01-049-33/+118
| | | | | | use it. Unconditionally error on lambda expressions because they don't work in any meaningful way yet. llvm-svn: 147515
* [asan] remove objdump-based tests in favour of much simpler LLVM-ish testsKostya Serebryany2012-01-041-153/+0
| | | | llvm-svn: 147514
* Fix more places which should be checking for iOS, not darwin.Evan Cheng2012-01-0418-36/+36
| | | | llvm-svn: 147513
* For x86, canonicalize maxEvan Cheng2012-01-042-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | (x > y) ? x : y => (x >= y) ? x : y So for something like (x - y) > 0 : (x - y) ? 0 It will be (x - y) >= 0 : (x - y) ? 0 This makes is possible to test sign-bit and eliminate a comparison against zero. e.g. subl %esi, %edi testl %edi, %edi movl $0, %eax cmovgl %edi, %eax => xorl %eax, %eax subl %esi, $edi cmovsl %eax, %edi rdar://10633221 llvm-svn: 147512
* Revert r147493. It broke test/CodeGenObjC/constant-strings.m.Rafael Espindola2012-01-041-32/+6
| | | | llvm-svn: 147511
* [asan] one more test for asan instrumentation: (*a)++ should be instrumented ↵Kostya Serebryany2012-01-041-0/+25
| | | | | | only once. llvm-svn: 147509
* Teach the static analyzer to not treat XPC types as CF types.Ted Kremenek2012-01-042-1/+19
| | | | llvm-svn: 147506
* Minor code formatting cleanups.Ted Kremenek2012-01-041-17/+17
| | | | llvm-svn: 147505
* In non-gc, non-arc mode, property of 'Class' typeFariborz Jahanian2012-01-042-0/+24
| | | | | | | | variety is treated as a 'void *'. No need to issue warning reserved for objc object properties. // rdar://10565506 llvm-svn: 147504
* Get rid of an unnecessary check; the AST for init-lists is the same ↵Eli Friedman2012-01-031-6/+4
| | | | | | independent of whether we're in C++11 mode. llvm-svn: 147503
* Turn a few more inline asm errors into "emitErrors" instead of fatal errors.Chris Lattner2012-01-031-9/+21
| | | | | | | | | | | | | | | | | | Before we'd get: $ clang t.c fatal error: error in backend: Invalid operand for inline asm constraint 'i'! Now we get: $ clang t.c t.c:16:5: error: invalid operand for inline asm constraint 'i'! "movq (%4), %%mm0\n" ^ Which at least gets us the inline asm that is the problem. llvm-svn: 147502
* generalize LLVMContext::emitError to take a twine instead of a StringRef.Chris Lattner2012-01-032-6/+7
| | | | llvm-svn: 147501
OpenPOWER on IntegriCloud