summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [X86] Allow legacy vcvtps2ph intrinsics to select EVEX encoded instructions. ↵Craig Topper2017-11-083-30/+32
| | | | | | | | Rely on EVEX->VEX to convert back. Missed store folding opportunities will be fixed in a subsequent commit. llvm-svn: 317661
* Update for llvm change.Rafael Espindola2017-11-083-5/+6
| | | | llvm-svn: 317657
* Convert FileOutputBuffer::commit to Error.Rafael Espindola2017-11-084-11/+11
| | | | llvm-svn: 317656
* Revert "[scudo] Make getNumberOfCPUs Fuchsia compliant"Reid Kleckner2017-11-086-40/+8
| | | | | | | | This reverts commit r317604. Android doesn't have cpu_set_t. llvm-svn: 317655
* Revert "Reapply: Allow yaml2obj to order implicit sections for ELF"Dave Lee2017-11-084-86/+38
| | | | | | This reverts commit r317646. llvm-svn: 317654
* Update unittest too.Rafael Espindola2017-11-081-8/+8
| | | | llvm-svn: 317651
* Update for llvm change.Rafael Espindola2017-11-083-7/+8
| | | | llvm-svn: 317650
* Convert FileOutputBuffer to Expected. NFC.Rafael Espindola2017-11-086-19/+18
| | | | llvm-svn: 317649
* [Serialization] Fix some Clang-tidy modernize and Include What You Use ↵Eugene Zelenko2017-11-082-238/+317
| | | | | | warnings; other minor fixes (NFC). llvm-svn: 317648
* Target/TargetInstrInfo.h -> CodeGen/TargetInstrInfo.h to match layeringDavid Blaikie2017-11-08177-216/+216
| | | | | | | | This header includes CodeGen headers, and is not, itself, included by any Target headers, so move it into CodeGen to match the layering of its implementation. llvm-svn: 317647
* Reapply: Allow yaml2obj to order implicit sections for ELFDave Lee2017-11-084-38/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This change allows yaml input to control the order of implicitly added sections (`.symtab`, `.strtab`, `.shstrtab`). The order is controlled by adding a placeholder section of the given name to the Sections field. This change is to support changes in D39582, where it is desirable to control the location of the `.dynsym` section. This reapplied version fixes: 1. use of a function call within an assert 2. failing lld test which has an unnamed section Additionally, one more test to cover the unnamed section failure. Reviewers: compnerd, jakehehrlich Reviewed By: jakehehrlich Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39749 llvm-svn: 317646
* AMDGPU: Set correct sched model on v_mad_u64_u32Matt Arsenault2017-11-082-4/+6
| | | | llvm-svn: 317645
* [AST] Fix some Clang-tidy modernize and Include What You Use warnings; other ↵Eugene Zelenko2017-11-085-191/+298
| | | | | | minor fixes (NFC). llvm-svn: 317644
* Fix compile issue on MSVC.Douglas Yung2017-11-081-3/+5
| | | | llvm-svn: 317642
* Revert rL317618Mitch Phillips2017-11-083-439/+272
| | | | | | | | | | The implemented pass fails and is breaking a large number of unit tests. Example: http://lab.llvm.org:8011/builders/clang-with-lto-ubuntu/builds/5777/steps/build-stage3-compiler/logs/stdio This reverts commit rL317618 llvm-svn: 317641
* [sanitizer] Asm implementation of syscall() for arm32.Evgeniy Stepanov2017-11-082-0/+143
| | | | | | | | | | | | | | | Summary: These will be used in an ifunc resolver, when the binary may not be completely relocated, and syscall() function from libc could not be used. Reviewers: dvyukov, vitalybuka Subscribers: aemerson, kubamracek, javed.absar, llvm-commits, kristof.beyls Differential Revision: https://reviews.llvm.org/D39701 llvm-svn: 317640
* Attribute nonlazybind should not affect calls to functions with hidden ↵Sriraman Tallam2017-11-083-9/+18
| | | | | | | | visibility. Differential Revision: https://reviews.llvm.org/D39625 llvm-svn: 317639
* (NFC) Rename GetMax{,User}VirtualAddress.Evgeniy Stepanov2017-11-0711-11/+11
| | | | | | | Future change will introduce GetMaxVirtualAddress that will not take the kernel area into account. llvm-svn: 317638
* Fix unused variable error.Rafael Espindola2017-11-071-1/+1
| | | | llvm-svn: 317637
* Cleanup version symbol macros and attributes/declspecsJonathan Peyton2017-11-0711-523/+375
| | | | | | | | | | | | 1) Get rid of xaliasify, xexpand and xversionify for KMP_EXPAND_NAME and KMP_VERSION_SYMBOL. KMP_VERSION_SYMBOL is a combination of xaliasify and xversionify. 2) Put all attribute and __declspec definitions in kmp_os.h Differential Revision: https://reviews.llvm.org/D39516 llvm-svn: 317636
* [coff] use relative instead of absolute __safe_se_handler_base when presentBob Haarman2017-11-072-28/+37
| | | | | | | | | | | | | | | | | | | | Summary: __safe_se_handler_base should be either absolute 0 (when no SafeSEH table is present), or relative to the image base (when the table is present). An earlier change inadvertedly made the symbol absolute in both cases, leading to the SafeSEH table not being locatble at run time. This change fixes that and updates the safeseh test to check for the presence of the relocation. Reviewers: rnk, ruiu Reviewed By: ruiu Subscribers: ruiu, llvm-commits Differential Revision: https://reviews.llvm.org/D39765 llvm-svn: 317635
* Reapply r317609 with a simpler sed script, thanks to Justin Bogner!Paul Robinson2017-11-071-0/+149
| | | | llvm-svn: 317634
* Delete dead code.Rafael Espindola2017-11-074-25/+0
| | | | llvm-svn: 317633
* Use std::thread directly.Rafael Espindola2017-11-071-1/+2
| | | | | | Now that this code is posix only we don't need to use runBackground. llvm-svn: 317632
* Simplify unlinkAsync.Rafael Espindola2017-11-071-13/+20
| | | | | | | | | | | It used to rename the file before removing it in a background thread. A simpler way to delay the removal is simply to open the file. Since this is a posix specific issue, simplify the windows implementation. llvm-svn: 317631
* Revert "Allow yaml2obj to order implicit sections for ELF"Dave Lee2017-11-073-71/+38
| | | | | | | | Also, revert "Fix build bots after r317622" This reverts commit r317622, r317626. llvm-svn: 317630
* Revert r317609, test fails on one botPaul Robinson2017-11-071-149/+0
| | | | llvm-svn: 317628
* Change noplt.c to work for non-x86 targets.Sriraman Tallam2017-11-071-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D39759 llvm-svn: 317627
* Fix build bots after r317622Dave Lee2017-11-071-1/+1
| | | | | | | | | Example build failure: http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/14660 TIL that the warning flags for local builds are loose compared to what build servers use. llvm-svn: 317626
* Delete unused constructor.Rafael Espindola2017-11-071-1/+0
| | | | llvm-svn: 317625
* Update tuple/list/deque data formatters to work with newest libc++Pavel Labath2017-11-073-10/+29
| | | | | | | | | | | | | | Summary: A couple of members of these data structures have been renamed in recent months. This makes sure they still work with the latest libc++ version. Reviewers: jingham, EricWF Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D39602 llvm-svn: 317624
* [NVPTX] Implement __nvvm_atom_add_gen_d builtin.Justin Lebar2017-11-077-2/+73
| | | | | | | | | | | | | | | Summary: This just seems to have been an oversight. We already supported the f64 atomic add with an explicit scope (e.g. "cta"), but not the scopeless version. Reviewers: tra Subscribers: jholewinski, sanjoy, cfe-commits, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D39638 llvm-svn: 317623
* Allow yaml2obj to order implicit sections for ELFDave Lee2017-11-073-38/+71
| | | | | | | | | | | | | | | | | | | | Summary: This change allows yaml input to control the order of implicitly added sections (`.symtab`, `.strtab`, `.shstrtab`). The order is controlled by adding a placeholder section of the given name to the Sections field. This change is to support changes in D39582, where it is desirable to control the location of the `.dynsym` section. Reviewers: compnerd, jakehehrlich Reviewed By: jakehehrlich Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39749 llvm-svn: 317622
* [ObjC++] Don't warn about pessimizing move for __block variablesAlex Lorenz2017-11-072-0/+47
| | | | | | rdar://33316951 llvm-svn: 317620
* [SLPVectorizer] Failure to beneficially vectorize 'copyable' elements in ↵Dinar Temirbulatov2017-11-073-272/+439
| | | | | | | | | | | | | | | | | | | | | | | | | | integer binary ops. Patch tries to improve vectorization of the following code: void add1(int * __restrict dst, const int * __restrict src) { *dst++ = *src++; *dst++ = *src++ + 1; *dst++ = *src++ + 2; *dst++ = *src++ + 3; } Allows to vectorize even if the very first operation is not a binary add, but just a load. Fixed PR34619 and other issues related to previous commit. Reviewers: spatel, mzolotukhin, mkuper, hfinkel, RKSimon, filcab, ABataev Reviewed By: ABataev, RKSimon Subscribers: llvm-commits, RKSimon Differential Revision: https://reviews.llvm.org/D28907 llvm-svn: 317618
* Extend SpecialCaseList to allow users to blame matches on entries in the file.Mitch Phillips2017-11-073-61/+83
| | | | | | | | | | | | | | | | | | | | | Summary: Extends SCL functionality to allow users to find the line number in the file the SCL is built from through SpecialCaseList::inSectionBlame(...). Also removes the need to compile the SCL before use. As the matcher now contains a list of regexes to test against instead of a single regex, the regexes can be individually built on each insertion rather than one large compilation at the end of construction. This change also fixes a bug where blank lines would cause the parser to become out-of-sync with the line number. An error on line `k` was being reported as being on line `k - num_blank_lines_before_k`. Note: This change has a cyclical dependency on D39486. Both these changes must be submitted at the same time to avoid a build breakage. Reviewers: vlad.tsyrklevich Reviewed By: vlad.tsyrklevich Subscribers: kcc, pcc, llvm-commits Differential Revision: https://reviews.llvm.org/D39485 llvm-svn: 317617
* Update SanitizerSpecialCaseList to use renamed functions in base class.Mitch Phillips2017-11-071-1/+1
| | | | | | | | | | | | Note: This change has a cyclical dependency on D39485. Both these changes must be submitted at the same time to avoid a build breakage. Reviewers: vlad.tsyrklevich Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39486 llvm-svn: 317616
* [CodeGenPrepare] Fix typo in comment. NFCCraig Topper2017-11-071-1/+1
| | | | llvm-svn: 317614
* Use new vector insert half-word and byte instructions when we see ↵Graham Yiu2017-11-073-3/+277
| | | | | | | | insertelement on '8 x i16' and '16 x i8' types. Also extended existing lit testcase to cover these cases. Differential Revision: https://reviews.llvm.org/D34630 llvm-svn: 317613
* Convert a dwarfdump test from checked-in binary to assembler source.Paul Robinson2017-11-073-63/+43
| | | | llvm-svn: 317612
* Teach test suite about C++2a dialect flag.Eric Fiselier2017-11-072-3/+4
| | | | | | | | This patch teaches the test suite configuration about the -std=c++2a flag. And, since it's the newest dialect, change the test suite to choose it, if possible, by default. llvm-svn: 317611
* Change test suite to support c++17 dialect flag instead of c++1z.Eric Fiselier2017-11-075-7/+9
| | | | | | | | This patch changes the test suite to attempt and prefer -std=c++17 over -std=c++1z. It also fixes the REQUIRES and UNSUPPORTED lit markers to refer to c++17 over c++1z. llvm-svn: 317610
* [DWARFv5] Add new test for previous commit.Paul Robinson2017-11-071-0/+149
| | | | llvm-svn: 317609
* [sanitizer] Fix sanitizer_common compile errors on gcc trunkVitaly Buka2017-11-072-2/+3
| | | | | | | | | | | | | | | | | | | | | | Summary: When testing a merge of compiler-rt r304709 into gcc trunk on x86-64-pc-linux-gnu, I ran into two compile errors: sanitizer_common/sanitizer_symbolizer_libbacktrace.cc:96:73: error: no matching function for call to '__sanitizer::AddressInfo::FillModuleInfo(char*&, __sanitizer::uptr&)' All other files in sanitizer_common (with the exception of sanitizer_malloc_mac.inc which is special) include sanitizer_platform.h without directory name. Patch by Mike Jongen Reviewers: kcc, vitalybuka Reviewed By: kcc Subscribers: kubamracek, fedor.sergeev, llvm-commits Differential Revision: https://reviews.llvm.org/D33933 llvm-svn: 317608
* [DWARFv5] Support DW_FORM_strp in the .debug_line header.Paul Robinson2017-11-0713-49/+57
| | | | | | | | Supporting this form in .debug_line.dwo will be done as a follow-up. Differential Revision: https://reviews.llvm.org/D33155 llvm-svn: 317607
* New clang option -fno-plt which avoids the PLT and lazy binding while making ↵Sriraman Tallam2017-11-076-0/+30
| | | | | | | | external calls. Differential Revision: https://reviews.llvm.org/D39079 llvm-svn: 317605
* [scudo] Make getNumberOfCPUs Fuchsia compliantKostya Kortchinsky2017-11-076-8/+40
| | | | | | | | | | | | | | Summary: This change allows Fuchsia to boot properly using the Scudo allocator. Reviewers: cryptoad, alekseyshl, krytarowski Reviewed By: cryptoad, krytarowski Subscribers: krytarowski, kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D39490 llvm-svn: 317604
* [WebAssembly] Include GENERIC_TF_SOURCES in wasm buildsSam Clegg2017-11-071-2/+6
| | | | | | Differential Revision: https://reviews.llvm.org/D39748 llvm-svn: 317601
* Recommit r317510 "[InstCombine] Pull shifts through a select plus binop with ↵Craig Topper2017-11-072-27/+342
| | | | | | | | | | | | | | | | constant" The hexagon test should be fixed now. Original commit message: This pulls shifts through a select+binop with a constant where the select conditionally executes the binop. We already do this for just the binop, but not with the select. This can allow us to get the select closer to other selects to enable removing one. Differential Revision: https://reviews.llvm.org/D39222 llvm-svn: 317600
* [refactor] rename field references in __builtin_offsetofAlex Lorenz2017-11-072-0/+44
| | | | | | rdar://33875453 llvm-svn: 317599
OpenPOWER on IntegriCloud