- Apr 22, 2018
-
-
Jonas Devlieghere authored
Makes error handling more consistent by using the helpers in support. llvm-svn: 330536
-
Jonas Devlieghere authored
When a prefix is passed, we need to print a colon a space after it, not just the prefix. llvm-svn: 330535
-
Craig Topper authored
llvm-svn: 330534
-
Craig Topper authored
This matches the other FENCE instructions. llvm-svn: 330533
-
Craig Topper authored
llvm-svn: 330532
-
Craig Topper authored
[X86] Remove DATA32_PREFIX. Hack the printing for DATA16_PREFIX to print 'data32' in 16-bit mode. Hack the asm parser to convert 'data32' to 'data16' in 16-bit mode. Improve the error messages to match GNU assembler. This also allows us to remove the hack from the disassembler table building. llvm-svn: 330531
-
Brian Gesiak authored
Summary: `llvm-bcanalyzer` prints out the stream type of the file it is analyzing. If the file begins with the LLVM IR magic number, it reports a stream type of "LLVM IR". However, any other bitstream format is reported as "unknown". Add some checks for two other common bitstream formats: Clang AST files, which begin with 'CPCH', and Clang serialized diagnostics, which begin with 'DIAG'. Test Plan: `check-llvm` Reviewers: pcc, aprantl, mehdi_amini, davide, george.karpenkov, JDevlieghere Reviewed By: JDevlieghere Subscribers: JDevlieghere, bruno, davide, llvm-commits Differential Revision: https://reviews.llvm.org/D41979 llvm-svn: 330529
-
- Apr 21, 2018
-
-
Simon Pilgrim authored
llvm-svn: 330527
-
Jonas Devlieghere authored
Several tools prefix the error/warning/note output with the name of the tool. One such tool is LLD for example. This commit adds as an optional 'Prefix' argument to the convenience helpers. llvm-svn: 330526
-
Simon Pilgrim authored
llvm-svn: 330525
-
Jonas Devlieghere authored
Use convenience helpers in WithColor to print errors, warnings and notes in a few more tools. llvm-svn: 330524
-
Simon Pilgrim authored
llvm-svn: 330523
-
Simon Pilgrim authored
llvm-svn: 330522
-
Simon Pilgrim authored
[X86] Strip unnecessary vector integer math, shift-imm, extend, shuffle, pack/unpack instruction instrw overrides from scheduler models. llvm-svn: 330521
-
Craig Topper authored
Ultimately I want to use this to remove the intrinsics for these instructions. llvm-svn: 330520
-
Craig Topper authored
A future patch will turn this into MULHU/MULHS. llvm-svn: 330519
-
Craig Topper authored
llvm-svn: 330517
-
Sanjay Patel authored
llvm-svn: 330516
-
Sanjay Patel authored
llvm-svn: 330515
-
Simon Pilgrim authored
llvm-svn: 330514
-
Simon Pilgrim authored
llvm-svn: 330513
-
Simon Pilgrim authored
llvm-svn: 330512
-
Simon Pilgrim authored
The required the default skylake schedules to be updated - these were being completely overriden by the InstRW and the existing values not used at all. llvm-svn: 330510
-
Simon Pilgrim authored
llvm-svn: 330508
-
Simon Pilgrim authored
llvm-svn: 330506
-
Simon Pilgrim authored
llvm-svn: 330505
-
Simon Pilgrim authored
llvm-svn: 330503
-
Simon Pilgrim authored
llvm-svn: 330502
-
Simon Pilgrim authored
llvm-svn: 330501
-
Simon Pilgrim authored
llvm-svn: 330499
-
Simon Pilgrim authored
llvm-svn: 330498
-
Hiroshi Inoue authored
Vectorized loops with abs() returns incorrect results on POWER9. This patch fixes it. For example the following code returns negative result if input values are negative though it sums up the absolute value of the inputs. int vpx_satd_c(const int16_t *coeff, int length) { int satd = 0; for (int i = 0; i < length; ++i) satd += abs(coeff[i]); return satd; } This problem causes test failures for libvpx. For vector absolute and vector absolute difference on POWER9, LLVM generates VABSDUW (Vector Absolute Difference Unsigned Word) instruction or variants. Since these instructions are for unsigned integers, we need adjustment for signed integers. For abs(sub(a, b)), we generate VABSDUW(a+0x80000000, b+0x80000000). Otherwise, abs(sub(-1, 0)) returns 0xFFFFFFFF(=-1) instead of 1. For abs(a), we generate VABSDUW(a+0x80000000, 0x80000000). Differential Revision: https://reviews.llvm.org/D45522 llvm-svn: 330497
-
Eli Friedman authored
In certain cases, the compiler might try to merge __stack_chk_guard with another global variable. (Or someone could theoretically define __stack_chk_guard as an alias.) In that case, make sure we don't crash. Differential Revision: https://reviews.llvm.org/D45746 llvm-svn: 330495
-
Jessica Paquette authored
llvm-svn: 330494
-
Jessica Paquette authored
The verifier began complaining about an undefined physical register in this test. XFAILing for the purposes of getting a bot up while I look into it. Failure: http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-expensive/11385/ llvm-svn: 330493
-
Shoaib Meenai authored
llvm-svn: 330489
-
Shoaib Meenai authored
When creating a call to storeStrong in ObjCARCContract, ensure the call gets the correct funclet token, otherwise WinEHPrepare will turn the call (and all subsequent instructions) into unreachable. We already have logic to do this for the ARC autorelease elision marker; factor that out into a common function that's used for both. These are the only two places in this transform that create call instructions. Differential Revision: https://reviews.llvm.org/D45857 llvm-svn: 330487
-
Simon Pilgrim authored
llvm-svn: 330486
-
- Apr 20, 2018
-
-
Simon Pilgrim authored
Split the fp and integer vector logical instruction scheduler classes - older CPUs especially often handled these on different pipes. This unearthed a couple of things that are also handled in this patch: (1) We were tagging avx512 fp logic ops as WriteFAdd, probably because of the lack of WriteFLogic (2) SandyBridge had integer logic ops only using Port5, when afaict they can use Ports015. (3) Cleaned up x86 FCHS/FABS scheduling as they are typically treated as fp logic ops. Differential Revision: https://reviews.llvm.org/D45629 llvm-svn: 330480
-
Alexander Shaposhnikov authored
This diff fixes sh_link for various types of sections (i.e. for SHT_ARM_EXIDX, SHT_HASH). In particular, this change enables us to use llvm-objcopy with clang -gsplit-dwarf for the target android-arm. Test plan: make check-all Differential revision: https://reviews.llvm.org/D45851 llvm-svn: 330478
-