summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CWriter/Writer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* A couple of minor code cleanups.Chris Lattner2003-10-051-21/+16
| | | | | | Print literal doubles using ftostr instead of <<, because it yields higher precision numbers. llvm-svn: 8855
* Rename Function::getEntryNode -> getEntryBlockChris Lattner2003-09-201-1/+1
| | | | llvm-svn: 8625
* Fix problems with programs that prototype printf to something unusualChris Lattner2003-09-151-2/+4
| | | | llvm-svn: 8538
* Fixed spelling and grammar.Misha Brukman2003-09-111-4/+4
| | | | llvm-svn: 8489
* Remove a bunch of warnings from the CBE generated C codeChris Lattner2003-09-101-2/+2
| | | | llvm-svn: 8455
* "the one true solution for compatibility with GCC 3.3+"Chris Lattner2003-09-101-3/+3
| | | | | | ... or so I hope llvm-svn: 8454
* Eliminate support for the llvm.unwind intrinisic, using the Unwind ↵Chris Lattner2003-09-081-13/+0
| | | | | | instruction instead llvm-svn: 8411
* Add support for the unwind instructionChris Lattner2003-09-081-0/+14
| | | | llvm-svn: 8408
* Fix really nasty bugs in the CWriter, handling invoke instructions. TrackingChris Lattner2003-08-281-2/+5
| | | | | | these down was NOT phun. llvm-svn: 8181
* Simplify codeChris Lattner2003-08-241-3/+1
| | | | llvm-svn: 8139
* Implement support for the unwind intrinsic in the CBEChris Lattner2003-08-241-0/+13
| | | | llvm-svn: 8116
* Add support for the sig(set|long)jmp intrinsicsChris Lattner2003-08-181-1/+4
| | | | llvm-svn: 7951
* Spell `necessary' correctly.Misha Brukman2003-08-181-2/+2
| | | | llvm-svn: 7944
* Stop annoying warnings about mismatched types with the argument of a freeChris Lattner2003-08-141-8/+24
| | | | | | implement more constant expressions so that 176.gcc compiles with the CBE llvm-svn: 7847
* The HAVE_JUMP code is dead, these intrinsics should _never_ be expandedChris Lattner2003-08-061-23/+6
| | | | llvm-svn: 7642
* Unbreak the CBE outputChris Lattner2003-07-311-2/+0
| | | | llvm-svn: 7453
* Modified the code so that it generates (0) for setjmp() and abort() forJohn Criswell2003-07-311-0/+18
| | | | | | | | longjmp() (and does not include setjmp.h). This is to fix some problems on Sparc while non-local jumps are still unimplemented. llvm-svn: 7449
* Don't include llvm/SlotCalculator.h, or <set>.Brian Gaeke2003-07-251-3/+1
| | | | | | Move up the inclusion of llvm/Support/Mangler.h. llvm-svn: 7320
* Use unified CWriter-X86/Printer name mangler. Do not bother usingBrian Gaeke2003-07-241-71/+21
| | | | | | | SlotCalculator in CWriter. (Unfortunately, all this means a lot of X86/Printer's methods have to be de-constified again. Oh well.) llvm-svn: 7299
* Fix program: SingleSource/UnitTests/2003-07-09-SignedArgs with the CBEChris Lattner2003-07-231-1/+2
| | | | llvm-svn: 7276
* Simplify code by using ConstantInt::getRawValue instead of checking to seeChris Lattner2003-07-231-3/+1
| | | | | | whether the constant is signed or unsigned, then casting llvm-svn: 7252
* Eliminated dead code.Misha Brukman2003-07-211-1/+1
| | | | llvm-svn: 7209
* Some beautification changes (tabs to spaces, removed extra blank lines);Misha Brukman2003-07-091-6/+4
| | | | | | no functionality changed. llvm-svn: 7138
* Removed size_t from the parameter list of the malloc() prototype in generated CJohn Criswell2003-07-081-1/+1
| | | | | | code. This prevents a compiler warning on Sparc that causes the tests to fail. llvm-svn: 7125
* jmp_buf is really a pointer type that is passed around...Chris Lattner2003-06-281-2/+2
| | | | llvm-svn: 6935
* Add support for the Invoke instruction!Chris Lattner2003-06-281-9/+48
| | | | llvm-svn: 6934
* Preserve compatibility with non-gcc compilersChris Lattner2003-06-281-4/+14
| | | | llvm-svn: 6932
* Fix bug: CBackend/2003-06-28-LinkOnceGlobalVars.llxChris Lattner2003-06-281-0/+2
| | | | llvm-svn: 6931
* - Fixed name mangling conditions to handle 'linkonce' linkage type. InJoel Stanley2003-06-251-30/+44
| | | | | | | | | | | | particular, name mangling for GlobalValues only occurs when the linkage type is internal or when the name must be mangled to avoid a collision. See comments in CWriter::getValueName for more information. - 'inline' keyword is now emitted for functions with 'linkonce' linkage type. - Fixed typos. llvm-svn: 6898
* It seems likely that floats would need a cast too, because they areBrian Gaeke2003-06-251-1/+2
| | | | | | ordinarily promoted to doubles. llvm-svn: 6894
* Fix 2003-06-23-PromotedExprs.llx -- if we are adding two bytes we betterBrian Gaeke2003-06-231-0/+14
| | | | | | | explicitly cast the result to be a byte, or C will gleefully promote it to int. llvm-svn: 6869
* lib/CWriter/Writer.cpp: Copy AsmWriter's ConstantFP checking code hereBrian Gaeke2003-06-171-4/+30
| | | | | | | | | | into a new function FPCSafeToPrint(), and use it in printConstant() and printFunction() to decide whether we should output ConstantFPs as floating-point constants or as references to stack-allocated variables. lib/VMCore/AsmWriter.cpp: Fix an apparent typo in the code mentioned above. llvm-svn: 6762
* Fairly major change: emit fixed sized allocas in the entry block as a variable,Chris Lattner2003-06-171-6/+26
| | | | | | | | | instead of a variable pointer and an alloca. All accesses to the variable then use the address-of operator to access it. This plays better with the internal GCC code generation phases, which bail early on functions which contain allocas. It also makes the code a bit easier to read. llvm-svn: 6734
* Don't include alloca.h on FreeBSD.Brian Gaeke2003-06-161-0/+2
| | | | llvm-svn: 6728
* Fix typeoChris Lattner2003-06-161-2/+2
| | | | llvm-svn: 6704
* Fix bug: CBackend/2003-06-11-HexConstant.llChris Lattner2003-06-161-5/+17
| | | | | | Fix bug: CBackend/2003-06-11-LiteralStringProblem.ll llvm-svn: 6697
* Don't output explicit initializers for globals that are zero initializedChris Lattner2003-06-061-4/+4
| | | | llvm-svn: 6651
* Fix bug: CBackend/2003-06-01-NullPointerType.llChris Lattner2003-06-021-4/+5
| | | | llvm-svn: 6526
* Fix a bug with casts to bool. This fixes testcase ↵Chris Lattner2003-06-011-1/+7
| | | | | | UnitTests/2003-05-31-CastToBool.c llvm-svn: 6507
* Eliminate unnecessary ->get calls that are now automatically handled.Chris Lattner2003-05-291-2/+2
| | | | llvm-svn: 6397
* Add support for setjmp/longjmp primitivesChris Lattner2003-05-171-1/+14
| | | | | | Patch checked in for Bill Wendling :) llvm-svn: 6241
* Casts are now unnecessaryChris Lattner2003-05-141-6/+6
| | | | llvm-svn: 6199
* Fix bug: CBackend/2003-05-13-VarArgFunction.llChris Lattner2003-05-131-2/+3
| | | | | | | In C, a prototype with no arguments is varargs. A prototype that takes void has zero args. llvm-svn: 6172
* Fix bug: CWriter/2003-05-12-IntegerSizeWarning.cChris Lattner2003-05-121-1/+7
| | | | llvm-svn: 6128
* Add support for variable argument functions!Chris Lattner2003-05-081-5/+44
| | | | llvm-svn: 6044
* Fix bug: UnitTests/2003-05-02-DependantPHI.cChris Lattner2003-05-031-3/+18
| | | | | | Fix testcase MultiSource/Ptrdist-ks llvm-svn: 6000
* * Eliminate using declsChris Lattner2003-05-031-37/+34
| | | | | | | * Fix some styleistic things * Fix bug: CWriter/2002-05-16-NameCollide.ll llvm-svn: 5988
* Fix problem where labels were being incorrectly elided, and fix problemChris Lattner2003-04-231-3/+4
| | | | | | where PHI copies where not emitted for the default label of switch insts llvm-svn: 5882
* Fix the super obnoxious "cast to pointer from integer of different size" ↵Chris Lattner2003-04-231-8/+9
| | | | | | warnings llvm-svn: 5881
* Remove unneccesary &*Chris Lattner2003-04-231-1/+1
| | | | llvm-svn: 5871
OpenPOWER on IntegriCloud