- Nov 02, 2016
-
-
Nirav Dave authored
Summary: Correctly parse end-of-statement tokens and handle preprocessor end-of-line comments in ARM assembly processor. Reviewers: rnk, majnemer Subscribers: aemerson, rengolin, llvm-commits Differential Revision: https://reviews.llvm.org/D26152 llvm-svn: 285830
-
Adrian Prantl authored
llvm-svn: 285829
-
Matt Arsenault authored
llvm-svn: 285828
-
Adrian Prantl authored
by refactoring common code into a DwarfExpressionCursor wrapper. llvm-svn: 285827
-
Adrian Prantl authored
This fixes a bug in the DWARF backend. llvm-svn: 285826
-
Simon Pilgrim authored
Avoids APInt construction and slower comparisons. llvm-svn: 285822
-
Rafael Espindola authored
llvm-svn: 285819
-
Rafael Espindola authored
llvm-svn: 285817
-
Rafael Espindola authored
As a consequence this move a bunch of error checking out of the constructor. llvm-svn: 285815
-
Vasileios Kalintiris authored
Summary: Remove this pass from addMachineSSAOptimization() and register it unconditionally in through addPreRegAlloc(). This pass is required for generating correct PIC calls. Reviewers: sdardis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26036 llvm-svn: 285814
-
Joerg Sonnenberger authored
GPRC and GPRC_NOR0 (or the 64bit equivalent) and not just the latter. GPRC_NOR0 contains ZERO as alternative meaning of r0 and is therefore not a true subclass of GPRC. llvm-svn: 285813
-
Rafael Espindola authored
llvm-svn: 285812
-
Rafael Espindola authored
Have it return a ErrorOr<Range> and delete section_begin and section_end. llvm-svn: 285807
-
Aaron Ballman authored
Removing a switch statement that contains a default label, but no case labels. Silences an MSVC warning; NFC. llvm-svn: 285806
-
Rafael Espindola authored
llvm-svn: 285804
-
Rafael Espindola authored
llvm-svn: 285803
-
Joerg Sonnenberger authored
llvm-svn: 285802
-
Ulrich Weigand authored
SystemZAsmParser::parseOperand returns a bool, not an enum. llvm-svn: 285800
-
Kirill Bobyrev authored
While bootstrapping Clang with recent `gcc 6.2.0` I found a bug related to misleading indentation. I believe, a pair of `{}` was forgotten, especially given the above similar piece of code: ``` if (!RDef || !HII->isPredicable(*RDef)) { Done = coalesceRegisters(RD, RegisterRef(S1)); if (Done) { UpdRegs.insert(RD.Reg); UpdRegs.insert(S1.getReg()); } } ``` Reviewers: kparzysz Differential Revision: https://reviews.llvm.org/D26204 llvm-svn: 285794
-
Bjorn Pettersson authored
Summary: It was detected that the reassociate pass could enter an inifite loop when analysing dead code. Simply skipping to analyse basic blocks that are dead avoids such problems (and as a side effect we avoid spending time on optimising dead code). The solution is using the same Reverse Post Order ordering of the basic blocks when doing the optimisations, as when building the precalculated rank map. A nice side-effect of this solution is that we now know that we only try to do optimisations for blocks with ranked instructions. Fixes https://llvm.org/bugs/show_bug.cgi?id=30818 Reviewers: llvm-commits, davide, eli.friedman, mehdi_amini Subscribers: dberlin Differential Revision: https://reviews.llvm.org/D26154 llvm-svn: 285793
-
Dylan McKay authored
Summary: This adds AVRISelLowering.cpp Reviewers: arsenm, kparzysz Subscribers: llvm-commits, modocache, japaric, wdng, beanz, mgorny Differential Revision: https://reviews.llvm.org/D25034 llvm-svn: 285790
-
Shoaib Meenai authored
At least with cmake 3.6.1, the default build type setting was having no effect; the generated CMakeCache.txt still had an empty CMAKE_BUILD_TYPE. Force the variable to be set to achieve the desired behavior. Differential Revision: https://reviews.llvm.org/D26200 llvm-svn: 285789
-
Peter Collingbourne authored
We need to zero extend the byte in order to correctly shift it into a 64-bit value. llvm-svn: 285785
-
Brad Smith authored
It was noticed this caused performance regressions and deadlocks. PR30768. Reorder the code to make it clearer what is tested. PPC now disables the use of std::call_once only with libstdc++ with the reordering of the code, as was the original intent. llvm-svn: 285782
-
Michael Gottesman authored
This is the reverse_iterator analogue of getIterator(). llvm-svn: 285780
-
Peter Collingbourne authored
Should unbreak ocaml binding tests. Also added an llvm-dis test that checks for the same thing. llvm-svn: 285777
-
Peter Collingbourne authored
These interfaces are no longer used. Differential Revision: https://reviews.llvm.org/D26222 llvm-svn: 285774
-
Peter Collingbourne authored
As proposed on llvm-dev: http://lists.llvm.org/pipermail/llvm-dev/2016-October/106595.html This change also fixes an API oddity where BitstreamCursor::Read() would return zero for the first read past the end of the bitstream, but would report_fatal_error for subsequent reads. Now we always report_fatal_error for all reads past the end. Updated clients to check for the end of the bitstream before reading from it. I also needed to add padding to the invalid bitcode tests in test/Bitcode/. This is because the streaming interface was not checking that the file size is a multiple of 4. Differential Revision: https://reviews.llvm.org/D26219 llvm-svn: 285773
-
Vedant Kumar authored
llvm-svn: 285772
-
Alex Bradbury authored
This is enough to compile and link but doesn't yet do anything particularly useful. Once an ASM parser and printer are added in the next two patches, the whole thing can be usefully tested. Differential Revision: https://reviews.llvm.org/D23562 llvm-svn: 285770
-
Alex Bradbury authored
For now, only add instruction definitions for basic ALU operations. Our initial target is a working MC layer rather than codegen, so appropriate SelectionDAG patterns will come later. Differential Revision: https://reviews.llvm.org/D23561 llvm-svn: 285769
-
Matt Arsenault authored
llvm-svn: 285768
-
Matt Arsenault authored
This is already done with VGPR immediates and saves 4 bytes. llvm-svn: 285765
-
- Nov 01, 2016
-
-
Matt Arsenault authored
This is the conservatively correct way because it's easy to move or replace a scalar immediate. This was incorrect in the case when the register class wasn't known from the static instruction definition, but still needed to be an SGPR. The main example of this is inlineasm has an SGPR constraint. Also start verifying the register classes of inlineasm operands. llvm-svn: 285762
-
Eric Christopher authored
Move the initialization of PreferredLoopExit into runOnMachineFunction to be near the other function specific initializations. llvm-svn: 285758
-
Sam McCall authored
Summary: Currently PreferredLoopExit is set only in buildLoopChains, which is never called if there are no MachineLoops. MSan is currently broken by this: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/145/steps/check-llvm%20msan/logs/stdio This is a naive fix to get things green again. iteratee: you may have a better fix. This change will also mean PreferredLoopExit will not carry over if buildCFGChains() is called a second time in runOnMachineFunction, this appears to be the right thing. Reviewers: bkramer, iteratee, echristo Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26069 llvm-svn: 285757
-
Matt Arsenault authored
These are only used in the spill to VMEM path. Move them to the one use. llvm-svn: 285756
-
Rafael Espindola authored
This saves a field that is not always used. It also avoids failing a program that doesn't need the section names. llvm-svn: 285753
-
George Burgess IV authored
Patch by bryant. Differential Revision: https://reviews.llvm.org/D26126 llvm-svn: 285750
-
Rafael Espindola authored
The description in the ELF spec is just --------------------------- If the section name string table section index is greater than or equal to SHN_LORESERVE (0xff00), this member has the value SHN_XINDEX (0xffff) and the actual index of the section name string table section is contained in the sh_link field of the section header at index 0. --------------------------- So we only have to check for it being SHN_XINDEX. Also, sh_link is always 32 bits, so don't return an uintX_t. llvm-svn: 285747
-