summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Reformatting. Inserted code comments. Cleaned interfaces.Sanjiv Gupta2009-03-202-112/+68
| | | | | | Removed unncessary code. No functionality change. llvm-svn: 67371
* Fixed the comment. No functionality change.Sanjiv Gupta2009-03-201-4/+4
| | | | llvm-svn: 67370
* Revert r67334 and r37349 which break "make check" on Linux.Nick Lewycky2009-03-205-37/+29
| | | | llvm-svn: 67368
* Apply the patch requested in PR3846.Chris Lattner2009-03-201-1/+1
| | | | llvm-svn: 67364
* Added option to enable generating less precise mad (multiply addition)Mon P Wang2009-03-202-1/+21
| | | | | | for those architectures that support the instruction. llvm-svn: 67363
* The last use in a block that doesn't have successorsDan Gohman2009-03-201-0/+5
| | | | | | (return or unreachable) is a kill. llvm-svn: 67357
* Fix typo's.Evan Cheng2009-03-202-3/+3
| | | | llvm-svn: 67349
* Fix the Win32 VS2008 build:Sebastian Redl2009-03-199-17/+24
| | | | | | | | | | - Make type declarations match the struct/class keyword of the definition. - Move AddSignalHandler into the namespace where it belongs. - Correctly call functions from template base. - Some other small changes. With this patch, LLVM and Clang should build properly and with far less noise under VS2008. llvm-svn: 67347
* Added MachineInstr::isRegTiedToDefOperand to check for two-addressness.Evan Cheng2009-03-196-24/+42
| | | | llvm-svn: 67335
* More makefile changes to allow dejagnu tests to pass when system tools ↵Evan Cheng2009-03-195-29/+37
| | | | | | default to a different target from the llvm configuration (e.g. 64-bit gcc and 32-bit llvm). llvm-svn: 67334
* Renamed unittest files to have a consistent {Tt}est suffix.Misha Brukman2009-03-192-0/+0
| | | | llvm-svn: 67326
* SADDO and UADDO are commutative.Dan Gohman2009-03-191-0/+2
| | | | llvm-svn: 67319
* Clear the cached cost when removing a function inDale Johannesen2009-03-194-11/+26
| | | | | | | | | the inliner; prevents nondeterministic behavior when the same address is reallocated. Don't build call graph nodes for debug intrinsic calls; they're useless, and there were typically a lot of them. llvm-svn: 67311
* Add a liveness analysis pass for LLVM IR values. This computesDan Gohman2009-03-194-0/+287
| | | | | | | | | the set of blocks in which values are used, the set in which values are live-through, and the set in which values are killed. For the live-through and killed sets, conservative approximations are used. llvm-svn: 67309
* Fix comment typo.Dale Johannesen2009-03-191-1/+1
| | | | llvm-svn: 67307
* This pass keeps a map of Instructions to Rank numbers,Dale Johannesen2009-03-191-8/+14
| | | | | | | | | and was deleting Instructions without clearing the corresponding map entry. This led to nondeterministic behavior if the same address got allocated to another Instruction within a short time. llvm-svn: 67306
* Fix regression in 'tblgen -gen-clang-diags-defs': Emit the diagnostic kind ↵Ted Kremenek2009-03-191-1/+2
| | | | | | instead of "DIAGNOSTICCONTROLLED". llvm-svn: 67305
* Fix PEI to not walk off the start of a block when an updated instructionChris Lattner2009-03-191-2/+6
| | | | | | is the first in its block. This is PR3842. llvm-svn: 67304
* Fix comment typo.Duncan Sands2009-03-191-1/+1
| | | | llvm-svn: 67302
* Fix a couple glaring whitespace issues. This file isn't internally consistentNick Lewycky2009-03-191-2/+2
| | | | | | either. llvm-svn: 67288
* Remove strange extra semicolons.Nick Lewycky2009-03-194-4/+4
| | | | llvm-svn: 67287
* Add support to tablegen for naming the nodes themselves, not just the operands, Nate Begeman2009-03-195-19/+37
| | | | | | | in selectiondag patterns. This is required for the upcoming shuffle_vector rewrite, and as it turns out, cleans up a hack in the Alpha instruction info. llvm-svn: 67286
* Added support for Mips O32 Calling ConventionBruno Cardoso Lopes2009-03-192-33/+133
| | | | llvm-svn: 67280
* tblgen -gen-clang-diags-options: Output OptionTable entries in lexicographicTed Kremenek2009-03-181-7/+19
| | | | | | order. llvm-svn: 67244
* 'tblgen -gen-clang-diags-options' now outputs the OptionTable:Ted Kremenek2009-03-181-5/+19
| | | | | | | | | | | static const WarningOption OptionTable[] = { {"unused-macros", DIAGS(UnusedMacrosDiags)} ... }; This table is not yet properly sorted. llvm-svn: 67242
* Add another Clang TableGen-backend (-gen-clang-diags-options) for emittingTed Kremenek2009-03-183-0/+116
| | | | | | | | | | | | declarations for controlling groups of warnings. Currently this transforms: def UnusedMacrosDiags : Option<"unused-macros", [pp_macro_not_used]>; into: static const diag::kind UnusedMacrosDiags[] = { diag::pp_macro_not_used }; llvm-svn: 67239
* include the null at the end of a memorybuffer as part of the buffer.Chris Lattner2009-03-181-1/+3
| | | | | | | This allows tblgen to handle include "foo.td" when the quote is exactly the last character in a file. rdar://6695728 llvm-svn: 67232
* These tests are now passing on Darwin because of r67139.Bill Wendling2009-03-183-1/+2
| | | | llvm-svn: 67215
* aha, DAE does have to think about PHI nodes. Many thanks to "Dr Evil" (aka ↵Chris Lattner2009-03-182-3/+14
| | | | | | | | Duncan) for pointing this out :) llvm-svn: 67212
* Fix PR3826 - InstComb assert with vector shift, by not calling ↵Chris Lattner2009-03-182-7/+19
| | | | | | ComputeNumSignBits on a vector. llvm-svn: 67211
* add an assertion to make it clear that PHI nodes are not allowed.Chris Lattner2009-03-181-1/+4
| | | | llvm-svn: 67210
* Explicitly check for StoreInst, do not lose the chance to delete Zhou Sheng2009-03-181-1/+1
| | | | | | unused loads or bitcasts. llvm-svn: 67202
* Revert my previous change on Local.cpp, instead, fix the bug on scalarrepl.Zhou Sheng2009-03-182-4/+1
| | | | | | | If the instruction has no users, it is also not only used by debug info and should not be deleted. llvm-svn: 67194
* Add -relocation-model=pic so that the test worksRafael Espindola2009-03-181-2/+2
| | | | | | both in Linux and Darwin. llvm-svn: 67191
* Fix a bug.Zhou Sheng2009-03-182-0/+3964
| | | | | | If I->use_empty(), this method should return false. llvm-svn: 67180
* Added missing support for widening when splitting an unary op (PR3683)Mon P Wang2009-03-185-4/+109
| | | | | | | and expanding a bit convert (PR3711). In both cases, we extract the valid part of the widen vector and then do the conversion. llvm-svn: 67175
* Add another test case for r64440.Evan Cheng2009-03-181-0/+51
| | | | llvm-svn: 67156
* xfail these tests for now.Evan Cheng2009-03-183-1/+4
| | | | llvm-svn: 67143
* Disable the "call to immediate" optimization on x86-64. It isChris Lattner2009-03-182-4/+12
| | | | | | | | | | | not safe in general because the immediate could be an arbitrary value that does not fit in a 32-bit pcrel displacement. Conservatively fall back to loading the value into a register and calling through it. We still do the optzn on X86-32. llvm-svn: 67142
* Fix PR3807 by inserting 'insertelement' instructions in the normal dest of Chris Lattner2009-03-182-5/+25
| | | | | | an invoke instead of after the invoke (in its block), which is invalid. llvm-svn: 67139
* A more proper -mtriple.Bill Wendling2009-03-181-1/+1
| | | | llvm-svn: 67138
* Temporary fix. I think Rafael wanted this to be Linux-only.Bill Wendling2009-03-181-1/+1
| | | | llvm-svn: 67137
* LSR shouldn't ever try to hack on integer IV's larger than 64-bits. Right nowChris Lattner2009-03-172-0/+98
| | | | | | | | | it is not APInt clean, but even when it is it needs to be evaluated carefully to determine whether it is actually profitable. This fixes a crash on PR3806 llvm-svn: 67134
* Don't force promotion of return arguments on the callee.Rafael Espindola2009-03-1717-38/+37
| | | | | | | Some architectures (like x86) don't require it. This fixes bug 3779. llvm-svn: 67132
* Add BUILTIN_EXPECT Support/Compiler macro.Daniel Dunbar2009-03-172-1/+8
| | | | | | | | | - Use for exceptional buffer conditions in raw_ostream:write to shave off a cycle or two. - Please rename if you have a better one. llvm-svn: 67103
* this is apparently passing now. Evan/Dan, please checkChris Lattner2009-03-171-1/+0
| | | | | | | to see if this is producing the expected code or not, I'm not sure what the test was intended to check. llvm-svn: 67099
* test case for rev. 67095.Devang Patel2009-03-171-0/+14
| | | | llvm-svn: 67096
* Fix codegen to compute the size of an allocation by multiplying theChris Lattner2009-03-172-8/+27
| | | | | | | | | | | size by the array amount as an i32 value instead of promoting from i32 to i64 then doing the multiply. Not doing this broke wrap-around assumptions that the optimizers (validly) made. The ultimate real fix for this is to introduce i64 version of alloca and remove mallocinst. This fixes PR3829 llvm-svn: 67093
* Remove a condition which is always true.Chris Lattner2009-03-171-3/+3
| | | | llvm-svn: 67089
* Add newline at end of file.Evan Cheng2009-03-171-1/+1
| | | | llvm-svn: 67085
OpenPOWER on IntegriCloud