summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* clang-cl: Don't warn on /bigobj flagNico Weber2015-09-182-1/+2
| | | | | | | | | | LLVM r217812 made it so that clang-cl implicitly creates bigobj files when needed, independent of this flag. It looks like cl has this flag to produce obj flags compatible with MSVS 2003's linker by default, something we don't care about. Since clang-cl always has /bigobj behavior, don't warn that the flag is unused, just ignore it silently. llvm-svn: 248034
* Yet another try at fixing this at every bot.Rafael Espindola2015-09-181-2/+2
| | | | | | This time handle " and - after clang and lld. llvm-svn: 248033
* [Object/ELF] Change comment to reflect reality.Davide Italiano2015-09-181-1/+1
| | | | llvm-svn: 248032
* Relax this test further to pass in other bots.Rafael Espindola2015-09-181-4/+2
| | | | | | | | | The problem this time was the /clang matching the InstalledDir line. Now we just use regular expressions which are more flexible, if a bit less readable, than CHECK+CHECK-SAME. llvm-svn: 248031
* Update edge weights properly when merging blocks in if-conversion.Cong Hou2015-09-183-6/+140
| | | | | | | | In if-conversion, there is a utility function MergeBlocks() that is used to merge blocks. However, when new edges are built in this function the edge weight is either not provided or not updated properly, leading to a modified CFG with incorrect edge weights. This patch corrects this issue. Differential Revision: http://reviews.llvm.org/D12513 llvm-svn: 248030
* Fix test to pass when the directory name has lld in it.Rafael Espindola2015-09-181-5/+4
| | | | | | | | | | | | | | | CHECK-LABEL assumes that there is only one occurrence of the match. The output looks like: clang version 3.8.0 (trunk 247999) .... /path/to/build/dir/bin/clang-3.8 .... If the path contains lld, the second CHECK-LABEL matches it and we fail since there is no -cc1as between clang and lld. llvm-svn: 248029
* Make libc++ tests skip themselves if libc++ is not actually loaded in the targetEnrico Granata2015-09-1812-1/+59
| | | | llvm-svn: 248028
* Limit the range of processors supported by ARM fast isel to v6 orEric Christopher2015-09-183-36/+4
| | | | | | | | later as that's all that is tested right now. Fixes PR24858. llvm-svn: 248027
* Remove unused variable Dimension [NFC]Michael Kruse2015-09-181-2/+0
| | | | llvm-svn: 248026
* Revert "[CMake] Refactoring and cleaning up clang symlink generation."Chris Bieneman2015-09-183-15/+72
| | | | | | This reverts commit r248015, because it broke bots. I'll revise and recommit. llvm-svn: 248025
* Merge IRAccess into MemoryAccessMichael Kruse2015-09-185-224/+251
| | | | | | | | | | | | | | | All MemoryAccess objects will be owned by ScopInfo::AccFuncMap which previously stored the IRAccess objects. Instead of creating new MemoryAccess objects, the already created ones are reused, but their order might be different now. Some fields of IRAccess and MemoryAccess had the same meaning and are merged. This is the last step of fusioning TempScopInfo.{h|cpp} and ScopInfo.{h.cpp}. Some refactoring might still make sense. Differential Revision: http://reviews.llvm.org/D12843 llvm-svn: 248024
* Remove couple of new Bitcode enum vals that snuck in via r247927 (NFC)Teresa Johnson2015-09-181-3/+0
| | | | | | | These are meant to be part of the follow on patch I am sending for review shortly. llvm-svn: 248023
* Clean up: Refactoring the hardcoded value of 6 for ↵Larisse Voufo2015-09-185-11/+31
| | | | | | FindAvailableLoadedValue()'s parameter MaxInstsToScan. (Complete version of r247497. See D12886) llvm-svn: 248022
* [analyzer] A fix for substraction of an integer from a pointer.Gabor Horvath2015-09-182-1/+19
| | | | | | | | Patch by Artem Dergachev! Differential Revision: http://reviews.llvm.org/D12725 llvm-svn: 248021
* Make MachineScheduler debug output less confusing.James Y Knight2015-09-183-6/+35
| | | | | | At least...a little bit. llvm-svn: 248020
* [ELF2] Constify member functions.Davide Italiano2015-09-181-3/+3
| | | | llvm-svn: 248019
* Scaling up values in ARMBaseInstrInfo::isProfitableToIfCvt() before they are ↵Cong Hou2015-09-186-23/+29
| | | | | | | | | | scaled by a probability to avoid precision issue. In ARMBaseInstrInfo::isProfitableToIfCvt(), there is a simple cost model in which the number of cycles is scaled by a probability to estimate the cost. However, when the number of cycles is small (which is usually the case), there is a precision issue after the computation. To avoid this issue, this patch scales those cycles by 1024 (chosen to make the multiplication a litter faster) before they are scaled by the probability. Other variables are also scaled up for the final comparison. Differential Revision: http://reviews.llvm.org/D12742 llvm-svn: 248018
* Remove unused modules from module cache.Oleksiy Vyalov2015-09-184-20/+148
| | | | | | http://reviews.llvm.org/D12971 llvm-svn: 248017
* [CMake] Set CLANG_LINKS_TO_CREATE in Apple-stage2.cmake so that we create cc ↵Chris Bieneman2015-09-181-0/+1
| | | | | | and c++ links. llvm-svn: 248016
* [CMake] Refactoring and cleaning up clang symlink generation.Chris Bieneman2015-09-183-72/+15
| | | | | | Generation of clang symlinks now uses add_clang_symlink macro which uses add_llvm_symlink. Also the list of symlinks to generate is configurable via CLANG_LINKS_TO_CREATE. llvm-svn: 248015
* Disable final MSAN test in AArch64 to get the bots greenRenato Golin2015-09-181-0/+1
| | | | llvm-svn: 248014
* SelectionDAGDumper: Leave out the <multiple use> markersMatthias Braun2015-09-181-3/+0
| | | | | | | | | They mostly clutter the output while it is still possible to see which node has multiple users without them. Differential Revision: http://reviews.llvm.org/D12569 llvm-svn: 248013
* SelectionDAGDumper: Avoid unnecessary newlinesMatthias Braun2015-09-181-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: t0 = EntryToken:ch t0: <multiple use> t0: <multiple use> t1 = CopyFromReg:v4f32,ch t0, Register:v4f32 %vreg0 t25 = IMPLICIT_DEF:v4f32 t26 = HADDPSrr:v4f32 t1, t25 t23 = CopyToReg:ch,glue t0, Register:v4f32 %XMM0, t26 t23: <multiple use> t23: <multiple use> t24 = RETQ:ch Register:v4f32 %XMM0, t23, t23:1 After: t0: <multiple use> t0: <multiple use> t1 = CopyFromReg:v4f32,ch t0, Register:v4f32 %vreg0 t26 = X86ISD::FHADD:v4f32 t1, undef:v4f32 t23 = CopyToReg:ch,glue t0, Register:v4f32 %XMM0, t26 t23: <multiple use> t21 = TargetConstant:i16<0> t23: <multiple use> t24 = X86ISD::RET_FLAG:ch t23, t21, Register:v4f32 %XMM0, t23:1 Differential Revision: http://reviews.llvm.org/D12568 llvm-svn: 248012
* SelectionDAGDumper: Hide [ID=X], [ORD=X] and source locations by default.Matthias Braun2015-09-183-18/+25
| | | | | | | | You can show them with the new -dag-dump-verbose switch. Differential Revision: http://reviews.llvm.org/D12566 llvm-svn: 248011
* SelectionDAG: Introduce PersistentID to SDNode for assert builds.Matthias Braun2015-09-187-10/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This gives us more human readable numbers to identify nodes in debug dumps. Before: 0x7fcbd9700160: ch = EntryToken 0x7fcbd985c7c8: i64 = Register %RAX ... 0x7fcbd9700160: <multiple use> 0x7fcbd985c578: i64,ch = MOV64rm 0x7fcbd985c6a0, 0x7fcbd985cc68, 0x7fcbd985c200, 0x7fcbd985cd90, 0x7fcbd985ceb8, 0x7fcbd9700160<Mem:LD8[@foo]> [ORD=2] 0x7fcbd985c8f0: ch,glue = CopyToReg 0x7fcbd9700160, 0x7fcbd985c7c8, 0x7fcbd985c578 [ORD=3] 0x7fcbd985c7c8: <multiple use> 0x7fcbd985c8f0: <multiple use> 0x7fcbd985c8f0: <multiple use> 0x7fcbd985ca18: ch = RETQ 0x7fcbd985c7c8, 0x7fcbd985c8f0, 0x7fcbd985c8f0:1 [ORD=3] Now: t0: ch = EntryToken t5: i64 = Register %RAX ... t0: <multiple use> t3: i64,ch = MOV64rm t10, t12, t11, t13, t14, t0<Mem:LD8[@foo]> [ORD=2] t6: ch,glue = CopyToReg t0, t5, t3 [ORD=3] t5: <multiple use> t6: <multiple use> t6: <multiple use> t7: ch = RETQ t5, t6, t6:1 [ORD=3] Differential Revision: http://reviews.llvm.org/D12564 llvm-svn: 248010
* [CMake] More cleanup of installing symlinks.Chris Bieneman2015-09-182-1/+7
| | | | | | | | In order to support building clang out-of-tree the install_symlink script needs to be installed, and it needs to be found by searching the CMAKE_MODULE_PATH. This change renames install_symlink -> LLVMInstallSymlink so it doesn't conflict with naming from other projects, and adds searching behavior in AddLLVM.cmake llvm-svn: 248009
* Disable one MSAN test in AArch64 until we have a proper fixRenato Golin2015-09-181-0/+1
| | | | llvm-svn: 248008
* Link NetBSD with execinfo (CMAKE build)Stephane Sezer2015-09-181-2/+2
| | | | | | | | | | | | | | Summary: FreeBSD and NetBSD share the same library execinfo. Reviewers: joerg, sas, brucem Subscribers: brucem, sas, lldb-commits Differential Revision: http://reviews.llvm.org/D12750 Change by Kamil Rytarowski <n54@gmx.com> llvm-svn: 248007
* [AArch64] Improved bitfield instruction selection.Geoff Berry2015-09-183-11/+116
| | | | | | | | | | | | | | | | | | Summary: For bitfield insert OR matching, check both operands for larger pattern first before checking for smaller pattern. Add pattern for unsigned bitfield insert-in-zero done with SHL+AND. Resolves PR21631. Reviewers: jmolloy, t.p.northover Subscribers: aemerson, rengolin, llvm-commits, mcrosier Differential Revision: http://reviews.llvm.org/D12908 llvm-svn: 248006
* clang-cl: Use 'pc' for the vendor field in the default tripleHans Wennborg2015-09-181-0/+1
| | | | | | | Leaving it unset can make the triple look confusing, especially when using -m32 or -m64. llvm-svn: 248005
* Reduce inclusion of clang headers.Bruce Mitchener2015-09-1820-81/+0
| | | | | | | | | | | | | | Summary: With the recent changes to separate clang from the core structures of LLDB, many inclusions of clang headers can be removed. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12954 llvm-svn: 248004
* Differential Revision: http://reviews.llvm.org/D12966Aidan Dodds2015-09-182-89/+234
| | | | | | On behalf of Dean De Leo llvm-svn: 248003
* [Static Analyzer] Use generics related information to infer dynamic types.Gabor Horvath2015-09-182-14/+31
| | | | | | Differential Revision: http://reviews.llvm.org/D12916 llvm-svn: 248002
* [OMPT] Correct an incorrect OMPT ifdef Jonathan Peyton2015-09-181-1/+1
| | | | | | | | | | | An ifdef for OMPT_TRACE needs to be OMPT_BLAME so that both instances of a callback are controlled by the same ifdef. Patch by John Mellor-Crummey Differential Revision: http://reviews.llvm.org/D12911 llvm-svn: 248001
* Suppress amdgpu-toolchain.c for targeting ps4, for now. Investigating.NAKAMURA Takumi2015-09-181-1/+1
| | | | llvm-svn: 248000
* [analyzer] Update links to developer.apple.com.Jordan Rose2015-09-182-7/+7
| | | | | | | The content at the new links is /also/ a little dated, but that's our (Apple's) problem. llvm-svn: 247999
* xUnit test output: implemented proper xml escapingTodd Fiala2015-09-181-18/+53
| | | | | | | | | | | | | | | Now does proper Unicode code region scanning for invalid XML characters. Strips out XML-invalid characters. Does this for: failure result: message, backtrace error result: message, backtrace skipped test: skip reason pexpect timeouts were still generating characters that would break XML readers (correctly so). llvm-svn: 247998
* amdgpu-toolchain.c: Add a probe line temporally. Will revert later.NAKAMURA Takumi2015-09-181-0/+1
| | | | llvm-svn: 247997
* [compiler-rt] [sanitizer] Clean buildbot failures for aarch64Adhemerval Zanella2015-09-182-3/+3
| | | | | | | | Currently aarch64 lacks instrumentation support for variadic arguments for MSan. This patch sets the UBSan tests that uses it as to require stable-runtime and sets aarch64/ubsan as an unstable one. llvm-svn: 247996
* Use None instead of an explicit constructor.Douglas Katzman2015-09-182-3/+2
| | | | | | | And remove a needless 'const' since ArrayRef is immutable. Both as suggested by dblaikie on cfe-commits. llvm-svn: 247995
* Remove temporary file on signal.Rafael Espindola2015-09-181-1/+6
| | | | | | Without this lld leaves temporary files behind when it crashes. llvm-svn: 247994
* Simplify SmallBitVector::applyMask by consolidating common code for 32- and ↵Yaron Keren2015-09-182-14/+13
| | | | | | | | | | | | | 64-bit builds and assert when mask is too large to apply in the small case, previously the extra words were silently ignored. clang-format the entire function to match current code standards. This is a rewrite of r247972 which was reverted in r247983 due to warning and possible UB on 32-bits hosts. llvm-svn: 247993
* Start adding support for creating the GOT.Rafael Espindola2015-09-184-18/+133
| | | | | | | | With this a program can call into a shared library with jmp *foo@GOTPCREL(%rip) llvm-svn: 247992
* Fix link failures when BUILD_SHARED_LIBS=ON.Pavel Labath2015-09-181-0/+1
| | | | | | | | | | | | patch by Daniel Sanders. Reviewers: labath, krytarowski Subscribers: krytarowski, labath, lldb-commits Differential Revision: http://reviews.llvm.org/D12900 llvm-svn: 247991
* [mips][microMIPS] Fix an invalid read for lwm32 and reserved reglist values.Daniel Sanders2015-09-182-0/+10
| | | | | | | | | | | | | | | Summary: Some values of 'reglist' are reserved and cause the disassembler to read past the end of the Regs array. Treat lwm32's containing reserved values as invalid instructions. Reviewers: zoran.jovanovic Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12959 llvm-svn: 247990
* [AArch64] Reorder cases to improve readability. NFC.Chad Rosier2015-09-181-9/+9
| | | | llvm-svn: 247989
* [AArch64] Remove some redundant cases. NFC.Chad Rosier2015-09-181-16/+8
| | | | llvm-svn: 247988
* Update clang-tidy documentation.Angel Garcia Gomez2015-09-185-17/+646
| | | | | | | | | | Summary: Update documentation of the modernize module with clang-modernize's documentation. Subscribers: cfe-commits, klimek, alexfh Differential Revision: http://reviews.llvm.org/D12961 llvm-svn: 247987
* Silencing a -Wsign-compare warning; NFC.Aaron Ballman2015-09-181-1/+1
| | | | llvm-svn: 247986
* [LazyValueInfo] Report nonnull range for nonnull pointersIgor Laevsky2015-09-182-2/+25
| | | | | | | | | | | | Currently LazyValueInfo will report only alloca's as having nonnull range. For loads with !nonnull metadata it will bailout with no additional information. Same is true for calls returning nonnull pointers. This change extends LazyValueInfo to handle additional nonnull instructions. Differential Revision: http://reviews.llvm.org/D12932 llvm-svn: 247985
OpenPOWER on IntegriCloud