This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RUN: clang -target aarch64-linux-gnu -O2 crash.cpp | |
template <class d> struct g { using e = d; }; | |
template <bool, class f, class> using aa = g<f>::e; | |
enum { ab }; | |
struct i { | |
enum { ac, h }; | |
}; | |
struct m { | |
enum { j }; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make[1]: Entering directory `/home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.obj/lib/Support' | |
llvm[1]: Compiling APFloat.cpp for Release+Asserts build | |
llvm[1]: Compiling APInt.cpp for Release+Asserts build | |
In file included from /usr/include/c++/4.8/ios:42:0, | |
from /usr/include/c++/4.8/ostream:38, | |
from /usr/include/c++/4.8/iterator:64, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/SmallVector.h:28, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/ArrayRef.h:14, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/APInt.h:19, | |
from /home/buildslave/slave_as-bldslv2/clang-native-arm-cortex-a9/llvm.src/include/llvm/ADT/APFloat.h:20, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Format/ContinuationIndenter.h b/lib/Format/ContinuationIndenter.h | |
index 2b33f5b..1d88d05 100644 | |
--- a/lib/Format/ContinuationIndenter.h | |
+++ b/lib/Format/ContinuationIndenter.h | |
@@ -228,37 +228,22 @@ struct ParenState { | |
bool ObjCSelectorNameFound; | |
bool operator<(const ParenState &Other) const { | |
- if (Indent != Other.Indent) | |
- return Indent < Other.Indent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
enum E { A, B }; | |
int foo(enum E x) { | |
switch (x) { | |
case A: | |
return 42; | |
case B: | |
return 23; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import re | |
import sys | |
comments = [";", "//", "#"] | |
fileendings = re.compile("\.(ll|cpp|c)$") | |
prefixcheck = re.compile("-check-prefix[ =]([A-Za-z0-9_.\-]*)") | |
placeholders = re.compile("%[sStTp]") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* clang depgraph.c -o depgraph -I tools/clang/include -lclang */ | |
#include "clang-c/Index.h" | |
#include <stdio.h> | |
static enum CXChildVisitResult | |
visitor(CXCursor cursor, CXCursor parent, CXClientData client_data) { | |
enum CXCursorKind kind = clang_getCursorKind(cursor); | |
CXFile tu_file = (CXFile *)client_data; | |
CXFile in_file, from_file; | |
unsigned line, column, offset; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Target/X86/X86InstrCompiler.td b/lib/Target/X86/X86InstrCompiler.td | |
index f387962..29ce597 100644 | |
--- a/lib/Target/X86/X86InstrCompiler.td | |
+++ b/lib/Target/X86/X86InstrCompiler.td | |
@@ -1089,6 +1089,7 @@ multiclass CMOVmr<PatLeaf InvertedCond, Instruction Inst16, Instruction Inst32, | |
(Inst64 GR64:$src2, addr:$src1)>; | |
} | |
+let Predicates = [HasCMov] in { | |
defm : CMOVmr<X86_COND_B , CMOVAE16rm, CMOVAE32rm, CMOVAE64rm>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer | |
index 216dc9d..51f5097 100755 | |
--- a/tools/scan-build/ccc-analyzer | |
+++ b/tools/scan-build/ccc-analyzer | |
@@ -569,6 +569,12 @@ foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { | |
push @CompileOpts,$Arg; | |
next; | |
} | |
+ | |
+ if ($Arg =~ /^-stdlib=/) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-W | |
-Wextra | |
-Wmissing-field-initializers | |
-Wignored-qualifiers | |
-Winitializer-overrides | |
-Wsemicolon-before-method-body | |
-Wmissing-method-return-type | |
-Wsign-compare | |
-Wunused-parameter | |
-W#pragma-messages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp | |
index a6bf4a8..8e7377d 100644 | |
--- a/lib/Analysis/InlineCost.cpp | |
+++ b/lib/Analysis/InlineCost.cpp | |
@@ -797,9 +797,30 @@ bool CallAnalyzer::analyzeCall(CallSite CS) { | |
FiftyPercentVectorBonus = Threshold; | |
TenPercentVectorBonus = Threshold / 2; | |
- // Subtract off one instruction per call argument as those will be free after | |
- // inlining. |
NewerOlder