summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* XFAIL some data formatter tests on Windows.Zachary Turner2015-08-145-0/+5
| | | | | | Fixing these bugs is tracked by http://llvm.org/pr24462. llvm-svn: 245126
* Disable libstdc++ and libcxx data formatter tests on Windows.Zachary Turner2015-08-148-4/+9
| | | | | | | | | | Neither of these libraries has been ported to Windows. Eventually if they are ever ported we can re-enable these tests. But more immediately what we need to do is add new data formatters for MSVC's STL implementation. This is tracked in http://llvm.org/pr24460. llvm-svn: 245125
* clarified test commentNaomi Musgrave2015-08-141-1/+2
| | | | llvm-svn: 245124
* [CONCEPTS] Add diagnostic; invalid tag when concept specifiedNathan Wilson2015-08-143-2/+20
| | | | | | | | | | | | Summary: Adding check to emit diagnostic for invalid tag when concept is specified and associated tests. Reviewers: rsmith, hubert.reinterpretcast, fraggamuffin, faisalv, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: http://reviews.llvm.org/D11916 llvm-svn: 245123
* Unbreak the windows and linux buildbots.Greg Clayton2015-08-141-3/+3
| | | | llvm-svn: 245122
* Don't crash if we don't have a type system for a language.Greg Clayton2015-08-141-1/+1
| | | | llvm-svn: 245121
* make current codegen visible in the checks, so we can decide if it's rightSanjay Patel2015-08-141-0/+18
| | | | llvm-svn: 245120
* Fix a crash where a utility function wasn't aware of fcmp vectors and ↵Nick Lewycky2015-08-142-1/+13
| | | | | | created a value with the wrong type. Fixes PR24458! llvm-svn: 245119
* [SCEV] Apply NSW and NUW flags via poison value analysis for sub, mul and shlBjarke Hammersholt Roune2015-08-146-37/+421
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: http://reviews.llvm.org/D11212 made Scalar Evolution able to propagate NSW and NUW flags from instructions to SCEVs for add instructions. This patch expands that to sub, mul and shl instructions. This change makes LSR able to generate pointer induction variables for loops like these, where the index is 32 bit and the pointer is 64 bit: for (int i = 0; i < numIterations; ++i) sum += ptr[i - offset]; for (int i = 0; i < numIterations; ++i) sum += ptr[i * stride]; for (int i = 0; i < numIterations; ++i) sum += ptr[3 * (i << 7)]; Reviewers: atrick, sanjoy Subscribers: sanjoy, majnemer, hfinkel, llvm-commits, meheff, jingyue, eliben Differential Revision: http://reviews.llvm.org/D11860 llvm-svn: 245118
* Add a target environment for CoreCLR.Pat Gavlin2015-08-1412-14/+28
| | | | | | | | | | Although targeting CoreCLR is similar to targeting MSVC, there are certain important differences that the backend must be aware of (e.g. differences in stack probes, EH, and library calls). Differential Revision: http://reviews.llvm.org/D11012 llvm-svn: 245115
* make current codegen visible in the checks, so we can decide if it's rightSanjay Patel2015-08-141-7/+29
| | | | llvm-svn: 245108
* [AArch64] Fix FMLS scalar-indexed-from-2s-after-neg patterns.Ahmed Bougacha2015-08-142-1/+58
| | | | | | | | | We canonicalize V64 vectors to V128 through insert_subvector: the other FMLA/FMLS/FMUL/FMULX patterns match that already, but this one doesn't, so we'd fail to match fmls and generate fneg+fmla instead. The vector equivalents are already tested and functional. llvm-svn: 245107
* [msan] Fix handling of musttail calls.Evgeniy Stepanov2015-08-142-0/+57
| | | | | | | MSan instrumentation for return values of musttail calls is not allowed by the IR constraints, and not needed at the same time. llvm-svn: 245106
* [bpf] add documentation and instruction set descriptionAlexei Starovoitov2015-08-141-0/+197
| | | | llvm-svn: 245105
* MIR Serialization: Serialize the '.cfi_same_value' CFI directive.Alex Lorenz2015-08-145-0/+95
| | | | llvm-svn: 245103
* Fix Linux build after r245090.Oleksiy Vyalov2015-08-141-9/+9
| | | | llvm-svn: 245100
* MIR Serialization: Serialize the external symbol call entry pseudo sourceAlex Lorenz2015-08-144-5/+69
| | | | | | values. llvm-svn: 245098
* MIR Serialization: Serialize the global value call entry pseudo source values.Alex Lorenz2015-08-145-1/+67
| | | | llvm-svn: 245097
* [analyzer] Add checkers for OS X / iOS localizability issuesAnna Zaks2015-08-145-0/+933
| | | | | | | | | | | | | | | Add checkers that detect code-level localizability issues for OS X / iOS: - A path sensitive checker that warns about uses of non-localized NSStrings passed to UI methods expecting localized strings. - A syntax checker that warns against not including a comment in NSLocalizedString macros. A patch by Kulpreet Chilana! (This is the second attempt with the compilation issue on Windows and the random test failures resolved.) llvm-svn: 245093
* [RegionInfo] Remove unused and broken function splitBlockMichael Kruse2015-08-142-20/+0
| | | | | | | | | | | | | | | Summary: It always makes NewBB the entry of the region instead of OldBB. This breaks if there are edges from inside the region to OldBB. OldBB is moved out of the region and hence there are exiting edges to OldBB and the region's exit block, contradicting the single-exit condition for regions. The only use from Polly is going to be removed, hence I propose to remove the function completely. Reviewers: grosser Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11873 llvm-svn: 245092
* Make TempScopInfo a RegionPassMichael Kruse2015-08-144-30/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modifies the order in which Polly passes are executed. Assuming a function has two scops (A and B), the order before was: FunctionPassManager ScopDetection IndependentBlocks TempScopInfo for A and B RegionPassManager ScopInfo for A DependenceInfo for A IslScheduleOptimizer for A IslAstInfo for A CodeGeneration for A ScopInfo for B DependenceInfo for B IslScheduleOptimizer for B IslAstInfo for B CodeGeneration for B After this patch: FunctionPassManager ScopDetection IndependentBlocks RegionPassManager TempScopInfo for A ScopInfo for A DependenceInfo for A IslScheduleOptimizer for A IslAstInfo for A CodeGeneration for A TempScopInfo for B ScopInfo for B DependenceInfo for B IslScheduleOptimizer for B IslAstInfo for B CodeGeneration for B TempScopInfo for B might store information and references to the IR that CodeGeneration for A might modify. Changing the order ensures that the IR is not modified from the analysis of a region until code generation. Reviewers: grosser Differential Revision: http://reviews.llvm.org/D12014 llvm-svn: 245091
* Move all clang type system DWARF type parsing into ClangASTContext.cpp.Greg Clayton2015-08-1412-3927/+4330
| | | | | | Another step towards isolating all language/AST specific code into the files to further abstract specific implementations of parsing types for a given language. llvm-svn: 245090
* Fixup stale comment about supported OSsReid Kleckner2015-08-141-2/+1
| | | | llvm-svn: 245089
* AMDGPU/SI: Add missing spill classTom Stellard2015-08-141-1/+2
| | | | | | | | The compiler was failing to spill for some shaders. Patch By: Axel Davy llvm-svn: 245087
* Revert "[ARM] Fix MachO CPU Subtype selection"Renato Golin2015-08-144-106/+12
| | | | | | This reverts commit r245081, as it breaks many builds. llvm-svn: 245086
* MIR Serialization: Serialize the 'internal' register operand flag.Alex Lorenz2015-08-145-9/+18
| | | | llvm-svn: 245085
* WindowsX86: long double is x87DoubleExtended on mingwMartell Malone2015-08-141-2/+8
| | | | | | | | | | | | | | | | Summary: long double on x86 mingw is 80bits and is aligned to 16bytes Fixes: https://llvm.org/bugs/show_bug.cgi?id=24398 Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12037 llvm-svn: 245084
* Don't run explicit-modules-missing-files.cpp on WindowsReid Kleckner2015-08-141-0/+3
| | | | | | | | | | | It is flaky due to inability to remove files with open handles. We could paper over it with rm -f, but then the file would still be present. This is more evidence to me that we should roll our own 'rm' implementation in LLVM. llvm-svn: 245083
* MIR Serialization: Serialize the bundled machine instructions.Alex Lorenz2015-08-149-10/+240
| | | | llvm-svn: 245082
* [ARM] Fix MachO CPU Subtype selectionVedant Kumar2015-08-144-12/+106
| | | | | | | | | | This patch makes the Darwin ARM backend take advantage of TargetParser. It also teaches TargetParser about ARMV7K for the first time. This makes target triple parsing more consistent across llvm. Differential Revision: http://reviews.llvm.org/D11996 llvm-svn: 245081
* Move ASAN_OPTIONS setting from compile command to run command, fixes test on ↵Reid Kleckner2015-08-141-2/+2
| | | | | | posix llvm-svn: 245079
* Don't test the output of "target modules dump symfile a.out" as this isn't ↵Greg Clayton2015-08-141-4/+0
| | | | | | something we should be testing for. This makes this test pass again. llvm-svn: 245078
* Windows ARM: ignore calling conventions as described on MSDNMartell Malone2015-08-143-3/+24
| | | | | | | | | | | | | | | | | | Summary: MSDN says that fastcall, stdcall, thiscall, and vectorcall are all accepted but ignored on ARM and X64. https://msdn.microsoft.com/en-us/library/984x0h58.aspx MSDN also says cdecl is also accepted and typically ignored This patch brings ARM in line with how we ignore them for X64 Reviewers: rnk Subscribers: compnerd, cfe-commits Differential Revision: http://reviews.llvm.org/D12034 llvm-svn: 245076
* [x86] fix allowsMisalignedMemoryAccess() implementationSanjay Patel2015-08-142-13/+30
| | | | | | | | | | | | | | | | This patch fixes the x86 implementation of allowsMisalignedMemoryAccess() to correctly return the 'Fast' output parameter for 32-byte accesses. To test that, an existing load merging optimization is changed to use the TLI hook. This exposes a shortcoming in the current logic and results in the regression test update. Changing other direct users of the isUnalignedMem32Slow() x86 CPU attribute would be a follow-on patch. Without the fix in allowsMisalignedMemoryAccesses(), we will infinite loop when targeting SandyBridge because LowerINSERT_SUBVECTOR() creates 32-byte loads from two 16-byte loads while PerformLOADCombine() splits them back into 16-byte loads. Differential Revision: http://reviews.llvm.org/D10662 llvm-svn: 245075
* [test] Testing write access to llvmVedant Kumar2015-08-141-1/+1
| | | | llvm-svn: 245074
* [windows] Fix or XFAIL remaining portable test failures and enable themReid Kleckner2015-08-1429-30/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This involved various fixes: - Move a test that uses ulimit to Posix. - Add a few "REQUIRES: shell" lines to tests using backtick subshell evaluation. - The MSVC CRT buffers stdio if the output is a pipe by default. Some tests need that disabled to avoid interleaving test stdio with asan output. - MSVC headers provide _alloca instead of alloca (go figure), so add a portability macro to the two alloca tests. - XFAIL tests that rely on accurate symbols, we need to pass more flags to make that work. - MSVC's printf implementation of %p uses upper case letters and doesn't add 0x, so do that manually. - Accept "SEGV" or "access-violation" reports in crash tests. Reviewers: samsonov Subscribers: tberghammer, danalbert, llvm-commits, srhines Differential Revision: http://reviews.llvm.org/D12019 llvm-svn: 245073
* [sancov] Fix an unused variable warning introduced in r245067Justin Bogner2015-08-141-1/+1
| | | | llvm-svn: 245072
* Reverting patch r244235.Kit Barton2015-08-143-58/+28
| | | | | | | | This patch will be redone in a different way. See http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20150810/292978.html for more details. llvm-svn: 245071
* [cmake] Start adding support for LLVM_USE_SANITIZER=Address on WindowsReid Kleckner2015-08-141-10/+31
| | | | | | Pass "-fsanitize=address" to the compiler and "-debug" to the linker. llvm-svn: 245070
* ELF: Also record the type of undefined symbols.Rafael Espindola2015-08-146-19/+81
| | | | | | | Tested with a weak undefined. Testing with a plain undefined will have to wait for support for -shared. llvm-svn: 245069
* [sancov] Leave llvm.localescape in the entry blockReid Kleckner2015-08-144-9/+137
| | | | | | | | | | | | Summary: Similar to the change we applied to ASan. The same test case works. Reviewers: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11961 llvm-svn: 245067
* Update dosep to print unexpected successes at the end.Zachary Turner2015-08-141-15/+33
| | | | llvm-svn: 245066
* Cleanup test whitespace or lack thereof. NFC.Chad Rosier2015-08-141-4/+4
| | | | llvm-svn: 245065
* [CMake] Fix PR14200, llvm-config output misses -fno-rttiChris Bieneman2015-08-141-6/+9
| | | | | | | | This change adds RTTI and Exception flags to llvm-config's cxxflags. This solution is a minimal patch to solve the issue, and is recommended for the 3.7 release branch. Tom Stellard's outstanding work is the longer term solution. Patch By: David Wiberg llvm-svn: 245064
* Represent 2 parallel string arrays as one string[][2] array.Douglas Katzman2015-08-141-19/+19
| | | | | | Differential Revision: http://reviews.llvm.org/D11991 llvm-svn: 245063
* Revert "Centralize the information about which object format we are using."Rafael Espindola2015-08-148-46/+79
| | | | | | | | | | | | | | | | | | | | | This reverts commit r245047. It was failing on the darwin bots. The problem was that when running ./bin/llc -march=msp430 llc gets to if (TheTriple.getTriple().empty()) TheTriple.setTriple(sys::getDefaultTargetTriple()); Which means that we go with an arch of msp430 but a triple of x86_64-apple-darwin14.4.0 which fails badly. That code has to be updated to select a triple based on the value of march, but that is not a trivial fix. llvm-svn: 245062
* Fix the build with gcc.Rafael Espindola2015-08-141-4/+4
| | | | llvm-svn: 245060
* Convert tests under MC/ELF from macho-dump to llvm-readobj.Davide Italiano2015-08-142-12/+20
| | | | | | Yet another step towards deprecating macho-dump. llvm-svn: 245059
* don't repeaat function names in comments; NFCSanjay Patel2015-08-141-11/+8
| | | | llvm-svn: 245058
* Add the type of the symbols to the symbol table.Rafael Espindola2015-08-144-15/+34
| | | | | | | For now only defined symbols are covered. I will add undefined ones in the next patch. llvm-svn: 245057
OpenPOWER on IntegriCloud