summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm2cpp
Commit message (Collapse)AuthorAgeFilesLines
* simplify codeChris Lattner2006-09-281-2/+1
| | | | llvm-svn: 30661
* Adding dllimport, dllexport and external weak linkage types.Anton Korobeynikov2006-09-141-0/+6
| | | | | | | | | 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
* Use LINK_COMPONENTS to specify *components* to link against instead ofChris Lattner2006-09-041-2/+1
| | | | | | using USED_LIBS to specify *libraries* to link against. llvm-svn: 30090
* Provide indentation of the generated program.Reid Spencer2006-08-141-181/+267
| | | | llvm-svn: 29678
* Tools require EH for their top-level try blocks.Chris Lattner2006-07-071-0/+1
| | | | llvm-svn: 29035
* Fix PR819, llvm2cpp should read .bc files, not .ll files.Chris Lattner2006-07-062-82/+55
| | | | llvm-svn: 29030
* Change the verifier to never throw an exception. Instead verifyModule ↵Chris Lattner2006-07-061-8/+10
| | | | | | canoptionally return the string error, which is an easier api for clients touse anyway. llvm-svn: 29017
* Actually add instructions to the list of defined values so it getsReid Spencer2006-06-151-0/+1
| | | | | | | recognized as such! This prevents the CppWriter from treating every operand as a forward reference and making a mess of the output. llvm-svn: 28800
* Suppress -pedantic warnings about print("%a")Reid Spencer2006-06-021-0/+3
| | | | llvm-svn: 28650
* Teach CppWriter how to emit an inline (partial) function.Reid Spencer2006-06-011-50/+132
| | | | llvm-svn: 28645
* Restore default arguments for llvm2cpp back to health by declaring anReid Spencer2006-06-011-1/+1
| | | | | | emitted variable to actually have a type (picky, picky, picky!) llvm-svn: 28625
* Fix a bug where incorrect C++ was being emitted.Reid Spencer2006-06-011-1/+0
| | | | llvm-svn: 28615
* Use archive libraries instead of object files for VMCore, BCReader,Reid Spencer2006-06-011-2/+2
| | | | | | | BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate these changes. This was done to speed up link times. llvm-svn: 28610
* fix utostrAndrew Lenharth2006-05-311-1/+1
| | | | llvm-svn: 28597
* Major reorganization and extension of the code. The diff on this will be aReid Spencer2006-05-311-487/+698
| | | | | | | | | mess as functions were moved around into a better ordering. The code was extended to provide various -gen-* options to better control what the generated output should be. Currently it is possible to generate entire modules (three different ways), functions, global variables, and types. llvm-svn: 28589
* Don't generate module definitions when the -fragment option is given.Reid Spencer2006-05-311-51/+59
| | | | llvm-svn: 28583
* Fix more bugs. This version now passes all of the Feature test except forReid Spencer2006-05-301-135/+244
| | | | | | | | a floating point conversion problem with NAN in intrinsics.ll. llvm2cpp makes an attempt to provide the correct conversion, based on the implementation in the CBackend writer, but it doesn't get NAN correct. llvm-svn: 28568
* Fix many small bugs in llvm2cpp. This patch gets llvm2cpp working withReid Spencer2006-05-301-73/+161
| | | | | | | everything except PHI nodes and one odd recurse/opaque type situation. PHI nodes forward reference INSTRUCTIONS (aaaaaaaahhhhhhh!) :) llvm-svn: 28554
* First complete version of llvm2cpp that doesn't crash on any of the FeatureReid Spencer2006-05-301-274/+308
| | | | | | tests. The output in a few cases still doesn't compile, however. llvm-svn: 28547
* Next batch of implementation:Reid Spencer2006-05-291-1148/+265
| | | | | | | | | | 1. Get rid of old AsmWriter cruft that's not needed. 2. Implement several instructions. Enough to get by globalvars.ll and alignment.ll in the Feature test suite. 3. Handle constants properly (don't repeat definitions). 4. Make the output compatible with llvm-dis for diff purposes. llvm-svn: 28541
* Fix file header comment.Reid Spencer2006-05-291-2/+2
| | | | llvm-svn: 28540
* Remove temporary testing rules.Reid Spencer2006-05-291-14/+0
| | | | llvm-svn: 28539
* Fix two bugs in the CppWriter.cpp:Reid Spencer2006-05-292-4/+17
| | | | | | | 1. Return the module from the MakeModule function so it can be verified. 2. Make sure types get generated with their names llvm-svn: 28536
* Fix the file's comment block.Reid Spencer2006-05-291-6/+7
| | | | llvm-svn: 28535
* Initial Commit of llvm2cppReid Spencer2006-05-294-0/+2174
This is a safekeeping commit. The program is not finished. It currently handles modules, types, global variables and function declarations. Blocks and instructions remain to be done. llvm-svn: 28528
OpenPOWER on IntegriCloud