summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt
Commit message (Collapse)AuthorAgeFilesLines
* Code cleanup: tools/opt/opt.cppLogan Chien2012-09-011-4/+0
| | | | | | Remove unused local variable. llvm-svn: 163061
* Move lib/Analysis/DebugInfo.cpp to lib/VMCore/DebugInfo.cpp andBill Wendling2012-06-281-1/+1
| | | | | | | | | include/llvm/Analysis/DebugInfo.h to include/llvm/DebugInfo.h. The reasoning is because the DebugInfo module is simply an interface to the debug info MDNodes and has nothing to do with analysis. llvm-svn: 159312
* Teach the 'opt' tool about '-Os' and '-Oz', corresponding to the ClangChandler Carruth2012-05-161-12/+41
| | | | | | | | | | | | | options, to enable easier testing of the innards of LLVM that are enabled by such optimization strategies. Note that this doesn't provide the (much needed) function attribute support for -Oz (as opposed to -Os), but still seems like a positive step to better test the logic that Clang currently relies on. Patch by Patrik Hägglund. llvm-svn: 156913
* allow opt to take a -mtriple optionJoe Groff2012-04-171-0/+7
| | | | llvm-svn: 154959
* Add a basic-block autovectorization pass.Hal Finkel2012-02-013-2/+3
| | | | | | | This is the initial checkin of the basic-block autovectorization pass along with some supporting vectorization infrastructure. Special thanks to everyone who helped review this code over the last several months (especially Tobias Grosser). llvm-svn: 149468
* LLVMBuild: Remove trailing newline, which irked me.Daniel Dunbar2011-12-121-1/+0
| | | | llvm-svn: 146409
* When doing "opt -O2" verify the bitcode like is done forDuncan Sands2011-12-071-0/+2
| | | | | | "opt -std-compile-opts". llvm-svn: 146036
* Remove all remaining uses of Value::getNameStr().Benjamin Kramer2011-11-152-4/+4
| | | | llvm-svn: 144648
* LLVMBuild: Add description files for the LLVM tools.Daniel Dunbar2011-11-111-0/+23
| | | | llvm-svn: 144417
* build: Tidy up a bunch of tool Makefiles, and simplify where possible using theDaniel Dunbar2011-10-181-2/+2
| | | | | | new all-targets pseudo-component. llvm-svn: 142401
* Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang ↵Chris Lattner2011-10-161-1/+1
| | | | | | | | | | | | | | | does. Enhance the X86 asmparser to produce ranges in the one case that was annoying me, for example: test.s:10:15: error: invalid operand for instruction movl 0(%rax), 0(%edx) ^~~~~~~ It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use ranges where appropriate if someone is interested. llvm-svn: 142106
* Remove the LowerSetJmp pass. It wasn't used effectively by any of the targets.Bill Wendling2011-08-031-2/+0
| | | | | | This is some of my original LLVM code. *wipes tear* llvm-svn: 136821
* move PassManagerBuilder.h to IPO. This is a non intuitive place to put it,Rafael Espindola2011-08-021-1/+1
| | | | | | | but it solves a layering violation since things in Support are not supposed to use things in Transforms. llvm-svn: 136726
* We only do always-inlining at -O1; make opt reflect that.Eli Friedman2011-06-061-1/+1
| | | | llvm-svn: 132693
* initialize and finalize function passes, pointed out by Cameron.Chris Lattner2011-05-221-1/+4
| | | | llvm-svn: 131843
* switch opt to using PassManagerBuilder.hChris Lattner2011-05-221-34/+31
| | | | llvm-svn: 131824
* remove graphprinter support for domfrontier.Chris Lattner2011-04-051-3/+1
| | | | llvm-svn: 128938
* Added *hidden* flags -print-options and -print-all-options soAndrew Trick2011-04-051-0/+3
| | | | | | | | | | | | | | | | | | | developers can see if their driver changed any cl::Option's. The current implementation isn't perfect but handles most kinds of options. This is nice to have when decomposing the stages of compilation and moving between different drivers. It's also a good sanity check when comparing results produced by different command line invocations that are expected to produce the comparable results. Note: This is not an attempt to prolong the life of cl::Option. On the contrary, it's a placeholder for a feature that must exist when cl::Option is replaced by a more appropriate framework. A new framework needs: a central option registry, dynamic name lookup, non-global containers of option values (e.g. per-module, per-function), *and* the ability to print options values and their defaults at any point during compilation. llvm-svn: 128910
* whitespaceAndrew Trick2011-04-051-8/+8
| | | | llvm-svn: 128905
* Update BreakpointPrinter to emit original function names only. Devang Patel2011-04-041-15/+31
| | | | llvm-svn: 128839
* add a way to disable all builtins, wire it up to opt's ↵Chris Lattner2011-02-181-2/+6
| | | | | | -disable-simplifylibcalls flag. llvm-svn: 125978
* Have opt set up a specific TargetLibraryInfo for modulesChris Lattner2011-02-181-2/+8
| | | | | | with a triple. llvm-svn: 125970
* Make -disable-simplify-libcalls work with -std-compile-optsPeter Collingbourne2011-02-181-1/+1
| | | | llvm-svn: 125824
* While printing "interesting" breakpoint locations for debug info quality ↵Devang Patel2011-01-311-27/+12
| | | | | | test harness, focus only on entry block's terminator for now. llvm-svn: 124610
* RegionPassPrinter should contain the name of the pass printedTobias Grosser2011-01-201-2/+2
| | | | llvm-svn: 123941
* split dom frontier handling stuff out to its own DominanceFrontier header,Chris Lattner2011-01-021-7/+4
| | | | | | so that Dominators.h is *just* domtree. Also prune #includes a bit. llvm-svn: 122714
* Print breakpoints for call instructions. This is used by optimized debug ↵Devang Patel2010-12-091-0/+13
| | | | | | info test harness. llvm-svn: 121432
* Add a simple breakpoint location printer. This will be used by upcoming ↵Devang Patel2010-12-071-1/+59
| | | | | | "debug info in optimized code" quality test harness to set breakpoints at "interesting" locations. llvm-svn: 121078
* Move check of command line options after command line parsing.Tobias Grosser2010-12-021-5/+5
| | | | | | | | | The check to not allow -analyze and -disable-output at the same time was done before parsing the command line flags. Therefore it never triggered, and in case both options where used opt segfaulted. Fix this by moving this check a after command line parsing. llvm-svn: 120732
* Merge System into Support.Michael J. Spencer2010-11-291-1/+1
| | | | llvm-svn: 120298
* Tweak the opt -O2 / opt -O3 inliner thresholds to be the same as llvm-gcc andJakob Stoklund Olesen2010-11-021-2/+2
| | | | | | clang are using. llvm-svn: 118118
* Add RegionPass support.Tobias Grosser2010-10-201-0/+38
| | | | | | | A RegionPass is executed like a LoopPass but on the regions detected by the RegionInfo pass instead of the loops detected by the LoopInfo pass. llvm-svn: 116905
* Get rid of static constructors for pass registration. Instead, every pass ↵Owen Anderson2010-10-191-0/+12
| | | | | | | | | | | | | | | | | exposes an initializeMyPassFunction(), which must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize the pass's dependencies. Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h before parsing commandline arguments. I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass registration/creation, please send the testcase to me directly. llvm-svn: 116820
* Move tool_output_file into its own file.Dan Gohman2010-10-072-2/+2
| | | | llvm-svn: 115973
* Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."Michael J. Spencer2010-09-131-9/+2
| | | | | | | | | | This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake llvm-svn: 113819
* CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.Michael J. Spencer2010-09-101-2/+9
| | | | llvm-svn: 113632
* Execute all Pass Printers even if -quiet is set.Tobias Grosser2010-09-081-19/+16
| | | | | | | | | | | | Follow the same logic in the LoopPass, ModulePass and CallGraphSCCPass printers, as it was already used in the BasicBlockPass and FunctionPass printers. This is more consistent. The other option would have been to completely disable dumping the analysis information. However, as this information is the only information printed if the -analysis flag is set, calling opt would not do anything at all. llvm-svn: 113360
* Include original pass name in the PassPrinter's name.Tobias Grosser2010-09-081-10/+36
| | | | llvm-svn: 113359
* Make tool_output_file's raw_ostream instance a member variable insteadDan Gohman2010-09-012-12/+17
| | | | | | | | | | of a base class. This makes it possible to unregister the file from FilesToRemove when the file is done. Also, this eliminates the need for formatted_tool_output_file. llvm-svn: 112706
* Convert tools to use tool_output_file, and introduce errorDan Gohman2010-08-201-5/+11
| | | | | | checking to places which previously lacked it. llvm-svn: 111651
* Use the new tool_output_file in several tools. This fixes a varietyDan Gohman2010-08-201-12/+8
| | | | | | | | of problems with output files being left behind or output streams being left unclosed. Fix llvm-mc to respect the -o option in all modes, rather than hardcoding outs() in some cases. llvm-svn: 111603
* Make the SCC printing passes use errs() instead of outs(), as theDan Gohman2010-08-201-10/+10
| | | | | | other printing passes do, and update the documentation accordingly. llvm-svn: 111601
* Minor cleanups to follow the common convention for passDan Gohman2010-08-201-7/+7
| | | | | | registration variables. llvm-svn: 111598
* Minor cleanups to follow the common convention for passDan Gohman2010-08-202-14/+16
| | | | | | registration variables. llvm-svn: 111596
* Allow the -analyze option to follow the -o option, which defaults toDan Gohman2010-08-181-30/+35
| | | | | | standard output, instead of just hardcoding outs(). llvm-svn: 111372
* Don't translate "-" to outs() manually; raw_ostream does that automatically.Dan Gohman2010-08-181-31/+23
| | | | llvm-svn: 111371
* Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson2010-08-064-21/+24
| | | | llvm-svn: 110460
* Revert r110396 to fix buildbots.Owen Anderson2010-08-064-24/+21
| | | | llvm-svn: 110410
* Don't use PassInfo* as a type identifier for passes. Instead, use the ↵Owen Anderson2010-08-054-21/+24
| | | | | | | | address of the static ID member as the sole unique type identifier. Clean up APIs related to this change. llvm-svn: 110396
* simplify by using CallSite constructors; virtually eliminates CallSite::get ↵Gabor Greif2010-07-281-2/+2
| | | | | | from the tree llvm-svn: 109687
OpenPOWER on IntegriCloud