- Jan 02, 2007
-
-
Reid Spencer authored
it used an undefined type name as a parameter argument. This bug in the assembler has been fixed and it is now necessary to define the type. llvm-svn: 32826
-
Reid Spencer authored
llvm-svn: 32825
-
Reid Spencer authored
type of function definitions. This fixes test/Regression/Assember/2007-01-02-Undefined-Arg-Type.ll llvm-svn: 32824
-
Evan Cheng authored
llvm-svn: 32823
-
Evan Cheng authored
- Make use of spillCalleeSavedRegisters() and restoreCalleeSavedRegisters(). llvm-svn: 32822
-
Evan Cheng authored
llvm-svn: 32821
-
Evan Cheng authored
to MRegisterInfo. These allow the target to issue instructions to spill and restore callee saved registers in case where individual stores / loads aren't the correct / profitable choice. llvm-svn: 32820
-
Reid Spencer authored
definitions. The assembler should produce an error on this input. llvm-svn: 32819
-
Jim Laskey authored
llvm-svn: 32818
-
Reid Spencer authored
llvm-svn: 32817
-
Reid Spencer authored
or unsigned integer types. llvm-svn: 32816
-
Reid Spencer authored
Tweak the RUN: lines of these tests to accommodate the renaming of variables done by llvm-upgrade. The renaming occurs as a result of avoiding name collisons for collapsed type planes. Conflicting names have a .u (unsigned) or .s (signed) suffix added. This patch updates the grep expression to accommodate the new names. llvm-svn: 32815
-
Reid Spencer authored
Revert previous patch now that llvm-upgrade can handle collapsed type plane conversion properly. llvm-svn: 32814
-
Reid Spencer authored
semantics are retained. llvm-svn: 32813
-
Reid Spencer authored
Add a test case to ensure that llvm-upgrade retains correct semantics for the previous definition of "cast to bool" which compared against null. llvm-svn: 32812
-
Reid Spencer authored
llvm-svn: 32811
-
Reid Spencer authored
Revise the upgrade parser to keep track of types more faithfully and use this information to resolve name conflicts resulting from collapsed type planes. The type planes have collapsed because the integer types are now signless so that uint and int became i32. Where two planes existed for uint and int, only i32 exists. Any variable names depending on the type planes to pmake the identifier unique would cause a conflict. This patch resolves that conflict for many but not all cases. Situations involving the integer types and pointers to them are handled by this patch. However, there are corner cases that are not handled well, such as: %t1 = type { uint, int } %t2 = type { int, uint } void %myfunc(%t1* one, %t2* two) { %var = load %t1* one %var = load %t2* two } In the scenario above, %t1 and %t2 are really the same type: { i32, i32 } Consequently attempting to name %var twice will yield a redefinition error when assembled. While this patch is sufficien to allow the llvm/test suite to pass, More work needs to be to complete the handling of these corner cases. llvm-svn: 32810
-
Reid Spencer authored
llvm-svn: 32809
-
Reid Spencer authored
llvm-svn: 32808
-
Reid Spencer authored
types from any Cast instruction. llvm-svn: 32807
-
- Jan 01, 2007
-
-
Reid Spencer authored
This serves as a test of that feature. llvm-svn: 32806
-
Reid Spencer authored
llvm-svn: 32805
-
Reid Spencer authored
Remove useless bitcasts by commenting them out. llvm-svn: 32804
-
- Dec 31, 2006
-
-
Reid Spencer authored
llvm-svn: 32803
-
Reid Spencer authored
llvm_uint_ty or llvm_int_ty. Similarly for i8, i16 and i64 llvm-svn: 32802
-
Reid Spencer authored
The lookup of parameter attributes was offset by two because of the additional operands in an invoke instruction. llvm-svn: 32801
-
Reid Spencer authored
llvm-svn: 32800
-
Reid Spencer authored
llvm-svn: 32799
-
Reid Spencer authored
llvm-svn: 32798
-
Reid Spencer authored
conventions as these have been replaced with parameter attributes. llvm-svn: 32797
-
Reid Spencer authored
llvm-svn: 32796
-
Rafael Espindola authored
patch by Lauro bug fixed by me llvm-svn: 32795
-
Reid Spencer authored
index passed in was out of range for the number of parameter attributes set. llvm-svn: 32794
-
Reid Spencer authored
llvm-svn: 32793
-
Reid Spencer authored
llvm-svn: 32792
-
Reid Spencer authored
Update for signless integer types: 1. Replace [us]byte with i8 2. Replace [u]short with i16 3. Replace [u]int with i32 4. Replace [u]long with i64 5. Document the "define" keyword and use it in all examples. 6. Document parameter attributes and how they affect function types. llvm-svn: 32791
-
Reid Spencer authored
Convert signed integer types to signless. llvm-svn: 32790
-
Reid Spencer authored
Update the test suite to accommodate the change from signed integer types to signless integer types. The changes were of only a few kinds: 1. Make sure llvm-upgrade is run on the source which does the bulk of the changes automatically. 2. Change things like "grep 'int'" to "grep 'i32'" 3. In several tests bitcasting caused the same name to be reused in the same type plane. These had to be manually fixed. The fix was (generally) to leave the bitcast and provide the instruction with a new name. This should not affect the semantics of the test. In a few cases, the bitcasts were known to be superfluous and irrelevant to the test case so they were removed. 4. One test case uses a bytecode file which needed to be updated to the latest bytecode format. llvm-svn: 32789
-
Reid Spencer authored
Three changes: 1. Convert signed integer types to signless versions. 2. Implement the @sext and @zext parameter attributes. Previously the type of an function parameter was used to determine whether it should be sign extended or zero extended before the call. This information is now communicated via the function type's parameter attributes. 3. The interface to LowerCallTo had to be changed in order to accommodate the parameter attribute information. Although it would have been convenient to pass in the FunctionType itself, there isn't always one present in the caller. Consequently, a signedness indication for the result type and for each parameter was provided for in the interface to this method. All implementations were changed to make the adjustment necessary. llvm-svn: 32788
-
Reid Spencer authored
Convert signed integer types to signless ones. llvm-svn: 32787
-