summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the iOS simulator platform:Sean Callanan2012-10-201-9/+1
| | | | | | | | | | - Fixed a crash when the executable module couldn't be found. - Fixed a problem that made it impossible to attach to processes in the simulator using the SBTarget::Attach. llvm-svn: 166355
* LoopVectorize: Keep the IRBuilder on the stack.Nadav Rotem2012-10-191-40/+35
| | | | llvm-svn: 166354
* [ms-inline asm] Test case for r166349 and r166352.Chad Rosier2012-10-191-0/+13
| | | | llvm-svn: 166353
* [ms-inline asm] Continue parsing even when we're in an ignore block.Chad Rosier2012-10-191-1/+1
| | | | llvm-svn: 166352
* Vectorizer: Add support for loop reductions.Nadav Rotem2012-10-194-111/+515
| | | | | | | | | For example: for (i=0; i<n; i++) sum += A[i] + B[i] + i; llvm-svn: 166351
* 1. Remove noreturn attribute from __builtin_debugtrap().Shuxin Yang2012-10-192-3/+3
| | | | | | | | (The change at Clang side was committed in r166345) 2. Cosmetic change in order to conform to coding standards. llvm-svn: 166350
* [ms-inline asm] Reset the opcode prior to parsing a statement.Chad Rosier2012-10-192-4/+6
| | | | llvm-svn: 166349
* [Options] Make Option non clang specific.Michael J. Spencer2012-10-195-37/+35
| | | | llvm-svn: 166348
* [Options] make Option a value type.Michael J. Spencer2012-10-199-99/+112
| | | | llvm-svn: 166347
* <rdar://problem/12491387>Greg Clayton2012-10-199-7/+403
| | | | | | | | | | Added commands to the KDP plug-in that allow sending raw commands through the KDP protocol. You specify a command byte and a payload as ASCII hex bytes, and the packet is created with a valid header/sequenceID/length and sent. The command responds with a raw ASCII hex string that contains all bytes in the reply including the header. An example of sending a read register packet for the GPR on x86_64: (lldb) process plugin packet send --command 0x07 --payload 0100000004000000 llvm-svn: 166346
* remove noreturn attribute from __builtin_debugtrapShuxin Yang2012-10-191-1/+1
| | | | llvm-svn: 166345
* [mips] Use 64-bit registers to return an sret pointer if target ABI is N64.Akira Hatanaka2012-10-192-2/+18
| | | | llvm-svn: 166344
* Grammar-o.Eric Christopher2012-10-191-1/+1
| | | | llvm-svn: 166343
* [mips] Add code to do tail call optimization.Akira Hatanaka2012-10-193-5/+144
| | | | | | | Currently, it is enabled only if option "enable-mips-tail-calls" is given and all of the callee's arguments are passed in registers. llvm-svn: 166342
* [mips] Fix TAILCALL's operand node type.Akira Hatanaka2012-10-191-5/+11
| | | | llvm-svn: 166341
* revert r166264 because the LTO build is still failingNadav Rotem2012-10-196-101/+92
| | | | llvm-svn: 166340
* [mips] Delete MipsFunctionInfo::MaxCallFrameSize which is no longer used.Akira Hatanaka2012-10-192-10/+1
| | | | llvm-svn: 166339
* [mips] Add tail call instructions.Akira Hatanaka2012-10-192-0/+12
| | | | llvm-svn: 166338
* [mips] Make the branch nodes used in jump instructions a template parameter.Akira Hatanaka2012-10-191-10/+21
| | | | llvm-svn: 166337
* Add node and enum for mips tail call.Akira Hatanaka2012-10-193-0/+8
| | | | llvm-svn: 166318
* [ms-inline asm] Update testcase for r166316.Chad Rosier2012-10-191-2/+12
| | | | llvm-svn: 166317
* [ms-inline asm] Have the TargetParser callback to Sema to determine the size ofChad Rosier2012-10-193-14/+70
| | | | | | | a memory operand. Retain this information and then add the sizing directives to the IR. This allows the backend to do proper instruction selection. llvm-svn: 166316
* Change the name of the variable used to detect if we are loading kexts to ↵Greg Clayton2012-10-191-6/+6
| | | | | | | | | "load-kexts" instead of "disable-kext-loading" since the value is a boolean. This was requested by the person who requested the feature. It now defaults to true: (lldb) settings show plugin.dynamic-loader.darwin-kernel.load-kexts plugin.dynamic-loader.darwin-kernel.load-kexts (boolean) = true llvm-svn: 166315
* Add 'IntrNoReturn' for longjmp intrinsicsMichael Liao2012-10-191-3/+3
| | | | llvm-svn: 166314
* SimplifyLibcalls: The return value of ffsll is always i32, even when the ↵Benjamin Kramer2012-10-192-5/+14
| | | | | | | | input is zero. Fixes PR13028. llvm-svn: 166313
* [ms-inline asm] Revert accidental commit. Sorry for the churn.Chad Rosier2012-10-191-24/+1
| | | | llvm-svn: 166312
* Pretty-print a ParenListExpr in a variable initializer correctly. Patch by ↵Eli Friedman2012-10-192-2/+10
| | | | | | Grzegorz Jablonski. llvm-svn: 166311
* [ms-inline asm] Set the SemaCallback in the TargetAsmParser.Chad Rosier2012-10-192-2/+27
| | | | llvm-svn: 166310
* Fix a build error for ocaml bindings that was introduced with the TargetData ↵Micah Villmow2012-10-191-1/+1
| | | | | | --> DataLayout changes. llvm-svn: 166309
* [ms-inline asm] Add a MCAsmParserSemaCallback to the TargetAsmParser.Chad Rosier2012-10-191-0/+8
| | | | llvm-svn: 166308
* 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
OpenPOWER on IntegriCloud