summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Support .a files directly (without -l).Mikhail Glushenkov2010-04-191-1/+2
| | | | llvm-svn: 101789
* Fix more -Wcast-qual warnings.Dan Gohman2010-04-172-2/+2
| | | | llvm-svn: 101656
* introduce a new CallGraphSCC class, and pass it aroundChris Lattner2010-04-161-5/+4
| | | | | | | | to CallGraphSCCPass's instead of passing around a std::vector<CallGraphNode*>. No functionality change, but now we have a much tidier interface. llvm-svn: 101558
* Revert r64616 which worked around http://gcc.gnu.org/PR42757 , we just didn'tNick Lewycky2010-04-161-4/+2
| | | | | | know it at the time. llvm-svn: 101439
* Create an exports file, so that the plugin only exports the onload symbol.Dan Gohman2010-04-162-0/+3
| | | | llvm-svn: 101431
* Make things static that don't need to be referenced from outside the file.Dan Gohman2010-04-161-12/+12
| | | | llvm-svn: 101430
* Make the export files absolute paths, and change Makefile.rulesDan Gohman2010-04-152-2/+2
| | | | | | to expect them this way, to fix srcdir!=objdir builds. llvm-svn: 101414
* Generalize the EXPORTED_SYMBOL_FILE concept in the Makefiles to work withDan Gohman2010-04-154-62/+63
| | | | | | | | | | native linking export files, including running sed to prepend underscores on darwin, and make use of it in libLTO and libEnhancedDisassembly. Remove the leading underscores from library export files so that they work with the new EXPORTED_SYMBOL_FILE support. llvm-svn: 101399
* Simplify ".bc" detection.Benjamin Kramer2010-04-151-2/+1
| | | | llvm-svn: 101365
* Remove unnecessary uses of <iostream>.Daniel Dunbar2010-04-152-5/+3
| | | | llvm-svn: 101338
* fix a crash on "lli ex" or any other file whose name is exactly twoChris Lattner2010-04-151-1/+2
| | | | | | characters long. llvm-svn: 101336
* Don't forget cmake!Nick Lewycky2010-04-141-1/+0
| | | | llvm-svn: 101234
* Remove accidentally committed cruft.Nick Lewycky2010-04-141-3/+0
| | | | llvm-svn: 101230
* Bugpoint no longer uses exceptions.Nick Lewycky2010-04-142-4/+4
| | | | llvm-svn: 101228
* Unbreak CMake build by improving the EnhancedDisassembly makefile aDouglas Gregor2010-04-131-17/+1
| | | | | | | bit (we're not trying to build a shared library yet) and generating the X86GenEDInfo.inc and ARMGenEDInfo.inc files as necessary. llvm-svn: 101188
* Fixed a nasty layering violation in the edis sourceSean Callanan2010-04-136-68/+36
| | | | | | | | | | | | | | | code. It used to #include the enhanced disassembly information for the targets it supported straight out of lib/Target/{X86,ARM,...} but now it uses a new interface provided by MCDisassembler, and (so far) implemented by X86 and ARM. Also removed hacky #define-controlled initialization of targets in edis. If clients only want edis to initialize a limited set of targets, they can set --enable-targets on the configure command line. llvm-svn: 101179
* Add CMake support for 'edis'.Ted Kremenek2010-04-134-0/+44
| | | | llvm-svn: 101177
* Make the disassembler respect the assembler dialect when printing instructions,Chris Lattner2010-04-131-1/+3
| | | | | | patch by Marius Wachtler! llvm-svn: 101160
* Build system fix to make llvm-mc properly buildSean Callanan2010-04-121-2/+2
| | | | | | | | after edis. Really, there ought to be some mechanism to ensure that PARALLEL_DIRS get built after DIRS. llvm-svn: 101095
* Build system fixes. llvm-mc depends onSean Callanan2010-04-122-14/+11
| | | | | | | | | | | libEnhancedDisassembly, so we now build the static library in all cases (although the shared library is only built when requested/possible). Also, fixed a bug where edis wasn't properly initializing the targets it uses. llvm-svn: 101072
* Bug fix: made the enhanced disassembler's linkSean Callanan2010-04-121-1/+1
| | | | | | flags work properly when EDIS_VERSION is defined llvm-svn: 101063
* Second try at integrating the edis tester. ThisSean Callanan2010-04-125-41/+252
| | | | | | | | | | | time I use the LIBS variable, which is not subject to a %.a -> -l% transformation, to link llvm-mc against libEnhancedDisassembly. llvm-mc -edis works the same as llvm-mc -disassemble, but outputs tokens and operands. llvm-svn: 101058
* Boolify.Benjamin Kramer2010-04-121-1/+1
| | | | llvm-svn: 101035
* Remove use of exceptions from bugpoint. No deliberate functionality change!Nick Lewycky2010-04-1210-341/+463
| | | | llvm-svn: 101013
* Remove dead argument and clean whitespace. No functionality change.Nick Lewycky2010-04-103-16/+6
| | | | llvm-svn: 100954
* Updated the edis build mechanism to allow for buildsSean Callanan2010-04-103-1/+31
| | | | | | | that do not build some (or all) of the targets that edis supports. llvm-svn: 100910
* revert r100842 which broke several of the build bots.Chris Lattner2010-04-095-249/+42
| | | | llvm-svn: 100848
* Added a tester for the enhanced disassembler,Sean Callanan2010-04-095-42/+249
| | | | | | integrated into the llvm-mc testing tool. llvm-svn: 100842
* Bugfixes for edis. Code to initialize instructionSean Callanan2010-04-092-5/+4
| | | | | | | | state was being executed too lazily, and the LLVM assembly syntax for the disassembler was not being written into the proper disassembler state variable. llvm-svn: 100830
* Added support for ARM disassembly to edis.Sean Callanan2010-04-086-112/+263
| | | | | | | | | | | I also added a rule to the ARM target's Makefile to build the ARM-specific instruction information table for the enhanced disassembler. I will add the test harness for all this stuff in a separate commit. llvm-svn: 100735
* add .o file writing for inline asm in llc. Here's a sillyChris Lattner2010-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | demo: $ clang asm.c -S -o - -emit-llvm | llc -filetype=obj -o t.o <inline asm>:1:2: error: unrecognized instruction abc incl %eax ^ LLVM ERROR: Error parsing inline asm Only problem seems to be that the parser finalizes OutStreamer at the end of the first inline asm, which isn't what we want. For example: $ cat asm.c int foo(int X) { __asm__ ("incl %0" : "+r" (X)); return X; } $ clang asm.c -S -o - -emit-llvm | llc ... subq $8, %rsp movl %edi, (%rsp) movl %edi, %eax ## InlineAsm Start incl %eax ## InlineAsm End movl %eax, (%rsp) movl %eax, 4(%rsp) addq $8, %rsp ret $ clang asm.c -S -o - -emit-llvm | llc -filetype=obj -o t.o $ otool -tv t.o t.o: (__TEXT,__text) section _foo: 0000000000000000 subq $0x08,%rsp 0000000000000004 movl %edi,(%rsp) 0000000000000007 movl %edi,%eax 0000000000000009 incl %eax $ don't stop at inc! llvm-svn: 100491
* tidy #includes.Chris Lattner2010-04-051-7/+7
| | | | llvm-svn: 100489
* stringref-ize the MemoryBuffer::get apis. This requiresChris Lattner2010-04-051-7/+7
| | | | | | a co-committed clang patch. llvm-svn: 100485
* fix an ugly wart in the MCInstPrinter api where theChris Lattner2010-04-043-12/+8
| | | | | | | | raw_ostream to print an instruction to had to be specified at MCInstPrinter construction time instead of being able to pick at each call to printInstruction. llvm-svn: 100307
* remove some extraneous castsChris Lattner2010-04-031-2/+2
| | | | llvm-svn: 100287
* Add special case bitcode support for DebugLoc. This avoidsChris Lattner2010-04-031-0/+2
| | | | | | | | | | | | having the bitcode writer materialize mdnodes for all the debug location tuples when writing out the bc file and stores the information in a more compact form. For example, the -O0 -g bc file for combine.c in 176.gcc shrinks from 739392 to 512096 bytes. This concludes my planned short-term debug info work. llvm-svn: 100261
* Pass -shared to the linker.Mikhail Glushenkov2010-04-031-0/+3
| | | | llvm-svn: 100260
* add a couple missing enum names.Chris Lattner2010-04-031-0/+2
| | | | llvm-svn: 100257
* Updated the install location for EnhancedDisassemblySean Callanan2010-04-021-10/+7
| | | | | | | | on Mac OS X to use @rpath rather than an absolute path. Also allowed the version to be set using an environment variable. llvm-svn: 100163
* Pass -m32/-m64 to assembler.Mikhail Glushenkov2010-03-311-0/+2
| | | | llvm-svn: 100064
* Fix llvm-ld to clean up its output files in case of an error.Dan Gohman2010-03-301-38/+48
| | | | llvm-svn: 99915
* revert r99719 which is breaking the botz.Chris Lattner2010-03-271-18/+6
| | | | llvm-svn: 99721
* Make llvm-ld remove its output files in the event of an error.Dan Gohman2010-03-271-6/+18
| | | | llvm-svn: 99719
* No need to check the same condition twice.Dan Gohman2010-03-271-1/+1
| | | | llvm-svn: 99716
* llvm-mc: Add a -mc-relax-all option, which relaxes every fixup. We always needDaniel Dunbar2010-03-251-1/+4
| | | | | | | exactly two passes in that case, and don't ever need to recompute any layout, so this is a nice baseline for relaxation performance. llvm-svn: 99563
* Trim #includes.Dan Gohman2010-03-248-17/+0
| | | | llvm-svn: 99416
* It's not necessary to call raw_ostream::close explicitly on automaticDan Gohman2010-03-241-4/+0
| | | | | | raw_ostream variables immediately before they go out of scope. llvm-svn: 99413
* llvm-mc: Support -filetype=null, for timing purposes.Daniel Dunbar2010-03-231-0/+5
| | | | llvm-svn: 99349
* Remove if DISABLED not if not DISABLED...Bill Wendling2010-03-231-1/+1
| | | | llvm-svn: 99343
* Use "DISABLE_EDIS" to disable building "edis" explicitly. Don't build it forBill Wendling2010-03-231-2/+6
| | | | | | Apple-style builds. llvm-svn: 99336
OpenPOWER on IntegriCloud