summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* For PR950:Reid Spencer2006-12-311-5/+5
| | | | | | | | | | | | | | | | | | Three changes: 1. Convert signed integer types to signless versions. 2. Implement the @sext and @zext parameter attributes. Previously the type of an function parameter was used to determine whether it should be sign extended or zero extended before the call. This information is now communicated via the function type's parameter attributes. 3. The interface to LowerCallTo had to be changed in order to accommodate the parameter attribute information. Although it would have been convenient to pass in the FunctionType itself, there isn't always one present in the caller. Consequently, a signedness indication for the result type and for each parameter was provided for in the interface to this method. All implementations were changed to make the adjustment necessary. llvm-svn: 32788
* Just print integer constants as signed values. The actual signednessReid Spencer2006-12-211-7/+1
| | | | | | doesn't matter as it is determined in the way the constant is used. llvm-svn: 32733
* Fix for PR1059: http://llvm.org/PR1059Anton Korobeynikov2006-12-191-3/+6
| | | | llvm-svn: 32685
* move ExtWeakSymbols to AsmPrinterRafael Espindola2006-12-181-0/+12
| | | | llvm-svn: 32648
* 1. Tidy up jump table info.Jim Laskey2006-12-141-28/+23
| | | | | | 2. Allow the jit to handle PIC relocable jump tables. llvm-svn: 32581
* split up inttoptr from ptrtoint handling, the cases aren't similar at all.Chris Lattner2006-12-121-22/+15
| | | | llvm-svn: 32471
* the operand of a bitcast is always the right size, just emit it in place.Chris Lattner2006-12-121-2/+4
| | | | llvm-svn: 32470
* Tidy up a bit.Reid Spencer2006-12-121-1/+1
| | | | llvm-svn: 32462
* Change inferred cast creation calls to more specific cast creations.Reid Spencer2006-12-121-1/+5
| | | | llvm-svn: 32460
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-19/+18
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* Converted to using llvm streams instead of <iostream>sBill Wendling2006-11-291-12/+13
| | | | llvm-svn: 31992
* For PR950:Reid Spencer2006-11-271-1/+14
| | | | | | | | | | The long awaited CAST patch. This introduces 12 new instructions into LLVM to replace the cast instruction. Corresponding changes throughout LLVM are provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the exception of 175.vpr which fails only on a slight floating point output difference. llvm-svn: 31931
* Global label not handled correctly.Jim Laskey2006-11-201-3/+11
| | | | llvm-svn: 31883
* Add a printSetLabel that takes two id's.Evan Cheng2006-11-011-0/+13
| | | | llvm-svn: 31347
* 1. Clean up code due to changes in SwitchTo*Section(2)Anton Korobeynikov2006-10-311-6/+6
| | | | | | | | | | 2. Added partial debug support for mingw\cygwin targets (the same as Linux\ELF). Please note, that currently mingw\cygwin uses 'stabs' format for storing debug info by default, thus many (runtime) libraries has this information included. These formats shouldn't be mixed in one binary ('stabs' & 'DWARF'), otherwise binutils tools will be confused. llvm-svn: 31311
* don't print dead jump tablesChris Lattner2006-10-281-0/+3
| | | | llvm-svn: 31266
* Move getPreferredAlignmentLog from AsmPrinter to TargetDataDevang Patel2006-10-241-23/+0
| | | | llvm-svn: 31171
* For PR950:Reid Spencer2006-10-201-11/+12
| | | | | | | | 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
* Clean up interface to getGlobalLinkName.Jim Laskey2006-10-171-2/+3
| | | | llvm-svn: 31001
* Basic support for getGlobalLinkName.Jim Laskey2006-10-171-0/+10
| | | | llvm-svn: 30997
* Jimptables working again on alpha.Andrew Lenharth2006-10-111-1/+1
| | | | | | As a bonus, use the GOT node instead of the AlphaISD::GOT for internal stuff. llvm-svn: 30873
* If a target uses a GOT, put it in the jt data section, not the textChris Lattner2006-10-061-4/+12
| | | | | | | section. This will fix alpha when Andrew implements AlphaTargetMachine::getTargetLowering(). llvm-svn: 30779
* Don't crash if an MBB doesn't have an LLVM BBChris Lattner2006-10-051-1/+1
| | | | llvm-svn: 30757
* Emit pic jumptables to the same section that the function is emitted to,Chris Lattner2006-10-051-1/+4
| | | | | | allowing label differences to work. This fixes CodeGen/X86/pic_jumptable.ll llvm-svn: 30744
* Pass the MachineFunction into EmitJumpTableInfo.Chris Lattner2006-10-051-1/+2
| | | | llvm-svn: 30742
* move getSectionForFunction to AsmPrinterChris Lattner2006-10-051-0/+4
| | | | llvm-svn: 30736
* Use $( $| $) to represent alternatives in asm blocks instead of {|}. ThisChris Lattner2006-10-031-28/+34
| | | | | | is needed to support targets where {|} aren't special symbols. llvm-svn: 30712
* simplify codeChris Lattner2006-09-281-1/+1
| | | | llvm-svn: 30659
* Add support for ${:private} which prints "L" on darwin.Chris Lattner2006-09-271-1/+3
| | | | llvm-svn: 30620
* Add support for ${:comment}, which expands to the current target's commentChris Lattner2006-09-261-0/+24
| | | | | | | character, and ${:uid} which expands to a unique ID for the MachineInstr. More can be added if/when they are needed. llvm-svn: 30619
* Add support for targets that want to do something with the llvm.used list,Chris Lattner2006-09-261-2/+21
| | | | | | because they have an aggressive linker that does dead code stripping. llvm-svn: 30604
* Add support for other relocation bases to jump tables, as well as custom asm ↵Andrew Lenharth2006-09-241-3/+8
| | | | | | directives llvm-svn: 30593
* oopsAndrew Lenharth2006-09-181-1/+0
| | | | llvm-svn: 30462
* absolute addresses must match pointer sizeAndrew Lenharth2006-09-181-0/+1
| | | | llvm-svn: 30461
* Use MachineConstantPoolEntry getOffset() and getType() accessors.Evan Cheng2006-09-141-13/+7
| | | | llvm-svn: 30326
* Added support for machine specific constantpool values. These are useful forEvan Cheng2006-09-121-35/+58
| | | | | | representing expressions that can only be resolved at link time, etc. llvm-svn: 30278
* Make target asm info a property of the target machine.Jim Laskey2006-09-071-1/+2
| | | | llvm-svn: 30162
* Fix pasto that was breaking x86 tests.Evan Cheng2006-09-071-2/+2
| | | | llvm-svn: 30151
* Separate target specific asm properties from the asm printers.Jim Laskey2006-09-061-132/+105
| | | | llvm-svn: 30126
* Don't call isDef on non-registersChris Lattner2006-09-051-1/+2
| | | | llvm-svn: 30117
* Emit .set directives for jump table entries when possible, which reducesNate Begeman2006-08-121-3/+39
| | | | | | the number of relocations in object files, shrinkifying them. llvm-svn: 29650
* Instead of blindly looking past constantexpr casts, actually constantChris Lattner2006-07-291-14/+20
| | | | | | | | fold them. This correctly truncates constants that are too large for the destination slot and makes the code easier to understand. This fixes PR853 and Regression/CodeGen/X86/2006-07-28-AsmPrint-Long-As-Pointer.ll llvm-svn: 29408
* Print empty inline asms as a blank line instead of:Chris Lattner2006-07-281-1/+8
| | | | | | | | # InlineAsm Start # InlineAsm End llvm-svn: 29372
* Code cleanups, per reviewNate Begeman2006-07-271-3/+7
| | | | llvm-svn: 29347
* Support jump tables when in PIC relocation modelNate Begeman2006-07-271-16/+18
| | | | llvm-svn: 29318
* On 64-bit targets like ppc64, we should use .quad to output pointer directives,Chris Lattner2006-07-151-1/+9
| | | | | | not .long. llvm-svn: 29157
* Add support to print 4-, 8-, and 16- byte constant literals in specialEvan Cheng2006-06-291-10/+48
| | | | | | sections. e.g. On Darwin that would be .literal4 and .literal8. llvm-svn: 28977
* Was pointed out that structure alignment and type alignment are not the sameJim Laskey2006-06-151-0/+3
| | | | | | thing. Doubles still need to be special cased. llvm-svn: 28806
* Alignment of globals has not been quite right. Needed to drop the pointer typeJim Laskey2006-06-151-5/+3
| | | | | | to get the alignment of the element type. llvm-svn: 28799
* Assert. Rather than silently stop printing.Evan Cheng2006-06-151-0/+2
| | | | llvm-svn: 28794
OpenPOWER on IntegriCloud