summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [Windows] Split the back reference tests into two separate files as the ↵Timur Iskhodzhanov2012-07-122-98/+99
| | | | | | templates are getting hairy llvm-svn: 160131
* Provide more information when process launch can't change directory to theFilipe Cabecinhas2012-07-122-4/+22
| | | | | | | | path passed with -w Test this functionality. llvm-svn: 160130
* The LIT tests below do not specify the exact cpu model and fail on AVX2 ↵Nadav Rotem2012-07-125-9/+9
| | | | | | | | machines, because we select different instructions such as vbroadcast, new shuffles, etc. Patch by Michael Liao. llvm-svn: 160129
* detabifyGabor Greif2012-07-121-2/+2
| | | | llvm-svn: 160128
* fix typo in generated commentGabor Greif2012-07-121-1/+1
| | | | llvm-svn: 160127
* test/CodeGen/rdrand-builtins.c: Define __MM_MALLOC_H before including ↵NAKAMURA Takumi2012-07-121-1/+2
| | | | | | | | <*mmintrin.h> . Rawr! llvm-svn: 160125
* llvm/test/CodeGen/X86/rdrand.ll: Relax expression corresponding to Win64 CC.NAKAMURA Takumi2012-07-121-7/+7
| | | | llvm-svn: 160124
* llvm/test/CMakeLists.txt: Add llvm-diff to deps.NAKAMURA Takumi2012-07-121-1/+3
| | | | llvm-svn: 160123
* Don't include mm_malloc.h in test, it pulls in system headers on msvc.Benjamin Kramer2012-07-121-0/+3
| | | | llvm-svn: 160122
* [Windows] Use thiscall as the default calling convention for class methods. ↵Timur Iskhodzhanov2012-07-129-26/+130
| | | | | | PR12785 llvm-svn: 160121
* Use %s instead of the explicit name, the latter doesn't work in out-of-tree ↵Benjamin Kramer2012-07-121-1/+1
| | | | | | builds. llvm-svn: 160120
* Add _rdrand{16,32,64}_step intrinsics to immintrin.hBenjamin Kramer2012-07-124-0/+71
| | | | llvm-svn: 160118
* Add intrinsics for Ivy Bridge's rdrand instruction.Benjamin Kramer2012-07-125-3/+107
| | | | | | | | | The rdrand/cmov sequence is the same that is emitted by both GCC and ICC. Fixes PR13284. llvm-svn: 160117
* The result type of EXTRACT_VECTOR_ELT doesn't have to match the element type ofDuncan Sands2012-07-122-0/+30
| | | | | | | | | the input vector, it can be bigger (this is helpful for powerpc where <2 x i16> is a legal vector type but i16 isn't a legal type, IIRC). However this wasn't being taken into account by ExpandRes_EXTRACT_VECTOR_ELT, causing PR13220. Lightly tweaked version of a patch by Michael Liao. llvm-svn: 160116
* This commit combines three patches to the ASTMatchers.Daniel Jasper2012-07-122-12/+100
| | | | | | | | | | | | | | One adds matchers for the various parts of a for loop (initializer, condition, increment), as well as extending the hasBody matcher to work for while and do-while loops. The second patch adds an isInteger matcher for types. The third patch fixes a bug in allOf, where a few of the name chages (AllOf --> allOf) had been missed. All matchers come with unit tests. Patches by Sam Panzer! llvm-svn: 160115
* Be lax about trailing whitespace when checking fixit formatting, this ↵Benjamin Kramer2012-07-121-2/+2
| | | | | | | | | | depends on locale settings. If a non-unicode locale is used, the unicode character is escaped and any byte that is in the escaped representation but not the semicolon will become whitespace. llvm-svn: 160113
* PR13312: Don't crash when printing a fixit that ends in a unicode character.Benjamin Kramer2012-07-122-1/+21
| | | | llvm-svn: 160112
* [clang.py] Implement Token APIGregory Szorc2012-07-126-16/+345
| | | | llvm-svn: 160111
* Update GATHER instructions to support 2 read-write operands. Patch from ↵Craig Topper2012-07-127-30/+77
| | | | | | myself and Manman Ren. llvm-svn: 160110
* [clang.py] Add TranslationUnit.get_{file,source_location,source_range}Gregory Szorc2012-07-122-0/+127
| | | | llvm-svn: 160107
* [clang.py] Refactor how ctypes functions are registeredGregory Szorc2012-07-121-589/+569
| | | | llvm-svn: 160106
* Process #pragma visibility early in the parsing of class definitions. FixesRafael Espindola2012-07-122-4/+21
| | | | | | pr13338. llvm-svn: 160105
* Ignore visibility attributes after definitions. This matches newer (4.7) gcc'sRafael Espindola2012-07-124-8/+15
| | | | | | behavior and is the first step in fixing pr13338. llvm-svn: 160104
* Revert r160052, "Default to -std=c++11 on Windows.", for now.NAKAMURA Takumi2012-07-121-5/+2
| | | | | | | | | Failing Tests (3): Clang :: Index/complete-cxx-inline-methods.cpp Clang :: Index/recursive-cxx-member-calls.cpp Clang :: SemaTemplate/inject-templated-friend-post.cpp llvm-svn: 160103
* Add the ObjFW runtime. Patch by Jonathan Schleifer!John McCall2012-07-127-6/+65
| | | | llvm-svn: 160102
* Instcombine was transforming:Evan Cheng2012-07-122-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | %shr = lshr i64 %key, 3 %0 = load i64* %val, align 8 %sub = add i64 %0, -1 %and = and i64 %sub, %shr ret i64 %and to: %shr = lshr i64 %key, 3 %0 = load i64* %val, align 8 %sub = add i64 %0, 2305843009213693951 %and = and i64 %sub, %shr ret i64 %and The demanded bit optimization is actually a pessimization because add -1 would be codegen'ed as a sub 1. Teach the demanded constant shrinking optimization to check for negated constant to make sure it is actually reducing the width of the constant. rdar://11793464 llvm-svn: 160101
* Add a command channel to wait on along with the file descriptor the ↵Jim Ingham2012-07-122-52/+112
| | | | | | | | ConnectionFileDescriptor class is managing, so we can always pop ourselves out of our select call regardless of how well behaved the channel we are talking to is. <rdar://problem/11448282> llvm-svn: 160100
* Added a mutex to the call frame info to guardSean Callanan2012-07-122-1/+8
| | | | | | | | generation of the FDE index. <rdar://problem/11813705> llvm-svn: 160099
* TableGen: Location information for diagnostic.Jim Grosbach2012-07-121-1/+1
| | | | | | | | | | | def Pat<...>; Results in 'record name is not a string!' diagnostic. Not the best, but the lack of location information moves it from not very helpful into completely useless. We're in the Record class when throwing the error, so just add the location info directly. llvm-svn: 160098
* AST/CommentSema.cpp: Fix signess in abs() to appease msvc. It would not make ↵NAKAMURA Takumi2012-07-121-1/+2
| | | | | | sense to pass (unsigned)-(unsigned) to abs(). llvm-svn: 160097
* clang/lib/Basic/CMakeLists.txt: Add missing dependency, ClangDiagnosticComment.NAKAMURA Takumi2012-07-121-0/+1
| | | | llvm-svn: 160096
* Add a new 'target modules show-unwind' command to show the differentJason Molenda2012-07-123-0/+271
| | | | | | | | | | | | UnwindPlans for a function. This specifically does not use any previously-generated UnwindPlans so if any logging is performed while creating the UnwindPlans, it will be repeated. This is useful for when an lldb stack trace is not correct and you want to gather diagnostic information from the user -- they can do log enable -v lldb unwind, image show-unwind of the function, and you'll get the full logging as the UnwindPlans are recreated. llvm-svn: 160095
* [analyzer] Don't inline virtual calls unless we can devirtualize properly.Jordan Rose2012-07-126-55/+194
| | | | | | | | Previously we were using the static type of the base object to inline methods, whether virtual or non-virtual. Now, we try to see if the base object has a known type, and if so ask for its implementation of the method. llvm-svn: 160094
* ARM: fix typo in commentsManman Ren2012-07-111-1/+1
| | | | llvm-svn: 160093
* Add OpenCL metadata for kernel arg names. This output is controlled via a ↵Tanya Lattner2012-07-115-0/+45
| | | | | | | | flag as noted in the OpenCL Spec. Includes a test case. llvm-svn: 160092
* Added an editline fix to make the delete key actSean Callanan2012-07-111-0/+1
| | | | | | | | as expected on Mac OS X. <rdar://problem/11813365> llvm-svn: 160091
* ARM: Fix optimizeCompare to correctly check safe condition.Manman Ren2012-07-112-9/+33
| | | | | | | | It is safe if CPSR is killed or re-defined. When we are done with the basic block, check whether CPSR is live-out. Do not optimize away cmp if CPSR is live-out. llvm-svn: 160090
* Don't try to do RVO on block variables that refer to an enclosing local.Nico Weber2012-07-112-4/+19
| | | | | | | Fixes PR13314, clang crashing on blocks refering to an enclosing local when the enclosing function returns void. llvm-svn: 160089
* Stop instantiating a class if we hit a static_assert failure. Also, if theRichard Smith2012-07-119-30/+73
| | | | | | | static_assert fails when parsing the template, don't diagnose it again on every instantiation. llvm-svn: 160088
* Fix warning.Richard Smith2012-07-111-1/+1
| | | | llvm-svn: 160087
* Removed unused variable to quiet a warning.Greg Clayton2012-07-111-1/+0
| | | | llvm-svn: 160086
* Modifying the "address" format, which prints a pointer and a description of ↵Greg Clayton2012-07-113-10/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | what it points to, to detect when the deref of that pointer points to something valid. So if you have: % cat sp.cpp #include <tr1/memory> class A { public: A (): m_i (12) {} virtual ~A() {} private: int m_i; }; int main (int argc, char const *argv[], char const *envp[]) { A *a_pointers[2] = { NULL, NULL }; A a1; A a2; a_pointers[0] = &a1; a_pointers[1] = &a2; return 0; } And you stop at the "return 0", you can now read memory using the "address" format and see: (lldb) memory read --format address `&a_pointers` 0x7fff5fbff870: 0x00007fff5fbff860 -> 0x00000001000010b0 vtable for A + 16 0x7fff5fbff878: 0x00007fff5fbff850 -> 0x00000001000010b0 vtable for A + 16 0x7fff5fbff880: 0x00007fff5fbff8d0 0x7fff5fbff888: 0x00007fff5fbff8c0 0x7fff5fbff890: 0x0000000000000001 0x7fff5fbff898: 0x36d54c275add2294 0x7fff5fbff8a0: 0x00007fff5fbff8b0 0x7fff5fbff8a8: 0x0000000100000bb4 a.out`start + 52 Note the extra dereference that was applied to 0x00007fff5fbff860 and 0x00007fff5fbff850 so we can see that these are "A" classes. llvm-svn: 160085
* Patch for Mips direct object generation.Jack Carter2012-07-111-0/+8
| | | | | | | | | | | | | | | | | When WriteFragmentData() case FT_align called Asm.getBackend().writeNopData() is called, nothing is done since Mips implementation of writeNopData just returned "true". For some reason this has not caused problems in 32 bit mode, but in 64 bit mode it caused an assert when processing multiple function units. The test case included will assert without this patch. It runs twice with different flags to prevent false positives due to changes in code generation over time. llvm-svn: 160084
* Added the ability to search through sections for pointer data.Greg Clayton2012-07-112-53/+145
| | | | llvm-svn: 160083
* Fixup broken doc link. Patch by Sean Silva <silvas@purdue.edu>.Chad Rosier2012-07-112-2/+2
| | | | llvm-svn: 160082
* This change removes an "initialization" warning.Jack Carter2012-07-111-4/+3
| | | | | | | | Even though variable in question could not be initialized before use, the code was such that the compiler had no way of knowing that. llvm-svn: 160081
* If we hit a breakpoint but there's a thread specifier which doesn't match ↵Jim Ingham2012-07-111-8/+14
| | | | | | this thread, return no stop reason. llvm-svn: 160080
* Don't call DoOnRemoval if you are just peeking at events.Jim Ingham2012-07-111-1/+5
| | | | llvm-svn: 160079
* Enable comment parsing and semantic analysis to emit diagnostics. A fewDmitri Gribenko2012-07-1138-149/+1147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | diagnostics implemented -- see testcases. I created a new TableGen file for comment diagnostics, DiagnosticCommentKinds.td, because comment diagnostics don't logically fit into AST diagnostics file. But I don't feel strongly about it. This also implements support for self-closing HTML tags in comment lexer and parser (for example, <br />). In order to issue precise diagnostics CommentSema needs to know the declaration the comment is attached to. There is no easy way to find a decl by comment, so we match comments and decls in lockstep: after parsing one declgroup we check if we have any new, not yet attached comments. If we do -- then we do the usual comment-finding process. It is interesting that this automatically handles trailing comments. We pick up not only comments that precede the declaration, but also comments that *follow* the declaration -- thanks to the lookahead in the lexer: after parsing the declgroup we've consumed the semicolon and looked ahead through comments. Added -Wdocumentation-html flag for semantic HTML errors to allow the user to disable only HTML warnings (but not HTML parse errors, which we emit as warnings in -Wdocumentation). llvm-svn: 160078
* Fixed a bug that caused the Process not to rebroadcastSean Callanan2012-07-111-431/+450
| | | | | | | | | | | | | | the fact that a process exited while running a thread plan. For example, if a user types the expression expr (void)exit(0) then the process terminates but LLDB does not notify listeners like Xcode that this occurred. <rdar://problem/11845155> llvm-svn: 160077
OpenPOWER on IntegriCloud