summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/AsmPrinter
Commit message (Collapse)AuthorAgeFilesLines
...
* split DEBUG_VALUE printing stuff out to its own method.Chris Lattner2010-04-042-58/+63
| | | | llvm-svn: 100315
* mc'ize elf stub printing, convert cygwin stuff to EmitRawText,Chris Lattner2010-04-041-12/+15
| | | | | | which will abort in .o file writing mode. llvm-svn: 100314
* fix PrintAsmOperand and PrintAsmMemoryOperand to pass down Chris Lattner2010-04-042-4/+7
| | | | | | raw_ostream to print to. llvm-svn: 100313
* use predicates in DBG_VALUE printing code to simplify it.Chris Lattner2010-04-041-10/+9
| | | | llvm-svn: 100312
* remove more implicit uses of "O".Chris Lattner2010-04-043-88/+54
| | | | llvm-svn: 100311
* fix an ugly wart in the MCInstPrinter api where theChris Lattner2010-04-045-14/+12
| | | | | | | | raw_ostream to print an instruction to had to be specified at MCInstPrinter construction time instead of being able to pick at each call to printInstruction. llvm-svn: 100307
* change a ton of code to not implicitly use the "O" raw_ostreamChris Lattner2010-04-044-90/+99
| | | | | | member of AsmPrinter. Instead, pass it in explicitly. llvm-svn: 100306
* asmstreamerize the .size directive for function bodies, force clientsChris Lattner2010-04-031-2/+2
| | | | | | of printOffset to pass in a stream to print to. llvm-svn: 100296
* Comment the changes for r98218 and friends inside the source code.Bill Wendling2010-03-311-0/+5
| | | | llvm-svn: 100033
* Replace V_SET0 with variants for each SSE execution domain.Jakob Stoklund Olesen2010-03-311-1/+3
| | | | llvm-svn: 99975
* Rip out the 'is temporary' nonsense from the MCContext interface toChris Lattner2010-03-301-4/+4
| | | | | | | | | create symbols. It is extremely error prone and a source of a lot of the remaining integrated assembler bugs on x86-64. This fixes rdar://7807601. llvm-svn: 99902
* fix GetOrCreateTemporarySymbol to require a name, clientsChris Lattner2010-03-171-1/+1
| | | | | | | should use CreateTempSymbol() if they don't care about the name. llvm-svn: 98712
* MC: Allow modifiers in MCSymbolRefExpr, and eliminate X86MCTargetExpr.Daniel Dunbar2010-03-151-17/+12
| | | | | | | - Although it would be nice to allow this decoupling, the assembler needs to be able to reason about MCSymbolRefExprs in too many places to make this viable. We can use a target specific encoding of the variant if this becomes an issue. - This patch also extends llvm-mc to support parsing of the modifiers, as opposed to lumping them in with the symbol. llvm-svn: 98592
* comment fix.Chris Lattner2010-03-141-1/+1
| | | | llvm-svn: 98494
* shrink 4-byte branches to 1-byte branches when lowering fromChris Lattner2010-03-141-0/+23
| | | | | | | MachineInstr -> MCInst. This is what the assembler backend wants, it relaxes from smaller to larger things. This fixes rdar://7750815 llvm-svn: 98493
* eliminate the now-unneeded context argument of MBB::getSymbol()Chris Lattner2010-03-132-2/+2
| | | | llvm-svn: 98451
* rearrange MCContext ownership. Before LLVMTargetMachine created it Chris Lattner2010-03-131-3/+2
| | | | | | | | | | | and passing off ownership to AsmPrinter. Now MachineModuleInfo creates it and owns it by value. This allows us to use MCSymbols more consistently throughout the rest of the code generator, and simplifies a bit of code. This also allows MachineFunction to keep an MCContext reference handy, and cleans up the TargetRegistry interfaces for AsmPrinters. llvm-svn: 98450
* switch to the text section at the start of the .s file for darwin/x86Chris Lattner2010-03-132-1/+7
| | | | | | | targets. This is a temporary hack for the .o file writer that Daniel wants :) llvm-svn: 98413
* Fix LLVM build when the user specifies CPPFLAGS on the make command line.Jeffrey Yasskin2010-03-121-1/+1
| | | | llvm-svn: 98394
* remove special case code that isn't needed anymore.Chris Lattner2010-03-121-5/+0
| | | | llvm-svn: 98391
* inline GetGlobalValueSymbol into the rest its callers andChris Lattner2010-03-121-3/+3
| | | | | | remove it. llvm-svn: 98390
* inline the now-trivial implementation of GetGlobalValueSymbol intoChris Lattner2010-03-121-9/+7
| | | | | | some of its callers. llvm-svn: 98388
* eliminate the X86 version of GetGlobalValueSymbol, allowingChris Lattner2010-03-122-5/+0
| | | | | | it to be non-virtual and soon disappear. llvm-svn: 98387
* move fastcall/stdcall mangling up into Mangler.Chris Lattner2010-03-122-11/+1
| | | | llvm-svn: 98384
* make DecorateCygMingName a static method.Chris Lattner2010-03-122-8/+6
| | | | llvm-svn: 98377
* minor tidying, only do work if a function is Chris Lattner2010-03-122-6/+4
| | | | | | actually X86_StdCall or X86_FastCall. llvm-svn: 98374
* eliminate the string form of DecorateCygMingNameChris Lattner2010-03-122-13/+18
| | | | llvm-svn: 98373
* Add a beta-test for placing the LSDA into the TEXT section on X86.Bill Wendling2010-03-121-2/+10
| | | | llvm-svn: 98370
* Fix llc crash on invalid input.Devang Patel2010-03-121-0/+7
| | | | llvm-svn: 98369
* Remove some dead code. This method only gets called on Chris Lattner2010-03-121-5/+0
| | | | | | definitions. llvm-svn: 98368
* use Mang->getSymbol instead of duplicating the logic, reduce indentation.Chris Lattner2010-03-121-19/+13
| | | | llvm-svn: 98367
* simplify code to use OutContext.GetOrCreateTemporarySymbol withChris Lattner2010-03-121-5/+2
| | | | | | | no arguments instead of having to come up with a unique name. This also makes the code less fragile. llvm-svn: 98364
* Add a bit along with the MCSymbols stored in the MachineModuleInfo maps thatBill Wendling2010-03-102-30/+50
| | | | | | | | indicates that an MCSymbol is external or not. (It's true if it's external.) This will be used to specify the correct information to add to non-lazy pointers. That will be explained further when this bit is used. llvm-svn: 98199
* set the temporary bit on MCSymbols correctly.Chris Lattner2010-03-102-6/+11
| | | | llvm-svn: 98124
* MC-ize the stub printing in ARM.Bill Wendling2010-03-091-1/+1
| | | | llvm-svn: 98018
* Make the operand and format specifier match, and print allDan Gohman2010-02-171-1/+1
| | | | | | 64 bits, fixing a variety of problems. llvm-svn: 96421
* Move TLOF implementations to libCodegen to resolve layering violation.Anton Korobeynikov2010-02-151-1/+1
| | | | llvm-svn: 96288
* Preliminary patch to improve dwarf EH generation - Hooks to return ↵Anton Korobeynikov2010-02-151-0/+22
| | | | | | Personality / FDE / LSDA / TType encoding depending on target / options (e.g. code model / relocation model) - MCIzation of Dwarf EH printer to use encoding information - Stub generation for ELF target (needed for indirect references) - Some other small changes here and there llvm-svn: 96285
* Cleanup stdcall / fastcall name mangling.Anton Korobeynikov2010-02-122-31/+26
| | | | | | This should fix alot of problems we saw so far, e.g. PRs 5851 & 2936 llvm-svn: 95980
* enhance llvm-mc -show-inst to print the enum of an instruction, like so:Chris Lattner2010-02-114-2/+14
| | | | | | | | | | testb %al, %al ## <MCInst #2412 TEST8rr ## <MCOperand Reg:2> ## <MCOperand Reg:2>> jne LBB1_7 ## <MCInst #938 JNE_1 ## <MCOperand Expr:(LBB1_7)>> llvm-svn: 95935
* print all the newlines at the end of instructions withChris Lattner2010-02-101-3/+3
| | | | | | OutStreamer.AddBlankLine instead of textually. llvm-svn: 95734
* Add ability for MCInstPrinters to add comments for instructions.Chris Lattner2010-02-101-0/+5
| | | | | | | | | Enhance the x86 backend to show the hex values of immediates in comments when they are large. For example: movl $1072693248, 4(%esp) ## imm = 0x3FF00000 llvm-svn: 95728
* move target-independent opcodes out of TargetInstrInfoChris Lattner2010-02-091-1/+1
| | | | | | | | | into TargetOpcodes.h. #include the new TargetOpcodes.h into MachineInstr. Add new inline accessors (like isPHI()) to MachineInstr, and start using them throughout the codebase. llvm-svn: 95687
* unify the paths for external symbols and global variables:Chris Lattner2010-02-082-83/+48
| | | | | | 2 files changed, 48 insertions(+), 83 deletions(-) llvm-svn: 95599
* switch the rest of the "@ concatentation" logic in the X86Chris Lattner2010-02-082-120/+46
| | | | | | backend to use X86MCTargetExpr, simplifying a bunch of code. llvm-svn: 95595
* switch ELF @GOTOFF references to use X86MCTargetExpr.Chris Lattner2010-02-081-2/+5
| | | | llvm-svn: 95593
* really kill off the last MRMInitReg inst, remove logic from encoder.Chris Lattner2010-02-051-0/+1
| | | | llvm-svn: 95437
* lower the last of the MRMInitReg instructions in MCInstLower.Chris Lattner2010-02-051-0/+7
| | | | llvm-svn: 95435
* teach X86MCInstLower to lower the MOV32r0 and MOV8r0 Chris Lattner2010-02-051-2/+10
| | | | | | pseudo instructions. llvm-svn: 95433
* genericize helpers, use them for MOV16r0/MOV64r0Chris Lattner2010-02-051-27/+21
| | | | llvm-svn: 95432
OpenPOWER on IntegriCloud