Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Per discussion with Sanjiv, remove the PIC16 target from mainline. When/if | Chris Lattner | 2010-10-11 | 1 | -512/+0 |
| | | | | | | | it comes back, it will be largely a rewrite, so keeping the old codebase in tree isn't helping anyone. llvm-svn: 116190 | ||||
* | Use const qualifiers with TargetLowering. This eliminates several | Dan Gohman | 2010-04-17 | 1 | -2/+1 |
| | | | | | | | | | | | | | const_casts, and it reinforces the design of the Target classes being immutable. SelectionDAGISel::IsLegalToFold is now a static member function, because PIC16 uses it in an unconventional way. There is more room for API cleanup here. And PIC16's AsmPrinter no longer uses TargetLowering. llvm-svn: 101635 | ||||
* | Move per-function state out of TargetLowering subclasses and into | Dan Gohman | 2010-04-17 | 1 | -1/+4 |
| | | | | | | MachineFunctionInfo subclasses. llvm-svn: 101634 | ||||
* | prune some #includes. | Chris Lattner | 2010-04-05 | 1 | -2/+0 |
| | | | | llvm-svn: 100399 | ||||
* | Momentous day: remove the "O" member from AsmPrinter. Now all | Chris Lattner | 2010-04-04 | 1 | -4/+3 |
| | | | | | | | | | | "asm printering" happens through MCStreamer. This also Streamerizes PIC16 debug info, which escaped my attention. This removes a leak from LLVMTargetMachine of the 'legacy' output stream. llvm-svn: 100327 | ||||
* | streamerize the rest of PIC16 asm printer. | Chris Lattner | 2010-04-04 | 1 | -41/+63 |
| | | | | llvm-svn: 100317 | ||||
* | change a ton of code to not implicitly use the "O" raw_ostream | Chris Lattner | 2010-04-04 | 1 | -5/+5 |
| | | | | | | member of AsmPrinter. Instead, pass it in explicitly. llvm-svn: 100306 | ||||
* | PIC16: Simplify code by using a std::set<std::string> instead of a sorted & ↵ | Benjamin Kramer | 2010-03-20 | 1 | -19/+4 |
| | | | | | | uniqued std::list of leaked char*. llvm-svn: 99061 | ||||
* | eliminate the now-unneeded context argument of MBB::getSymbol() | Chris Lattner | 2010-03-13 | 1 | -1/+1 |
| | | | | llvm-svn: 98451 | ||||
* | rearrange MCContext ownership. Before LLVMTargetMachine created it | Chris Lattner | 2010-03-13 | 1 | -4/+3 |
| | | | | | | | | | | | 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 | ||||
* | inline GetGlobalValueSymbol into the rest its callers and | Chris Lattner | 2010-03-12 | 1 | -6/+7 |
| | | | | | | remove it. llvm-svn: 98390 | ||||
* | Reapply things reverted back in 97220, with the fixed test case. | Sanjiv Gupta | 2010-02-26 | 1 | -12/+10 |
| | | | | llvm-svn: 97228 | ||||
* | Revert r97211 and r97213 to get the build green again. | Chandler Carruth | 2010-02-26 | 1 | -10/+10 |
| | | | | llvm-svn: 97220 | ||||
* | Currently in LLVM, names of libcalls are assigned during TargetLowering | Sanjiv Gupta | 2010-02-26 | 1 | -10/+10 |
| | | | | | | | | object construction. There is no provision to change them when the code for a function generated. So we have to change these names while printing assembly. llvm-svn: 97213 | ||||
* | The code section for an ISR has a specific address. | Sanjiv Gupta | 2010-02-16 | 1 | -2/+3 |
| | | | | | | Currently, whether a function is ISR or not is encoded in the section attribute for that function. llvm-svn: 96322 | ||||
* | print all the newlines at the end of instructions with | Chris Lattner | 2010-02-10 | 1 | -1/+1 |
| | | | | | | OutStreamer.AddBlankLine instead of textually. llvm-svn: 95734 | ||||
* | rename printMachineInstruction -> EmitInstruction | Chris Lattner | 2010-02-03 | 1 | -7/+2 |
| | | | | llvm-svn: 95184 | ||||
* | refactor code so that LLVMTargetMachine creates the asmstreamer and | Chris Lattner | 2010-02-02 | 1 | -2/+3 |
| | | | | | | | mccontext instead of having AsmPrinter do it. This allows other types of MCStreamer's to be passed in. llvm-svn: 95155 | ||||
* | add a new MachineBasicBlock::getSymbol method, replacing | Chris Lattner | 2010-01-26 | 1 | -1/+1 |
| | | | | | | the AsmPrinter::GetMBBSymbol. llvm-svn: 94515 | ||||
* | don't bother setting the AsmPrinter::MF ivar, now that | Chris Lattner | 2010-01-26 | 1 | -2/+0 |
| | | | | | | | AsmPrinter::SetupMachineFunction sets it. Note that systemz and msp430 didn't. Yay for reduced inconsistency! :) llvm-svn: 94510 | ||||
* | now that MCSymbol::print doesn't use it's MAI argument, we can | Chris Lattner | 2010-01-17 | 1 | -17/+9 |
| | | | | | | | remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. llvm-svn: 93695 | ||||
* | eliminate uses of mangler and simplify code. | Chris Lattner | 2010-01-16 | 1 | -25/+22 |
| | | | | llvm-svn: 93615 | ||||
* | get pic16 off CurrentFnName | Chris Lattner | 2010-01-16 | 1 | -14/+13 |
| | | | | llvm-svn: 93610 | ||||
* | remove the string form of printVisibility. | Chris Lattner | 2010-01-16 | 1 | -2/+4 |
| | | | | llvm-svn: 93609 | ||||
* | 1. In indirect load/store insns , the name of fsr should be emitted as INDF. | Sanjiv Gupta | 2009-12-19 | 1 | -5/+13 |
| | | | | | | 2. include standard asmbly headers in generated asmbly. llvm-svn: 91768 | ||||
* | Move DebugInfo checks into EmitComments and remove them from | David Greene | 2009-11-13 | 1 | -1/+1 |
| | | | | | | | | target-specific AsmPrinters. Not all comments need DebugInfo. Re-enable the line numbers comment test. llvm-svn: 88697 | ||||
* | Reapply 85006 with a minor fix. | Sanjiv Gupta | 2009-10-25 | 1 | -0/+6 |
| | | | | llvm-svn: 85052 | ||||
* | Revert back 85006 for now as it breaks PIC16 tests. | Sanjiv Gupta | 2009-10-24 | 1 | -6/+0 |
| | | | | llvm-svn: 85008 | ||||
* | Adding support for placing global objects in shared data memory. | Sanjiv Gupta | 2009-10-24 | 1 | -0/+6 |
| | | | | llvm-svn: 85006 | ||||
* | fix warning. | Chris Lattner | 2009-10-22 | 1 | -1/+1 |
| | | | | llvm-svn: 84826 | ||||
* | Add a pass to overlay pic16 data sections for function frame and automatic | Sanjiv Gupta | 2009-10-21 | 1 | -3/+47 |
| | | | | | | | | variables. This pass can be invoked by llvm-ld or opt to traverse over the call graph to detect what function frames and their automatic variables can be overlaid. Currently this builds an archive , but needs to be changed to a loadable module. llvm-svn: 84753 | ||||
* | Cleaned up some code. No functionality change. | Sanjiv Gupta | 2009-10-16 | 1 | -43/+40 |
| | | | | llvm-svn: 84251 | ||||
* | Re-apply 84180 with the fixed test case. | Sanjiv Gupta | 2009-10-15 | 1 | -93/+77 |
| | | | | llvm-svn: 84195 | ||||
* | Revert "Complete Rewrite of AsmPrinter, TargetObjectFile based on new | Daniel Dunbar | 2009-10-15 | 1 | -77/+93 |
| | | | | | | PIC16Section class", it breaks globals.ll. llvm-svn: 84184 | ||||
* | Complete Rewrite of AsmPrinter, TargetObjectFile based on new PIC16Section class | Sanjiv Gupta | 2009-10-15 | 1 | -93/+77 |
| | | | | | | derived from MCSection. llvm-svn: 84180 | ||||
* | Instead of printing unnecessary basic block labels as labels in | Dan Gohman | 2009-10-06 | 1 | -1/+0 |
| | | | | | | | | | | verbose-asm mode, print comments instead. This eliminates a non-comment difference between verbose-asm mode and non-verbose-asm mode. Also, factor out the relevant code out of all the targets and into target-independent code. llvm-svn: 83392 | ||||
* | Update processDebugLoc() so that it can be used to process debug info before ↵ | Devang Patel | 2009-10-06 | 1 | -3/+2 |
| | | | | | | and after printing an instruction. llvm-svn: 83363 | ||||
* | Use MachineInstr as an processDebugLoc() argument. | Devang Patel | 2009-09-30 | 1 | -1/+1 |
| | | | | | | This will allow processDebugLoc() to handle scopes for DWARF debug info. llvm-svn: 83183 | ||||
* | Fix a comment typo. | Bob Wilson | 2009-09-30 | 1 | -1/+1 |
| | | | | llvm-svn: 83174 | ||||
* | PIC16 does allow colon after MBB labels, simplify EmitBasicBlockStart. | Chris Lattner | 2009-09-14 | 1 | -1/+1 |
| | | | | llvm-svn: 81755 | ||||
* | remove all but one reference to TargetRegisterDesc::AsmName. | Chris Lattner | 2009-09-13 | 1 | -4/+1 |
| | | | | llvm-svn: 81714 | ||||
* | replace printBasicBlockLabel with EmitBasicBlockStart, | Chris Lattner | 2009-09-13 | 1 | -1/+1 |
| | | | | | | | now that printBasicBlockLabel is only used for starting a MBB. This allows elimination of a bunch of arguments. llvm-svn: 81684 | ||||
* | convert some uses of printBasicBlockLabel to use GetMBBSymbol | Chris Lattner | 2009-09-13 | 1 | -1/+2 |
| | | | | | | instead. llvm-svn: 81677 | ||||
* | remove DebugLoc from MCInst and eliminate "Comment printing" from | Chris Lattner | 2009-09-09 | 1 | -0/+6 |
| | | | | | | | | | | | | | the MCInst path of the asmprinter. Instead, pull comment printing out of the autogenerated asmprinter into each target that uses the autogenerated asmprinter. This causes code duplication into each target, but in a way that will be easier to clean up later when more asmprinter stuff is commonized into the base AsmPrinter class. This also fixes an xcore strangeness where it inserted two tabs before every instruction. llvm-svn: 81396 | ||||
* | rename TAI -> MAI, being careful not to make MAILJMP instructions :) | Chris Lattner | 2009-08-22 | 1 | -16/+16 |
| | | | | llvm-svn: 79777 | ||||
* | revert 79764, my dependencies failed me again. | Chris Lattner | 2009-08-22 | 1 | -1/+1 |
| | | | | llvm-svn: 79767 | ||||
* | remove dead member. | Chris Lattner | 2009-08-22 | 1 | -1/+1 |
| | | | | llvm-svn: 79764 | ||||
* | Rename TargetAsmInfo (and its subclasses) to MCAsmInfo. | Chris Lattner | 2009-08-22 | 1 | -3/+3 |
| | | | | llvm-svn: 79763 | ||||
* | revert r79562 + r79563 | Chris Lattner | 2009-08-21 | 1 | -44/+12 |
| | | | | llvm-svn: 79690 | ||||
* | revert 79631 | Chris Lattner | 2009-08-21 | 1 | -15/+5 |
| | | | | llvm-svn: 79685 |