- Aug 22, 2013
-
-
Shankar Easwaran authored
llvm-svn: 189025
-
Joey Gouly authored
This uses the ARMcmov pattern that Tim cleaned up in r188995. Thanks to Simon Tatham for his floating point help! llvm-svn: 189024
-
Shankar Easwaran authored
llvm-svn: 189023
-
David Blaikie authored
DebugInfo: emit the definition of types when construction vtables are required as these types may never end up emitting the full class data This might be able to be optimized further by only doing this in the absence of a key function, but it doesn't look like GCC is doing that so I'm not rushing to do it just yet. llvm-svn: 189022
-
NAKAMURA Takumi authored
[Win32] mapped_file_region: Fix a bug in CreateFileMapping() that Size must contain Offset when Offset >= 65536. llvm-svn: 189021
-
NAKAMURA Takumi authored
llvm-svn: 189020
-
Edwin Vane authored
Subdirectories of test/clang-replace contain test-time dependencies and not more LIT tests. Tell LIT to ignore these directories from the test suite. llvm-svn: 189019
-
Daniel Jasper authored
With this patch, braced lists (with more than 3 elements are formatted in a column layout if possible). E.g.: static const uint16_t CallerSavedRegs64Bit[] = { X86::RAX, X86::RDX, X86::RCX, X86::RSI, X86::RDI, X86::R8, X86::R9, X86::R10, X86::R11, 0 }; Required other changes: - FormatTokens can now have a special role that contains extra data and can do special formattings. A comma separated list is currently the only implementation. - Move penalty calculation entirely into ContinuationIndenter (there was a last piece still in UnwrappedLineFormatter). Review: http://llvm-reviews.chandlerc.com/D1457 llvm-svn: 189018
-
Guillaume Papin authored
The IncludeDirectives class helps with detecting and modifying #include directives. For now it allows the users to add angled-includes in a source file. This is a start for this class that will evolve in the future to add more functionality. This should fix the reverted commit r188791 (buildbot failures on Windows). llvm-svn: 189017
-
Sergey Matveev authored
llvm-svn: 189016
-
Evgeniy Stepanov authored
Fixes PR16916. llvm-svn: 189015
-
Edwin Vane authored
Functionality for clang-replace completed with the addition of the ability to write merged replacements to disk. Test added. Differential Revision: http://llvm-reviews.chandlerc.com/D1460 llvm-svn: 189014
-
David Blaikie authored
DebugInfo: Remove explicit declaration-emissiong handling now that we have a more principled approach (the 'requires complete type' callback) No functionality change intended. llvm-svn: 189013
-
Sergey Matveev authored
llvm-svn: 189012
-
Sergey Matveev authored
llvm-svn: 189011
-
Sergey Matveev authored
Fix issue where C code could not be built with -fsanitize=leak. llvm-svn: 189010
-
Mihai Popa authored
The instruction to convert between floating point and fixed point representations takes an immediate operand for the number of fractional bits of the fixed point value. ARMARM specifies that when that number of bits is zero, the assembler should encode floating point/integer conversion instructions. This patch adds the necessary instruction aliases to achieve this behaviour. llvm-svn: 189009
-
Edwin Vane authored
Introducing new tool 'clang-replace' that finds files containing serialized Replacements and applies those changes after deduplication and detecting conflicts. Currently the tool does not apply changes. It stops just after the deduplication and conflict report phase. Forthcoming patches will complete functionality. Both build systems updated for new tool. Includes a conflict test case. clang-replace added to Doxygen build. Differential Revision: http://llvm-reviews.chandlerc.com/D1424 llvm-svn: 189008
-
Chandler Carruth authored
using GEPs. Previously, it used a number of different heuristics for analyzing the GEPs. Several of these were conservatively correct, but failed to fall back to SCEV even when SCEV might have given a reasonable answer. One was simply incorrect in how it was formulated. There was good code already to recursively evaluate the constant offsets in GEPs, look through pointer casts, etc. I gathered this into a form code like the SLP code can use in a previous commit, which allows all of this code to become quite simple. There is some performance (compile time) concern here at first glance as we're directly attempting to walk both pointers constant GEP chains. However, a couple of thoughts: 1) The very common cases where there is a dynamic pointer, and a second pointer at a constant offset (usually a stride) from it, this code will actually not do any unnecessary work. 2) InstCombine and other passes work very hard to collapse constant GEPs, so it will be rare that we iterate here for a long time. That said, if there remain performance problems here, there are some obvious things that can improve the situation immensely. Doing a vectorizer-pass-wide memoizer for each individual layer of pointer values, their base values, and the constant offset is likely to be able to completely remove redundant work and strictly limit the scaling of the work to scrape these GEPs. Since this optimization was not done on the prior version (which would still benefit from it), I've not done it here. But if folks have benchmarks that slow down it should be straight forward for them to add. I've added a test case, but I'm not really confident of the amount of testing done for different access patterns, strides, and pointer manipulation. llvm-svn: 189007
-
Joey Gouly authored
we pass these tests with -verify-machineinstrs. llvm-svn: 189006
-
Elena Demikhovsky authored
llvm-svn: 189005
-
Manuel Klimek authored
This reverts commit 606f5d7a99b11957e057e4cd1f55f931f66a42c7. llvm-svn: 189004
-
Manuel Klimek authored
Revert "Remove some unused variables identified by Juergen Ributzka *I need to turn on this warning in Visual C++ - sorry!*" This reverts commit d01d0b63d87ac465f15ce1d6b56bf3faf4525769. llvm-svn: 189003
-
Logan Chien authored
The function call to external function should come with PLT relocation type if the PIC relocation model is used. llvm-svn: 189002
-
NAKAMURA Takumi authored
llvm-svn: 189001
-
Chandler Carruth authored
pointers, but accumulate the offset into an APInt in the process of stripping it. This is a pretty handy thing to have, such as when trying to determine if two pointers are at some constant relative offset. I'll be committing a patch shortly to use it for exactly that purpose. llvm-svn: 189000
-
NAKAMURA Takumi authored
PageSize, aka AllocationGranularity, is 65536 on Win32 (and Cygwin). llvm-svn: 188999
-
NAKAMURA Takumi authored
The AllocationGranularity can be 65536 on Win32, even on Cygwin. llvm-svn: 188998
-
Chandler Carruth authored
Value. These methods probably don't belong here, and I'm discussing moving the lot of them to a better home, but for now I'm about to extend their functionality and wanted to tidy them up first. llvm-svn: 188997
-
David Majnemer authored
llvm-svn: 188996
-
Tim Northover authored
Back in the mists of time (2008), it seems TableGen couldn't handle the patterns necessary to match ARM's CMOV node that we convert select operations to, so we wrote a lot of fairly hairy C++ to do it for us. TableGen can deal with it now: there were a few minor differences to CodeGen (see tests), but nothing obviously worse that I could see, so we should probably address anything that *does* come up in a localised manner. llvm-svn: 188995
-
Robert Wilhelm authored
changing Parameter from MutableArrayRef to ArrayRef. No functionality change intended. llvm-svn: 188994
-
Dmitri Gribenko authored
This tests warning flags, so no need to test for specific alignment which is platform-dependent. llvm-svn: 188993
-
David Majnemer authored
llvm-svn: 188992
-
Craig Topper authored
llvm-svn: 188991
-
Tim Northover authored
The code for 'Q' and 'R' operand modifiers needs to look through tied operands to discover the register class. llvm-svn: 188990
-
Craig Topper authored
llvm-svn: 188989
-
Shankar Easwaran authored
llvm-svn: 188988
-
Michael Gottesman authored
[stackprotector] When finding the split point to splice off the end of a parentmbb into a successmbb, include any DBG_VALUE MI. Fix for PR16954. llvm-svn: 188987
-
Craig Topper authored
Constify the ASTContext& passed to Stmt creation functions. Also constify the context in couple other functions that are called from creation functions. llvm-svn: 188986
-