- Feb 07, 2017
-
-
Pavel Labath authored
Summary: The formatter has three knobs: - the user can choose which time unit to use for formatting (default: whatever is the unit of the input) - he can choose whether the unit gets displayed (default: yes) - he can affect the way the number itself is formatted via standard number formatting options (default:default) Reviewers: zturner, inglorion Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29481 llvm-svn: 294326
-
Sanjay Patel authored
llvm-svn: 294325
-
Alexander Timofeev authored
lane masks. Differential revision: https://reviews.llvm.org/D29442 llvm-svn: 294324
-
Davide Italiano authored
Requested by Sanjoy/Hal a while ago, and forgotten by me (r283612). llvm-svn: 294323
-
George Rimar authored
DefinedSynthetic symbols are attached to sections, for the case when such symbol was attached to non-allocated section, we calculated its value incorrectly. We subtracted Body->Section->Addr, but non-allocatable sections should have zero VA in output and therefore result value was wrong. And at the same time we have Body->Section->Addr != 0 for them internally because use it for calculation of section size. Patch fixes calculation of such symbols values. Differential revision: https://reviews.llvm.org/D29653 llvm-svn: 294322
-
Krzysztof Parzyszek authored
Remove TypeXTYPE, TypeALU32, TypeSYSTEM, TypeJR, and instead use their architecture counterparts. Patch by Colin LeMahieu. llvm-svn: 294321
-
Krzysztof Parzyszek authored
- Map A2_zxtb to A2_andir. - Map PS_call_nr J2_call. - Map A2_tfr[t|f][new] to A2_padd[t|f][new]. Patch by Colin LeMahieu. llvm-svn: 294320
-
Reid Kleckner authored
llvm-svn: 294319
-
Adrian Prantl authored
The bitcode upgrade for DIGlobalVariable unconditionally wrapped DIGlobalVariables in a DIGlobalVariableExpression. When a DIGlobalVariable is referenced by a DIImportedEntity, however, this is wrong. This patch fixes the bitcode upgrade by deferring the creation of DIGlobalVariableExpressions until we know the context of the DIGlobalVariable. <rdar://problem/30134279> Differential Revision: https://reviews.llvm.org/D29349 llvm-svn: 294318
-
Reid Kleckner authored
This reverts commit r294250. It caused PR31891. Add a test case that shows that inlinable calls retain location information with an accurate scope. llvm-svn: 294317
-
Daniel Berlin authored
llvm-svn: 294316
-
Martin Probst authored
Summary: In JavaScript, object literals can contain methods: var x = { a() { return 1; }, }; Previously, clang-format always parsed nested {} inside a braced list as further braced lists. Special case this logic for JavaScript to try parsing as a braced list, but fall back to parsing as a child block. Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D29656 llvm-svn: 294315
-
Benjamin Kramer authored
It confuses FileManager on windows. llvm-svn: 294314
-
Anastasia Stulova authored
Fix for bug 30217 - incorrect error given for logical NOT operation with a pointer type: corrected sema check and improved related tests. Review: D29038 llvm-svn: 294313
-
Benjamin Kramer authored
Another attempt on making this work on windows. llvm-svn: 294312
-
Marshall Clow authored
llvm-svn: 294311
-
George Rimar authored
For case when LLD should error out, llm-readobj was called, what worked because argument was an output from first test run. llvm-svn: 294310
-
Benjamin Kramer authored
I didn't find this because my main development machine still happens to use libstdc++ with the broken C++11 ABI, which has a global empty string. llvm-svn: 294309
-
Simon Pilgrim authored
vXi8/vXi64 vector shifts are often shifted as vYi16/vYi32 types but we weren't always remembering to bitcast the input. Tested with a new assert as we don't currently manipulate these shifts enough for test cases to catch them. llvm-svn: 294308
-
NAKAMURA Takumi authored
Or bogus filename like "b'foo'" would be generated. This is part of https://reviews.llvm.org/D27405 llvm-svn: 294307
-
NAKAMURA Takumi authored
Py3 emits float with '/'. This is part of https://reviews.llvm.org/D27405 llvm-svn: 294306
-
Artur Pilipenko authored
Currently we don't support these nodes, so the tests check the current codegen without load combine. This change makes the review of the change to support these nodes more clear. Separated from https://reviews.llvm.org/D29591 review. llvm-svn: 294305
-
Martin Probst authored
Summary: Regex detection would incorrectly classify a trailing `!` operator (nullability cast) followed by a `/` as the start of a regular expression literal. This fixes code such as: var foo = x()! / 10; Which would previously parse a regexp all the way to the end of the source file (or next `/`). Reviewers: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D29634 llvm-svn: 294304
-
NAKAMURA Takumi authored
With universal_newlines, readline() stalls to fill the buffer. Therefore, let the pipe unbuffered. This is part of https://reviews.llvm.org/D27404 FIXME: Use Popen.communicate() llvm-svn: 294303
-
Martin Probst authored
Summary: In JavaScript, classes are expressions, so they can appear e.g. in argument lists. var C = foo(class { bar() { return 1; } }; Reviewers: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D29635 llvm-svn: 294302
-
Igor Laevsky authored
Differential Revision: https://reviews.llvm.org/D29456 llvm-svn: 294301
-
Simon Pilgrim authored
llvm-svn: 294300
-
Simon Pilgrim authored
llvm-svn: 294299
-
Christof Douma authored
When constructing global address literals while targeting the RWPI relocation model. LLVM currently only uses literal pools. If MOVW/MOVT instructions are available we can use these instead. Beside being more efficient it allows -arm-execute-only to work with -relocation-model=RWPI as well. When we generate MOVW/MOVT for global addresses when targeting the RWPI relocation model, we need to use base relative relocations. This patch does the needed plumbing in MC to generate these for MOVW/MOVT. Differential Revision: https://reviews.llvm.org/D29487 Change-Id: I446786e43a6f5aa9b6a5bb2cd216d60d41c7755d llvm-svn: 294298
-
Benjamin Kramer authored
llvm-svn: 294297
-
Simon Pilgrim authored
Exposes some poor codegen with identity shuffle due to bad interaction with insert_subvector(extract_subvector) / concat_subvectors llvm-svn: 294296
-
Joey Gouly authored
Review: https://reviews.llvm.org/D27749 llvm-svn: 294295
-
Benjamin Kramer authored
Also clean up logging and don't print \0. llvm-svn: 294294
-
Alexander Kornienko authored
It looks like direct calls to mocked methods happen in the wild. This patch add support for these as well. llvm-svn: 294293
-
Benjamin Kramer authored
llvm-svn: 294292
-
Benjamin Kramer authored
clangd is a language server protocol implementation based on clang. It's supposed to provide editor integration while not suffering from the confined ABI of libclang. This implementation is limited to the bare minimum functionality of doing (whole-document) formatting and rangeFormatting. The JSON parsing is based on LLVM's YAMLParser but yet most of the code of clangd is currently dealing with JSON serialization and deserialization. This was only tested with VS Code so far, mileage with other LSP clients may vary. Differential Revision: https://reviews.llvm.org/D29451 llvm-svn: 294291
-
George Rimar authored
We had assignSymbol and assignSectionSymbol methods which has similar functionality. Patch removes one of copy and reuses another in code. Differential revision: https://reviews.llvm.org/D29582 llvm-svn: 294290
-
George Rimar authored
Previously we did not do that. For example, for R_386_PC8, 0xFF addend was not treated as 0xFFFFFFFF(-1), but was 0x000000FF. Recently added checks for R_386_PC8/R_386_PC16 failed because of calculation overflow as a result. Differential revision: https://reviews.llvm.org/D29490 llvm-svn: 294289
-
Daniel Jasper authored
This reverts commit r294186. On an internal test, this triggers an out-of-memory error on PPC, presumably because there is another dagcombine that does the exact opposite triggering and endless loop consuming more and more memory. Chandler has started at creating a reduced test case and we'll attach it as soon as possible. llvm-svn: 294288
-
Craig Topper authored
llvm-svn: 294287
-