Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future ↵ | Jeffrey Yasskin | 2011-07-18 | 2 | -13/+21 |
| | | | | | | | | | ambiguity errors like the one corrected by r135261. Migrate all LLVM callers of the old constructor to the new one. llvm-svn: 135431 | ||||
* | Simplify & microoptimize code. No intended functionality change. | Benjamin Kramer | 2011-07-18 | 1 | -4/+2 |
| | | | | llvm-svn: 135364 | ||||
* | In Twine::str(), if the Twine stores only a std::string, just return a ↵ | Frits van Bommel | 2011-07-15 | 1 | -3/+8 |
| | | | | | | direct copy of that instead of first copying to a SmallString and converting that to a std::string. Also fix some indentation. llvm-svn: 135267 | ||||
* | Explicitly cast the second argument to unsigned in order to select the | Chandler Carruth | 2011-07-15 | 1 | -1/+1 |
| | | | | | | | | | desired overload. This is a bit of a hackish workaround to fix the compile after r135259. Let me know if there is a better approach. llvm-svn: 135261 | ||||
* | Add an APFloat::convertToInt(APSInt) function that automatically manages the | Jeffrey Yasskin | 2011-07-15 | 1 | -0/+18 |
| | | | | | | memory for the result. llvm-svn: 135259 | ||||
* | Windows/DynamicLibrary.inc: Fix trivial warnings. Thanks to John Myers! | NAKAMURA Takumi | 2011-07-09 | 2 | -3/+3 |
| | | | | llvm-svn: 134812 | ||||
* | Update comments for SandyBridge CPU identifiers. | Bob Wilson | 2011-07-08 | 1 | -2/+6 |
| | | | | llvm-svn: 134759 | ||||
* | Recognize Intel CPUs with Family=6 and Model=44. | Bob Wilson | 2011-07-08 | 1 | -0/+1 |
| | | | | | | | | According to Intel Application Note 485, this value is used for "Intel Core i7 and Intel Xeon processor". Just include it with the other "corei7-avx" entries. llvm-svn: 134750 | ||||
* | Recognize mipseb as alias for mips for symmetry with mipsel. | Joerg Sonnenberger | 2011-07-07 | 1 | -1/+2 |
| | | | | llvm-svn: 134617 | ||||
* | Fix missing triple support for RTEMS target. | Eli Friedman | 2011-07-06 | 1 | -0/+2 |
| | | | | llvm-svn: 134532 | ||||
* | By default mkstemp() creates a temporary file with mode 0600, but the mode | Chad Rosier | 2011-07-05 | 1 | -0/+3 |
| | | | | | | | | used for open is 0666. Therefore, add the necessary permission bits for consistency. rdar://8621462 llvm-svn: 134430 | ||||
* | Revert previous commit. It seems that whether casting to void | Duncan Sands | 2011-07-02 | 1 | -1/+1 |
| | | | | | | is valid or not depends on which system you build. llvm-svn: 134321 | ||||
* | Supress gcc-4.5 warning about the result not being used. | Duncan Sands | 2011-07-02 | 1 | -1/+1 |
| | | | | llvm-svn: 134319 | ||||
* | Add initial *-*-rtems* target, from Joel Sherrill | Douglas Gregor | 2011-07-01 | 1 | -0/+1 |
| | | | | llvm-svn: 134282 | ||||
* | Fix the implementation of ConstantRange::sub(ConstantRange). Patch by Xi Wang! | Nick Lewycky | 2011-06-22 | 1 | -2/+2 |
| | | | | llvm-svn: 133648 | ||||
* | add option for literal formatting to APInt::toString() | Ted Kremenek | 2011-06-15 | 1 | -3/+34 |
| | | | | | | | | | | | | | | | toString() now takes an optional bool argument that, depending on the radix, adds the appropriate prefix to the integer's string representation that makes it into a meaningful C literal, e.g.: hexademical: '-f' becomes '-0xf' octal: '77' becomes '077' binary: '110' becomes '0b110' Patch by nobled@dreamwidth.org! llvm-svn: 133032 | ||||
* | Aliased flag options should be directed to stdout, not stderr to be ↵ | Evan Cheng | 2011-06-13 | 1 | -2/+2 |
| | | | | | | consistent. Patch by Julien Lerouge. llvm-svn: 132931 | ||||
* | Branch profiling: floating-point avoidance. | Andrew Trick | 2011-06-11 | 2 | -0/+45 |
| | | | | | | | | | Patch by: Jakub Staszak! Introduces BranchProbability. Changes unsigned to uint32_t all over and uint64_t only when overflow is expected. llvm-svn: 132867 | ||||
* | add another sandybridge alias. | Chris Lattner | 2011-06-09 | 1 | -0/+1 |
| | | | | llvm-svn: 132772 | ||||
* | singed int causes signed extension, which contradicts the intention to pick up | Zhongxing Xu | 2011-06-03 | 1 | -1/+1 |
| | | | | | | integers with high 32 bits being zero. llvm-svn: 132538 | ||||
* | Add new -d option to tblgen. It writes a make(1)-style dependency file. | Joerg Sonnenberger | 2011-06-01 | 1 | -4/+6 |
| | | | | llvm-svn: 132395 | ||||
* | ...this is not a good commit day for me. | John McCall | 2011-05-29 | 1 | -7/+0 |
| | | | | llvm-svn: 132294 | ||||
* | On Darwin ARM, set the UNWIND_RESUME libcall to _Unwind_SjLj_Resume. | John McCall | 2011-05-29 | 1 | -0/+7 |
| | | | | | | | This is important for the correct lowering of unwind instructions (which doesn't matter at all) and llvm.eh.resume calls (which does). llvm-svn: 132291 | ||||
* | fix a bug for hosts without round, PR8893. | Chris Lattner | 2011-05-22 | 1 | -1/+1 |
| | | | | llvm-svn: 131842 | ||||
* | random comment cleanups. | Chris Lattner | 2011-05-22 | 1 | -4/+4 |
| | | | | llvm-svn: 131829 | ||||
* | Have Program::Wait return -2 for crashed and timeouts instead of embedding | Andrew Trick | 2011-05-21 | 3 | -14/+13 |
| | | | | | | info in the error message. Per Dan's request. llvm-svn: 131780 | ||||
* | Rename the "sandybridge" subtarget to "corei7-avx", for GCC compatibility. | Benjamin Kramer | 2011-05-20 | 1 | -1/+1 |
| | | | | llvm-svn: 131730 | ||||
* | Revert my previous patch. The cmake build had already been fixed. | Rafael Espindola | 2011-05-19 | 1 | -1/+0 |
| | | | | llvm-svn: 131606 | ||||
* | Fix the cmake build. | Rafael Espindola | 2011-05-18 | 1 | -0/+1 |
| | | | | llvm-svn: 131602 | ||||
* | Shuffle StandardPasses.cpp into VMCore; add it to CMake. | Eli Friedman | 2011-05-18 | 1 | -247/+0 |
| | | | | llvm-svn: 131600 | ||||
* | Third pass at allowing plugins to modify default passes. This time with a ↵ | Eli Friedman | 2011-05-18 | 1 | -0/+247 |
| | | | | | | tweak so that we don't depend on an uninitialized argument. llvm-svn: 131581 | ||||
* | Revert r131556; it's breaking buildbots/clang tests. | Eli Friedman | 2011-05-18 | 1 | -247/+0 |
| | | | | llvm-svn: 131567 | ||||
* | Second pass at allowing plugins to modify default passes. This time without ↵ | David Chisnall | 2011-05-18 | 1 | -0/+247 |
| | | | | | | bonus inter-library dependencies. llvm-svn: 131556 | ||||
* | Don't include information about the build into the information returned by | Rafael Espindola | 2011-05-17 | 1 | -29/+0 |
| | | | | | | getHostTriple. This fixes a 32 bit clang running on a 64 bit ubuntu. llvm-svn: 131463 | ||||
* | Doug convinced me that DW_AT_APPLE_objc_complete_type is more appropriate name. | Devang Patel | 2011-05-12 | 1 | -1/+1 |
| | | | | | | s/DW_AT_APPLE_objc_class_extension/DW_AT_APPLE_objc_complete_type/g llvm-svn: 131244 | ||||
* | Let Objective-C front-end identify class extension, in dwarf output, using ↵ | Devang Patel | 2011-05-12 | 1 | -0/+1 |
| | | | | | | an attribute DW_AT_APPLE_objc_class_extension. llvm-svn: 131238 | ||||
* | Typo and missing checkin from r131186. | Andrew Trick | 2011-05-11 | 1 | -1/+2 |
| | | | | llvm-svn: 131187 | ||||
* | Bugpoint support for miscompilations that result in a crash. | Andrew Trick | 2011-05-11 | 2 | -4/+8 |
| | | | | | | | | | This change allows bugpoint to pinpoint the "opt" pass and bitcode segment responsible for a crash caused by miscompilation. At least it works well for me now, without having to create any custom execution wrappers. llvm-svn: 131186 | ||||
* | In option typo correction, consider -foo=VALUE flags as two distinct parts. The | Nick Lewycky | 2011-05-02 | 1 | -5/+12 |
| | | | | | | | | | | comments claimed it did this, but the LHS value was actually an unused variable. The new system considers only the '-foo' part when comparing it for typos against flags that have values, but still look at the whole string for flags that don't. That way, we'll still correct '-inst=combine' to '-instcombine'. llvm-svn: 130685 | ||||
* | Windows/DynamicLibrary.inc: Clean up ELM_Callback. We may check the decl ↵ | NAKAMURA Takumi | 2011-05-01 | 1 | -31/+2 |
| | | | | | | | | | instead of the versions of individual libraries. autoconf: Add checking ELM_Callback decl for mingw32 and mingw-w64. cmake/config-ix.cmake: Add checking ELM_Callback decl for win32. llvm-svn: 130657 | ||||
* | Include <pthread.h> before we use pthread_self/pthread_kill | Douglas Gregor | 2011-04-29 | 1 | -3/+3 |
| | | | | llvm-svn: 130510 | ||||
* | Add MemoryBuffer::getBufferKind() to report whether a memory buffer uses ↵ | Ted Kremenek | 2011-04-28 | 1 | -0/+8 |
| | | | | | | malloc'ed or mmap'ed memory. This is for performance analysis. llvm-svn: 130432 | ||||
* | Remove bounded StringRef::compare() since nothing but Clang SA was using it ↵ | Lenny Maiorani | 2011-04-28 | 1 | -21/+0 |
| | | | | | | and it is just as easy to use StringRef::substr() preceding StringRef::compare() to achieve the same thing. llvm-svn: 130430 | ||||
* | allow adding a FoldingSetNodeID to a FastFoldingSetNode, resolving PR9499, | Chris Lattner | 2011-04-25 | 1 | -0/+5 |
| | | | | | | patch by Johannes Schaub! llvm-svn: 130151 | ||||
* | Like the coding standards say, do not use "using namespace std". | Jay Foad | 2011-04-23 | 1 | -1/+0 |
| | | | | llvm-svn: 130054 | ||||
* | Add support for 64-bit object files to Path. | Eric Christopher | 2011-04-22 | 1 | -4/+10 |
| | | | | llvm-svn: 129975 | ||||
* | Add DW_OP_bit_piece. | Devang Patel | 2011-04-21 | 1 | -0/+1 |
| | | | | llvm-svn: 129945 | ||||
* | sys/Host: Change getHostTriple() to return the full Darwin version on OS X. | Daniel Dunbar | 2011-04-20 | 1 | -4/+1 |
| | | | | llvm-svn: 129852 | ||||
* | PTX: Add intrinsics to list of built-in intrinsics, which allows them to be | Justin Holewinski | 2011-04-20 | 1 | -10/+20 |
| | | | | | | | | | | used by Clang. To help Clang integration, the PTX target has been split into two targets: ptx32 and ptx64, depending on the desired pointer size. - Add GCCBuiltin class to all intrinsics - Split PTX target into ptx32 and ptx64 llvm-svn: 129851 | ||||
* | ADT/Triple: Drop support for -osx style triples, we are going with -macosx | Daniel Dunbar | 2011-04-19 | 1 | -3/+0 |
| | | | | | | instead. llvm-svn: 129836 |