summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm2cpp/CppWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* For PR950:Reid Spencer2006-10-201-6/+5
| | | | | | | | 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
* 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
* Provide indentation of the generated program.Reid Spencer2006-08-141-181/+267
| | | | llvm-svn: 29678
* 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
* 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
* 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 two bugs in the CppWriter.cpp:Reid Spencer2006-05-291-0/+8
| | | | | | | 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
* Initial Commit of llvm2cppReid Spencer2006-05-291-0/+1995
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