[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-06-25 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.52 -> 1.53 --- Log message: Fix PR1525: http://llvm.org/PR1525 : Use a better determinator for identifying constant array initializers that are or are not zero terminated and generate code appropriately. --- Diffs of the chang

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-06-16 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.51 -> 1.52 --- Log message: Fix PR1517: http://llvm.org/PR1517 : Use SmallPtrSet instead of std::vector to eliminate duplicate uses in a function generated with -gen-function. This prevents the output from having multiple duplic

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-06-16 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.50 -> 1.51 --- Log message: Fix PR1516: http://llvm.org/PR1516 : When printing the uses of a function (-gen-function only), make sure to include the constants referenced by intializers of global variables. --- Diffs of the ch

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-06-16 Thread Nick Lewycky
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.49 -> 1.50 --- Log message: Call the correct function name. Patch from Stephane Letz. --- Diffs of the changes: (+1 -1) CppWriter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/llvm2cpp/Cp

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-06-04 Thread Zhou Sheng
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.48 -> 1.49 --- Log message: Commit first round work of PR1373: http://llvm.org/PR1373 . "noalias" is now fully supported in VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. --- Diffs of

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-04-21 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.47 -> 1.48 --- Log message: For PR1146: http://llvm.org/PR1146 : Make ParamAttrsList objects unique. You can no longer directly create or destroy them but instead must go through the ParamAttrsList::get() interface. --- Diffs

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-04-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.46 -> 1.47 --- Log message: Make the generated code for ConstantInt nicer. --- Diffs of the changes: (+2 -2) CppWriter.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/tools/llvm2cpp/CppWriter

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-04-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.45 -> 1.46 --- Log message: Teach llvm2cpp about packed structure types. --- Diffs of the changes: (+2 -1) CppWriter.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-04-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.44 -> 1.45 --- Log message: Fix several bugs relating to changes in the LLVM IR API or just outright typos in the output. This is sufficient to get most of the llvm2cpp tests working again. --- Diffs of the changes: (+27 -32)

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-04-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.43 -> 1.44 --- Log message: Fix some issues with param attrs. --- Diffs of the changes: (+4 -1) CppWriter.cpp |5 - 1 files changed, 4 insertions(+), 1 deletion(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-04-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.42 -> 1.43 --- Log message: Add support for parameter attributes. --- Diffs of the changes: (+26 -1) CppWriter.cpp | 27 ++- 1 files changed, 26 insertions(+), 1 deletion(-) Index: llvm/tools/llv

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-03-01 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.41 -> 1.42 --- Log message: Make output for ConstantInt construction correct for any bitwidth. --- Diffs of the changes: (+2 -1) CppWriter.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/tools/

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-02-15 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.40 -> 1.41 --- Log message: Add missing break statements! --- Diffs of the changes: (+12 -12) CppWriter.cpp | 24 1 files changed, 12 insertions(+), 12 deletions(-) Index: llvm/tools/llvm2cpp/Cp

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-02-14 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.39 -> 1.40 --- Log message: For PR1195: http://llvm.org/PR1195 : Change use of "packed" term to "vector" in comments, strings, variable names, etc. --- Diffs of the changes: (+1 -1) CppWriter.cpp |2 +- 1 files changed,

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-02-14 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.38 -> 1.39 --- Log message: For PR1195: http://llvm.org/PR1195 : Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. --- Diffs of the changes: (+8 -8) CppW

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-02-05 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.37 -> 1.38 --- Log message: For PR411: http://llvm.org/PR411 : Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) --- Diffs of the changes: (+2 -2) CppWrit

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-02-05 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.36 -> 1.37 --- Log message: For PR411: http://llvm.org/PR411 : 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

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-30 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.35 -> 1.36 --- Log message: For PR1136: http://llvm.org/PR1136 : Rename GlobalVariable::isExternal as isDeclaration to avoid confusion with external linkage types. --- Diffs of the changes: (+4 -4) CppWriter.cpp |8 +++

Re: [llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-28 Thread Chris Lattner
On Jan 28, 2007, at 7:51 AM, Nick Lewycky wrote: > Changes in directory llvm/tools/llvm2cpp: > > CppWriter.cpp updated: 1.34 -> 1.35 > --- > Log message: > > Drop CSRET from here too. Thanks Nick, Note that llvm2cpp should probably be enhanced to support function/ param attributes (in general)

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-28 Thread Nick Lewycky
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.34 -> 1.35 --- Log message: Drop CSRET from here too. --- Diffs of the changes: (+0 -1) CppWriter.cpp |1 - 1 files changed, 1 deletion(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u llvm/tools/llvm2cpp/CppWriter

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-14 Thread Chris Lattner
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.33 -> 1.34 --- Log message: rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger. rename Type::getIntegralTypeMask to Type::getIntegerTypeMask. This makes naming much more consistent. For example, th

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-12 Thread Chris Lattner
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.32 -> 1.33 --- Log message: unbreak i1 constants with the cpp writer, eliminate special case. --- Diffs of the changes: (+2 -6) CppWriter.cpp |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) Index: llvm/t

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.31 -> 1.32 --- Log message: For PR1064: http://llvm.org/PR1064 : 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 i

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.30 -> 1.31 --- Log message: Implement review feedback for the ConstantBool->ConstantInt merge. Chris recommended that getBoolValue be replaced with getZExtValue and that get(bool) be replaced by get(const Type*, uint64_t). This

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.29 -> 1.30 --- Log message: Rename BoolTy as Int1Ty. Patch by Sheng Zhou. --- Diffs of the changes: (+3 -3) CppWriter.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/tools/llvm2cpp/CppWrite

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-11 Thread Zhou Sheng
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.28 -> 1.29 --- Log message: For PR1043: http://llvm.org/PR1043 : Merge ConstantIntegral and ConstantBool into ConstantInt. Remove ConstantIntegral and ConstantBool from LLVM. --- Diffs of the changes: (+7 -6) CppWriter.cpp

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2007-01-05 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.27 -> 1.28 --- Log message: For PR411: http://llvm.org/PR411 : 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 c

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-12-30 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.26 -> 1.27 --- Log message: For PR950: http://llvm.org/PR950 : Convert signed integer types to signless. --- Diffs of the changes: (+14 -22) CppWriter.cpp | 36 ++-- 1 files changed, 14 ins

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-12-22 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.25 -> 1.26 --- Log message: For PR950: http://llvm.org/PR950 : 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

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-12-18 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.24 -> 1.25 --- Log message: Remove a call to Type::isSigned(). --- Diffs of the changes: (+1 -3) CppWriter.cpp |4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-12-11 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.23 -> 1.24 --- Log message: Generate the correct cast opcode for constant expressions. --- Diffs of the changes: (+17 -2) CppWriter.cpp | 19 +-- 1 files changed, 17 insertions(+), 2 deletions(-) Index:

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp llvm2cpp.cpp

2006-12-05 Thread Chris Lattner
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.22 -> 1.23 llvm2cpp.cpp updated: 1.5 -> 1.6 --- Log message: make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. With this change, I can now move -stats to print when llvm_shutdown is called. --- Dif

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-11-26 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.21 -> 1.22 --- Log message: For PR950: http://llvm.org/PR950 : The long awaited CAST patch. This introduces 12 new instructions into LLVM to replace the cast instruction. Corresponding changes throughout LLVM are provided. This

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-11-07 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.20 -> 1.21 --- Log message: For PR950: http://llvm.org/PR950 : This patch converts the old SHR instruction into two instructions, AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not dependent on the sign of t

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-11-02 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.19 -> 1.20 --- Log message: For PR786: http://llvm.org/PR786 : 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

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-11-01 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.18 -> 1.19 --- Log message: For PR950: http://llvm.org/PR950 : Replace the REM instruction with UREM, SREM and FREM. --- Diffs of the changes: (+9 -3) CppWriter.cpp | 12 +--- 1 files changed, 9 insertions(+), 3 d

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-10-25 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.17 -> 1.18 --- Log message: For PR950: http://llvm.org/PR950 : Make necessary changes to support DIV -> [SUF]Div. This changes llvm to have three division instructions: signed, unsigned, floating point. The bytecode and assemble

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-10-20 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.16 -> 1.17 --- Log message: For PR950: http://llvm.org/PR950 : 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

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-09-28 Thread Chris Lattner
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.15 -> 1.16 --- Log message: simplify code --- Diffs of the changes: (+1 -2) CppWriter.cpp |3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u llvm/tools/llvm2cpp/Cp

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-09-14 Thread Anton Korobeynikov
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.14 -> 1.15 --- Log message: Adding dllimport, dllexport and external weak linkage types. DLL* linkages got full (I hope) codegeneration support in C & both x86 assembler backends. External weak linkage added for future use, we

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-08-14 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.13 -> 1.14 --- Log message: Provide indentation of the generated program. --- Diffs of the changes: (+268 -182) CppWriter.cpp | 450 ++ 1 files changed, 268 insertion

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-06-15 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.12 -> 1.13 --- Log message: Actually add instructions to the list of defined values so it gets recognized as such! This prevents the CppWriter from treating every operand as a forward reference and making a mess of the output.

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-06-01 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.11 -> 1.12 --- Log message: Teach CppWriter how to emit an inline (partial) function. --- Diffs of the changes: (+133 -51) CppWriter.cpp | 184 +- 1 files changed, 13

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-06-01 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.10 -> 1.11 --- Log message: Restore default arguments for llvm2cpp back to health by declaring an emitted variable to actually have a type (picky, picky, picky!) --- Diffs of the changes: (+1 -1) CppWriter.cpp |2 +- 1

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-31 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.9 -> 1.10 --- Log message: Fix a bug where incorrect C++ was being emitted. --- Diffs of the changes: (+0 -1) CppWriter.cpp |1 - 1 files changed, 1 deletion(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u llvm/to

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-31 Thread Andrew Lenharth
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.8 -> 1.9 --- Log message: fix utostr --- Diffs of the changes: (+1 -1) CppWriter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/llvm2cpp/CppWriter.cpp diff -u llvm/tools/llvm2cpp/CppWriter.

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-31 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.7 -> 1.8 --- Log message: Major reorganization and extension of the code. The diff on this will be a mess as functions were moved around into a better ordering. The code was extended to provide various -gen-* options to better c

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-30 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.6 -> 1.7 --- Log message: Don't generate module definitions when the -fragment option is given. --- Diffs of the changes: (+59 -51) CppWriter.cpp | 110 +++--- 1 files ch

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-30 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.5 -> 1.6 --- Log message: Fix more bugs. This version now passes all of the Feature test except for a floating point conversion problem with NAN in intrinsics.ll. llvm2cpp makes an attempt to provide the correct conversion, base

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-30 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.4 -> 1.5 --- Log message: Fix many small bugs in llvm2cpp. This patch gets llvm2cpp working with everything except PHI nodes and one odd recurse/opaque type situation. PHI nodes forward reference INSTRUCTIONS (hhh!)

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-29 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.3 -> 1.4 --- Log message: First complete version of llvm2cpp that doesn't crash on any of the Feature tests. The output in a few cases still doesn't compile, however. --- Diffs of the changes: (+310 -276) CppWriter.cpp | 5

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

2006-05-29 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.2 -> 1.3 --- Log message: Next batch of implementation: 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. Han

[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp Makefile

2006-05-28 Thread Reid Spencer
Changes in directory llvm/tools/llvm2cpp: CppWriter.cpp updated: 1.1 -> 1.2 Makefile updated: 1.1 -> 1.2 --- Log message: Fix two bugs in the CppWriter.cpp: 1. Return the module from the MakeModule function so it can be verified. 2. Make sure types get generated with their names --- Diffs of