summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* make sure to delete the llvm module before calling llvm_shutdown,Chris Lattner2010-03-231-23/+25
| | | | | | this fixes crashes in error cases, PR6683 llvm-svn: 99334
* llc doesn't need LinkAllVMCore.Dan Gohman2010-03-221-1/+0
| | | | llvm-svn: 99186
* Avoid leaking the FunctionPassManager from opt.Jeffrey Yasskin2010-03-221-2/+2
| | | | llvm-svn: 99180
* Free all Constants in ~LLVMConstantImpl. We avoid assertion failuresJeffrey Yasskin2010-03-222-0/+5
| | | | | | | | | by dropping all references from all constants that can use other constants before trying to destroy any of them. I also had to free bugpoint's Module in ~BugDriver(). llvm-svn: 99160
* llvm-mc: Fix MCInstPrinter memory leaks.Daniel Dunbar2010-03-201-9/+8
| | | | llvm-svn: 99101
* llvm-mc: Fix memory leak of MCAsmInfo.Daniel Dunbar2010-03-201-2/+2
| | | | llvm-svn: 99098
* llvm-mc: Fix target selection for --disassemble to use GetTarget.Daniel Dunbar2010-03-191-6/+2
| | | | llvm-svn: 98973
* fix an MCInstPrinter leak that jyasskin pointed out:Chris Lattner2010-03-191-4/+3
| | | | | | createAsmStreamer now takes ownership of the instprinter. llvm-svn: 98939
* Bugpoint's default memory limit (100MB) was too low for valgrind, soJeffrey Yasskin2010-03-194-9/+25
| | | | | | | this patch raises the default to 800MB when valgrind's active. 800 was chosen semi-arbitrarily. llvm-svn: 98905
* Changed install_name for libEnhancedDisassembly.dylib onSean Callanan2010-03-171-1/+2
| | | | | | | Mac OS X to match current install location. This has no effect on other platforms. llvm-svn: 98773
* add support for bugpointing the integrated assembler. Something like thisChris Lattner2010-03-163-40/+66
| | | | | | | | | works for me: bugpoint Output/bisort.llvm.bc -run-llc-ia -safe-run-llc This uses llc with the integrated assembler as the test compiler and llc without it as the safe compiler. llvm-svn: 98618
* llvm-mc: Delete output files on error.Daniel Dunbar2010-03-131-0/+4
| | | | llvm-svn: 98445
* llvm-mc: Support -n, useful for comparing -integrated-as output since theDaniel Dunbar2010-03-131-1/+5
| | | | | | compiler may not lead with the text section. llvm-svn: 98418
* llvm-mc: Support -arch as a simplified form of -triple.Daniel Dunbar2010-03-131-2/+15
| | | | llvm-svn: 98417
* give Mangler access to TargetData.Chris Lattner2010-03-122-2/+2
| | | | llvm-svn: 98378
* make the mangler take an MCContext instead of an MAI.Chris Lattner2010-03-122-44/+48
| | | | | | No functionality change. llvm-svn: 98363
* remove MAI argument from createAsmStreamer since itChris Lattner2010-03-121-2/+1
| | | | | | can get it from the context now. llvm-svn: 98361
* change MCContext to always have an MCAsmInfo.Chris Lattner2010-03-112-10/+9
| | | | llvm-svn: 98293
* MC: Provide MCAssembler with a TargetAsmBackend.Daniel Dunbar2010-03-111-1/+4
| | | | llvm-svn: 98222
* Attempt to fix random build failures seen when doing highlyDuncan Sands2010-03-091-2/+1
| | | | | | | parallel builds: the gold plugin fails to link because the lto library is in the middle of being written out by the linker. llvm-svn: 98054
* Make it not an error to specify -O* options several times.Mikhail Glushenkov2010-03-052-14/+20
| | | | | | As in 'llvmc -O2 -O2 test.c'. llvm-svn: 97787
* apparently if gold is around lto needs to be part of DIRS.Chris Lattner2010-03-051-2/+7
| | | | llvm-svn: 97780
OpenPOWER on IntegriCloud