- Jul 25, 2016
-
-
David Majnemer authored
If we two loads of two different alignments, we must use the minimum of the two alignments when hoisting. Same deal for stores. For allocas, use the maximum of the two allocas. llvm-svn: 276601
-
David Majnemer authored
Use a range-based for loop, no functional change is intended. llvm-svn: 276600
-
Eric Fiselier authored
llvm-svn: 276599
-
Eric Fiselier authored
This is a breaking change. The SFINAE required is instantiated the second the class is instantiated, and this can cause hard SFINAE errors when applied to references to incomplete types. Ex. struct IncompleteType; extern IncompleteType it; std::tuple<IncompleteType&> t(it); // SFINAE will blow up. llvm-svn: 276598
-
NAKAMURA Takumi authored
llvm-svn: 276597
-
NAKAMURA Takumi authored
llvm-svn: 276596
-
Eric Fiselier authored
llvm-svn: 276595
-
Eric Fiselier authored
In C++03 mode evaluating the SFINAE can cause a hard error due to access control violations. This is a problem because the SFINAE is evaluated as soon as the class is instantiated, and not later. llvm-svn: 276594
-
Eric Fiselier authored
llvm-svn: 276593
-
Davide Italiano authored
PROVIDE request us to define a symbol only if it is referenced and is not defined by any object included in the link. We created the symbol in the symbol table no matter what. Differential Revision: https://reviews.llvm.org/D22739 llvm-svn: 276592
-
Eric Fiselier authored
llvm-svn: 276591
-
Eric Fiselier authored
See D21820 for more information (https://reviews.llvm.org/D21820). llvm-svn: 276590
-
Eric Fiselier authored
llvm-svn: 276589
-
Eric Fiselier authored
llvm-svn: 276588
-
Eric Fiselier authored
llvm-svn: 276587
-
Rui Ueyama authored
llvm-svn: 276586
-
Eric Fiselier authored
llvm-svn: 276585
-
Eric Fiselier authored
llvm-svn: 276584
-
Eric Fiselier authored
llvm-svn: 276583
-
Davide Italiano authored
llvm-svn: 276582
-
Eric Fiselier authored
llvm-svn: 276581
-
Eric Fiselier authored
llvm-svn: 276580
-
Davide Italiano authored
Differential Revision: https://reviews.llvm.org/D22738 llvm-svn: 276579
-
Eric Fiselier authored
llvm-svn: 276578
-
George Burgess IV authored
I'm told that some optimizers like lambdas a lot more than mem_fn. Given that the readability difference is basically nil, and we seem to use lambdas basically everywhere else, it seems sensible to just use lambdas. llvm-svn: 276577
-
Eric Fiselier authored
llvm-svn: 276576
-
Rui Ueyama authored
llvm-svn: 276575
-
Rui Ueyama authored
Previously, we handled an expression as a vector of tokens. In other words, an expression was a vector of uncooked raw StringRefs. When we need a value of an expression, we used ExprParser to run the expression. The separation was needed essentially because parse time is too early to evaluate an expression. In order to evaluate an expression, we need to finalize section sizes. Because linker script parsing is done at very early stage of the linking process, we can't evaluate expressions while parsing. The above mechanism worked fairly well, but there were a few drawbacks. One thing is that we sometimes have to parse the same expression more than once in order to find the end of the expression. In some contexts, linker script expressions have no clear end marker. So, we needed to recognize balanced expressions and ternary operators. The other is poor error reporting. Since expressions are parsed basically twice, and some information that is available at the first stage is lost in the second stage, it was hard to print out apprpriate error messages. This patch fixes the issues with a new approach. Now the expression parsing is integrated into ScriptParser. ExprParser class is removed. Expressions are represented as lambdas instead of vectors of tokens. Lambdas captures information they need to run themselves when they are created. In this way, ends of expressions are naturally detected, and errors are handled in the usual way. This patch also reduces the amount of code. Differential Revision: https://reviews.llvm.org/D22728 llvm-svn: 276574
-
David Majnemer authored
No functional change is intended. llvm-svn: 276573
-
David Majnemer authored
Process::GetEnv does the right thing across our platforms. CommandLine.cpp had, more or less, the same logic. Let's remove the duplication. No functional change is intended. llvm-svn: 276572
-
Simon Pilgrim authored
llvm-svn: 276571
-
Simon Pilgrim authored
llvm-svn: 276570
-
Simon Pilgrim authored
As with all AMD CPUs, excavator has poor SHLD/SHRD performance. Also added bdver3 to the test as it was missing. llvm-svn: 276569
-
- Jul 24, 2016
-
-
Simon Pilgrim authored
llvm-svn: 276568
-
Simon Pilgrim authored
llvm-svn: 276567
-
Simon Pilgrim authored
llvm-svn: 276566
-
Simon Pilgrim authored
llvm-svn: 276565
-
Craig Topper authored
Thanks to Simon Pilgrim for catching the mistake. llvm-svn: 276564
-
Simon Pilgrim authored
llvm-svn: 276563
-
Craig Topper authored
This places the 132/213/231 form number in front of the SS/SD/PS/PD. Move the Y for 256-bit versions to be after the PS/PD. Change the AVX512 scalar forms to include a Z in the their name. This new format should be consistent with the general naming of instructions. llvm-svn: 276559
-