summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CWriter/Writer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Add support for the switch instruction to the CWriterChris Lattner2003-04-221-7/+23
| | | | llvm-svn: 5847
* Fixed alloca declaration problem on sun.Joel Stanley2003-02-121-8/+19
| | | | llvm-svn: 5546
* - Eliminated the deferred symbol table stuff in Module & Function, it reallyChris Lattner2002-11-201-7/+6
| | | | | | wasn't an optimization and it was causing lots of bugs. llvm-svn: 4779
* *** empty log message ***Nick Hildenbrandt2002-11-181-4/+8
| | | | llvm-svn: 4754
* *** empty log message ***Nick Hildenbrandt2002-11-181-42/+46
| | | | llvm-svn: 4745
* _REALLY_ fix the float constant problemChris Lattner2002-11-071-3/+4
| | | | llvm-svn: 4609
* Print out 'float' constants correctlyChris Lattner2002-11-071-3/+12
| | | | llvm-svn: 4607
* Fixes escapeing bug in strings. Fixes test case ↵Nick Hildenbrandt2002-11-061-2/+2
| | | | | | test/Regression/CBackend/2002-11-06-PrintEscaped.c llvm-svn: 4583
* Loads and stores can't be inlined. This fixes test/Singlesource/matrixTransposeNick Hildenbrandt2002-11-061-1/+2
| | | | llvm-svn: 4579
* Fixed bug in Regression/CBackend/2002-10-30-FunctionPointerAlloca.llNick Hildenbrandt2002-11-011-1/+1
| | | | llvm-svn: 4486
* Casting NULL can cause problems so lets just not cast NULL to anything.Nick Hildenbrandt2002-10-281-3/+1
| | | | llvm-svn: 4349
* *** empty log message ***Nick Hildenbrandt2002-10-281-1/+14
| | | | llvm-svn: 4343
* Malloc prototyping now works even if the original file had its own prototype ↵Nick Hildenbrandt2002-10-231-3/+13
| | | | | | for malloc llvm-svn: 4271
* Fix bug: CBackend/2002-10-16-External.llChris Lattner2002-10-161-7/+6
| | | | llvm-svn: 4201
* Fix bug: test/Regression/CBackend/2002-10-15-OpaqueTypeProblem.llChris Lattner2002-10-161-2/+10
| | | | llvm-svn: 4190
* Instead of adding stdlib we just prototype malloc correctly.Nick Hildenbrandt2002-10-111-1/+3
| | | | llvm-svn: 4118
* Sun requires you to include stdlib to use mallocNick Hildenbrandt2002-10-111-1/+1
| | | | llvm-svn: 4117
* Bug fix: In preventing static global variables from being printed twice,Vikram S. Adve2002-10-051-3/+2
| | | | | | | I also prevented external globals from being printed twice, but they should (extern declaration and definition). llvm-svn: 4043
* Add parens around constant calls to getelemptr to properly associate the ↵Nick Hildenbrandt2002-10-031-2/+2
| | | | | | reference llvm-svn: 4032
OpenPOWER on IntegriCloud