summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Convert more tools code from cerr and cout to errs() and outs().Dan Gohman2009-07-1621-285/+278
| | | | llvm-svn: 76070
* implement .include in the lexer/parser instead of passing it into the streamer.Chris Lattner2009-07-163-7/+35
| | | | llvm-svn: 75896
* Kill off last uses of TargetMachineRegistry class.Daniel Dunbar2009-07-163-4/+3
| | | | llvm-svn: 75892
* Switch llc and createJIT to use simpler command line parsing for -march.Daniel Dunbar2009-07-161-8/+17
| | | | llvm-svn: 75890
* Make sure targets are initialized before we do anything, even command lineDaniel Dunbar2009-07-162-5/+8
| | | | | | processing. llvm-svn: 75888
* Fix this comment to mention outs() rather than cout.Dan Gohman2009-07-151-1/+1
| | | | llvm-svn: 75858
* To simplify the upcoming context-on-type change, switch all command line ↵Owen Anderson2009-07-1514-14/+14
| | | | | | | | tools to using the default global context for now. This will let us to hardwire stuff to the global context in the short term while the API is sorted out. llvm-svn: 75846
* Reapply TargetRegistry refactoring commits.Daniel Dunbar2009-07-153-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --- 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
* Add a Force option to raw_fd_ostream to specify whether openingDan Gohman2009-07-159-143/+107
| | | | | | | | 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-153-21/+16
| | | | | | | | repair broken LLVM-GCC build. Will revert 75770 in the llvm-gcc trunk. llvm-svn: 75799
* Use errs() instead of std::cerr.Dan Gohman2009-07-1520-239/+246
| | | | llvm-svn: 75791
* Added llvm-mc support for parsing the .dump and .load directives.Kevin Enderby2009-07-152-0/+31
| | | | llvm-svn: 75786
* Migrate llc and the JIT to using the TargetRegistry for lookups.Daniel Dunbar2009-07-151-9/+14
| | | | | | | | | | | | - 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
* Switch some obvious clients to using the new TargetRegistry.Daniel Dunbar2009-07-152-7/+7
| | | | llvm-svn: 75767
* Teach Makefiles & CMake to link in the <TARGET>Info library when linking theDaniel Dunbar2009-07-151-1/+6
| | | | | | | | TARGET component. - Also, updated some CMake library dependencies, it is still missing some though. :( llvm-svn: 75755
* eliminate the Mangler::PreserveAsmNames bit, the sole client of thisChris Lattner2009-07-151-5/+10
| | | | | | can do it perfectly well itself. llvm-svn: 75743
* control reaches end of non-void function.Evan Cheng2009-07-141-0/+2
| | | | llvm-svn: 75714
* Added llvm-mc support for parsing the .include directive.Kevin Enderby2009-07-142-0/+25
| | | | llvm-svn: 75711
* Move EVER MORE stuff over to LLVMContext.Owen Anderson2009-07-142-13/+16
| | | | llvm-svn: 75703
* Added llvm-mc support for parsing the .lsym directive.Kevin Enderby2009-07-142-0/+33
| | | | llvm-svn: 75685
* Have asm printers use formatted_raw_ostream directly to avoid aDavid Greene2009-07-143-15/+25
| | | | | | dynamic_cast<>. llvm-svn: 75670
* Fix for bugpoint -remote-clientViktor Kutuzov2009-07-141-7/+15
| | | | llvm-svn: 75665
* Reapply my previous asmprinter changes now with more testing and two Chris Lattner2009-07-143-6/+6
| | | | | | | | | | | | | | | | | | | | additional bug fixes: 1. The bug that everyone hit was a problem in the asmprinter where it would remove $stub but keep the L prefix on a name when emitting the indirect symbol. This is easy to fix by keeping the name of the stub and the name of the symbol in a StringMap instead of just keeping a StringSet and trying to reconstruct it late. 2. There was a problem printing the personality function. The current logic to print out the personality function from the DWARF information is a bit of a cesspool right now that duplicates a bunch of other logic in the asm printer. The short version of it is that it depends on emitting both the L and _ prefix for symbols (at least on darwin) and until I can untangle it, it is best to switch the mangler back to emitting both prefixes. llvm-svn: 75646
* Added llvm-mc support for parsing the .desc directive.Kevin Enderby2009-07-142-0/+34
| | | | llvm-svn: 75645
* Revert r7561{9,8,7,6}, which depend on r75610. Daniel Dunbar2009-07-143-6/+6
| | | | | | | | | | | | | | | | | | --- Reverse-merging r75619 into '.': U lib/Target/DarwinTargetAsmInfo.cpp U lib/CodeGen/AsmPrinter/AsmPrinter.cpp --- Reverse-merging r75618 into '.': U lib/CodeGen/ELFWriter.cpp U lib/CodeGen/MachOCodeEmitter.cpp U lib/CodeGen/MachOWriter.cpp --- Reverse-merging r75617 into '.': U lib/Target/CBackend/CBackend.cpp --- Reverse-merging r75616 into '.': U tools/bugpoint/Miscompilation.cpp U tools/lto/LTOCodeGenerator.cpp U tools/lto/LTOModule.cpp llvm-svn: 75638
* Move main llvm-prof functionality into a ModulePass.Daniel Dunbar2009-07-141-110/+148
| | | | | | | | | | | - To support using the ProfileInfo analysis results instead of accessing the ProfileInfoLoader directly. - Based on (part of) a patch by Andreas Neustifter. - No functionality change. llvm-svn: 75625
* rename getValueName -> getMangledNameChris Lattner2009-07-143-6/+6
| | | | llvm-svn: 75616
* Added llvm-mc support for parsing the .abort directive.Kevin Enderby2009-07-132-0/+27
| | | | llvm-svn: 75545
* #include "llvm/Assembly/Writer.h" to get the declaration for WriteAsOperand.Dan Gohman2009-07-131-0/+1
| | | | llvm-svn: 75542
* Fix the build.Owen Anderson2009-07-131-0/+1
| | | | llvm-svn: 75536
* As Chris pointed out, this doesn't actually need an LLVMContext to operate.Owen Anderson2009-07-131-1/+1
| | | | llvm-svn: 75508
* add llvm-mc support for parsing the .subsections_via_symbols directive.Kevin Enderby2009-07-132-0/+19
| | | | llvm-svn: 75500
* Added a fixme for platform specific GetDirSeparator().Sanjiv Gupta2009-07-131-0/+2
| | | | llvm-svn: 75461
* allow mcc16 users to specify --save-temps even though it is hidden by mcc16.Sanjiv Gupta2009-07-132-2/+1
| | | | | | link libstd.so with llvm-ld by default with all the programs user is trying to build. llvm-svn: 75460
* Begin the painful process of tearing apart the rat'ss nest that is ↵Owen Anderson2009-07-135-5/+7
| | | | | | | | | Constants.cpp and ConstantFold.cpp. This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's the only way I could figure out to make this process vaguely incremental. llvm-svn: 75445
* Match declaration to definition.Daniel Dunbar2009-07-121-1/+1
| | | | llvm-svn: 75440
* silence vc++ warning.Chris Lattner2009-07-111-1/+1
| | | | llvm-svn: 75394
* Fix unused function warning.Daniel Dunbar2009-07-111-0/+2
| | | | llvm-svn: 75386
* Update documentation.Mikhail Glushenkov2009-07-111-2/+4
| | | | llvm-svn: 75375
* Erase the temp dir before starting.Sanjiv Gupta2009-07-111-0/+7
| | | | llvm-svn: 75367
* add support for .zerofill, patch by Kevin Enderby!Chris Lattner2009-07-102-1/+95
| | | | llvm-svn: 75301
* Support remote execute for ARM.David Goodwin2009-07-104-7/+37
| | | | llvm-svn: 75292
* Add a --with-oprofile flag to configure, which uses OProfile's agentJeffrey Yasskin2009-07-101-0/+1
| | | | | | | | | | | | | | | | | | library to tell it the addresses of JITted functions. For a particular program, this changes the opreport -l output from: samples % image name symbol name 48182 98.9729 anon (tgid:19412 range:0x7f12ccaab000-0x7f12cdaab000) anon (tgid:19412 range:0x7f12ccaab000-0x7f12cdaab000) 11 0.0226 libstdc++.so.6.0.9 /usr/lib/libstdc++.so.6.0.9 to: samples % image name symbol name 24565 60.7308 19814.jo fib_left 15365 37.9861 19814.jo fib_right 22 0.0544 ld-2.7.so do_lookup_x llvm-svn: 75279
* Link std.lib (.bc code) with llvm-ld.Sanjiv Gupta2009-07-101-2/+2
| | | | | | Link devices.lib (processor specific variables) with mplink. llvm-svn: 75263
* This started as a small change, I swear. Unfortunately, lots of things call ↵Owen Anderson2009-07-091-2/+2
| | | | | | the [I|F]CmpInst constructors. Who knew!? llvm-svn: 75200
* Documentation update.Mikhail Glushenkov2009-07-091-0/+3
| | | | llvm-svn: 75166
* We don't need to set SaveTemps here.Mikhail Glushenkov2009-07-091-1/+0
| | | | | | '--temp-dir' always overrides 'save-temps'. llvm-svn: 75165
* Adjust comment.Mikhail Glushenkov2009-07-091-2/+2
| | | | llvm-svn: 75164
* By default -t is always on for mcc16 and it uses ./tmp-objs as the temp ↵Sanjiv Gupta2009-07-091-1/+2
| | | | | | directory. llvm-svn: 75155
* add llvm-mc support for parsing the .lcomm directive, patch by Kevin Enderby!Chris Lattner2009-07-092-12/+15
| | | | llvm-svn: 75148
OpenPOWER on IntegriCloud