summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Replaced unicode characters with ASCII, as introduced in r316518.Erich Keane2017-10-241-5/+4
| | | | llvm-svn: 316521
* Remove obsolete comment.Rui Ueyama2017-10-241-1/+1
| | | | llvm-svn: 316520
* bpf: fix an uninitialized variable issueYonghong Song2017-10-241-1/+3
| | | | | Signed-off-by: Yonghong Song <yhs@fb.com> llvm-svn: 316519
* mplement __has_unique_object_representationsErich Keane2017-10-247-1/+393
| | | | | | | | | | | | A helper builtin to facilitate implementing the std::has_unique_object_representations type trait. Requested here: https://bugs.llvm.org/show_bug.cgi?id=34942 Also already exists in GCC and MSVC. Differential Revision: https://reviews.llvm.org/D39064 llvm-svn: 316518
* ARMAddressingModes.h: Don't mark header functions as file localDavid Blaikie2017-10-241-86/+63
| | | | llvm-svn: 316517
* ValueMapper.h: Don't mark header functions as file localDavid Blaikie2017-10-241-1/+1
| | | | llvm-svn: 316516
* Transforms/Utils/Local.h: Don't mark header functions as file localDavid Blaikie2017-10-241-4/+4
| | | | llvm-svn: 316515
* TargetOpcodes.h: Don't mark header functions as file localDavid Blaikie2017-10-241-2/+2
| | | | llvm-svn: 316514
* Printable.h: Don't mark header functions as file localDavid Blaikie2017-10-241-1/+1
| | | | llvm-svn: 316513
* ConvertUTF.h: Don't mark header functions as file localDavid Blaikie2017-10-241-4/+4
| | | | llvm-svn: 316512
* AtomicOrdering.h: Don't mark header functions as file localDavid Blaikie2017-10-241-11/+10
| | | | llvm-svn: 316511
* LaneBitmask.h: Don't mark header functions as file localDavid Blaikie2017-10-241-1/+1
| | | | llvm-svn: 316510
* Type.h: Don't mark header functions as file localDavid Blaikie2017-10-241-1/+1
| | | | llvm-svn: 316509
* HexagonDepTimingClasses.h: Don't mark header functions as file localDavid Blaikie2017-10-241-5/+14
| | | | llvm-svn: 316508
* WebassemblyAsmPrinter.h: Include WebAssemblyMachineFunctionInfo for use with ↵David Blaikie2017-10-241-1/+1
| | | | | | MachineFunction::getInfo llvm-svn: 316507
* X86Operand.h: Include X86MCTargetDesc.h for SSE register enum/namesDavid Blaikie2017-10-241-0/+1
| | | | llvm-svn: 316506
* X86AsmPrinter.h: Add missing header for complete type needed for ↵David Blaikie2017-10-241-0/+1
| | | | | | MCCodeEmitter dtor. llvm-svn: 316505
* RegisterUsageInfo.h: Add missing header for complete type needed for ↵David Blaikie2017-10-241-0/+1
| | | | | | DenseMap traits llvm-svn: 316504
* [Transforms] Fix some Clang-tidy modernize and Include What You Use ↵Eugene Zelenko2017-10-248-171/+311
| | | | | | warnings; other minor fixes (NFC). llvm-svn: 316503
* [COFF] Add support for /WXShoaib Meenai2017-10-245-2/+27
| | | | | | | | | link.exe supports this option to convert warnings into errors, and it's useful to support in LLD as well. Differential Revision: https://reviews.llvm.org/D39148 llvm-svn: 316502
* [COFF] Clean up boolean flag handlingShoaib Meenai2017-10-242-35/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | LLD's handling of boolean flags is suboptimal: * All boolean flags have a corresponding `:no` flag to turn the flag off, and the linker should scan for both the non-suffixed and suffixed flags (and the last one should win), but right now it only scans for either the suffixed or non-suffixed flag (depending on the default flag value). * The `B` multiclass only allows specifying help text for the suffixed (`:no`) flag, but for some flags (e.g. `/appcontainer`) the help text should be associated with the non-suffixed flag instead. Extend the `B` multiclass to have help text for both non-suffixed and suffixed flag variants, and alter the existing help text accordingly in some cases. Scan for both the non-suffixed and suffixed variants in the driver and set config values accordingly. This should mostly have no behavior change, apart from the added help text and the modified argument scanning. Some flags are handled slightly differently now, however; for example, LLD would previously always treat 64-bit images as large address aware, whereas `/largeaddressaware:no` is now respected for 64-bit images (which is also how link.exe behaves). Differential Revision: https://reviews.llvm.org/D39216 llvm-svn: 316501
* [Sema] Document+test the -Wsign-compare change for enums in C code [NFC]Roman Lebedev2017-10-242-0/+28
| | | | | | | | | | | | | | | | | | rL316268 / D39122 has fixed PR35009, and now when in C, these three(?) diagnostics properly use the enum's underlying datatype. While it was fixed, the test coverage was clearly insufficient, because the -Wsign-compare change didn't show up in any of the tests, until it was reported in the post-commit mail for rL316268. So add the test for the -Wsign-compare diagnostic for enum for C code, and while there, document this in the release notes. The fix itself was obviously correct, so unless we want to silence this new diagnosed case, i deem this commit to be NFC. llvm-svn: 316500
* Use ArgList::hasFlag().Rui Ueyama2017-10-241-22/+15
| | | | | | I just didn't know that ArgList had that function. llvm-svn: 316499
* Fix Wdocumentation warning. NFCI.Simon Pilgrim2017-10-241-1/+1
| | | | llvm-svn: 316498
* Revert "[CodeGen][ExpandMemcmp][NFC] Allow memcmp to expand to vector loads (1)"Martin Bohme2017-10-241-201/+196
| | | | | | | | This reverts commit r316417, which causes internal compiles to OOM. I don't unfortunately have a self-contained test case but will follow up with courbet. llvm-svn: 316497
* Use range-based for loop. NFCAdrian Prantl2017-10-241-5/+2
| | | | llvm-svn: 316496
* [NVPTX] allow address space inference for volatile loads/stores.Artem Belevich2017-10-246-13/+153
| | | | | | | | | | If particular target supports volatile memory access operations, we can avoid AS casting to generic AS. Currently it's only enabled in NVPTX for loads and stores that access global & shared AS. Differential Revision: https://reviews.llvm.org/D39026 llvm-svn: 316495
* Delete unused instantiations of DIBuilder. NFCAdrian Prantl2017-10-241-2/+0
| | | | llvm-svn: 316494
* Fix LLVM_LINK_LLVM_DYLIB=On build of llvm-cfi-verifySam Clegg2017-10-242-2/+1
| | | | | | | | Subscribers: mgorny, aheejin Differential Revision: https://reviews.llvm.org/D39250 llvm-svn: 316493
* [X86][Broadwell] Added the instruction scheduling information for the ↵Gadi Haber2017-10-2422-1374/+5450
| | | | | | | | | | | | | | | | | | | | Broadwell CPU. Adding the scheduling information for the Browadwell (BDW) CPU target. This patch adds the instruction scheduling information for the Broadwell (BDW) architecture target by adding the file X86SchedBroadwell.td located under the X86 Target. We used the scheduling information retrieved from the Broadwell architects in order to create the file. The scheduling information includes latency, number of micro-Ops and used ports by each BDW instruction. The patch continues the scheduling replacement and insertion effort started with the SandyBridge (SNB) target in r310792, the Haswell (HSW) target in r311879, the SkylakeClient (SKL) target in rL313613 + rL315978 and the SkylakeServer (SKX) in rL315175. Performance fluctuations may be expected due to code alignment effects. Reviewers: zvi, RKSimon, craig.topper Differential Revision: https://reviews.llvm.org/D39054 Change-Id: If6f799e5ff60e1091c8d43b05ea78c53581bae01 llvm-svn: 316492
* Move comment to the place where it makes more sense.Rui Ueyama2017-10-241-3/+3
| | | | llvm-svn: 316491
* [llvm-cov] Use a stable sort on sub-viewsVedant Kumar2017-10-241-2/+2
| | | | | | | | | | | We need to use a stable sort on instantiation and expansion sub-views to produce consistent output. Fortunately, we've gotten lucky and the tests have checks for the stable order. This is needed to unblock D39245. Once that lands, we'll have better test coverage for sort non-determinism. llvm-svn: 316490
* Improve comment.Rui Ueyama2017-10-241-6/+8
| | | | llvm-svn: 316489
* [OPENMP] Fix PR35013: Fix passing VLAs captures to outlined functions.Alexey Bataev2017-10-248-14/+40
| | | | | | | Fixed passing of VLAs and variably-modified types to outlined functions. Synchronized passing with the types codegen. llvm-svn: 316488
* On FreeBSD, skip the first entry in the dl_iterate_phdr list.Dimitry Andric2017-10-241-1/+1
| | | | | | | | | | | | | | | | | Summary: Similar to NetBSD, in FreeBSD, the first returned entry when callbacks are done via dl_iterate_phdr will return the main program. Ignore that entry when checking that the dynamic ASan lib is loaded first. Reviewers: eugenis, krytarowski, emaste, joerg Reviewed By: eugenis, krytarowski Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D39253 llvm-svn: 316487
* Simplify.Rui Ueyama2017-10-241-11/+11
| | | | llvm-svn: 316486
* Use range-based-for. NFCAdrian Prantl2017-10-241-6/+5
| | | | llvm-svn: 316485
* CodeGen: Fix missing debug loc due to allocaYaxun Liu2017-10-242-2/+19
| | | | | | | | | | | | Builder save/restores insertion pointer when emitting addr space cast for alloca, but does not save/restore debug loc, which causes verifier failure for certain call instructions. This patch fixes that. Differential Revision: https://reviews.llvm.org/D39069 llvm-svn: 316484
* LLD/ELF/AMDGPU: Process AMDGPU-specific e_flagsKonstantin Zhuravlyov2017-10-246-0/+48
| | | | | | Differential Revision: https://reviews.llvm.org/D39140 llvm-svn: 316483
* [asan] Add more x86 prologue decodings to handle x64 VC 2017 CRTReid Kleckner2017-10-241-0/+3
| | | | | | Fixes atoi and strtol interception. llvm-svn: 316482
* bpf: fix a bug in trunc-op optimizationYonghong Song2017-10-241-1/+8
| | | | | | | | Previous implementation for per-function scope is incorrect and too conservative. Signed-off-by: Yonghong Song <yhs@fb.com> llvm-svn: 316481
* [globalisel][tablegen] Fix future undefined behaviour in r316463.Daniel Sanders2017-10-241-1/+4
| | | | | | | I missed a dereference of `Matched` that preceeded the new check. Thanks to Justin Bogner for spotting it. llvm-svn: 316480
* MIR: Print the register class or bank in vreg defsJustin Bogner2017-10-24246-6949/+5414
| | | | | | | | | | | | | | | | | | | | | | | | | | This updates the MIRPrinter to include the regclass when printing virtual register defs, which is already valid syntax for the parser. That is, given 64 bit %0 and %1 in a "gpr" regbank, %1(s64) = COPY %0(s64) would now be written as %1:gpr(s64) = COPY %0(s64) While this change alone introduces a bit of redundancy with the registers block, it allows us to update the tests to be more concise and understandable and brings us closer to being able to remove the registers block completely. Note: We generally only print the class in defs, but there is one exception. If there are uses without any defs whatsoever, we'll print the class on all uses. I'm not completely convinced this comes up in meaningful machine IR, but for now the MIRParser and MachineVerifier both accept that kind of stuff, so we don't want to have a situation where we can print something we can't parse. llvm-svn: 316479
* [PowerPC] Try to simplify a Swap if it feeds a SplatStefan Pintilie2017-10-243-2/+183
| | | | | | | | | | | | If we have the situation where a Swap feeds a Splat we can sometimes change the index on the Splat and then remove the Swap instruction. Fixed the test case that was failing and recommit after pulling the original commit. Original revision is here: https://reviews.llvm.org/D39009 llvm-svn: 316478
* BinaryFormat/MachO.h Don't mark header functions as file-scope staticDavid Blaikie2017-10-241-9/+7
| | | | | | This creates ODR violations if the function is called from another inline function in a header and also creates binary bloat from duplicate definitions. llvm-svn: 316477
* ValueTracking.h Don't mark header functions as file-scope staticDavid Blaikie2017-10-241-7/+6
| | | | | | This creates ODR violations if the function is called from another inline function in a header and also creates binary bloat from duplicate definitions. llvm-svn: 316476
* MemoryBuiltins.h: Don't mark header functions as file-scope staticDavid Blaikie2017-10-241-5/+3
| | | | | | This creates ODR violations if the function is called from another inline function in a header and also creates binary bloat from duplicate definitions. llvm-svn: 316475
* IndirectCallSiteVisitor.h:findIndirectCallSites Don't mark header functions ↵David Blaikie2017-10-241-1/+1
| | | | | | | | as file-scope static This creates ODR violations if the function is called from another inline function in a header and also creates binary bloat from duplicate definitions. llvm-svn: 316474
* StringExtras.h Don't mark header functions as file-scope staticDavid Blaikie2017-10-241-17/+15
| | | | | | This creates ODR violations if the function is called from another inline function in a header and also creates binary bloat from duplicate definitions. llvm-svn: 316473
* SmallVector.h:capacity_in_bytes Don't mark header functions as file-scope staticDavid Blaikie2017-10-241-2/+2
| | | | | | | This creates ODR violations if the function is called from another inline function in a header and also creates binary bloat from duplicate definitions. llvm-svn: 316472
OpenPOWER on IntegriCloud