- Oct 08, 2013
-
-
Daniel Jasper authored
Also let clang-format-diff.py detect errors based on clang-format's return code. Otherwise messages like "Can't find usable .clang-format, falling back to LLVM style" can make it fail, which might be undesired. Patch by Alp Toker. Thank you! llvm-svn: 192184
-
Shankar Easwaran authored
llvm-svn: 192183
-
Rafael Espindola authored
Patch by Greg Bedwell. llvm-svn: 192182
-
Rafael Espindola authored
This patch fixes an old FIXME by creating a MCTargetStreamer interface and moving the target specific functions for ARM, Mips and PPC to it. The ARM streamer is still declared in a common place because it is used from lib/CodeGen/ARMException.cpp, but the Mips and PPC are completely hidden in the corresponding Target directories. I will send an email to llvmdev with instructions on how to use this. llvm-svn: 192181
-
Joerg Sonnenberger authored
llvm-svn: 192180
-
NAKAMURA Takumi authored
llvm-svn: 192179
-
NAKAMURA Takumi authored
llvm-svn: 192178
-
Alp Toker authored
The bool conversion operator on InstantiatingTemplate never added value and only served to obfuscate the template instantiation routines. This replaces the conversion and its callers with an explicit isInvalid() function to make it clear what's going on at a glance. llvm-svn: 192177
-
Venkatraman Govindaraju authored
No new testcases. However, this patch makes all supported JIT testcases in test/ExecutionEngine pass on Sparc. llvm-svn: 192176
-
Craig Topper authored
Remove unneeded MMX instruction definition by moving pattern to an equivalent instruction definition and removing the filtering from the disassembler table building. llvm-svn: 192175
-
Craig Topper authored
llvm-svn: 192174
-
Craig Topper authored
llvm-svn: 192173
-
Shankar Easwaran authored
llvm-svn: 192172
-
Craig Topper authored
Remove some instructions that existed to provide aliases to the assembler. Can be done with InstAlias instead. Unfortunately, this was causing printer to use 'vmovq' or 'vmovd' based on what was parsed. To cleanup the inconsistencies convert all 'vmovd' with 64-bit registers to 'vmovq', but provide an alias so that 'vmovd' will still parse. llvm-svn: 192171
-
Rui Ueyama authored
llvm-svn: 192170
-
Rui Ueyama authored
llvm-svn: 192169
-
Daniel Jasper authored
Specifically make ConstructorInitializerAllOnOneLineOrOnePerLine work nicely with BreakConstructorInitializersBeforeComma. This fixes llvm.org/PR17395. llvm-svn: 192168
-
Rui Ueyama authored
Differential Revision: http://llvm-reviews.chandlerc.com/D1853 llvm-svn: 192167
-
Faisal Vali authored
As described by Richard in https://groups.google.com/a/isocpp.org/d/msg/std-discussion/S1kmj0wF5-g/fb6agEYoL2IJ we should allow: template<typename S> struct A { template<typename T> static auto default_lambda() { return [](const T&) { return 42; }; } template<class U = decltype(default_lambda<S>())> U func(U u = default_lambda<S>()) { return u; } }; int run2 = A<double>{}.func()(3.14); int run3 = A<char>{}.func()('a'); This patch allows the code using the same trickery that was used to allow the code in non-member functions at namespace scope. Please see http://llvm-reviews.chandlerc.com/D1844 for richard's approval. llvm-svn: 192166
-
Rui Ueyama authored
llvm-svn: 192165
-
Rui Ueyama authored
llvm-svn: 192164
-
Rui Ueyama authored
llvm-svn: 192163
-
Rui Ueyama authored
llvm-svn: 192162
-
Jason Molenda authored
<rdar://problem/15099306> llvm-svn: 192161
-
Venkatraman Govindaraju authored
[Sparc] Do not hardcode nop in the delay slot of TLS_CALL. Use DelaySlotFiller to fill the delay slot instead. llvm-svn: 192160
-
Jason Molenda authored
in the middle because of alignment rules. llvm-svn: 192159
-
Adrian Prantl authored
llvm-svn: 192158
-
Adrian Prantl authored
llvm-svn: 192157
-
Adrian Prantl authored
llvm-svn: 192156
-
Richard Smith authored
llvm-svn: 192155
-
Nick Kledzik authored
llvm-svn: 192154
-
Nick Kledzik authored
llvm-svn: 192153
-
Nick Kledzik authored
llvm-svn: 192152
-
Nick Kledzik authored
llvm-svn: 192151
-
Reid Kleckner authored
Summary: Operator new, new[], delete, and delete[] are all implicitly static when declared inside a record. CXXMethodDecl already knows this, but we need to account for that before we pick the calling convention for the function type. Fixes PR17371. Reviewers: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1761 llvm-svn: 192150
-
Rui Ueyama authored
llvm-svn: 192149
-
Rui Ueyama authored
Summary: The original code with enum "_" is intended to emulate scoped enums. Now we have real scoped enums, so use it. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1852 llvm-svn: 192148
-
Nick Kledzik authored
This is the first step in how I plan to get mach-o object files support into lld. We need to be able to test the mach-o Reader and Write on systems without a mach-o tools. Therefore, we want to support a textual way (YAML) to represent mach-o files. MachONormalizedFile.h defines an in-memory abstraction of the content of mach-o files. The in-memory data structures are always native endianess and always use 64-bit sizes. That internal data structure can then be converted to or from three different formats: 1) yaml (text) encoded mach-o, 2) binary mach-o files, 3) lld Atoms. This patch defines the internal model and uses YAML I/O to implement the conversion to and from the model to yaml. The next patch will implement the conversion from normalized to binary mach-o. This patch includes unit tests to validate the yaml conversion APIs. llvm-svn: 192147
-
Justin Bogner authored
In r186373, we started merging attributes on typedefs, but this causes us to try to merge attributes even if the previous declaration was not a typedef. Only merge the attributes if the previous decl was also a typedef. Fixes rdar://problem/15044218 llvm-svn: 192146
-
Manman Ren authored
An updated version of r191586 with bug fix. Struct-path aware TBAA generates tags to specify the access path, while scalar TBAA only generates tags to scalar types. We should not generate a TBAA tag with null being the first field. When a TBAA type node is null, the tag should be null too. Make sure we don't decorate an instruction with a null TBAA tag. Added a testing case for the bug reported by Richard with -relaxed-aliasing and -fsanitizer=thread. llvm-svn: 192145
-