summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* llvmc: Add a new option type (switch_list).Mikhail Glushenkov2010-07-191-1/+8
| | | | llvm-svn: 108673
* Target: Give the TargetAsmParser access to the TargetMachine.Daniel Dunbar2010-07-192-2/+3
| | | | | | - Unfortunate, but necessary for now to handle subtarget instruction matching. Eventually we should factor out the lower level target machine information so we don't need to do this. llvm-svn: 108664
* edis: Save the TargetMachine in the EDDisassembler object.Daniel Dunbar2010-07-192-5/+7
| | | | llvm-svn: 108663
* MC: Move several clients to using AsmParser constructor function.Daniel Dunbar2010-07-182-10/+12
| | | | llvm-svn: 108645
* llvm-mc: Fix llvm-mc -as-lex.Daniel Dunbar2010-07-181-2/+2
| | | | llvm-svn: 108644
* Fix what seems like a clear buffer overflow, noticed by cppcheck.Duncan Sands2010-07-171-2/+2
| | | | llvm-svn: 108629
* Make llvm-bcanalyzer print out the full enum name for all metadataDan Gohman2010-07-161-4/+4
| | | | | | code ids, not just some of them. llvm-svn: 108543
* build/Darwin: Add an LLVM_LTO_VERSION_OFFSET make variable to allow offsettingDaniel Dunbar2010-07-161-1/+9
| | | | | | the libLTO library version from the actual build version. llvm-svn: 108495
* Remove some broken code to check the DISABLE_EDIS flag (edis is now in theBob Wilson2010-07-142-5/+2
| | | | | | | | DIRS list, so it does no good to filter it from PARALLEL_DIRS), and replace it with a check to disable building the shared library version of edis when the flag is set. Disabling it entirely does not work because MC uses it now. llvm-svn: 108367
* Convert some tab stops into spaces.Duncan Sands2010-07-124-5/+5
| | | | llvm-svn: 108130
* Implement the "linker_private_weak" linkage type. This will be used forBill Wendling2010-07-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Objective-C metadata types which should be marked as "weak", but which the linker will remove upon final linkage. However, this linkage isn't specific to Objective-C. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". Currently only supported on Darwin platforms. llvm-svn: 107433
* MC: Pass the target instance to the AsmParser constructor.Daniel Dunbar2010-07-012-2/+2
| | | | llvm-svn: 107426
* Preserve debug info for only extracted symbols.Devang Patel2010-07-011-0/+1
| | | | llvm-svn: 107417
* Make -filelist work with -linker=c++.Mikhail Glushenkov2010-07-011-4/+8
| | | | llvm-svn: 107362
* Revert r107205 and r107207.Bill Wendling2010-06-291-2/+1
| | | | llvm-svn: 107215
* Introducing the "linker_weak" linkage type. This will be used for Objective-CBill Wendling2010-06-291-1/+2
| | | | | | | | | | | | | | | | | | | metadata types which should be marked as "weak", but which the linker will remove upon final linkage. For example, the "objc_msgSend_fixup_alloc" symbol is defined like this: .globl l_objc_msgSend_fixup_alloc .weak_definition l_objc_msgSend_fixup_alloc .section __DATA, __objc_msgrefs, coalesced .align 3 l_objc_msgSend_fixup_alloc: .quad _objc_msgSend_fixup .quad L_OBJC_METH_VAR_NAME_1 This is different from the "linker_private" linkage type, because it can't have the metadata defined with ".weak_definition". llvm-svn: 107205
* Remove variables that are written by not read.Duncan Sands2010-06-291-6/+0
| | | | llvm-svn: 107126
* Use ValueMap instead of DenseMap.Devang Patel2010-06-244-41/+41
| | | | | | The ValueMapper used by various cloning utility maps MDNodes also. llvm-svn: 106706
* Add an extra-library-path option to the plugin. This is used to supportRafael Espindola2010-06-231-0/+13
| | | | | | | | | | | | having a library both as bitcode and native code. We want to use the bitcode first, but if codegen produces new undefined references we have to use the native code to satisfy those references. Gold has no notion of bitcode and native search directories, so instead it has an API where the plugin can instruct it to look for the libraries it is passing to it. This patch uses that API. llvm-svn: 106674
* add_input_file and add_input_library now take const arguments, remove theRafael Espindola2010-06-211-2/+2
| | | | | | const_cast. llvm-svn: 106410
* Save more temps with -save-temps.Rafael Espindola2010-06-211-3/+7
| | | | llvm-svn: 106409
* Add a pass-through option to the plugin. The use case for this option is toRafael Espindola2010-06-181-0/+26
| | | | | | | | ask the linker to take another look into some library or object. The case when one might want to do this is when codegen introduces a new undefined reference. The canonical example is libgcc. llvm-svn: 106303
* Don't produce output only if *all* files are unused.Rafael Espindola2010-06-141-7/+7
| | | | llvm-svn: 105962
* llvm-mc: Don't set NO_INSTALL on llvm-mc.Daniel Dunbar2010-06-111-1/+0
| | | | llvm-svn: 105837
* Change another reference to the "indirect callgraph node" toDuncan Sands2010-06-091-1/+1
| | | | | | refer to the "external node" instead. llvm-svn: 105731
* Output "external node" rather than "Indirect CallGraph node" when printingDuncan Sands2010-06-091-1/+1
| | | | | | | | callgraph SCC's. This makes it match what the node itself would print. Also, "indirect callgraph node" doesn't make sense - it has nothing particularly to do with indirect calls. llvm-svn: 105730
* Plug a leak in the non-error case by removing one level of indirection.Nick Lewycky2010-06-071-6/+4
| | | | llvm-svn: 105556
* Run dead type elimination after dead argument elimination.Dan Gohman2010-06-071-1/+2
| | | | llvm-svn: 105552
* Use ->isVoidTy().Dan Gohman2010-06-073-5/+4
| | | | llvm-svn: 105550
* Misc cleanups to the gold plugin.Rafael Espindola2010-06-071-15/+16
| | | | llvm-svn: 105534
* No need to special-case structs here; structs are first-class now.Dan Gohman2010-06-051-3/+1
| | | | llvm-svn: 105513
* No need to special-case structs here; structs are first-class now.Dan Gohman2010-06-041-3/+1
| | | | llvm-svn: 105442
* Add a emit-llvm option to the plugin and make the path argument to ↵Rafael Espindola2010-06-031-2/+23
| | | | | | also-emit-llvm optional. llvm-svn: 105414
* Perfer !string.empty() over string != "".Nick Lewycky2010-06-031-2/+2
| | | | llvm-svn: 105397
* Whitespace cleanup.Nick Lewycky2010-06-031-5/+5
| | | | llvm-svn: 105395
* Don't preserve all symbols in a .so and instead trust gold to know what isRafael Espindola2010-06-031-12/+10
| | | | | | | needed. The result is that now we are able to drop unnecessary symbol from shared libraries. llvm-svn: 105389
* Eliminate some unnessary Path::exists() calls.Dan Gohman2010-05-273-19/+10
| | | | llvm-svn: 104888
* When handling raw_ostream errors manually, use clear_error() so thatDan Gohman2010-05-271-1/+3
| | | | | | | | | raw_ostream doesn't try to do its own error handling. Also, close the raw_ostream before checking for errors so that any errors that occur during closing are caught by the manual check. llvm-svn: 104882
* Don't special-case stdout in llvm::WriteBitcodeToFile; just considerDan Gohman2010-05-271-2/+6
| | | | | | | it to be the caller's responsibility to provide a stream in binary mode. This fixes a layering violation and avoids an outs() call. llvm-svn: 104878
* Don't create an output stream when output is disabled.Dan Gohman2010-05-271-19/+21
| | | | llvm-svn: 104875
* Avoid calling outs() and fouts() when the stream isn't really needed.Dan Gohman2010-05-273-10/+15
| | | | llvm-svn: 104873
* Apply timeouts and memory limits in more places. In particular, whenDuncan Sands2010-05-243-21/+40
| | | | | | | | bugpoint does "Running the code generator to test for a crash" this gets you a crash if llc goes into an infinite loop or uses up vast amounts of memory. llvm-svn: 104485
* MC: Add an MCLoggingStreamer, for use in debugging integrated-as mismatches.Daniel Dunbar2010-05-231-0/+7
| | | | llvm-svn: 104463
* Currently, createMachOStreamer() is invoked directly in llvm-mc whichMatt Fleming2010-05-211-1/+2
| | | | | | | | | isn't ideal if we want to be able to use another object file format. Add a createObjectStreamer() factory method so that the correct object file streamer can be instantiated for a given target triple. llvm-svn: 104318
* Remove dead option.Daniel Dunbar2010-05-211-3/+0
| | | | llvm-svn: 104303
* Avoid renaming loadable modules at install time. Now the gold plugin is namedRafael Espindola2010-05-161-1/+1
| | | | | | LLVMgold.so both in both the build and install directories. llvm-svn: 103897
* Use regular PassManager instead of FunctionPassManager in opt, since itDan Gohman2010-05-141-12/+8
| | | | | | isn't doing lazy streaming. This also fixes a missing doFinalization call. llvm-svn: 103774
* Fix complete badness in bugpoint's IsARMArchitecture() function.Jakob Stoklund Olesen2010-05-131-3/+2
| | | | | | | | | | The revision history for this function is interesting, with multiple layers of wrongness being introduced one at a time. This fixes a weird issue where bugpoint -run-llc would suddenly exit 13 half way through isolating a miscompilation. llvm-svn: 103721
* Add an also-emit-llvm option to the gold plugin.Rafael Espindola2010-05-131-0/+14
| | | | llvm-svn: 103714
* Fix PR6951 by fixing Module leaks in bugpoint.Jeffrey Yasskin2010-05-111-7/+7
| | | | llvm-svn: 103523
OpenPOWER on IntegriCloud