Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with ↵ | Benjamin Kramer | 2013-06-21 | 1 | -2/+10 | |
| | | | | | | | | | | | | | | | a branch probability. Zero is used by BlockFrequencyInfo as a special "don't know" value. It also causes a sink for frequencies as you can't ever get off a zero frequency with more multiplies. This recovers a 10% regression on MultiSource/Benchmarks/7zip. A zero frequency was propagated into an inner loop causing excessive spilling. PR16402. llvm-svn: 184584 | |||||
* | [NVPTX] Add support for selecting CUDA vs OCL mode based on triple | Justin Holewinski | 2013-06-21 | 1 | -0/+6 | |
| | | | | | | IR for CUDA should use "nvptx[64]-nvidia-cuda", and IR for NV OpenCL should use "nvptx[64]-nvidia-nvcl" llvm-svn: 184579 | |||||
* | Add another fixme. | Rafael Espindola | 2013-06-20 | 1 | -0/+1 | |
| | | | | llvm-svn: 184488 | |||||
* | Remove last use of PathV1.h from Archive.cpp. | Rafael Espindola | 2013-06-20 | 1 | -0/+2 | |
| | | | | llvm-svn: 184484 | |||||
* | make getLastModificationTime const. Move it with the other getters. | Rafael Espindola | 2013-06-20 | 2 | -2/+2 | |
| | | | | llvm-svn: 184478 | |||||
* | Add a setLastModificationAndAccessTime to PathV2. | Rafael Espindola | 2013-06-20 | 2 | -0/+21 | |
| | | | | | | With this we can remove the last use of PathV1 from llvm-ar.cpp. llvm-svn: 184464 | |||||
* | Add support for getting the last modification time from a file_status. | Rafael Espindola | 2013-06-20 | 2 | -0/+17 | |
| | | | | | | Use that in llvm-ar.cpp to replace a use of sys::PathWithStatus. llvm-svn: 184450 | |||||
* | Fix get_magic() handling of short reads. | Evgeniy Stepanov | 2013-06-20 | 1 | -2/+2 | |
| | | | | | | PR16389 llvm-svn: 184434 | |||||
* | Rename fs::GetUniqueID to fs::getUniqueID to match the style guide. | Rafael Espindola | 2013-06-20 | 2 | -2/+2 | |
| | | | | llvm-svn: 184431 | |||||
* | Remove MSan hack that is no longer needed. | Evgeniy Stepanov | 2013-06-20 | 1 | -2/+0 | |
| | | | | llvm-svn: 184428 | |||||
* | [Support/CrashRecoveryContext] Make sure CrashRecoveryContext does not clear ↵ | Argyrios Kyrtzidis | 2013-06-19 | 1 | -2/+11 | |
| | | | | | | | | | | | | | | | | | the thread-local "CurrentContext" in the "parent" thread, when we are using CrashRecoveryContext::RunSafelyOnThread. When using CrashRecoveryContext::RunSafelyOnThread, we would set a CrashRecoveryContextImpl* to a thread-local variable for the "child" thread, but CrashRecoveryContext would erroneously clear it in the "parent" thread. The result was that if CrashRecoveryContext::RunSafelyOnThread was called again in the "child" thread it would mess up crash-recovery for its parent. A test for this will be added in the clang repository. rdar://14204560 llvm-svn: 184380 | |||||
* | [APFloat] Converted all references to APFloat::isNormal => ↵ | Michael Gottesman | 2013-06-19 | 1 | -3/+3 | |
| | | | | | | | | APFloat::isFiniteNonZero. Turns out all the references were in llvm and not in clang. llvm-svn: 184356 | |||||
* | Modified the implementation of fs::GetUniqueID on Windows such that it ↵ | Aaron Ballman | 2013-06-19 | 1 | -9/+14 | |
| | | | | | | actually finds a unique identifier for a file. Also adds unit tests for GetUniqueID. llvm-svn: 184351 | |||||
* | Remove Path::getDirectoryContents. | Rafael Espindola | 2013-06-19 | 2 | -78/+0 | |
| | | | | llvm-svn: 184311 | |||||
* | Remove Path::isObjectFile. | Rafael Espindola | 2013-06-19 | 1 | -8/+0 | |
| | | | | llvm-svn: 184305 | |||||
* | Remove Path::canExecute. | Rafael Espindola | 2013-06-19 | 2 | -19/+0 | |
| | | | | llvm-svn: 184298 | |||||
* | Fixed comment typo that causes the given comment to actually make sense. | Michael Gottesman | 2013-06-19 | 1 | -1/+1 | |
| | | | | llvm-svn: 184286 | |||||
* | Remove Path::canWrite. | Rafael Espindola | 2013-06-18 | 2 | -13/+0 | |
| | | | | llvm-svn: 184235 | |||||
* | Add a can_write function to PathV2. | Rafael Espindola | 2013-06-18 | 2 | -0/+18 | |
| | | | | llvm-svn: 184233 | |||||
* | Remove unused Path::canRead. | Rafael Espindola | 2013-06-18 | 2 | -12/+0 | |
| | | | | llvm-svn: 184229 | |||||
* | Remove uniqueID from PathV1.h. | Rafael Espindola | 2013-06-18 | 2 | -8/+0 | |
| | | | | llvm-svn: 184219 | |||||
* | Add a GetUniqueID that will replace the uniqueID of PathV1.h. | Rafael Espindola | 2013-06-18 | 2 | -0/+26 | |
| | | | | llvm-svn: 184217 | |||||
* | Add a version of unique_file that return just the file name. | Rafael Espindola | 2013-06-18 | 1 | -1/+12 | |
| | | | | llvm-svn: 184206 | |||||
* | Basic support for parsing Mach-O universal binaries in LLVMObject library | Alexey Samsonov | 2013-06-18 | 1 | -2/+1 | |
| | | | | llvm-svn: 184191 | |||||
* | Reapply r183985 now that the missing check was added to PathV2. | Rafael Espindola | 2013-06-17 | 1 | -3/+5 | |
| | | | | llvm-svn: 184120 | |||||
* | Only delete regular files and directories. | Rafael Espindola | 2013-06-17 | 1 | -0/+16 | |
| | | | | | | | | This ports a missing feature from PathV1.h. I am not sure how to test this with the regular infrastructure, but an Apple bot should check this when r183985 is reapplied. llvm-svn: 184119 | |||||
* | Revert "Remove a use of PathV1.h." | Rafael Espindola | 2013-06-17 | 1 | -5/+3 | |
| | | | | | | | | This reverts commit r183985. We were missing the checks for not deleting things like /dev/null. llvm-svn: 184111 | |||||
* | Don't use PathV1.h in LTOCodeGenerator.cpp | Rafael Espindola | 2013-06-17 | 1 | -0/+4 | |
| | | | | | | | This patch also adds a simpler version of sys::fs::remove and a tool_output_file constructor for when we already have an open file. llvm-svn: 184095 | |||||
* | Fix incorrectly finding 'executable' directories instead of files. | Manuel Klimek | 2013-06-17 | 1 | -1/+8 | |
| | | | | | | | | | | | | | | | This broke for example the 'not' utility, if a directory called 'FileCheck' is executable and in the path before the actual 'FileCheck'. This patch steals the implementation of the "old" PathV1 canExecute implementation: - checks for R_OK (file readable): this is necessary for executing scripts; we should not regress here unless we have good reasons - checks for S_ISREG; if we want to get rid of this, we'd need to change all callers who already made the assumption when depending on Path V1. llvm-svn: 184074 | |||||
* | Add GetCurrentDirectory back. | Rafael Espindola | 2013-06-14 | 2 | -0/+21 | |
| | | | | | | | | It looks like clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp depends on the behaviour of the old one on Windows. Maybe a difference between GetCurrentDirectoryA and GetCurrentDirectoryW? llvm-svn: 184009 | |||||
* | Replace use of PathV1.h in MCContext.cpp. | Rafael Espindola | 2013-06-14 | 2 | -21/+0 | |
| | | | | | | GetCurrentDirectory is now unused. Remove it. llvm-svn: 184003 | |||||
* | Replace use of PathV1.h in Program.cpp. | Rafael Espindola | 2013-06-14 | 5 | -75/+63 | |
| | | | | llvm-svn: 183996 | |||||
* | Remove unused argument. | Rafael Espindola | 2013-06-14 | 1 | -3/+3 | |
| | | | | llvm-svn: 183992 | |||||
* | Don't use PathV1.h in GraphWriter.cpp. | Rafael Espindola | 2013-06-14 | 1 | -5/+2 | |
| | | | | llvm-svn: 183988 | |||||
* | Convert a use of sys::Path::GetTemporaryDirectory. | Rafael Espindola | 2013-06-14 | 1 | -10/+9 | |
| | | | | llvm-svn: 183987 | |||||
* | Remove a use of PathV1.h. | Rafael Espindola | 2013-06-14 | 1 | -3/+5 | |
| | | | | llvm-svn: 183985 | |||||
* | Remove a use of PathV1.h. | Rafael Espindola | 2013-06-14 | 1 | -15/+9 | |
| | | | | llvm-svn: 183982 | |||||
* | Move PrependMainExecutablePath next to its only user. | Rafael Espindola | 2013-06-14 | 1 | -23/+0 | |
| | | | | llvm-svn: 183980 | |||||
* | Remove a use of sys::Path. | Rafael Espindola | 2013-06-14 | 1 | -2/+3 | |
| | | | | llvm-svn: 183979 | |||||
* | Try to fix the windows build. | Rafael Espindola | 2013-06-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 183950 | |||||
* | Don't use PathV1.h in Signals.h. | Rafael Espindola | 2013-06-13 | 3 | -12/+15 | |
| | | | | llvm-svn: 183947 | |||||
* | Don't use PathV1.h in FileUtilities.h. | Rafael Espindola | 2013-06-13 | 1 | -2/+6 | |
| | | | | llvm-svn: 183941 | |||||
* | Avoid using PathV1.h in Program.h. | Rafael Espindola | 2013-06-13 | 3 | -22/+29 | |
| | | | | llvm-svn: 183940 | |||||
* | Add a version of sys::ExecuteAndWait that takes StringRefs. | Rafael Espindola | 2013-06-13 | 1 | -0/+23 | |
| | | | | llvm-svn: 183934 | |||||
* | Have sys::FindProgramByName return a std::string. | Rafael Espindola | 2013-06-13 | 2 | -15/+15 | |
| | | | | llvm-svn: 183928 | |||||
* | Covert remaining graph viewers from sys::Path to std::string. | Rafael Espindola | 2013-06-13 | 1 | -3/+3 | |
| | | | | llvm-svn: 183921 | |||||
* | Update code for other graph viewing programs too. | Rafael Espindola | 2013-06-13 | 1 | -3/+3 | |
| | | | | llvm-svn: 183920 | |||||
* | Reduce usage of sys::Path in the graph writer. | Rafael Espindola | 2013-06-13 | 1 | -22/+40 | |
| | | | | | | Now PathV1.h is not needed in GraphWriter.h. llvm-svn: 183919 | |||||
* | [Support] Fix handle and memory leak for processes that are not waited for | Reid Kleckner | 2013-06-13 | 3 | -40/+27 | |
| | | | | | | | | | | | | Execute's Data parameter is now optional, so we won't allocate memory for it on Windows and we'll close the process handle. The Unix code should probably do something similar to avoid accumulation of zombie children that haven't been waited on. Tested on Linux and Windows. llvm-svn: 183906 | |||||
* | Zero-initializing variables; fixes a build breakage introduced in r183864. | Aaron Ballman | 2013-06-13 | 1 | -2/+2 | |
| | | | | llvm-svn: 183904 |