[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2007-01-09 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.307 - 1.308 --- Log message: For PR1099: http://llvm.org/PR1099 : Invert the isSigned logic in calls to printType and printPrimitiveType. We want variables to be declared unsigned by default so that signless operators like +

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2007-01-08 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.305 - 1.306 --- Log message: For PR1090: http://llvm.org/PR1090 : Clean up the definitions of the helper functions per Chris' review suggestions so they are easier to read. For PR1091: http://llvm.org/PR1091 : Print minimum

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2007-01-08 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.306 - 1.307 --- Log message: For PR1099: http://llvm.org/PR1099 : Partial fix for this PR. Default function parameters to signed integer, just like everything else in CBE. The bug was caused by incorrectly introducing

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2007-01-07 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.304 - 1.305 --- Log message: Fix PR1090: http://llvm.org/PR1090 : Implemented some llvm_fcmp_{pred} functions at the start of the function bodies and use them for fcmp instructions and constant expressions. These help

Re: [llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2007-01-07 Thread Chris Lattner
+ // Emit some helper functions for dealing with FCMP instruction's + // predicates + Out static inline int llvm_fcmp_ord(double X, double Y) { ; + Out return X == X Y == Y; }\n; + Out static inline int llvm_fcmp_uno(double X, double Y) { ; + Out return X != X || Y != Y; }\n; +

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2007-01-06 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.303 - 1.304 --- Log message: For PR1086: http://llvm.org/PR1086 : Parameter attributes do have to be specially handled in the CBE. Implement their handling. --- Diffs of the changes: (+54 -30) Writer.cpp | 84

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2007-01-05 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.302 - 1.303 --- 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

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-17 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.298 - 1.299 --- Log message: Fix PR1058: http://llvm.org/PR1058 : Generate the BITCAST_TEMPORARY regardless of the uses or inlinability of the instruction. This temporary is needed to perform the instruction, not provide

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-17 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.299 - 1.300 --- Log message: Use a predicate function to identify bitcast of fp and integer instead of repeating the logic in two different parts of the code. --- Diffs of the changes: (+11 -11) Writer.cpp | 22

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-11 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.295 - 1.296 --- Log message: Implement correct bitcast of int-float and long-double by using a union to perform the bitcast. --- Diffs of the changes: (+58 -14) Writer.cpp | 72

Re: [llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-11 Thread Chris Lattner
Implement correct bitcast of int-float and long-double by using a union to perform the bitcast. @@ -1508,6 +1508,16 @@ /// type name is found, emit its declaration... /// void CWriter::printModuleTypes(const SymbolTable ST) { + Out /* Helper union for bitcasts */\n; + Out typedef

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-11 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.296 - 1.297 --- Log message: Fix the BitCastUnion type for 32-bit targets. --- Diffs of the changes: (+6 -6) Writer.cpp | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-11 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.297 - 1.298 --- Log message: Change inferred getCast into specific getCast. Passes all tests. --- Diffs of the changes: (+2 -2) Writer.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-07 Thread Bill Wendling
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.292 - 1.293 --- Log message: What should be the last unnecessary iostreams in the library. --- Diffs of the changes: (+9 -11) Writer.cpp | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-)

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-07 Thread Bill Wendling
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.293 - 1.294 --- Log message: Don't use sstream in Streams.h but iosfwd instead. --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-06 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.290 - 1.291 --- Log message: Adjust to new ConstantIntegral interface for Max/Min tests. --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

Re: [llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-06 Thread Chris Lattner
On Dec 6,lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.290 llvm/lib/Target/ CBackend/Writer.cpp:1.291 --- llvm/lib/Target/CBackend/Writer.cpp:1.290 Thu Nov 30 18:25:12 2006 +++ llvm/lib/Target/CBackend/Writer.cpp Wed Dec 6 14:45:15 2006 @@ -753,7 +753,7

Re: [llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-06 Thread Reid Spencer
On Wed, 2006-12-06 at 13:20 -0800, Chris Lattner wrote: On Dec 6,lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.290 llvm/lib/Target/ CBackend/Writer.cpp:1.291 --- llvm/lib/Target/CBackend/Writer.cpp:1.290 Thu Nov 30 18:25:12 2006 +++

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-12-06 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.291 - 1.292 --- Log message: Always pass true to isMaxValue(bool) because we know the type is LongTy. --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-30 Thread Anton Korobeynikov
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.289 - 1.290 --- Log message: Introducing external weak linkage. Darwin codegen should be added later. --- Diffs of the changes: (+11 -4) Writer.cpp | 15 +++ 1 files changed, 11 insertions(+), 4

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-28 Thread Andrew Lenharth
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.285 - 1.286 --- Log message: Get the asminfo for the target most closely matching the module and use that for inline asm --- Diffs of the changes: (+26 -28) Writer.cpp | 54

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-28 Thread Andrew Lenharth
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.286 - 1.287 --- Log message: update comments --- Diffs of the changes: (+4 -2) Writer.cpp |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-28 Thread Andrew Lenharth
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.288 - 1.289 --- Log message: gcc doesn't like an empty colbber list --- Diffs of the changes: (+3 -1) Writer.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) Index: llvm/lib/Target/CBackend/Writer.cpp

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-27 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.283 - 1.284 --- Log message: When truncating to bool, it is necessary to with 1 for all casts that can result in a bool. Previously PtrToInt, FPToUI and FPToSI were missing this operation. --- Diffs of the changes: (+10

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-27 Thread Andrew Lenharth
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.284 - 1.285 --- Log message: Preliminary support for inline asm in the cbe. The target specific ugliness is still in Writer, but issolated to a single function. This might be split into something in each target directory.

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-26 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.282 - 1.283 --- 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.

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-15 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.281 - 1.282 --- Log message: Simplify IntrinsicLowering and clarify that it is only for use by the CBE and interpreter. --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-07 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.280 - 1.281 --- 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

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-05 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.278 - 1.279 --- Log message: Implement the -enabled-cbe-printf-a feature. --- Diffs of the changes: (+2 -2) Writer.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-05 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.279 - 1.280 --- Log message: Fix a bug in the last patch and convert to instead of for logical expr. --- Diffs of the changes: (+2 -2) Writer.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-02 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.277 - 1.278 --- 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

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-11-01 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.276 - 1.277 --- Log message: For PR950: http://llvm.org/PR950 : Replace the REM instruction with UREM, SREM and FREM. --- Diffs of the changes: (+28 -10) Writer.cpp | 38 -- 1 files

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-10-26 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.274 - 1.275 --- 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

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-10-26 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.275 - 1.276 --- Log message: Enclose a case in { and } so that the pickier compilers don't complain. --- Diffs of the changes: (+2 -0) Writer.cpp |2 ++ 1 files changed, 2 insertions(+) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-10-22 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.273 - 1.274 --- Log message: Don't generate a prototype for _setjmp. At least on Linux, this function has a different prototype than the one #included from setjmp.h. This patch fixes siod and a number of other test cases on

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-09-28 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.271 - 1.272 --- Log message: Simplify some code, reformat break's --- Diffs of the changes: (+12 -6) Writer.cpp | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-09-17 Thread Anton Korobeynikov
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.270 - 1.271 --- Log message: Added some eye-candy for Subtarget type checking Added X86 StdCall FastCall calling conventions. Codegen will follow. --- Diffs of the changes: (+9 -1) Writer.cpp | 10 +- 1 files

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-09-14 Thread Anton Korobeynikov
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.269 - 1.270 --- 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,

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-07-28 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.266 - 1.267 --- Log message: Make functions with an asm name propagate that asm name into the cbe.c file. This fixes link errors on programs with these on targets with prefixes. --- Diffs of the changes: (+6 -0)

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-06-20 Thread Evan Cheng
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.265 - 1.266 --- Log message: __i386__, __i386, etc. are not defined for x86-64. Use __x86_64__. --- Diffs of the changes: (+2 -1) Writer.cpp |3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-06-06 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.264 - 1.265 --- Log message: Now that PR633: http://llvm.cs.uiuc.edu/PR633 is implemented, the CBE can know to emit _setjmp/_longjmp when available. This speeds up hexxagon from 18.61s to 16.61s with the CBE on PPC Mac OS

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-06-02 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.263 - 1.264 --- Log message: Add mingw support, patch contributed by Anton --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index:

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-05-31 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.262 - 1.263 --- Log message: Fix casting so there's no warning on Alpha. --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/CBackend/Writer.cpp

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-05-24 Thread Reid Spencer
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.261 - 1.262 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-05-23 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.260 - 1.261 --- Log message: Print struct return functions and calls as actually returning the hidden argument struct pointer, enabling ABI compatibility for the CBE with platforms with strange struct-return ABIs. This

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-04-17 Thread Jeff Cohen
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.259 - 1.260 --- Log message: Add checks for __OpenBSD__. --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-03-08 Thread Jim Laskey
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.254 - 1.255 --- Log message: Add #line support for CBE. --- Diffs of the changes: (+17 -0) Writer.cpp | 17 + 1 files changed, 17 insertions(+) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-03-07 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.253 - 1.254 --- Log message: Two things: 1. Don't emit debug info, or other llvm.metadata to the .cbe.c file. 2. Mark static ctors/dtors as such, so that bugpoint works on C++ code compiled with the new CFE. --- Diffs of

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-01-20 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.250 - 1.251 --- Log message: Simplify CWriter::printContainedStructs, also allowing it to work with PackedTypes as a side-effect. --- Diffs of the changes: (+11 -18) Writer.cpp | 29 +++-- 1

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2006-01-20 Thread Robert L. Bocchino Jr.
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.251 - 1.252 --- Log message: Make the C writer work with packed types. printContainedStructs is still not quite right and will be fixed later. --- Diffs of the changes: (+49 -4) Writer.cpp | 53

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2005-12-27 Thread Duraid Madina
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.249 - 1.250 --- Log message: yet more C++ standards-compliance stuff. --- Diffs of the changes: (+1 -0) Writer.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u

[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

2005-11-02 Thread Chris Lattner
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.245 - 1.246 --- Log message: Fix a QOI issue noticed by Markus F.X.J. Oberhumer. This fixes PR641: http://llvm.cs.uiuc.edu/PR641 --- Diffs of the changes: (+1 -0) Writer.cpp |1 + 1 files changed, 1 insertion(+)