summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Delete dead code.Rafael Espindola2015-08-141-1/+0
| | | | llvm-svn: 245056
* Delete unused forward declarations.Rafael Espindola2015-08-142-2/+0
| | | | llvm-svn: 245055
* [ASTContext] Call APValue destructors for MaterializedTemporaryValuesDavid Majnemer2015-08-141-0/+4
| | | | | | Hopefully this makes the sanitizer build bot happy. llvm-svn: 245054
* Remove unused default values.Rafael Espindola2015-08-141-3/+2
| | | | llvm-svn: 245053
* [clang-tidy] Move IncludeSorter.* and IncludeInserter.* to clang-tidy/utils/Alexander Kornienko2015-08-148-5/+5
| | | | | | | This is better structurally and it also fixes a linker error in the configure build. llvm-svn: 245052
* [Sema] main can't be declared as global variable, in C++.Davide Italiano2015-08-144-0/+142
| | | | | | | | | | | So, we now reject that. We also warn for any external-linkage global variable named main in C, because it results in undefined behavior. PR: 24309 Differential Revision: http://reviews.llvm.org/D11658 Reviewed by: rsmith llvm-svn: 245051
* Make these headers as being c++.Rafael Espindola2015-08-1417-17/+17
| | | | llvm-svn: 245050
* ELF: Set the correct symbol binding.Rafael Espindola2015-08-142-4/+21
| | | | llvm-svn: 245049
* misc-unused-parameters: Fix crasher with C forward declarations thatDaniel Jasper2015-08-142-1/+7
| | | | | | can leave out the parameter list. llvm-svn: 245048
* Centralize the information about which object format we are using.Rafael Espindola2015-08-148-79/+46
| | | | | | | | | | | Other than some places that were handling unknown as ELF, this should have no change. The test updates are because we were detecting arm-coff or x86_64-win64-coff as ELF targets before. It is not clear if the enum should live on the Triple. At least now it lives in a single location and should be easier to move somewhere else. llvm-svn: 245047
* [clang-tidy] Don't use delegating constructors.Alexander Kornienko2015-08-141-2/+3
| | | | llvm-svn: 245046
* [clang-tidy] Create clang-tidy module modernize. Add pass-by-value check.Alexander Kornienko2015-08-1411-4/+541
| | | | | | | | | | This is the first step for migrating cppmodernize to clang-tidy. http://reviews.llvm.org/D11946 Patch by Angel Garcia! llvm-svn: 245045
* Start populating the symbol table.Rafael Espindola2015-08-149-39/+96
| | | | | | | | | | | With this patch only the name is set. I will set the other fields shortly. For now the table doesn't include local symbols. This is equivalent to using --discard-all with gnu ld. This is OK for now since the symbols are not needed for execution and for testing symbol resolution we only need the global symbols. llvm-svn: 245044
* clang-format: Don't remove space between #elif and parentheses.Daniel Jasper2015-08-143-1/+7
| | | | | | | | | | Before: #elif(AAAA && BBBB) After: #elif (AAAA && BBBB) llvm-svn: 245043
OpenPOWER on IntegriCloud