aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/AutoUpgrade.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Undo a patch that breaks llvm-as because the warning message is written toReid Spencer2006-05-301-1/+1
| | | | | | | | stdout when the output of llvm-as is also written to stdout. We'll have to fix tcl some other way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28557 91177308-0d34-0410-b5e6-96231b3b80d8
* Write the WARNING message to cout instead of cerr. Writing to cerr causesReid Spencer2006-05-301-1/+1
| | | | | | | | Tcl to claim that the program had an error and thus produces errors in the dejagnu testing when its really just a warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28556 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't emit useless warning messages.Reid Spencer2006-04-121-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27617 91177308-0d34-0410-b5e6-96231b3b80d8
* Cast instruction not inserted into basic block.Jim Laskey2006-03-251-41/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27122 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some more bulletproofing to auto upgrade of llvm.dbg intrinsics.Jim Laskey2006-03-231-13/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26996 91177308-0d34-0410-b5e6-96231b3b80d8
* Change the argument types of llvm.dbg intrinsics.Jim Laskey2006-03-231-23/+64
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26985 91177308-0d34-0410-b5e6-96231b3b80d8
* Bugfix, unbreaking CodeGen/PowerPC/cttz.llChris Lattner2006-03-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26764 91177308-0d34-0410-b5e6-96231b3b80d8
* 1. Handle removal of all arguments for a morphed intrinsic.Jim Laskey2006-03-141-1/+4
| | | | | | | 2. Remove the declaration of llvm.dbg.declare. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26745 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle the removal of the debug chain.Jim Laskey2006-03-131-47/+99
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26729 91177308-0d34-0410-b5e6-96231b3b80d8
* autoupgrade memcpy/memmove/memset with signed counts.Chris Lattner2006-03-091-4/+12
| | | | | | | CVS: ---------------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26654 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak autouprade of llvm.sqrt, simplify some code.Chris Lattner2006-03-031-38/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26506 91177308-0d34-0410-b5e6-96231b3b80d8
* Split memcpy/memset/memmove intrinsics into i32/i64 versions, resolvingChris Lattner2006-03-021-133/+116
| | | | | | | | | | | | PR709, and paving the way for future progress. Significantly refactor autoupgrading code, to handle the more complex case (where we upgrade one argument in a function), and fix some bugs in it. Testcase here: llvm/test/Regression/Bytecode/memcpy.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26474 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix auto-upgrade of intrinsics to work properly with both assembly andReid Spencer2006-01-271-28/+98
| | | | | | | | bytecode reading. This code is crufty, the result of much hacking to get things working correctly. Cleanup patches will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25682 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR411:Reid Spencer2006-01-231-7/+6
| | | | | | | | | No functionality changes, just improve the code by a) providing better function names, b) eliminating a call to get_suffix and c) tightening up a function elimination test to reduce further checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25540 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead expression.Chris Lattner2006-01-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25480 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't use invalidated use_iterator's. This fixes a crash compiling povrayChris Lattner2006-01-201-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25479 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't forget about casting the result of an upgraded call to an intrinsicReid Spencer2006-01-191-1/+4
| | | | | | | in the case where it needs to cast back to a signed type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25447 91177308-0d34-0410-b5e6-96231b3b80d8
* Make get_suffix faster by using a switch on getTypeID rather than a seriesReid Spencer2006-01-191-12/+9
| | | | | | | of comparisons on the various type objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25441 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new interface function to AutoUpgrade for simultaneously upgradingReid Spencer2006-01-191-59/+150
| | | | | | | | | the Function and the CallInst: UpgradeCallsToIntrinsic(Function*). Also, re-factor the AutoUpgrade implementation to eliminate some duplication of code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25432 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR411:Reid Spencer2006-01-161-0/+105
This file makes the helper functions for auto-upgrade of llvm assembly and bytecode more accessible. This is part of de-overloading of intrinsic functions to support the flat symbol table (no type planes). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25365 91177308-0d34-0410-b5e6-96231b3b80d8