summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "Complete Rewrite of AsmPrinter, TargetObjectFile based on newDaniel Dunbar2009-10-1513-878/+689
| | | | | | PIC16Section class", it breaks globals.ll. llvm-svn: 84184
* Complete Rewrite of AsmPrinter, TargetObjectFile based on new PIC16Section classSanjiv Gupta2009-10-1513-689/+878
| | | | | | derived from MCSection. llvm-svn: 84180
* Few changes to comply with new DebugInfo Metadata representation.Sanjiv Gupta2009-10-151-4/+5
| | | | llvm-svn: 84179
* s/DebugLoc.CompileUnit/DebugLoc.Scope/gDevang Patel2009-10-131-1/+1
| | | | | | s/DebugLoc.InlinedLoc/DebugLoc.InlinedAtLoc/g llvm-svn: 84054
* Add register-reuse to frame-index register scavenging. When a target usesJim Grosbach2009-10-072-5/+9
| | | | | | | | | | | | | | | | | | | | a virtual register to eliminate a frame index, it can return that register and the constant stored there to PEI to track. When scavenging to allocate for those registers, PEI then tracks the last-used register and value, and if it is still available and matches the value for the next index, reuses the existing value rather and removes the re-materialization instructions. Fancier tracking and adjustment of scavenger allocations to keep more values live for longer is possible, but not yet implemented and would likely be better done via a different, less special-purpose, approach to the problem. eliminateFrameIndex() is modified so the target implementations can return the registers they wish to be tracked for reuse. ARM Thumb1 implements and utilizes the new mechanism. All other targets are simply modified to adjust for the changed eliminateFrameIndex() prototype. llvm-svn: 83467
* Instead of printing unnecessary basic block labels as labels inDan Gohman2009-10-061-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 Patel2009-10-061-3/+2
| | | | | | and after printing an instruction. llvm-svn: 83363
* Use MachineInstr as an processDebugLoc() argument.Devang Patel2009-09-301-1/+1
| | | | | | This will allow processDebugLoc() to handle scopes for DWARF debug info. llvm-svn: 83183
* Fix a comment typo.Bob Wilson2009-09-301-1/+1
| | | | llvm-svn: 83174
* Remove std::string uses from DebugInfo interface.Devang Patel2009-09-291-10/+7
| | | | llvm-svn: 83083
* Fix PR4926. When target hook EmitInstrWithCustomInserter() insert new basic ↵Evan Cheng2009-09-191-2/+11
| | | | | | blocks and update CFG, it should also inform sdisel of the changes so the phi source operands will come from the right basic blocks. llvm-svn: 82311
* Enhance EmitInstrWithCustomInserter() so target can specify CFG changes that ↵Evan Cheng2009-09-182-2/+4
| | | | | | | | sdisel will use to properly complete phi nodes. Not functionality change yet. llvm-svn: 82273
* PIC16 does allow colon after MBB labels, simplify EmitBasicBlockStart.Chris Lattner2009-09-141-1/+1
| | | | llvm-svn: 81755
* remove all but one reference to TargetRegisterDesc::AsmName.Chris Lattner2009-09-131-4/+1
| | | | llvm-svn: 81714
* the tblgen produced 'getRegisterName' method does not accessChris Lattner2009-09-131-1/+1
| | | | | | the object, make it static instead of const. llvm-svn: 81711
* make tblgen produce a function that returns the name for a physreg.Chris Lattner2009-09-131-0/+2
| | | | | | Nothing is using this info yet. llvm-svn: 81707
* replace printBasicBlockLabel with EmitBasicBlockStart,Chris Lattner2009-09-131-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 GetMBBSymbolChris Lattner2009-09-131-1/+2
| | | | | | instead. llvm-svn: 81677
* remove DebugLoc from MCInst and eliminate "Comment printing" fromChris Lattner2009-09-091-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
* Retype from unsigned to CallingConv::ID accordingly. Approved by Bob Wilson.Sandeep Patel2009-09-022-6/+6
| | | | llvm-svn: 80773
* Further refactoring of PIC16 Obj file code.Sanjiv Gupta2009-09-013-19/+26
| | | | llvm-svn: 80670
* Simplify isDerivedType() and other predicate interface.Devang Patel2009-08-311-3/+3
| | | | llvm-svn: 80602
* Normalize makefile comments and sort cmake file lists.Benjamin Kramer2009-08-312-2/+2
| | | | llvm-svn: 80584
* Reapply 79977.Devang Patel2009-08-282-14/+13
| | | | | | Use MDNodes to encode debug info in llvm IR. llvm-svn: 80406
* Add comments detailing a known bug, so that people writing otherDan Gohman2009-08-261-0/+8
| | | | | | backends don't use it as an example. llvm-svn: 80105
* Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.Devang Patel2009-08-262-13/+14
| | | | llvm-svn: 80073
* Start refactoring PIC16 TargetObjectFile code. Eventually, all the stuff fromSanjiv Gupta2009-08-253-12/+58
| | | | | | PIC16Section will move to MCSectionPIC16. llvm-svn: 80021
* Update DebugInfo interface to use metadata, instead of special named ↵Devang Patel2009-08-252-14/+13
| | | | | | | | llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well. This change speeds up llvm-gcc by more then 6% at "-O0 -g" (measured by compiling InstructionCombining.cpp!) llvm-svn: 79977
* eliminate a #include.Chris Lattner2009-08-241-1/+0
| | | | llvm-svn: 79888
* Forgot to update some CMakeLists.Benjamin Kramer2009-08-221-1/+1
| | | | llvm-svn: 79780
* rename TAI -> MAI, being careful not to make MAILJMP instructions :)Chris Lattner2009-08-226-22/+22
| | | | llvm-svn: 79777
* revert 79764, my dependencies failed me again.Chris Lattner2009-08-223-2/+5
| | | | llvm-svn: 79767
* remove dead member.Chris Lattner2009-08-222-6/+2
| | | | llvm-svn: 79764
* Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.Chris Lattner2009-08-229-26/+25
| | | | llvm-svn: 79763
* Revert r79563Chris Lattner2009-08-212-177/+0
| | | | llvm-svn: 79691
* revert r79562 + r79563Chris Lattner2009-08-2110-533/+280
| | | | llvm-svn: 79690
* revert r79631Chris Lattner2009-08-212-0/+0
| | | | llvm-svn: 79686
* revert 79631Chris Lattner2009-08-2110-197/+8
| | | | llvm-svn: 79685
* Fix a problem noticed by gcc-4.4:Duncan Sands2009-08-211-1/+1
| | | | | | warning: comparison is always true due to limited range of data type. llvm-svn: 79642
* Fix -Asserts warning.Daniel Dunbar2009-08-211-2/+2
| | | | llvm-svn: 79636
* Add a pass to do call graph analyis to overlay the autos and frame sections of Sanjiv Gupta2009-08-2110-8/+202
| | | | | | | leaf functions. This pass will be extended to color other nodes of the call tree as well in future. llvm-svn: 79631
* Remove #include <iostream>.Bill Wendling2009-08-211-1/+0
| | | | llvm-svn: 79603
* part of the previous commit for PIC16 ISR implementation.Sanjiv Gupta2009-08-202-0/+178
| | | | llvm-svn: 79563
* Implement support for ISRs. Sanjiv Gupta2009-08-2010-280/+528
| | | | | | | | | Clone functions that are shared between the Main thread and Interrupt thread. CallSites are changed in AsmPrinter currently. A better solution would have been to modify the legalizer (SoftenFloat) to allow targets to change the name of libcalls for float operations. But that currently breaks other targets. Also, cloing of automatic variables is done AsmPrinter, a better approach would be to use the ValueMap in CloneFunction itself. llvm-svn: 79562
* eliminate AsmPrinter::SwitchToSection and just have clientsChris Lattner2009-08-191-7/+8
| | | | | | talk to the MCStreamer directly instead. llvm-svn: 79405
* Revert a few changes that were done in 78603.Sanjiv Gupta2009-08-152-14/+15
| | | | | | | | PIC16DebugInfo currently rely on NameStr of composite type descriptors to uniquely identify debug info for two aggregate type decls with same name. This implementation will change when we have MDNodes based debug info implemenatation in place llvm-svn: 79097
* update for rename.Chris Lattner2009-08-151-2/+2
| | | | llvm-svn: 79082
* rename PIC16Section.h -> MCSectionPIC16.h for consistency withChris Lattner2009-08-153-2/+2
| | | | | | the class it defines. llvm-svn: 79081
* Reapply pieces of 78914 reverted in 78916, this has been fixed.Daniel Dunbar2009-08-133-19/+15
| | | | llvm-svn: 78921
* Remove obsoleted files (from AsmPrinter move)Daniel Dunbar2009-08-133-566/+0
| | | | llvm-svn: 78917
OpenPOWER on IntegriCloud