summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* The static function TypeToFloatSemantics is nowDuncan Sands2009-07-151-14/+0
| | | | | | unused - remove it. llvm-svn: 75798
* Fix pattern for LD16S_3r, add basic tests to check load / store instructionsRichard Osborne2009-07-151-1/+1
| | | | | | are being properly selected. llvm-svn: 75797
* Add a raw_ostream version of CheckBitcodeOutputToConsole.Dan Gohman2009-07-151-0/+15
| | | | llvm-svn: 75796
* Check for errors on close(2) too. And lseek(2).Dan Gohman2009-07-151-2/+6
| | | | llvm-svn: 75793
* Use 0664 instead of 0644 for the default open mode. This isDan Gohman2009-07-151-1/+1
| | | | | | | consistent with common std::ostream implmentations, and it gives the user the option of using the umask group write bit. llvm-svn: 75792
* Thumb-2 only support [base_reg + offset_reg] addressing, not [base_reg - ↵David Goodwin2009-07-151-13/+16
| | | | | | offset_reg]. llvm-svn: 75789
* Fix XCoreTargetLowering::isLegalAddressingMode to handle non simple VTs.Richard Osborne2009-07-151-24/+10
| | | | llvm-svn: 75788
* Remove the xcore-file-directive option now that LLVM has proper support forRichard Osborne2009-07-151-19/+1
| | | | | | emitting file directives with one parameter. llvm-svn: 75787
* Added llvm-mc support for parsing the .dump and .load directives.Kevin Enderby2009-07-151-0/+12
| | | | llvm-svn: 75786
* Remove the v3i32 and v3f32 value types: they are notDuncan Sands2009-07-151-4/+0
| | | | | | native for any supported targets. llvm-svn: 75785
* Replace large swaths of copy-n-paste code with obvious helper function...Daniel Dunbar2009-07-153-90/+36
| | | | | | | | | | | | | | | | | | | | | | | - Which was already present in the module! - I skipped this xform for Alpha, since it runs an extra pass during assembly emission, but not when emitting assembly via the DumpAsm flag. - No functionality change. -- ddunbar@giles:llvm$ svn diff | grep '^- ' | sort | uniq -c 18 - PM.add(AsmPrinterCtor(ferrs(), *this, true)); 18 - assert(AsmPrinterCtor && "AsmPrinter was not linked in"); 18 - if (AsmPrinterCtor) 18 - if (DumpAsm) { 18 - } ddunbar@giles:llvm$ svn diff | grep '^+ ' | sort | uniq -c 18 + addAssemblyEmitter(PM, OptLevel, true, ferrs()); 18 + if (DumpAsm) -- llvm-svn: 75782
* Remove StringConstantPrefix now that the only userDuncan Sands2009-07-152-2/+0
| | | | | | (llvm-gcc) has gone. llvm-svn: 75781
* Kill off old (TargetMachine level, not Target level) match quality functions.Daniel Dunbar2009-07-1522-347/+0
| | | | llvm-svn: 75780
* Fix cmake build lib/Target/TargetMachineRegistry.cpp removed.Xerxes Ranby2009-07-151-1/+0
| | | | llvm-svn: 75779
* Provide TargetMachine implementations with reference to Target they were createdDaniel Dunbar2009-07-1526-66/+96
| | | | | | | | from. - This commit is almost entirely propogating the reference through the TargetMachine subclasses' constructor calls. llvm-svn: 75778
* Kill off unused TargetMachineRegistry methods and ivars.Daniel Dunbar2009-07-151-51/+0
| | | | llvm-svn: 75774
* Migrate llc and the JIT to using the TargetRegistry for lookups.Daniel Dunbar2009-07-151-6/+7
| | | | | | | | | | | | - They still use the TargetMachineRegistry to populate the contents of the -march option (via the listener interface). We can't just populate it in the option parser because we can't expect the TargetRegistry to be populated yet (we no longer rely on static constructors). - There are a couple ways to finish killing off TargetMachineRegistry, but I haven't figured out the cleanest one yet... llvm-svn: 75773
* Include the Target& in the TargetMachineRegisterEntry.Daniel Dunbar2009-07-151-2/+2
| | | | llvm-svn: 75772
* Allow multiple registrations of the same target.Daniel Dunbar2009-07-151-7/+5
| | | | | | | - This doesn't necessarily seem like a good idea, but the JIT unittest currently relies on it. llvm-svn: 75769
* Switch some obvious clients to using the new TargetRegistry.Daniel Dunbar2009-07-151-9/+10
| | | | llvm-svn: 75767
* Reimplement TargetMachineRegistry in terms of TargetRegistry.Daniel Dunbar2009-07-151-41/+14
| | | | | | | | | - This is a temporary hack to aid in incremental refactoring, for now we allocate a new TargetMachineRegistryEntry on every getClosest... call. - No intended functionality change, other than the leaked memory. llvm-svn: 75766
* Register Target's TargetMachine and AsmPrinter in the new registry.Daniel Dunbar2009-07-1536-56/+129
| | | | | | | - This abuses TargetMachineRegistry's constructor for now, this will get cleaned up in time. llvm-svn: 75762
* Detect write failures on raw_fd_ostream.Daniel Dunbar2009-07-151-2/+4
| | | | llvm-svn: 75758
* Fix stupid thinkoDaniel Dunbar2009-07-151-1/+1
| | | | llvm-svn: 75754
* Address some review comments on TargetRegistry.Daniel Dunbar2009-07-151-3/+1
| | | | llvm-svn: 75753
* Add TargetInfo libraries for all targets.Daniel Dunbar2009-07-1556-8/+1173
| | | | | | | | - Intended to match current TargetMachine implementations. - No facilities for linking these in yet. llvm-svn: 75751
* Move load / store folding alignment require into the table(s).Evan Cheng2009-07-152-448/+425
| | | | llvm-svn: 75749
* Update CMake file.Ted Kremenek2009-07-151-0/+1
| | | | llvm-svn: 75746
* rename decorateName -> DecorateCygMingName, make it assert if notChris Lattner2009-07-152-13/+14
| | | | | | | cygming, make the two callers only call it if cygming. Other minor cleanups. llvm-svn: 75744
* eliminate the Mangler::PreserveAsmNames bit, the sole client of thisChris Lattner2009-07-151-5/+1
| | | | | | can do it perfectly well itself. llvm-svn: 75743
* remove printSuffixedName.Chris Lattner2009-07-151-27/+5
| | | | llvm-svn: 75742
* convert arm/darwin stubs to use the mangler to synthesize all the names ↵Chris Lattner2009-07-151-47/+66
| | | | | | | | instead of doing it with printSuffixedName. llvm-svn: 75741
* Add new TargetRegistry.Daniel Dunbar2009-07-151-0/+136
| | | | | | | | | | | | | | | | | | | | | | | Targets implement a single global Target structure which will live in a new <Target>/TargetInfo library; this will be present in any image which the target is usable in. - Optional target specific classes can then be registered and attached to the Target description. - Registration for normal Targets will be done via the initialization functions instead of using static constructors. - This allows clients to use a single interface to obtain target data, without requiring the code generator be linked in. It also provides a natural extension point for adding new optional target data (assembler parser, disassembler, etc.). - This also provides a new entry point for obtaining a target for a particular triple (without a module). - Not yet used, however this should eventually replace the TargetMachineRegistry. llvm-svn: 75739
* fix an arm codegen bug (the same as PR4482 on ppc) where available_externallyChris Lattner2009-07-152-7/+6
| | | | | | | symbols were not getting stubs. While I'm at it, add a big testcase for stub generation to make sure I don't break anything. llvm-svn: 75737
* convert [Hidden]GVNonLazyPtrs to compute the global and stub namesChris Lattner2009-07-151-27/+41
| | | | | | | with the mangler (like x86 and ppc), instead of going through printSuffixedName. llvm-svn: 75736
* use makeNameProper to add the globalprefix instead of doing it manually.Chris Lattner2009-07-151-3/+1
| | | | llvm-svn: 75734
* get the PPC stub temporary label from the mangler instead of Chris Lattner2009-07-151-29/+5
| | | | | | | using horrible string hacking. This gives us a different label, but it's just an assembler temporary, so the name doesn't matter. llvm-svn: 75733
* turn some if/then's into ?:Chris Lattner2009-07-151-12/+3
| | | | llvm-svn: 75732
* eliminate a bunch of printSuffixedName's by using info computed fromChris Lattner2009-07-151-23/+15
| | | | | | Mangler in FnStubs. llvm-svn: 75731
* convert FnStubs to using a more structured form, eliminatingChris Lattner2009-07-151-9/+31
| | | | | | | a couple instances of printSuffixedName (in favor of having the mangler do stuff). llvm-svn: 75729
* actually $stub labels *are* private, I just missed that Chris Lattner2009-07-151-6/+2
| | | | | | printSuffixedName automatically does this. llvm-svn: 75727
* Fix indentation.Dan Gohman2009-07-151-18/+18
| | | | llvm-svn: 75723
* Make makeLoopInvariant report whether it made any changes or not,Dan Gohman2009-07-154-54/+24
| | | | | | and use this to simplify more code. llvm-svn: 75722
* $stub references should not be private ("L") labels.Chris Lattner2009-07-151-4/+5
| | | | llvm-svn: 75721
* simplify "EmitExternalGlobal": it is only used to output aChris Lattner2009-07-151-6/+1
| | | | | | | | reference to the personality function for a module, and those are all added to the GVStubs array by looping over MMI->getPersonalities() llvm-svn: 75720
* Convert GVStubs and HiddenGVStubs to work more like the X86 backend, thisChris Lattner2009-07-151-56/+52
| | | | | | eliminates a bunch of uses of "printSuffixedName" and "getGlobalLinkName". llvm-svn: 75719
* minor cleanups: only switch sections once before all function stubs, instead ofChris Lattner2009-07-151-16/+15
| | | | | | before each one. llvm-svn: 75718
* Added llvm-mc support for parsing the .include directive.Kevin Enderby2009-07-141-0/+6
| | | | llvm-svn: 75711
* minor syntax cleanupChris Lattner2009-07-141-11/+5
| | | | llvm-svn: 75707
* Move EVER MORE stuff over to LLVMContext.Owen Anderson2009-07-1437-278/+264
| | | | llvm-svn: 75703
OpenPOWER on IntegriCloud