summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [AVX-512] Don't lower avx512 vcvtps2ph/vcvtph2ps nodes to ↵Craig Topper2016-09-214-10/+15
| | | | | | ISD::FP16_TO_FP/ISD::FP_TO_FP16 with an extra x86 specific rounding mode operand. We should use a target specific ISD opcode. llvm-svn: 282046
* [NVPTX] Check if callsite is defined when computing argument allignmentJacques Pienaar2016-09-213-13/+30
| | | | | | | | | | | | Summary: In getArgumentAlignment check if the ImmutableCallSite pointer CS is non-null before dereferencing. If CS is 0x0 fall back to the ABI type alignment else compute the alignment as before. Reviewers: eliben, jpienaar Subscribers: jlebar, vchuravy, cfe-commits, jholewinski Differential Revision: https://reviews.llvm.org/D9168 llvm-svn: 282045
* [libFuzzer] refactoring: split the large header into many; NFCKostya Serebryany2016-09-2116-397/+539
| | | | llvm-svn: 282044
* Adds tests for breakpoint names, and a FindBreakpointsByName.Jim Ingham2016-09-216-4/+66
| | | | | | | | Also if you set a breakpoint with an invalid name, we'll refuse to set the breakpoint rather than silently ignoring the name. llvm-svn: 282043
* [libFuzzer] refactoring: move the Corpus into a separate class; delete two ↵Kostya Serebryany2016-09-218-163/+83
| | | | | | unused experimental features llvm-svn: 282042
* Fix Clang initialization and Clang-tidy modernize-use-nullptr warnings in ↵Eugene Zelenko2016-09-213-94/+97
| | | | | | | | source/Plugins/Process/Utility. Differential revision: https://reviews.llvm.org/D24694 llvm-svn: 282041
* Revert "TableGen: Switch from a std::map to a DenseMap in ↵Justin Bogner2016-09-211-1/+2
| | | | | | | | | | | | | CodeGenSubRegIndex. NFC" It turns out we iterate over this map a fair amount and the order matters for clang to be deterministic. See: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160919/391315.html This reverts r279875. llvm-svn: 282040
* [InferAttributes] Don't access parameters that don't exist.Michael Kuperstein2016-09-202-2/+15
| | | | | | | Check for the correct number of parameters before querying their type. This fixes PR30455. llvm-svn: 282038
* [ThinLTO] Always emit a summary when compiling in ThinLTO modeTeresa Johnson2016-09-209-12/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Emit an empty summary section, instead of no summary section, when there are no global variables in the index. This ensures that LTO will treat these files as ThinLTO inputs, instead of as regular LTO inputs. In addition to not being what the user likely intended when compiling with -flto=thin, the current behavior is problematic for distributed build systems that expect to get ThinLTO index and imports files back for each input compiled with -flto=thin. Combining into a single regular LTO module also reduces the backend parallelism. And in the case where the index was suppressed due to uses in inline assembly, combining into a single LTO module could provoke renaming of duplicates that we were trying to prevent by suppressing the index. This change required a couple of fixes to handle the empty summary section. Reviewers: mehdi_amini Subscribers: mehdi_amini, llvm-commits, pcc Differential Revision: https://reviews.llvm.org/D24779 llvm-svn: 282037
* Add some more tests for breakpoint serialization.Jim Ingham2016-09-2014-64/+270
| | | | | | | | | | Serialize breakpoint names & the hardware_requested attributes. Also added a few missing affordances to SBBreakpoint whose absence writing the tests pointed out. <rdar://problem/12611863> llvm-svn: 282036
* Revert "Revert "Only restrict order if both sections are in the script.""Rafael Espindola2016-09-206-26/+37
| | | | | | | | | | | | | | | | | | | This reverts commit r282021, bringing back r282015. The problem was that the comparison function was not a strict weak ordering anymore, which this patch fixes. Original message: Only restrict order if both sections are in the script. This matches gold and bfd behavior and is required to handle some scripts. The script has to assume where PT_LOADs start in order to align that spot. If we don't allow section it doesn't know about to move to the middle, we can need more PT_LOADs and those will not be aligned. llvm-svn: 282035
* code cleanup -- commoning IR travsersalsXinliang David Li2016-09-201-3/+5
| | | | llvm-svn: 282034
* Revert "[CMake] Explicitly add --target option to compiler flags"Chris Bieneman2016-09-201-12/+0
| | | | | | | | | This reverts commit r282024. This broke some bots, and I'm going to revert while I figure it out. See: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/21120 llvm-svn: 282033
* Unbreak the NetBSD build after recent changesKamil Rytarowski2016-09-201-1/+1
| | | | | | | | Similar to r281922 "Try to fix freebsd and android builds." Replace .AppendArgument(cstr) with .AppendArgument(llvm::StringRef(cstr)) llvm-svn: 282032
* Remove the default subtarget from the x86 port as it isn't necessary (orEric Christopher2016-09-202-4/+1
| | | | | | correct) anymore. llvm-svn: 282031
* [scudo] Fix a bug in the new Secondary AllocatorKostya Kortchinsky2016-09-202-44/+50
| | | | | | | | | | | | | | | | | | | Summary: GetActuallyAllocatedSize() was not accounting for the last page of the mapping being a guard page, and was returning the wrong number of actually allocated bytes, which in turn would mess up with the realloc logic. Current tests didn't find this as the size exercised was only serviced by the Primary. Correct the issue by subtracting PageSize, and update the realloc test to exercise paths in both the Primary and the Secondary. Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D24787 llvm-svn: 282030
* Enable clang attributes when using clang-cl.Zachary Turner2016-09-201-1/+1
| | | | llvm-svn: 282029
* Revert "Remove extra argument used once onEric Christopher2016-09-203-11/+12
| | | | | | | | | | | | TargetMachine::getNameWithPrefix and inline the result into the singular caller." and "Remove more guts of TargetMachine::getNameWithPrefix and migrate one check to the TLOF mach-o version." temporarily until I can get the whole call migrated out of the TargetMachine as we could hit places where TLOF isn't valid. This reverts commits r281981 and r281983. llvm-svn: 282028
* [CMake] Fix error preventing simulator sanitizers from buildingChris Bieneman2016-09-201-1/+1
| | | | | | | This should be checking for sim archs not target archs. This bug has been around for a long time. llvm-svn: 282025
* [CMake] Explicitly add --target option to compiler flagsChris Bieneman2016-09-201-0/+12
| | | | | | | | | | | | | | | Summary: Much of the non-Darwin build system assumes that COMPILER_RT_DEFAULT_TARGET_TRIPLE is the default target triple for the compiler being used. With clang as your compiler this isn't necessarily true. To ensure that the rest of the build system behaves as expected this patch adds "--target=${COMPILER_RT_DEFAULT_TARGET_TRIPLE}" to the compiler flags for C, CXX and ASM sources. Reviewers: compnerd, rengolin, fjricci Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D24156 llvm-svn: 282024
* [RS4GC] Refactor code for Rematerializing in presence of phi. NFCAnna Thomas2016-09-201-59/+68
| | | | | | | | | | | | | | | | | | | | | | | | Summary: This is an NFC refactoring change as a precursor to the actual fix for rematerializing in presence of phi. https://reviews.llvm.org/D24399 Pasted from review: findRematerializableChainToBasePointer changed to return the root of the chain. instead of true or false. move the PHI matching logic into the caller by inspecting the root return value. This includes an assertion that the alternate root is in the liveset for the call. Tested with current RS4GC tests. Reviewers: reames, sanjoy Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D24780 llvm-svn: 282023
* [CodeGen] stop short-circuiting the SSP code for sspstrong.George Burgess IV2016-09-201-5/+0
| | | | | | | | | | | | | | | | | | This check caused us to skip adding layout information for calls to alloca in sspreq/sspstrong mode. We check properly for sspstrong later on (and add the correct layout info when doing so), so removing this shouldn't hurt. No test is included, since testing this using lit seems to require checking for exact offsets in asm, which is something that the lit tests for this avoid. If someone cares deeply, I'm happy to write a unittest or something to cover this, but that feels like overkill. Patch by Daniel Micay. Differential Revision: https://reviews.llvm.org/D22714 llvm-svn: 282022
* Revert "Only restrict order if both sections are in the script."Rafael Espindola2016-09-204-23/+7
| | | | | | This reverts commit r282015. It broke some bots. llvm-svn: 282021
* [llvm-cov] Demangle names for hidden instantiation viewsVedant Kumar2016-09-202-6/+11
| | | | llvm-svn: 282020
* [asan] Add C++17 aligned new/delete entrypoints. Patch by Jakub Jelinek, see ↵Kostya Serebryany2016-09-201-10/+52
| | | | | | https://reviews.llvm.org/D24771 llvm-svn: 282019
* XFAIL cfi/stats.cpp on Windows until we fix LLDReid Kleckner2016-09-201-0/+3
| | | | llvm-svn: 282018
* [Profile] dump ic value profile value/site-count histogramXinliang David Li2016-09-202-1/+14
| | | | | | Differential Revision: http://reviews.google.com/D24783 llvm-svn: 282017
* Only restrict order if both sections are in the script.Rafael Espindola2016-09-204-7/+23
| | | | | | | | | | This matches gold and bfd behavior and is required to handle some scripts. The script has to assume where PT_LOADs start in order to align that spot. If we don't allow section it doesn't know about to move to the middle, we can need more PT_LOADs and those will not be aligned. llvm-svn: 282015
* Make test less dependent on the section order.Rafael Espindola2016-09-208-43/+41
| | | | | | | This means either relaxing CHECKs or listing more sections and addresses in linker scripts. llvm-svn: 282014
* [PECOFF] Use the COFF subsystem field when determining the Triple.Zachary Turner2016-09-202-1/+20
| | | | | | | Patch by walter erquinigo Differential revision: https://reviews.llvm.org/D24284 llvm-svn: 282013
* [asan] Fix GlobalAddressDescription::Print()Filipe Cabecinhas2016-09-202-1/+14
| | | | | | | | | | | | Summary: Check bug_type for nullptr before calling internal_strcmp Reviewers: kcc, vitalybuka, eugenis Subscribers: kubabrecka, llvm-commits Differential Revision: https://reviews.llvm.org/D24773 llvm-svn: 282012
* [analyzer] Add a checker that detects blocks in critical sectionsAnna Zaks2016-09-204-0/+164
| | | | | | | | | | | | | | | | | | | | | | | | | This checker should find the calls to blocking functions (for example: sleep, getc, fgets,read,recv etc.) inside a critical section. When sleep(x) is called while a mutex is held, other threads cannot lock the same mutex. This might take some time, leading to bad performance or even deadlock. Example: mutex_t m; void f() { sleep(1000); // Error: sleep() while m is locked! [f() is called from foobar() while m is locked] // do some work } void foobar() { lock(m); f(); unlock(m); } A patch by zdtorok (Zoltán Dániel Török)! Differential Revision: https://reviews.llvm.org/D21506 llvm-svn: 282011
* Mark ELF sections whose name start with .note as notePetr Hosek2016-09-202-0/+24
| | | | | | | | | | | Previously, such section would be marked as SHT_PROGBITS which makes it impossible to use an initialized C variable declaration to emit an (allocated) ELF note. The new behavior is also consistent with ELF assembly parser. Differential Revision: https://reviews.llvm.org/D24692 llvm-svn: 282010
* [Profile] Do not annotate select insts not covered in profile.Xinliang David Li2016-09-201-1/+2
| | | | | | Fixed PR/30466 llvm-svn: 282009
* Next set of additional error checks for invalid Mach-O files for bad load ↵Kevin Enderby2016-09-209-13/+104
| | | | | | | | | | | | | | | | commands that use the Mach::dylib_command type for the load commands that are currently used in the MachOObjectFile constructor. This contains the missing checks for LC_ID_DYLIB, LC_ID_DYLIB, etc. load commands and the fields for the Mach::dylib_command type. Also checks that only an MH_DYLIB or MH_STUB_DYLIB has an LC_ID_DYLIB load command (and others filetype don’t) and there is not more than one of these load commands. llvm-svn: 282008
* Remove some boilerplate comments that don't explain anything.Eric Christopher2016-09-201-4/+0
| | | | llvm-svn: 282007
* Simplify SORT and --sort-section command line option handling.Rui Ueyama2016-09-202-30/+28
| | | | | | Differential Revision: https://reviews.llvm.org/D24685 llvm-svn: 282006
* [x86] split up tests, regenerate checksSanjay Patel2016-09-201-82/+133
| | | | | | Note that we fail to eliminate 'or' with 0! llvm-svn: 282005
* Fix a regex error breaking tests.Zachary Turner2016-09-201-1/+1
| | | | llvm-svn: 282004
* [CMake] Support overriding CLANG_VERSION_*Chris Bieneman2016-09-201-4/+10
| | | | | | | As with how we handle LLVM_VERSION_* variables we should support overriding clang version variables. llvm-svn: 282003
* [Profile] code refactoring: make getStep a method in base classXinliang David Li2016-09-203-10/+12
| | | | llvm-svn: 282002
* Revert part of "AArch64: Do not test for CPUs, use SubtargetFeatures"Evandro Menezes2016-09-202-6/+0
| | | | | | | | This reverts part of commit 119e358d9635c8d1f3e7aee67e3ea3b8a62f8db6 by removing FeatureUseRSqrt et al per request by Eric Christopher <echristo@gmail.com> (v. http://bit.ly/2cmz6kW). llvm-svn: 282001
* Revert "[AArch64] Use the reciprocal estimation machinery"Evandro Menezes2016-09-207-340/+3
| | | | | | | This reverts commit b7d42b0048f65346e9fa37fb65defeea7ce8c337 per request by Eric Christopher <echristo@gmail.com> (v. http://bit.ly/2cmz6kW). llvm-svn: 282000
* Revert "[AArch64] Properly validate the reciprocal estimation."Evandro Menezes2016-09-203-114/+4
| | | | | | | This reverts commit ad8ca1528242e2a4cb363e3779309e70eb7a430e per request by Eric Christopher <echristo@gmail.com> (v. http://bit.ly/2cmz6kW). llvm-svn: 281999
* Add some entropy to the folder name in Driver/warning-options.cpp.Zachary Turner2016-09-201-2/+2
| | | | | | | | | | It was trying to check that things behave correctly when a non-existant folder was specified for -isysroot. Incidentally, I have a folder named FOO in the root of my drive, so this test was failing. Make this impossible by using %T to refer to a definitely non-existant folder.: llvm-svn: 281998
* CodeGen: further merge cstring literal constructionSaleem Abdulrasool2016-09-202-14/+20
| | | | | | | | Use the new CreateCStringLiteral in an additional site. Now all the C string literals are created in one function. Furthermore, mark the additional literal as an `unnamed_addr constant`. llvm-svn: 281997
* Fix typo in documentation.Nick Lewycky2016-09-201-2/+2
| | | | | | Since this is a header it will break links to this section. llvm-svn: 281996
* [cleanup] Remove excessive padding from TextTokenRetokenizer::PositionAlexander Shaposhnikov2016-09-201-1/+1
| | | | | | | | | Reorder the fields of the struct TextTokenRetokenizer::Position to remove excessive padding. Test plan: make -j8 check-clang Differential revision: https://reviews.llvm.org/D24751 llvm-svn: 281995
* ASAN: Don't drop debug info attachements for global variables.Adrian Prantl2016-09-202-0/+35
| | | | | | | | | | This is a follow-up to r281284. Global Variables now can have !dbg attachements, so ASAN should clone these when generating a sanitized copy of a global variable. <rdar://problem/24899262> llvm-svn: 281994
* Make it so that one can register prefix matches as well as identical matches ↵Enrico Granata2016-09-202-14/+78
| | | | | | as extra cases for NSDictionary data formatting llvm-svn: 281993
OpenPOWER on IntegriCloud