- Dec 31, 2006
-
-
Reid Spencer authored
Convert signed integer types to signless ones. llvm-svn: 32787
-
Reid Spencer authored
Convert signed integer types to signless. llvm-svn: 32786
-
Reid Spencer authored
This patch replaces signed integer types with signless ones: 1. [US]Byte -> Int8 2. [U]Short -> Int16 3. [U]Int -> Int32 4. [U]Long -> Int64. 5. Removal of isSigned, isUnsigned, getSignedVersion, getUnsignedVersion and other methods related to signedness. In a few places this warranted identifying the signedness information from other sources. llvm-svn: 32785
-
Reid Spencer authored
Don't attempt to parse both the old and new grammars. It is near impossible to get it right. Remove support for the new define keyword and don't attempt to insert parameter attributes because there isn't enough contextual information for it. llvm-svn: 32784
-
Reid Spencer authored
Update for signless integer types and parameter attribute implementation. Of significant note: 1. This changes the bytecode format yet again. 2. There are 1/2 as many integer type planes (this is a good thing) 3. GEP indices now use only 1 bit to identify their type which means more GEP instructions won't be relegated to format 0 (size win) 4. Parameter attributes are implemented but currently being stored verbosely for each function type. Some other day this needs to be optimized for size. llvm-svn: 32783
-
Reid Spencer authored
Regenerate llvm-svn: 32782
-
Reid Spencer authored
Major reorganization. This patch introduces the signedness changes for the new integer types (i8, i16, i32, i64) which replace the old signed versions (ubyte, sbyte, ushort, short, etc). This patch also implements the function type parameter attributes feature. Together these conspired to introduce new reduce/reduce errors into the grammar. Consequently, it was necessary to introduce a new keyword into the grammar in order to disambiguate. Without this, yacc would make incorrect shift/reduce and reduce/reduce decisions and fail to parse the intended assembly. Changes in assembly: 1. The "implementation" keyword is superfluous but still supported. You can use it as a sentry which will ensure there are no remaining up reference types. However, this is optional as those checks are also performed elsewhere. 2. Parameter attributes are now implemented using an at sign to indicate the attribute. The attributes are placed after the type in a function declaration or after the argument value in a function call. For example: i8 @sext %myfunc(i16 @zext) call i8 @sext %myfunc(i16 @zext %someVal) The facility is available for supporting additional attributes and they can be combined using the @(attr1,attr2,attr3) syntax. Right now the only two supported are @sext and @zext 3. Functions must now be defined with the "define" keyword which is analagous to the "declare" keyword for function declarations. The introduction of this keyword disambiguates situations where a named result type is confused with a new type or gvar definition. For example: %MyType = type i16 %MyType %func(%MyType) { ... } With the introduction of optional parameter attributes between the function name and the function result type, yacc will pick the wrong rule to reduce unless it is disambiguated with "define" before the function definition, as in: define %MyType @zext %func(%MyType %someArg) { ... } llvm-svn: 32781
-
Reid Spencer authored
Change signed integer type names to unsigned equivalents. llvm-svn: 32780
-
Reid Spencer authored
Implement signless integer types and FunctionType parameter attributes. llvm-svn: 32779
-
Reid Spencer authored
* Change integer type name from signed to signless * Implement printing of FunctionType parameter attributes. llvm-svn: 32778
-
Reid Spencer authored
Change integer type names for signless integer types llvm-svn: 32777
-
Reid Spencer authored
Add a new feature to FunctionType, Parameter Attributes. This allows tags such as "sext" and "zext" to be associated with a faunction's arguments or return type. This allows signedness information to be carried forward from the frontend to the backend for arguments and result types. llvm-svn: 32776
-
Reid Spencer authored
Make integer types signless: Rename [US]Byte->Int8, [U]Short->Int16, [U]Int->Int32, [U]Long->Int64 Remove methods pertaining to sign of integer types. llvm-svn: 32775
-
Nick Lewycky authored
llvm-svn: 32774
-
- Dec 30, 2006
-
-
Reid Spencer authored
depend on the compiler. This works around problems in the Stacker runtime when the CFE changes in such a way that the assembly file needs to be updated. llvm-svn: 32773
-
- Dec 29, 2006
-
-
Reid Spencer authored
llvm-svn: 32772
-
Reid Spencer authored
Fix several bugs and update for new assembly syntax. Changes made include: 1. Fixing rules for icmp/fcmp instructions to not require a closing paren at the end. This was a cut-and-paste error from a previous commit. 2. Changing things like Out << " " to Out << ' ' 3. Adding the "define" keyword for function definitions 4. Adding support for packed structures llvm-svn: 32771
-
Reid Spencer authored
Remove all grammar conflicts from assembly parsing. This change involves: 1. Making the "type" keyword not a primitive type (removes several reduce/reduce conflicts) 2. Being more specific about which linkage types are allowed for functions and global variables. In particular "appending" can no longer be specified for a function. A differentiation was made between the various internal and external linkage types. 3. Introduced the "define" keyword which is now required when defining a function. This disambiguates several cases where a named function return type could get confused with the definition of a new type. Using the keyword eliminates all shift/reduce conflicts and the remaining reduce/reduce conflicts. These changes are necessary to implement the function parameter attributes that will be introduced soon. Adding the function parameter attributes in the presence of the shift/reduce and reduce/reduce conflicts led to severe ambiguities that caused the parser to report syntax errors that needed to be resolved. This patch resolves them. llvm-svn: 32770
-
Reid Spencer authored
llvm-svn: 32769
-
Reid Spencer authored
for upcoming changes to the llvm assembly grammar. llvm-svn: 32768
-
Rafael Espindola authored
llvm-svn: 32767
-
Reid Spencer authored
protected have been removed. llvm-svn: 32766
-
Reid Spencer authored
llvm-svn: 32765
-
- Dec 28, 2006
-
-
Reid Spencer authored
sign and zero extension in function calls. llvm-svn: 32764
-
Lauro Ramos Venancio authored
llvm-svn: 32763
-
Lauro Ramos Venancio authored
llvm-svn: 32762
-
Rafael Espindola authored
bug noticed by Lauro llvm-svn: 32761
-
- Dec 26, 2006
-
-
Lauro Ramos Venancio authored
arm. llvm-svn: 32760
-
- Dec 24, 2006
-
-
Reid Spencer authored
1. Make the arguments const like the other ConstantFold* functions. 2. Clean up evaluateFCmpRelation so it makes sense for floating point. 3. Implement the use of evaluateFCmpRelation to fold floating point CEs 4. Shorten a variable name so more things fit on one line. 5. Fix various comments. llvm-svn: 32759
-
Reid Spencer authored
llvm-svn: 32758
-
Reid Spencer authored
Fix this by ensuring that a bitcast is inserted to do sign switching. This is only temporarily needed as the merging of signed and unsigned is next on the SignlessTypes plate. llvm-svn: 32757
-
- Dec 23, 2006
-
-
Reid Spencer authored
correctly and emit "may be used uninitialized" warnings. llvm-svn: 32756
-
Reid Spencer authored
llvm-svn: 32755
-
Reid Spencer authored
llvm-svn: 32754
-
Reid Spencer authored
Don't allow CmpInst instances to be processed in FoldSelectOpOp because you can't easily swap their operands. llvm-svn: 32753
-
Reid Spencer authored
llvm-svn: 32752
-
Reid Spencer authored
This patch removes the SetCC instructions and replaces them with the ICmp and FCmp instructions. The SetCondInst instruction has been removed and been replaced with ICmpInst and FCmpInst. llvm-svn: 32751
-
Chris Lattner authored
llvm-svn: 32750
-
- Dec 22, 2006
-
-
Devang Patel authored
llvm-svn: 32749
-
Devang Patel authored
llvm-svn: 32748
-