summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lit: Rename the valgrind leaks feature to match what is currently usedDaniel Dunbar2012-10-192-2/+2
| | | | | | (vg_leak). llvm-svn: 166306
* lit: Remove support for XTARGET.Daniel Dunbar2012-10-195-28/+15
| | | | | | | | - The XTARGET feature (inherited from old DG tests) was just confusing (and barely ever used). The same effect can now be achieved with a combination of the more useful REQUIRES and XFAIL. llvm-svn: 166305
* tests: Fix two tests to just use -triple instead of XFAIL+XTARGET.Daniel Dunbar2012-10-192-6/+3
| | | | llvm-svn: 166304
* lit: Add 'valgrind' and 'valgrind-leaks' features when valgrind is used.Daniel Dunbar2012-10-195-5/+26
| | | | | | - These can be used with the XFAIL options. llvm-svn: 166303
* tests: Stop mangling '-vg' into the triple, we don't use this currently.Daniel Dunbar2012-10-191-4/+0
| | | | | | - Also, lit is going to get a valgrind feature, instead. llvm-svn: 166302
* tests: Stop mangling '-vg' into the triple, we don't use this currently.Daniel Dunbar2012-10-191-5/+0
| | | | | | - Also, lit is going to get a valgrind feature, instead. llvm-svn: 166301
* This patch is to fix radar://8426430. It is about llvm support of ↵Shuxin Yang2012-10-196-6/+37
| | | | | | | | | | | | | | | | | | | | | | | __builtin_debugtrap() which is supposed to consistently raise SIGTRAP across all systems. In contrast, __builtin_trap() behave differently on different systems. e.g. it raises SIGTRAP on ARM, and SIGILL on X86. The purpose of __builtin_debugtrap() is to consistently provide "trap" functionality, in the mean time preserve the compatibility with on gcc on __builtin_trap(). The X86 backend is already able to handle debugtrap(). This patch is to: 1) make front-end recognize "__builtin_debugtrap()" (emboddied in the one-line change to Clang). 2) In DAG legalization phase, by default, "debugtrap" will be replaced with "trap", which make the __builtin_debugtrap() "available" to all existing ports without the hassle of changing their code. 3) If trap-function is specified (via -trap-func=xyz to llc), both __builtin_debugtrap() and __builtin_trap() will be expanded into the function call of the specified trap function. This behavior may need change in the future. The provided testing-case is to make sure 2) and 3) are working for ARM port, and we already have a testing case for x86. llvm-svn: 166300
* IRgen: Initialize TargetLoweringInfo with a triple.Daniel Dunbar2012-10-191-1/+2
| | | | | | | | - We create two TargetLoweringInfo instances for different pass managers, and they weren't consistent (the one for codegen didn't have the right info). I'm not sure this mattered anywhere in practice. llvm-svn: 166299
* add __builtin_debugtrapShuxin Yang2012-10-191-0/+1
| | | | llvm-svn: 166298
* Remove -w write flag to watch set var from tutorial.html.Jason Molenda2012-10-192-6/+6
| | | | | | Fix one gdb example that had an "(lldb)" prompt in the lldb/gdb page. llvm-svn: 166297
* Clarify wording of -Wshift-op-parentheses.David Blaikie2012-10-193-9/+10
| | | | | | Suggestion from Matt Beaumont-Gay reviewing r165283. llvm-svn: 166296
* Rename "macosx-kernel" to "darwin-kernel" to match the filenames before ↵Greg Clayton2012-10-192-3/+3
| | | | | | anyone starts using the settings for this plug-in. llvm-svn: 166295
* Added the infrastructure necessary for plug-ins to be able to add their own ↵Greg Clayton2012-10-1912-30/+231
| | | | | | | | | | | | | | | | | settings instead of having settings added to existing ones. In particular "target.disable-kext-loading" was added to "target" where it should actually be specific to the the dynamic loader plugin. Now the plug-in manager has the ability to create settings at the root level starting with "plugin". Each plug-in type can add new sub dictionaries, and then each plug-in can register a setting dictionary under its own short name. For example the DynamicLoaderDarwinKernel plug-in now registers a setting dictionary at: plugin dynamic-loader macosx-kernel (bool) disable-kext-loading To settings can be set using: (lldb) settings set plugin.dynamic-loader.macosx-kernel.disable-kext-loading true I currently only hooked up the DynamicLoader plug-ins, but the code is very easy to duplicate when and if we need settings for other plug-ins. llvm-svn: 166294
* [ms-inline asm] Set the MCTargetAsmParser as paring MS-style inline asm.Chad Rosier2012-10-191-0/+1
| | | | llvm-svn: 166293
* [ms-inline asm] Add the isParsingInlineAsm() function to the MCAsmTargetParser.Chad Rosier2012-10-192-1/+7
| | | | llvm-svn: 166292
* Indvars: Don't recursively delete instruction during BB iteration.Benjamin Kramer2012-10-192-3/+23
| | | | | | | This can invalidate the iterators leading to use after frees and crashes. Fixes PR12536. llvm-svn: 166291
* Fix some doc-os.Daniel Dunbar2012-10-191-2/+2
| | | | llvm-svn: 166290
* lit: Propagate TERM variable in environment, some tools can do really obscureDaniel Dunbar2012-10-191-0/+1
| | | | | | odd things if this is missing. llvm-svn: 166289
* Lower BUILD_VECTOR to SHUFFLE + INSERT_VECTOR_ELT for X86Michael Liao2012-10-193-1/+96
| | | | | | | | | - If INSERT_VECTOR_ELT is supported (above SSE2, either by custom sequence of legal insn), transform BUILD_VECTOR into SHUFFLE + INSERT_VECTOR_ELT if most of elements could be built from SHUFFLE with few (so far 1) elements being inserted. llvm-svn: 166288
* Remove const_casts by propagating constness down to called functions.Dmitri Gribenko2012-10-194-18/+16
| | | | llvm-svn: 166287
* SCEVExpander: Don't crash when trying to merge two constant phis.Benjamin Kramer2012-10-193-1/+38
| | | | | | Just constant fold them so they can't cause any trouble. Fixes PR12627. llvm-svn: 166286
* Allow objc_requires_super to be used to check class methods as well.Jordan Rose2012-10-196-47/+48
| | | | | | | | | | | | | Also, unify ObjCShouldCallSuperDealloc and ObjCShouldCallSuperFinalize. The two have identical behavior and will never be active at the same time. There's one last simplification now, which is that if we see a call to [super foo] and we are currently in a method named 'foo', we will /unconditionally/ clear the ObjCShouldCallSuper flag, rather than check first to see if we're in a method where calling super is required. There's no reason to pay the extra lookup price here. llvm-svn: 166285
* [ASan] add comment to blacklist file to test behavior introduced in r166283Alexey Samsonov2012-10-191-0/+1
| | | | llvm-svn: 166284
* [ASan] Support comments in ASan/TSan blacklist file as lines starting with #Alexey Samsonov2012-10-192-0/+5
| | | | llvm-svn: 166283
* [ASan] instrumented asan unit tests should depend on blacklist fileAlexey Samsonov2012-10-191-2/+4
| | | | llvm-svn: 166282
* Change VerifyDiagnosticConsumer so that it *must* contain at least one ↵Andy Gibbs2012-10-198-16/+114
| | | | | | | | | | "expected-*" directive. As a result, for test-cases that are not expected to generate any diagnostics, an additional directive "expected-no-diagnostics" has been implemented which can then be included in such test-cases. This new directive may not be used in conjunction with any other "expected-*" directive. This change was initially proposed as a solution to the problem highlighted by check-in r164677, i.e. that -verify will not cause a test-case failure where the compile command does not actually reference the file. Patch reviewed by David Blaikie. llvm-svn: 166281
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-19580-6/+619
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Fix directive parsing in VerifyDiagnosticConsumer so that it ensures that ↵Andy Gibbs2012-10-196-26/+38
| | | | | | | | "expected" is at the start of the word and will no longer accept typos such as "junkexpected-*" as a valid "expected-*" directive. A very few test-cases had to be amended to adhere to the new rule. Patch reviewed by David Blaikie. llvm-svn: 166279
* Move SplitBlockAndInsertIfThen to BasicBlockUtils.Evgeniy Stepanov2012-10-193-35/+68
| | | | llvm-svn: 166278
* LoopVectorize: Keep the IRBuilder on the stack.Benjamin Kramer2012-10-191-41/+36
| | | | | | No functionality change. llvm-svn: 166274
* ARM:Stepan Dyatkovskiy2012-10-193-12/+49
| | | | | | | | Removed extra stack frame object for fixed byval arguments, VarArgsStyleRegisters invocation was reworked due to some improper usage in past. PR14099 also demonstrates it. llvm-svn: 166273
* Revert r166268, this fix for a crash-on-invalid introduced a rejects-valid.Nick Lewycky2012-10-196-56/+16
| | | | | | Richard has an unreduced testcase to work with. llvm-svn: 166272
* [asan] update asan docs to explain more about linking and to mention full ↵Kostya Serebryany2012-10-191-2/+15
| | | | | | support for i386 Linux llvm-svn: 166271
* Pacify -Wnon-virtual-dtor.Nick Lewycky2012-10-192-0/+3
| | | | llvm-svn: 166270
* DR1511: A const volatile global does not implicitly get internal linkage like aRichard Smith2012-10-192-5/+9
| | | | | | const non-volatile global does. llvm-svn: 166269
* PR14124: When performing template instantiation of a qualified-id outside of aRichard Smith2012-10-196-16/+56
| | | | | | class, diagnose if the qualified-id instantiates to a non-static class member. llvm-svn: 166268
* [asan] make sure asan erases old unused allocas after it created a new one. ↵Kostya Serebryany2012-10-192-0/+24
| | | | | | This became important after the recent move from ModulePass to FunctionPass because no cleanup is happening after asan pass any more. llvm-svn: 166267
* Fix handling of the regparm attribute in the presence of classes with copyRafael Espindola2012-10-194-42/+69
| | | | | | | | | | | | | constructors. When I first moved regparm support to TargetInfo.cpp I tried to isolate it in classifyArgumentTypeWithReg, but it is actually a lot easier to flip the code around and check for regparm at the end of the decision tree. Without this refactoring classifyArgumentTypeWithReg would have to duplicate the logic about when to use non-byval indirect arguments. llvm-svn: 166266
* Teach getColumnNumber to use the line cache to get the start of the line if ↵Craig Topper2012-10-191-0/+11
| | | | | | its on the same line as the last call to getLineNumber. Prevents needing to scan backwards for the new line. Fixes PR14106. llvm-svn: 166265
* recommit the patch that makes LSR and LowerInvoke use the TargetTransform ↵Nadav Rotem2012-10-196-92/+101
| | | | | | interface. llvm-svn: 166264
* Reintroduce the TargetTransformInfo to the clang pass manager.Nadav Rotem2012-10-191-1/+5
| | | | llvm-svn: 166263
* Add a new target setting to disable automatic loading of kext imagesJason Molenda2012-10-195-5/+37
| | | | | | | | | | in a kernel debug session: settings set target.disable-kext-loading true <rdar://problem/12490623> llvm-svn: 166262
* clang/test/Index/annotate-comments.cpp: Relax the expression to be matched ↵NAKAMURA Takumi2012-10-191-4/+1
| | | | | | | | to -fms-compatibility. Then XFAIL can be removed. FYI, it can be reproduced with "c-index-test -std=c++11 -fms-compatibility". llvm-svn: 166261
* Simplify condition checking as CONCAT assume all inputs of the same type.Michael Liao2012-10-191-3/+3
| | | | llvm-svn: 166260
* typeo fix in commentJason Molenda2012-10-191-2/+2
| | | | llvm-svn: 166259
* Change CommunicationKDP::SendRequestWriteMemory to append data as binaryJason Molenda2012-10-192-1/+4
| | | | | | instead of asciified bytes. <rdar://problem/12522978> llvm-svn: 166258
* ASTWriter.cpp: Fix a warning. [-Wunused-variable]NAKAMURA Takumi2012-10-191-2/+1
| | | | llvm-svn: 166257
* Fixed a bug where empty C structs were given sizeSean Callanan2012-10-191-0/+21
| | | | | | | | | | | 1 by the expression parser. We now correctly report that they are of size 0. (C++ structs are mandated to have nonzero size, and Clang marks them as being 1 byte in size.) <rdar://problem/12380800> llvm-svn: 166256
* vectorizer: Add support for reading and writing from the same memory location.Nadav Rotem2012-10-192-2/+44
| | | | llvm-svn: 166255
* Handle diamond inheritance in -Woverloaded-virtual.David Blaikie2012-10-192-13/+69
| | | | llvm-svn: 166254
OpenPOWER on IntegriCloud