summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move a few more convenience factory functions from Constant to LLVMContext.Owen Anderson2009-07-158-46/+57
| | | | llvm-svn: 75840
* move createAlphaLLRPPass out of addAssemblyEmitter to make AlphaChris Lattner2009-07-151-1/+1
| | | | | | more like other targets. llvm-svn: 75839
* ShortenDeadCopySrcLiveRange needs to be more conservative in multi-kill ↵Evan Cheng2009-07-151-1/+6
| | | | | | situations. llvm-svn: 75838
* Lexically order files in CMakeLists.txt files.Ted Kremenek2009-07-157-10/+10
| | | | llvm-svn: 75831
* Move the ConstantStruct factory methods over to LLVMContext.Owen Anderson2009-07-152-11/+8
| | | | llvm-svn: 75830
* Remove unused function.Daniel Dunbar2009-07-151-16/+0
| | | | llvm-svn: 75829
* use std::vector instead of std::list for both Section and Symbol lists becauseBruno Cardoso Lopes2009-07-155-191/+194
| | | | | | we care more about random access than insertion/deletion of elements. llvm-svn: 75828
* Update CMakeLists for reapplication.Daniel Dunbar2009-07-151-1/+0
| | | | llvm-svn: 75825
* Reapply TargetRegistry refactoring commits.Daniel Dunbar2009-07-1547-572/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --- Reverse-merging r75799 into '.': U test/Analysis/PointerTracking U include/llvm/Target/TargetMachineRegistry.h U include/llvm/Target/TargetMachine.h U include/llvm/Target/TargetRegistry.h U include/llvm/Target/TargetSelect.h U tools/lto/LTOCodeGenerator.cpp U tools/lto/LTOModule.cpp U tools/llc/llc.cpp U lib/Target/PowerPC/PPCTargetMachine.h U lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp U lib/Target/PowerPC/PPCTargetMachine.cpp U lib/Target/PowerPC/PPC.h U lib/Target/ARM/ARMTargetMachine.cpp U lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp U lib/Target/ARM/ARMTargetMachine.h U lib/Target/ARM/ARM.h U lib/Target/XCore/XCoreTargetMachine.cpp U lib/Target/XCore/XCoreTargetMachine.h U lib/Target/PIC16/PIC16TargetMachine.cpp U lib/Target/PIC16/PIC16TargetMachine.h U lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp U lib/Target/Alpha/AlphaTargetMachine.cpp U lib/Target/Alpha/AlphaTargetMachine.h U lib/Target/X86/X86TargetMachine.h U lib/Target/X86/X86.h U lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h U lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp U lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.h U lib/Target/X86/X86TargetMachine.cpp U lib/Target/MSP430/MSP430TargetMachine.cpp U lib/Target/MSP430/MSP430TargetMachine.h U lib/Target/CppBackend/CPPTargetMachine.h U lib/Target/CppBackend/CPPBackend.cpp U lib/Target/CBackend/CTargetMachine.h U lib/Target/CBackend/CBackend.cpp U lib/Target/TargetMachine.cpp U lib/Target/IA64/IA64TargetMachine.cpp U lib/Target/IA64/AsmPrinter/IA64AsmPrinter.cpp U lib/Target/IA64/IA64TargetMachine.h U lib/Target/IA64/IA64.h U lib/Target/MSIL/MSILWriter.cpp U lib/Target/CellSPU/SPUTargetMachine.h U lib/Target/CellSPU/SPU.h U lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp U lib/Target/CellSPU/SPUTargetMachine.cpp U lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp U lib/Target/Mips/MipsTargetMachine.cpp U lib/Target/Mips/MipsTargetMachine.h U lib/Target/Mips/Mips.h U lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp U lib/Target/Sparc/SparcTargetMachine.cpp U lib/Target/Sparc/SparcTargetMachine.h U lib/ExecutionEngine/JIT/TargetSelect.cpp U lib/Support/TargetRegistry.cpp llvm-svn: 75820
* Fix cmake build, add TargetMachineRegistry.cpp that got restored in r75807Xerxes Ranby2009-07-151-0/+1
| | | | llvm-svn: 75817
* Restore file lost during reversion.Stuart Hastings2009-07-151-0/+78
| | | | llvm-svn: 75807
* Revert 75798 to fix llvm build.Rafael Espindola2009-07-151-0/+14
| | | | llvm-svn: 75805
* Add a Force option to raw_fd_ostream to specify whether openingDan Gohman2009-07-151-1/+3
| | | | | | | | an existing file is considered an error. Convert several tools to use raw_fd_ostream instead of std::ostream, and to use this new option instead of doing a manual check. llvm-svn: 75801
* Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to ↵Stuart Hastings2009-07-1546-247/+491
| | | | | | | | repair broken LLVM-GCC build. Will revert 75770 in the llvm-gcc trunk. llvm-svn: 75799
* 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
OpenPOWER on IntegriCloud