summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/Writer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* For PR761:Reid Spencer2007-01-261-11/+5
| | | | | | | Remove the Endianness and PointerSize fields from the ModuleHeader and replace it with the DataLayout field. llvm-svn: 33529
* Back out last changes for dataLayout. Much more work is needed.Reid Spencer2007-01-191-3/+0
| | | | llvm-svn: 33347
* For PR761:Reid Spencer2007-01-181-0/+3
| | | | | | Implement reading and writing of the Module's data layout string. llvm-svn: 33346
* rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger.Chris Lattner2007-01-151-1/+1
| | | | | | | | | rename Type::getIntegralTypeMask to Type::getIntegerTypeMask. This makes naming much more consistent. For example, there are now no longer any instances of IntegerType that are not considered isInteger! :) llvm-svn: 33225
* Make sure that GEP indices are only 32 or 64 bits. We're not ready forReid Spencer2007-01-131-6/+10
| | | | | | indices with other bit sizes yet. llvm-svn: 33167
* remove unneeded special case for boolChris Lattner2007-01-121-6/+1
| | | | llvm-svn: 33156
* * PIC codegen for X86/Linux has been implementedAnton Korobeynikov2007-01-121-5/+17
| | | | | | | | * PIC-aware internal structures in X86 Codegen have been refactored * Visibility (default/weak) has been added * Docs fixes (external weak linkage, visibility, formatting) llvm-svn: 33136
* For PR1064:Reid Spencer2007-01-121-29/+33
| | | | | | | | | | | | | | | | | | | | | | | Implement the arbitrary bit-width integer feature. The feature allows integers of any bitwidth (up to 64) to be defined instead of just 1, 8, 16, 32, and 64 bit integers. This change does several things: 1. Introduces a new Derived Type, IntegerType, to represent the number of bits in an integer. The Type classes SubclassData field is used to store the number of bits. This allows 2^23 bits in an integer type. 2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and 64-bit integers. These are replaced with just IntegerType which is not a primitive any more. 3. Adjust the rest of LLVM to account for this change. Note that while this incremental change lays the foundation for arbitrary bit-width integers, LLVM has not yet been converted to actually deal with them in any significant way. Most optimization passes, for example, will still only deal with the byte-width integer types. Future increments will rectify this situation. llvm-svn: 33113
* Implement review feedback for the ConstantBool->ConstantInt merge. ChrisReid Spencer2007-01-121-1/+1
| | | | | | | | recommended that getBoolValue be replaced with getZExtValue and that get(bool) be replaced by get(const Type*, uint64_t). This implements those changes. llvm-svn: 33110
* Rename BoolTy as Int1Ty. Patch by Sheng Zhou.Reid Spencer2007-01-111-1/+1
| | | | llvm-svn: 33076
* For PR1043:Zhou Sheng2007-01-111-1/+1
| | | | | | | Merge ConstantIntegral and ConstantBool into ConstantInt. Remove ConstantIntegral and ConstantBool from LLVM. llvm-svn: 33073
* For PR411:Reid Spencer2007-01-061-11/+24
| | | | | | | | | Take an incremental step towards type plane elimination. This change separates types from values in the symbol tables by finally making use of the TypeSymbolTable class. This yields more natural interfaces for dealing with types and unclutters the SymbolTable class. llvm-svn: 32956
* For PR950:Reid Spencer2006-12-311-21/+14
| | | | | | | | | | | | | | 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
* switch statistics over to not use static ctors.Chris Lattner2006-12-191-2/+2
| | | | llvm-svn: 32709
* This snuck in. Reverted.Bill Wendling2006-12-171-2/+0
| | | | llvm-svn: 32638
* Added an automatic cast to "std::ostream*" etc. from OStream. We then canBill Wendling2006-12-171-0/+2
| | | | | | | rework the hacks that had us passing OStream in. We pass in std::ostream* instead, check for null, and then dispatch to the correct print() method. llvm-svn: 32636
* Packed StructuresAndrew Lenharth2006-12-081-3/+5
| | | | llvm-svn: 32361
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-6/+6
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* Detemplatize the Statistic class. The only type it is instantiated withChris Lattner2006-12-061-1/+1
| | | | | | is 'unsigned'. llvm-svn: 32279
* Fix a CmpInst writing bug by removing merge cruft that I *know* I've removedReid Spencer2006-12-061-9/+4
| | | | | | | before. Also, make sure we write the predicate value for Cmp instructions using instruction format 0. llvm-svn: 32253
* For PR950: Implement read/write of ICmp and FCmp constant expressionsReid Spencer2006-12-041-0/+2
| | | | llvm-svn: 32172
* Support ICmp/FCmp constant expression reading and writing.Reid Spencer2006-12-031-0/+7
| | | | llvm-svn: 32160
* Implement reading and writing of the ICmp and FCmp instructions.Reid Spencer2006-12-031-0/+9
| | | | llvm-svn: 32149
* Replacing std::iostreams with llvm iostreams. Some of these changes involveBill Wendling2006-11-291-8/+9
| | | | | | | adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. llvm-svn: 31990
* For PR950:Reid Spencer2006-11-271-18/+12
| | | | | | | | | | The long awaited CAST patch. This introduces 12 new instructions into LLVM to replace the cast instruction. Corresponding changes throughout LLVM are provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the exception of 175.vpr which fails only on a slight floating point output difference. llvm-svn: 31931
* Bump the bytecode version number to 7. Implement upgrade of version 6 andReid Spencer2006-11-081-1/+1
| | | | | | version 6 bytecode. llvm-svn: 31573
* For PR786:Reid Spencer2006-11-021-1/+1
| | | | | | | | | | Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380
* For PR950:Reid Spencer2006-10-261-1/+1
| | | | | | | | Make necessary changes to support DIV -> [SUF]Div. This changes llvm to have three division instructions: signed, unsigned, floating point. The bytecode and assembler are bacwards compatible, however. llvm-svn: 31195
* For PR950:Reid Spencer2006-10-201-6/+6
| | | | | | | | This patch implements the first increment for the Signless Types feature. All changes pertain to removing the ConstantSInt and ConstantUInt classes in favor of just using ConstantInt. llvm-svn: 31063
* Adding dllimport, dllexport and external weak linkage types.Anton Korobeynikov2006-09-141-9/+26
| | | | | | | | | DLL* linkages got full (I hope) codegeneration support in C & both x86 assembler backends. External weak linkage added for future use, we don't provide any codegeneration, etc. support for it. llvm-svn: 30374
* formatting cleanupsChris Lattner2006-07-281-12/+11
| | | | llvm-svn: 29396
* For PR787:Reid Spencer2006-06-071-0/+6
| | | | | | | | | | | | Provide new llvm::sys::Program facilities for converting the stdout and stdin to binary mode. There is no standard way to do this and the available mechanisms are platform specific. Adjust the bytecode reader and writer to use these methods when their input is stdin or output is stdout. THis avoids the problem with \n writing CRLF to a bytecode file on windows. Patch Contributed by Michael Smith. llvm-svn: 28722
* Fix a bug in the bc reader/writer: we were not correctly encoding varargsChris Lattner2006-05-261-1/+10
| | | | | | | | | nonccc calls (we were dropping the CC and tail flag). This broke several FORTRAN programs. Testcase here: Regression/Assembler/2006-05-26-VarargsCallEncode.ll llvm-svn: 28501
* Fix misencoding of calling conventionsChris Lattner2006-05-191-2/+3
| | | | llvm-svn: 28411
* add bc reader/writer support for inline asmChris Lattner2006-01-251-3/+19
| | | | llvm-svn: 25621
* Rename methodChris Lattner2006-01-241-1/+1
| | | | llvm-svn: 25571
* Add support for reading/writing inline asmChris Lattner2006-01-231-0/+3
| | | | llvm-svn: 25564
* trivial cleanupChris Lattner2005-11-121-2/+2
| | | | llvm-svn: 24330
* Read and write section info from/to .bc filesChris Lattner2005-11-121-6/+38
| | | | llvm-svn: 24321
* Wrap long line.Jeff Cohen2005-11-121-1/+2
| | | | llvm-svn: 24320
* Fix VC++ warning that bools cannot be ORed.Jeff Cohen2005-11-121-1/+1
| | | | llvm-svn: 24319
* don't misencode CC#'sChris Lattner2005-11-061-3/+4
| | | | llvm-svn: 24219
* encode/decode function alignment in bc filesChris Lattner2005-11-061-10/+14
| | | | llvm-svn: 24218
* Read/write global variable alignments if presentChris Lattner2005-11-061-6/+25
| | | | llvm-svn: 24216
* Write/read allocation instruction alignment info to .bc files.Chris Lattner2005-11-051-0/+7
| | | | llvm-svn: 24203
* Culling out use of unions for converting FP to bits and vice versa.Jim Laskey2005-08-171-22/+15
| | | | llvm-svn: 22838
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-1/+1
| | | | llvm-svn: 22523
* core changes for varargsAndrew Lenharth2005-06-181-10/+1
| | | | llvm-svn: 22254
* fix the assertionChris Lattner2005-05-131-1/+1
| | | | llvm-svn: 21994
* Silence VC++ warnings about unsafe mixing of ints and bools with the | operator.Jeff Cohen2005-05-071-2/+2
| | | | llvm-svn: 21758
OpenPOWER on IntegriCloud