summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm2cpp
Commit message (Collapse)AuthorAgeFilesLines
* Drop llvm2cpp, it's now a llc targetAnton Korobeynikov2008-05-044-2123/+0
| | | | llvm-svn: 50614
* Use the Create static method for some of these objects. They no longerBill Wendling2008-04-231-13/+13
| | | | | | have public constructors. This should fix PR2246. llvm-svn: 50145
* fix some residual old API that fell thru the cracks of the conversion ↵Gabor Greif2008-04-211-1/+1
| | | | | | script, closes http://llvm.org/bugs/show_bug.cgi?id=2246 llvm-svn: 50062
* Honour another bunch of parameter attributes in llvm2cppAnton Korobeynikov2008-03-291-0/+8
| | | | llvm-svn: 48942
* Honour ByVal parameter attribute in llvm2cppAnton Korobeynikov2008-03-291-0/+2
| | | | llvm-svn: 48941
* Reimplement the parameter attributes support, phase #1. hilights:Chris Lattner2008-03-121-11/+9
| | | | | | | | | | | | | | | | | | | | | | | 1. There is now a "PAListPtr" class, which is a smart pointer around the underlying uniqued parameter attribute list object, and manages its refcount. It is now impossible to mess up the refcount. 2. PAListPtr is now the main interface to the underlying object, and the underlying object is now completely opaque. 3. Implementation details like SmallVector and FoldingSet are now no longer part of the interface. 4. You can create a PAListPtr with an arbitrary sequence of ParamAttrsWithIndex's, no need to make a SmallVector of a specific size (you can just use an array or scalar or vector if you wish). 5. All the client code that had to check for a null pointer before dereferencing the pointer is simplified to just access the PAListPtr directly. 6. The interfaces for adding attrs to a list and removing them is a bit simpler. Phase #2 will rename some stuff (e.g. PAListPtr) and do other less invasive changes. llvm-svn: 48289
* Split ParameterAttributes.h, putting the complicatedDale Johannesen2008-02-221-2/+2
| | | | | | | stuff into ParamAttrsList.h. Per feedback from ParamAttrs changes. llvm-svn: 47504
* Expand ParameterAttributes to 32 bits (in preparationDale Johannesen2008-02-191-1/+1
| | | | | | | for adding alignment info, not there yet). Clean up interfaces to reference ParameterAttributes consistently. llvm-svn: 47342
* remove attributions from tools.Chris Lattner2007-12-293-6/+6
| | | | llvm-svn: 45421
* remove attributions from tools/utils makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45414
* Fixing several transforms which would drop the collector attributeGordon Henriksen2007-12-251-0/+5
| | | | | | when copying functions. llvm-svn: 45356
* Change the PointerType api for creating pointer types. The old functionality ↵Christopher Lamb2007-12-171-1/+2
| | | | | | of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space. llvm-svn: 45082
* Fix PR1146: parameter attributes are longer part ofDuncan Sands2007-11-271-37/+79
| | | | | | | | | | | | the function type, instead they belong to functions and function calls. This is an updated and slightly corrected version of Reid Spencer's original patch. The only known problem is that auto-upgrading of bitcode files doesn't seem to work properly (see test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully a bitcode guru (who might that be? :) ) will fix it. llvm-svn: 44359
* Make llvm2cpp better, patch for PR1794, contributed by Zack Rusin.Chris Lattner2007-11-131-8/+30
| | | | llvm-svn: 44051
* Move the space in overview output for commands out of each of theDan Gohman2007-10-081-1/+1
| | | | | | commands and into the common code. llvm-svn: 42752
* Revise previous patch per review comments.Dale Johannesen2007-09-121-2/+2
| | | | | | | Next round of x87 long double stuff. Getting close now, basically works. llvm-svn: 41875
* Add APInt interfaces to APFloat (allows directlyDale Johannesen2007-09-111-2/+2
| | | | | | | | | access to bits). Use them in place of float and double interfaces where appropriate. First bits of x86 long double constants handling (untested, probably does not work). llvm-svn: 41858
* Next round of APFloat changes.Dale Johannesen2007-09-061-9/+18
| | | | | | | | | | | | | | Use APFloat in UpgradeParser and AsmParser. Change all references to ConstantFP to use the APFloat interface rather than double. Remove the ConstantFP double interfaces. Use APFloat functions for constant folding arithmetic and comparisons. (There are still way too many places APFloat is just a wrapper around host float/double, but we're getting there.) llvm-svn: 41747
* Revert this because the interface hasn't been updated yet.David Greene2007-09-041-2/+2
| | | | llvm-svn: 41703
* Fix typo.David Greene2007-09-041-1/+1
| | | | llvm-svn: 41702
* Update GEP constructors to use an iterator interface to fixDavid Greene2007-09-041-3/+4
| | | | | | GLIBCXX_DEBUG issues. llvm-svn: 41697
* Update InvokeInst to work like CallInstDavid Greene2007-08-271-2/+1
| | | | llvm-svn: 41506
* Adjust for new CallInst constructor interface.Reid Spencer2007-08-021-6/+3
| | | | | | This fixes test/Feature/llvm2cpp.ll llvm-svn: 40714
* Emit correct linkage. Patch by Roman Samoilov.Anton Korobeynikov2007-07-111-2/+2
| | | | llvm-svn: 39751
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-2/+2
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* Fix PR1525:Reid Spencer2007-06-251-4/+10
| | | | | | | Use a better determinator for identifying constant array initializers that are or are not zero terminated and generate code appropriately. llvm-svn: 37720
* Fix PR1517:Reid Spencer2007-06-161-9/+10
| | | | | | | | Use SmallPtrSet instead of std::vector to eliminate duplicate uses in a function generated with -gen-function. This prevents the output from having multiple duplicate declarations of constants and gvals. llvm-svn: 37616
* Fix PR1516:Reid Spencer2007-06-161-2/+7
| | | | | | | When printing the uses of a function (-gen-function only), make sure to include the constants referenced by intializers of global variables. llvm-svn: 37615
* Call the correct function name. Patch from Stephane Letz.Nick Lewycky2007-06-161-1/+1
| | | | llvm-svn: 37614
* Commit first round work of PR1373. "noalias" is now fully supported inZhou Sheng2007-06-051-0/+2
| | | | | | | VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. llvm-svn: 37432
* use the new MemoryBuffer interfaces to simplify error reporting in clients.Chris Lattner2007-05-061-3/+1
| | | | llvm-svn: 36900
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-062-16/+7
| | | | llvm-svn: 36868
* bitcodify, remove eh cruftChris Lattner2007-05-062-6/+19
| | | | llvm-svn: 36844
* For PR1146:Reid Spencer2007-04-221-5/+12
| | | | | | | | Make ParamAttrsList objects unique. You can no longer directly create or destroy them but instead must go through the ParamAttrsList::get() interface. llvm-svn: 36327
* Make the generated code for ConstantInt nicer.Reid Spencer2007-04-111-2/+2
| | | | llvm-svn: 35902
* Teach llvm2cpp about packed structure types.Reid Spencer2007-04-111-1/+2
| | | | llvm-svn: 35899
* Fix several bugs relating to changes in the LLVM IR API or just outrightReid Spencer2007-04-111-32/+27
| | | | | | | typos in the output. This is sufficient to get most of the llvm2cpp tests working again. llvm-svn: 35898
* Fix some issues with param attrs.Reid Spencer2007-04-111-1/+4
| | | | llvm-svn: 35894
* Add support for parameter attributes.Reid Spencer2007-04-111-1/+26
| | | | llvm-svn: 35893
* Make output for ConstantInt construction correct for any bitwidth.Reid Spencer2007-03-011-1/+2
| | | | llvm-svn: 34809
* Add missing break statements!Reid Spencer2007-02-161-12/+12
| | | | llvm-svn: 34341
* For PR1195:Reid Spencer2007-02-151-1/+1
| | | | | | | Change use of "packed" term to "vector" in comments, strings, variable names, etc. llvm-svn: 34300
* For PR1195:Reid Spencer2007-02-151-8/+8
| | | | | | | Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. llvm-svn: 34293
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-1/+3
| | | | | | | | | | | | | | | | | | | | api's look like this: ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); This is ugly, but allows a client to say: getBytecodeModuleProvider("foo", 0); If they do this, there is no dependency on the compression libraries, saving codesize. llvm-svn: 34012
* For PR411:Reid Spencer2007-02-051-2/+2
| | | | | | | | Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) llvm-svn: 33922
* For PR411:Reid Spencer2007-02-051-1/+0
| | | | | | | | | | This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. llvm-svn: 33918
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-4/+4
| | | | | | confusion with external linkage types. llvm-svn: 33663
* Drop CSRET from here too.Nick Lewycky2007-01-281-1/+0
| | | | llvm-svn: 33604
* rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger.Chris Lattner2007-01-151-3/+3
| | | | | | | | | 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
* unbreak i1 constants with the cpp writer, eliminate special case.Chris Lattner2007-01-121-6/+2
| | | | llvm-svn: 33133
OpenPOWER on IntegriCloud