- Sep 21, 2012
-
-
Jakob Stoklund Olesen authored
The old-fashioned many-to-one value mapping doesn't always work when merging vector lanes. A value can map to multiple different values, and it can even be necessary to insert new PHIs. When a value number is defined by a copy from a value number that required SSa update, include the live range of the copied value number in the SSA update as well. It is not necessarily a copy of the original value number any longer. llvm-svn: 164329
-
Greg Clayton authored
llvm-svn: 164328
-
Greg Clayton authored
llvm-svn: 164327
-
Eric Christopher authored
llvm-svn: 164326
-
Manman Ren authored
We already have HoistThenElseCodeToIf, this patch implements SinkThenElseCodeToEnd. When END block has only two predecessors and each predecessor terminates with unconditional branches, we compare instructions in IF and ELSE blocks backwards and check whether we can sink the common instructions down. rdar://12191395 llvm-svn: 164325
-
DeLesley Hutchins authored
lock expressions. llvm-svn: 164324
-
- Sep 20, 2012
-
-
Richard Smith authored
but can be dereferenced to form an expression which does have viable begin/end functions, then typo-correct the range, even if something else goes wrong with the statement (such as inaccessible begin/end or the wrong type of loop variable). In order to ensure we recover correctly and produce any followup diagnostics in this case, redo semantic analysis on the for-range statement outside of the diagnostic trap, after issuing the typo-correction. llvm-svn: 164323
-
Greg Clayton authored
Compile shared libraries with dSYM files when requested on darwin. Prior to this, we never had dSYM files for shared libraries unless it was a dylib only Makefile. llvm-svn: 164322
-
rdar://problem/12315386Greg Clayton authored
Test suite to catch fragile base class ivar issues. llvm-svn: 164321
-
Evan Cheng authored
llvm-svn: 164320
-
David Blaikie authored
Patch by Sean McBride. llvm-svn: 164318
-
Benjamin Kramer authored
llvm-svn: 164317
-
Fariborz Jahanian authored
Richard's comments. // rdar://12202422 llvm-svn: 164316
-
David Blaikie authored
This test behavior differs depending (at least) on whether sizeof(wchar_t) == sizeof(int) or not. When they are equal, the first redeclaration will fail because decltype(+L'x') is unsigned int instead of the expected int. This occurs on ARM. llvm-svn: 164315
-
David Blaikie authored
While it might be nice to have a quick end-to-end sanity test, it's just not really the right place for it & would require more work to enable lit to provide a detection flag ("XFAIL: cross" or similar) than the value we get from having this test. Early on it might've made more sense, but these days we've got some pretty good coverage across the stack with more targeted tests. llvm-svn: 164314
-
David Blaikie authored
This is some really old code (took me a while to find the test cases) & the diagnostic text is slightly incorrect (it should really only apply to re/declarations/, redefinitions are an error regardless of whether the types match). Not sure if anyone cares about it, though. For now this just makes the diagnostic more clear in less obvious cases where the type of a declaration might not be explicitly written (eg: because it uses decltype) llvm-svn: 164313
-
Andrew Trick authored
llvm-svn: 164311
-
Sean Callanan authored
We can now read the relevant data structures for the method list, and use a callback mechanism to report their details to the AppleObjCTypeVendor, which constructs appropriate Clang types. llvm-svn: 164310
-
Bill Wendling authored
llvm-svn: 164309
-
Bill Wendling authored
llvm-svn: 164308
-
Bill Wendling authored
llvm-svn: 164307
-
Roman Divacky authored
llvm-svn: 164306
-
Bill Wendling authored
llvm-svn: 164305
-
Daniel Jasper authored
Patch by Gábor Horváth. Review: http://llvm-reviews.chandlerc.com/D45 llvm-svn: 164304
-
Benjamin Kramer authored
StmtPrinter: Print floating point literals with the right suffix to disambiguate them from integers. Based on a patch by Olaf Krzikalla, UDL fixes by me. llvm-svn: 164303
-
Nico Weber authored
llvm-svn: 164301
-
NAKAMURA Takumi authored
- Inputs/system-header-simulator.h: Declare strlen() with size_t. - malloc-interprocedural.c: Move the definition of size_t into the header above. Then XFAIL can be pruned. llvm-svn: 164300
-
Alexander Potapenko authored
ASan doesn't play well with -D_FORTIFY_SOURCE, which is enabled by default starting at OS X 10.7 llvm-svn: 164299
-
Daniel Jasper authored
By changing the conversion operator into a conversion constructor, we can enabled based on the template parameters leading to better error messages. E.g.: stmt(decl()) will now create an error message including: note: candidate function not viable: no known conversion from 'clang::ast_matchers::internal::BindableMatcher<clang::Decl>' to 'const clang::ast_matchers::internal::Matcher<clang::Stmt>' for 1st argument llvm-svn: 164298
-
Nadav Rotem authored
llvm-svn: 164297
-
Tim Northover authored
Patch from Amara Emerson. llvm-svn: 164296
-
NAKAMURA Takumi authored
llvm-svn: 164295
-
Jason Molenda authored
llvm-svn: 164291
-
Eric Christopher authored
_BYTE_ORDER define. Patch by David Hill. llvm-svn: 164286
-
Craig Topper authored
Change enum type in a static table to uint8_t instead. Saves about 700 hundred bytes of static data. Change unsigned char in same table to uint8_t for explicitness. llvm-svn: 164285
-
Jason Molenda authored
get FormatManager.cpp to build on no-python platforms again. llvm-svn: 164284
-
Michael Liao authored
llvm-svn: 164283
-
Sean Silva authored
Toctree was not being interlinked properly. llvm-svn: 164282
-
Michael Liao authored
- Rewrite/merge pseudo-atomic instruction emitters to address the following issue: * Reduce one unnecessary load in spin-loop previously the spin-loop looks like thisMBB: newMBB: ld t1 = [bitinstr.addr] op t2 = t1, [bitinstr.val] not t3 = t2 (if Invert) mov EAX = t1 lcs dest = [bitinstr.addr], t3 [EAX is implicit] bz newMBB fallthrough -->nextMBB the 'ld' at the beginning of newMBB should be lift out of the loop as lcs (or CMPXCHG on x86) will load the current memory value into EAX. This loop is refined as: thisMBB: EAX = LOAD [MI.addr] mainMBB: t1 = OP [MI.val], EAX LCMPXCHG [MI.addr], t1, [EAX is implicitly used & defined] JNE mainMBB sinkMBB: * Remove immopc as, so far, all pseudo-atomic instructions has all-register form only, there is no immedidate operand. * Remove unnecessary attributes/modifiers in pseudo-atomic instruction td * Fix issues in PR13458 - Add comprehensive tests on atomic ops on various data types. NOTE: Some of them are turned off due to missing functionality. - Revise tests due to the new spin-loop generated. llvm-svn: 164281
-
Sean Silva authored
LGTM by Michael Spencer llvm-svn: 164280
-