summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llc
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to ↵Stuart Hastings2009-07-151-14/+9
| | | | | | | | 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-151-20/+20
| | | | llvm-svn: 75791
* 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
* Have asm printers use formatted_raw_ostream directly to avoid aDavid Greene2009-07-141-11/+19
| | | | | | dynamic_cast<>. llvm-svn: 75670
* Add the Object Code Emitter class. Original patch by Aaron Gray, I did someBruno Cardoso Lopes2009-07-061-4/+5
| | | | | | cleanup, removed some #includes and moved Object Code Emitter out-of-line. llvm-svn: 74813
* Hold the LLVMContext by reference rather than by pointer.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74640
* Add a pointer to the owning LLVMContext to Module. This requires threading ↵Owen Anderson2009-07-011-1/+3
| | | | | | | | | | LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
* switch to using llvm/Target/TargetSelect.hChris Lattner2009-06-171-2/+4
| | | | llvm-svn: 73611
* Introduce new headers whose inclusion forces linking andDouglas Gregor2009-06-161-0/+2
| | | | | | | | | initialization of all targets (InitializeAllTargets.h) or assembler printers (InitializeAllAsmPrinters.h). This is a step toward the elimination of relinked object files, so that we can build normal archives. llvm-svn: 73543
* Add new function attribute - noimplicitfloatDevang Patel2009-06-051-0/+7
| | | | | | | Update code generator to use this attribute and remove NoImplicitFloat target option. Update llc to set this attribute when -no-implicit-float command line option is used. llvm-svn: 72959
* Add new function attribute - noredzone. Devang Patel2009-06-041-1/+9
| | | | | | | Update code generator to use this attribute and remove DisableRedZone target option. Update llc to set this attribute when -disable-red-zone command line option is used. llvm-svn: 72894
* Default llc / lli optimization to "Default", which corresponds to -O1 / -O2.Evan Cheng2009-05-041-4/+4
| | | | llvm-svn: 70934
* Remove unused flags.Bill Wendling2009-04-301-4/+3
| | | | llvm-svn: 70459
* Error out with bad optimization level specified.Bill Wendling2009-04-291-1/+3
| | | | llvm-svn: 70449
* Remove LTO optimization level.Bill Wendling2009-04-291-1/+0
| | | | llvm-svn: 70445
* Instead of passing in an unsigned value for the optimization level, use an enum,Bill Wendling2009-04-291-6/+19
| | | | | | | which better identifies what the optimization is doing. And is more flexible for future uses. llvm-svn: 70440
* Second attempt:Bill Wendling2009-04-291-5/+10
| | | | | | | | | | | | Massive check in. This changes the "-fast" flag to "-O#" in llc. If you want to use the old behavior, the flag is -O0. This change allows for finer-grained control over which optimizations are run at different -O levels. Most of this work was pretty mechanical. The majority of the fixes came from verifying that a "fast" variable wasn't used anymore. The JIT still uses a "Fast" flag. I'll change the JIT with a follow-up patch. llvm-svn: 70343
* r70270 isn't ready yet. Back this out. Sorry for the noise.Bill Wendling2009-04-281-10/+5
| | | | llvm-svn: 70275
* Massive check in. This changes the "-fast" flag to "-O#" in llc. If you want toBill Wendling2009-04-281-5/+10
| | | | | | | | | | | use the old behavior, the flag is -O0. This change allows for finer-grained control over which optimizations are run at different -O levels. Most of this work was pretty mechanical. The majority of the fixes came from verifying that a "fast" variable wasn't used anymore. The JIT still uses a "Fast" flag. I'm not 100% sure if it's necessary to change it there... llvm-svn: 70270
* CodeGen still defaults to non-verbose asm, but llc now overrides it and ↵Evan Cheng2009-03-251-0/+3
| | | | | | default to verbose. llvm-svn: 67669
* Change various llvm utilities to use PrettyStackTraceProgram inChris Lattner2009-03-061-2/+4
| | | | | | | their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
* Registry.h should not depend on CommandLine.h.Mikhail Glushenkov2009-01-161-2/+3
| | | | | | | Split Support/Registry.h into two files so that we have less to recompile every time CommandLine.h is changed. llvm-svn: 62312
* Delete trailing whitespace.Mikhail Glushenkov2009-01-161-21/+21
| | | | llvm-svn: 62307
* Fix spacing to be uniform for parameters.Misha Brukman2008-12-311-2/+2
| | | | llvm-svn: 61528
* Add Binary flag to raw_fd_ostream constructor.Daniel Dunbar2008-11-131-2/+5
| | | | | | Document raw_fd_ostream's treatment of "-". llvm-svn: 59219
* CMakeLists: removed asmprinter component fromOscar Fuentes2008-11-041-1/+1
| | | | | | tools/llc/CMakeLists.txt. llvm-svn: 58678
* Fix command-line option printing to print two spaces where needed,Dan Gohman2008-10-141-3/+3
| | | | | | | | | instead of requiring all "short description" strings to begin with two spaces. This makes these strings less mysterious, and it fixes some cases where short description strings mistakenly did not begin with two spaces. llvm-svn: 57521
* Initial support for the CMake build system.Oscar Fuentes2008-09-221-0/+5
| | | | llvm-svn: 56419
* Don't silently ignore errors when opening output streams.Dan Gohman2008-08-211-2/+9
| | | | llvm-svn: 55120
* Use raw_ostream throughout the AsmPrinter.Owen Anderson2008-08-211-12/+15
| | | | llvm-svn: 55092
* Link GC metadata printers by default to llcAnton Korobeynikov2008-08-171-0/+1
| | | | llvm-svn: 54892
* First step of implementing PR1538: move llvm2cpp logic to new 'target'Anton Korobeynikov2008-04-231-3/+8
| | | | llvm-svn: 50189
* Fix a memory leak in llc.Dan Gohman2008-04-161-1/+2
| | | | llvm-svn: 49793
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* remove attributions from tools/utils makefiles.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45414
* Switching TargetMachineRegistry to use the new generic Registry.Gordon Henriksen2007-10-171-1/+2
| | | | llvm-svn: 43094
* Move the space in overview output for commands out of each of theDan Gohman2007-10-081-1/+1
| | | | | | commands and into the common code. llvm-svn: 42752
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-3/+3
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* use the new MemoryBuffer interfaces to simplify error reporting in clients.Chris Lattner2007-05-061-5/+1
| | | | llvm-svn: 36900
* switch tools to bitcode from bytecodeChris Lattner2007-05-062-17/+9
| | | | llvm-svn: 36872
* use an auto_ptr to avoid an explicit deleteChris Lattner2007-05-061-7/+5
| | | | llvm-svn: 36850
* add bitcode reading support. Remove EH cruft.Chris Lattner2007-05-062-122/+131
| | | | llvm-svn: 36839
* For PR1277:Reid Spencer2007-03-261-1/+4
| | | | | | | | Implement error handling for bytecode parsing. Patch by Scott Michel. llvm-svn: 35364
* The new version of how to add passes to emit files. We explicitly call aBill Wendling2007-02-081-1/+25
| | | | | | function to add the file writers between calls to add the passes. llvm-svn: 34035
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-1/+3
| | | | | | | | | | | | | | | | | | | | api's look like this: ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); This is ugly, but allows a client to say: getBytecodeModuleProvider("foo", 0); If they do this, there is no dependency on the compression libraries, saving codesize. llvm-svn: 34012
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-1/+1
| | | | | | confusion with external linkage types. llvm-svn: 33663
* make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.Chris Lattner2006-12-061-0/+2
| | | | | | With this change, I can now move -stats to print when llvm_shutdown is called. llvm-svn: 32250
* Use LINK_COMPONENTS to specify *components* to link against instead ofChris Lattner2006-09-041-16/+2
| | | | | | using USED_LIBS to specify *libraries* to link against. llvm-svn: 30090
* Completely rearchitect the interface between targets and the pass manager.Chris Lattner2006-09-041-79/+110
| | | | | | | | | | | | | | | | | | | | | | | | This pass: 1. Splits TargetMachine into TargetMachine (generic targets, can be implemented any way, like the CBE) and LLVMTargetMachine (subclass of TM that is used by things using libcodegen and other support). 2. Instead of having each target fully populate the passmgr for file or JIT output, move all this to common code, and give targets hooks they can implement. 3. Commonalize the target population stuff between file emission and JIT emission. 4. All (native code) codegen stuff now happens in a FunctionPassManager, which paves the way for "fast -O0" stuff in the CFE later, and now LLC could lazily stream .bc files from disk to use less memory. 5. There are now many fewer #includes and the targets don't depend on the scalar xforms or libanalysis anymore (but codegen does). 6. Changing common code generator pass ordering stuff no longer requires touching all targets. 7. The JIT now has the option of "-fast" codegen or normal optimized codegen, which is now orthogonal to the fact that JIT'ing is being done. llvm-svn: 30081
* rearrange targets to satisfy dependencies. Too bad we aren't using llvm-config.Chris Lattner2006-09-041-1/+1
| | | | llvm-svn: 30077
OpenPOWER on IntegriCloud