summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes a typo which prevented proper code gen. forFariborz Jahanian2010-06-082-4/+11
| | | | | | copy-in of c++ class objects into blocks. llvm-svn: 105622
* Implement a warning when converting the literal 'false' to aDouglas Gregor2010-06-084-2/+22
| | | | | | pointer. Original patch by Troy D. Straszheim; fixes PR7283. llvm-svn: 105621
* Use const_iterator where appropriate.Daniel Dunbar2010-06-081-1/+1
| | | | llvm-svn: 105620
* Initial checkin of lldb code from internal Apple repo.Chris Lattner2010-06-08790-0/+216273
| | | | llvm-svn: 105619
* test commitChris Lattner2010-06-081-0/+37
| | | | llvm-svn: 105618
* new trunk dirChris Lattner2010-06-080-0/+0
| | | | llvm-svn: 105617
* DeltaAlgorithm: Tweak split to split by first/second half instead of ↵Daniel Dunbar2010-06-081-2/+2
| | | | | | even/odd, since adjacent changes are more likely to be related. llvm-svn: 105613
* ADT: Add DAGDeltaAlgorithm, which is a DAG minimization algorithm built on ↵Daniel Dunbar2010-06-084-0/+553
| | | | | | | | top of the standard 'delta debugging' algorithm. - This can give substantial speedups in the delta process for inputs we can construct dependency information for. llvm-svn: 105612
* When checking whether we can place a base subobject at an offset, we don't ↵Anders Carlsson2010-06-081-1/+22
| | | | | | need to go past the highest offset that's known to contain an empty base subobject. llvm-svn: 105611
* Add more virtual memory to lit. The python in x86-64 fedora 13 needs it to runRafael Espindola2010-06-081-1/+2
| | | | | | | | | | the llvm tests :-( It was failing with -- Testing: 5324 tests, 8 threads -- Fatal Python error: PyEval_AcquireThread: NULL new thread state llvm-svn: 105610
* Minor cleanups to the empty subobject map.Anders Carlsson2010-06-081-8/+23
| | | | llvm-svn: 105608
* Update LINK_COMPONENTS for examples.Daniel Dunbar2010-06-082-2/+2
| | | | llvm-svn: 105607
* Correctly mangle static variables of anonymous struct/union type.Anders Carlsson2010-06-082-1/+77
| | | | llvm-svn: 105606
* Use realloc instead of malloc+memcpy when growing a POD SmallVector. A smartBenjamin Kramer2010-06-082-12/+16
| | | | | | | realloc implementation can try to expand the allocated memory block in-place, avoiding the copy. llvm-svn: 105605
* Token is POD-like.Benjamin Kramer2010-06-081-0/+5
| | | | llvm-svn: 105604
* Add a checker check if a global variable holds a local variable's address afterZhongxing Xu2010-06-085-0/+111
| | | | | | the function call is left where the local variable is declared. llvm-svn: 105602
* Flag SPU's function call sequence together. Kalle Raiskila2010-06-081-1/+1
| | | | | | | Discussed here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-June/032107.html llvm-svn: 105601
* Fix a valgrind error.Nate Begeman2010-06-081-1/+1
| | | | llvm-svn: 105600
* Fix NEON intrinsic argument passing, support vext. Most now successfully ↵Nate Begeman2010-06-083-79/+109
| | | | | | make it through codegen to the .s file llvm-svn: 105599
* Refine BuiltinsARM.def types a bit, we should do a better job of this to ↵Nate Begeman2010-06-081-2/+4
| | | | | | save some c++ code in CGBuiltins. llvm-svn: 105598
* Implement -fcaret-diagnostics to undo -fno-caret-diagnostics.Jeffrey Yasskin2010-06-082-1/+6
| | | | llvm-svn: 105597
* Add a test to the previous commit.Rafael Espindola2010-06-081-1/+7
| | | | llvm-svn: 105596
* Fix what looks like a merge problem that broke __clear_cache.Rafael Espindola2010-06-081-1/+1
| | | | llvm-svn: 105595
* Add test for previous commit.Rafael Espindola2010-06-081-0/+20
| | | | llvm-svn: 105594
* Since the enum values for each arch's builtins overlap, it is not ↵Nate Begeman2010-06-082-4/+36
| | | | | | appropriate to check them when compiling or other archs. Fixes a problem where compiling for NEON would use x86 sema rules. llvm-svn: 105593
* Fix passing and returning of objects with non trivial copy constructors onRafael Espindola2010-06-081-0/+10
| | | | | | | | ARM. Fixes PR7310. llvm-svn: 105592
* Fix up a comment.Bob Wilson2010-06-081-2/+2
| | | | llvm-svn: 105591
* Implement ARM NEON up through vcvt, alphabetically.Nate Begeman2010-06-083-46/+95
| | | | llvm-svn: 105590
* Extend __builtin_shufflevector to expose the full power of the llvm ↵Nate Begeman2010-06-082-31/+133
| | | | | | shufflevector instruction. This means it can now be used for vector truncation and concatenation. This will be used for the ARM NEON implementation. llvm-svn: 105589
* ARM NEON:Nate Begeman2010-06-082-11/+55
| | | | | | | fix vcvt naming handle vdup, vcombine with generic vector code llvm-svn: 105588
* Further changes for Neon vector shuffles:Bob Wilson2010-06-072-68/+56
| | | | | | | | | | - change isShuffleMaskLegal to show that all shuffles with 32-bit and 64-bit elements are legal - the Neon shuffle instructions do not support 64-bit elements, but we were not checking for that before lowering shuffles to use them - remove some 64-bit element vduplane patterns that are no longer needed llvm-svn: 105586
* Fix a mistake in my previous change r105437: don't access operand 2 and assumeBob Wilson2010-06-071-3/+2
| | | | | | | that it is an immediate before checking that the instruction is an EXTRACT_SUBREG. llvm-svn: 105585
* Driver: Support invoking Clang on .ll or .bc inputs.Daniel Dunbar2010-06-076-20/+54
| | | | | | | | | | | | | | | - We actually pretend that we have two separate types for LLVM assembly/bitcode because we need to use the standard suffixes with LTO ('clang -O4 -c t.c' should generate 't.o'). It is now possible to do something like: $ clang -emit-llvm -S t.c -o t.ll ... assorted other compile flags ... $ clang -c t.ll -o t.o ... assorted other compile flags ... and expect that the output will be almost* identical to: $ clang -c t.c -o t.o ... assorted other compile flags ... because all the target settings (default CPU, target features, etc.) will all be initialized properly by the driver/frontend. *: This isn't perfect yet, because in practice we will end up running the optimization passes twice. It's possible to get something equivalent out with a well placed -mllvm -disable-llvm-optzns, but I'm still thinking about the cleanest way to solve this problem more generally. llvm-svn: 105584
* Frontend: Add CodeGenAction support for handling LLVM IR.Daniel Dunbar2010-06-077-15/+98
| | | | | | | | | | | | | | | | | - This magically enables using 'clang -cc1' as a replacement for most of 'llvm-as', 'llvm-dis', 'llc' and 'opt' functionality. For example, 'llvm-as' is: $ clang -cc1 -emit-llvm-bc FOO.ll -o FOO.bc and 'llvm-dis' is: $ clang -cc1 -emit-llvm FOO.bc -o - and 'opt' is, e.g.: $ clang -cc1 -emit-llvm -O3 -o FOO.opt.ll FOO.ll and 'llc' is, e.g.: $ clang -cc1 -S -o - FOO.ll The nice thing about using the backend tools this way is that they are guaranteed to exactly match how the compiler generates code (for example, setting the same backend options). llvm-svn: 105583
* Frontend: Add FrontendAction support for handling LLVM IR inputs.Daniel Dunbar2010-06-075-3/+30
| | | | | | - These inputs follow an abbreviated execution path, but are still worth handling by FrontendAction so they reuse all the other clang -cc1 features. llvm-svn: 105582
* FrontendAction: Track active file kind.Daniel Dunbar2010-06-073-9/+18
| | | | llvm-svn: 105581
* Frontend: Rename hasASTSupport to hasASTFileSupport, which is more accurate.Daniel Dunbar2010-06-074-8/+9
| | | | llvm-svn: 105580
* Frontend: Move some initialization from CompilerInstance to FrontendAction, ↵Daniel Dunbar2010-06-073-25/+12
| | | | | | to parallel what is done for AST inputs. llvm-svn: 105579
* Frontend: Change FrontendAction::BeginSourceFile to take the input kind ↵Daniel Dunbar2010-06-074-10/+12
| | | | | | instead of an IsAST bool. llvm-svn: 105578
* Frontend: Lift InputKind enumeration to top level.Daniel Dunbar2010-06-076-79/+78
| | | | llvm-svn: 105577
* Frontend: Drop unnecessary TargetData argument to EmitBackendOutput, we alwaysDaniel Dunbar2010-06-073-24/+12
| | | | | | create modules which have target data strings. llvm-svn: 105576
* Frontend: Factor clang::EmitBackendOutput out of CodeGenAction.Daniel Dunbar2010-06-074-327/+393
| | | | llvm-svn: 105575
* Frontend: Add CodeGenOptions::SimplifyLibCalls, and eliminate LangOptions ↵Daniel Dunbar2010-06-073-5/+7
| | | | | | argument to BackendConsumer. llvm-svn: 105574
* Add an svn:ignore.Dan Gohman2010-06-070-0/+0
| | | | llvm-svn: 105573
* Add some basic debug output.Dan Gohman2010-06-071-0/+4
| | | | llvm-svn: 105561
* When using property-dot assignment syntax to call a setter method,Fariborz Jahanian2010-06-073-4/+44
| | | | | | | type of rhs need be compared to setter's argument and not the getter type. Fixes radar 8062778 llvm-svn: 105560
* Tweak test for debug/metadata change, update to FileCheck. Radar 7424645.Stuart Hastings2010-06-071-2/+3
| | | | llvm-svn: 105559
* Handle dbg_value instructions (i.e., skip them) when generating IT blocks.Jim Grosbach2010-06-071-3/+4
| | | | | | rdar://7797940 llvm-svn: 105557
* Plug a leak in the non-error case by removing one level of indirection.Nick Lewycky2010-06-071-6/+4
| | | | llvm-svn: 105556
* Cleanup. Process the dbg_values separatelyJim Grosbach2010-06-071-18/+16
| | | | llvm-svn: 105554
OpenPOWER on IntegriCloud