summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
* Remove all references to plugins from the LLVMC docs.Mikhail Glushenkov2011-04-242-315/+218
| | | | llvm-svn: 130090
* Remove unused STL header includes.Jay Foad2011-04-231-1/+0
| | | | llvm-svn: 130068
* The .inc file is auto-generated and must not be edited by hand.Mikhail Glushenkov2011-04-221-1/+1
| | | | llvm-svn: 130021
* Remove unused argument.Rafael Espindola2011-04-211-4/+2
| | | | llvm-svn: 129955
* Fix typo in comment.Nick Lewycky2011-04-211-1/+1
| | | | llvm-svn: 129902
* llc: Fix a refacto, .loc support didn't work before 10.6.Daniel Dunbar2011-04-201-1/+1
| | | | llvm-svn: 129841
* ADT/Triple: Renambe isOSX... methods to isMacOSX for consistency with the OSDaniel Dunbar2011-04-201-1/+2
| | | | | | triple component. llvm-svn: 129838
* ADT/Triple: Move a variety of clients to using isOSDarwin() and isOSWindows()Daniel Dunbar2011-04-191-3/+2
| | | | | | predicates. llvm-svn: 129816
* llc: Eliminate a use of getDarwinMajorNumber().Daniel Dunbar2011-04-191-12/+4
| | | | | | | | | - As before, there is a minor semantic change here (evidenced by the test change) for Darwin triples that have no version component. I debated changing the default behavior of isOSVersionLT, but decided it made more sense for triples to be explicit. llvm-svn: 129805
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-154-5/+5
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129558
* Load multiple object files and link them via RuntimeDyld in llvm-rtdyld.Jim Grosbach2011-04-131-13/+23
| | | | | | | | | | | | | | | | | | | | | | Relocations between the object modules are properly resolved, as in the following trivial example: $ cat t.c int foo(); int main() { return foo(); } $ cat foo.c int foo() { return 65; } $ clang -c t.c -fno-asynchronous-unwind-tables $ clang -c foo.c -fno-asynchronous-unwind-tables $ llvm-rtdyld t.o foo.o ; echo $? loaded '_main' at: 0x10015c000 65 llvm-svn: 129448
* Allow user-specified program entry point for llvm-rtdyld.Jim Grosbach2011-04-131-3/+8
| | | | llvm-svn: 129446
* MCJIT lazy relocation resolution and symbol address re-assignment.Jim Grosbach2011-04-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add handling for tracking the relocations on symbols and resolving them. Keep track of the relocations even after they are resolved so that if the RuntimeDyld client moves the object, it can update the address and any relocations to that object will be updated. For our trival object file load/run test harness (llvm-rtdyld), this enables relocations between functions located in the same object module. It should be trivially extendable to load multiple objects with mutual references. As a simple example, the following now works (running on x86_64 Darwin 10.6): $ cat t.c int bar() { return 65; } int main() { return bar(); } $ clang t.c -fno-asynchronous-unwind-tables -o t.o -c $ otool -vt t.o t.o: (__TEXT,__text) section _bar: 0000000000000000 pushq %rbp 0000000000000001 movq %rsp,%rbp 0000000000000004 movl $0x00000041,%eax 0000000000000009 popq %rbp 000000000000000a ret 000000000000000b nopl 0x00(%rax,%rax) _main: 0000000000000010 pushq %rbp 0000000000000011 movq %rsp,%rbp 0000000000000014 subq $0x10,%rsp 0000000000000018 movl $0x00000000,0xfc(%rbp) 000000000000001f callq 0x00000024 0000000000000024 addq $0x10,%rsp 0000000000000028 popq %rbp 0000000000000029 ret $ llvm-rtdyld t.o -debug-only=dyld ; echo $? Function sym: '_bar' @ 0 Function sym: '_main' @ 16 Extracting function: _bar from [0, 15] allocated to 0x100153000 Extracting function: _main from [16, 41] allocated to 0x100154000 Relocation at '_main' + 16 from '_bar(Word1: 0x2d000000) Resolving relocation at '_main' + 16 (0x100154010) from '_bar (0x100153000)(pcrel, type: 2, Size: 4). loaded '_main' at: 0x100154000 65 $ llvm-svn: 129388
* Tidy up a bit now that we're using the MemoryManager interface.Jim Grosbach2011-04-121-9/+21
| | | | llvm-svn: 129328
* Don't include Operator.h from InstrTypes.h.Jay Foad2011-04-111-0/+1
| | | | llvm-svn: 129271
* Moved an access to an object past a NULL check,Sean Callanan2011-04-091-2/+2
| | | | | | making the MC disassembler tester more robust. llvm-svn: 129175
* Refactor MCJIT 32-bit section loading.Jim Grosbach2011-04-081-1/+1
| | | | | | | Teach 32-bit section loading to use the Memory Manager interface, just like the 64-bit loading does. Tidy up a few other things here and there. llvm-svn: 129138
* If present, use gold's support for getting a file view. This prevents havingRafael Espindola2011-04-071-1/+12
| | | | | | to map the file both in the linker and in the plugin. llvm-svn: 129109
* RuntimeDyld should use the memory manager API.Jim Grosbach2011-04-061-5/+5
| | | | | | | | | | Start teaching the runtime Dyld interface to use the memory manager API for allocating space. Rather than mapping directly into the MachO object, we extract the payload for each object and copy it into a dedicated buffer allocated via the memory manager. For now, just do Segment64, so this works on x86_64, but not yet on ARM. llvm-svn: 128973
* 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-052-0/+6
| | | | | | | | | | | | | | | | | | | 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-052-10/+10
| | | | llvm-svn: 128905
* Rename LLVMConfig.cmake to LLVM-Config.cmake. The *Config.cmake namingOscar Fuentes2011-04-051-1/+1
| | | | | | scheme is used by the functionality related to find_package. llvm-svn: 128889
* Layer the memory manager between the JIT and the runtime Dyld.Jim Grosbach2011-04-041-4/+17
| | | | | | | | | | | The JITMemory manager references LLVM IR constructs directly, while the runtime Dyld works at a lower level and can handle objects which may not originate from LLVM IR. Introduce a new layer for the memory manager to handle the interface between them. For the MCJIT, this layer will be almost entirely simply a call-through w/ translation between the IR objects and symbol names. llvm-svn: 128851
* Update BreakpointPrinter to emit original function names only. Devang Patel2011-04-041-15/+31
| | | | llvm-svn: 128839
* Remove unused function.Eric Christopher2011-04-041-21/+0
| | | | llvm-svn: 128834
* silence an unused function warning.Chris Lattner2011-04-041-0/+2
| | | | llvm-svn: 128831
* Start migrating mach-o dumping facilities to the object file out of aEric Christopher2011-04-031-2/+2
| | | | | | separate executable. llvm-svn: 128801
* CMake: remove debug code from previous commit.Oscar Fuentes2011-04-011-4/+0
| | | | llvm-svn: 128740
* Fix assignment of -fPIC to CMAKE_C_FLAGS. Configure llvm-config.in.inOscar Fuentes2011-04-011-4/+8
| | | | | | | | | with the contents of CMAKE_C(XX)_FLAGS too, else `llvm-config --c(xx)flags' doesn't tell the absolute truth. This comes from PR9603 and is based on a patch by Ryuta Suzuki! llvm-svn: 128727
* Update CMakeLists.txtDevang Patel2011-04-011-1/+1
| | | | | | Patch by arrowdoger. llvm-svn: 128719
* Fix whitespace.Michael J. Spencer2011-03-312-23/+23
| | | | llvm-svn: 128631
* Switch FileRemover from PathV1 to V2.Michael J. Spencer2011-03-315-13/+14
| | | | llvm-svn: 128630
* Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad2011-03-301-2/+1
| | | | | | PHINode::Create() giving the (known or expected) number of operands. llvm-svn: 128537
* (Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad2011-03-301-0/+1
| | | | llvm-svn: 128535
* Update CMake link dependency.Francois Pichet2011-03-291-1/+1
| | | | llvm-svn: 128503
* Instantiate a JITMemoryManager for MCJIT DyldJim Grosbach2011-03-292-2/+3
| | | | llvm-svn: 128485
* Expoert c interface for disassembler.Devang Patel2011-03-292-1/+5
| | | | llvm-svn: 128440
* MC: Add support for disabling "temporary label" behavior. Useful for debuggingDaniel Dunbar2011-03-281-0/+6
| | | | | | on Darwin. llvm-svn: 128430
* llvm-stub.cpp: mingw-w64 tweak.NAKAMURA Takumi2011-03-241-1/+1
| | | | llvm-svn: 128205
* Add a lto_codegen_compile_to_file to avoid producing a file, reading it toRafael Espindola2011-03-225-73/+63
| | | | | | memory and writing it back to disk. llvm-svn: 128108
* We don't need a null terminator for the output file.Rafael Espindola2011-03-221-1/+4
| | | | llvm-svn: 128098
* Propogate the error message, not just the error state.Jim Grosbach2011-03-221-2/+3
| | | | llvm-svn: 128094
* Updated library dependencies.Oscar Fuentes2011-03-221-1/+1
| | | | | | | | Now we can remove RuntimeDyld from the LLVM_LINK_COMPONENTS of tools/lli. CMakeLists.txt LLVM_LINK_COMPONENTS shall not differ from its companion Makefile LINK_COMPONENTS. llvm-svn: 128069
* Update link components.Jim Grosbach2011-03-221-1/+1
| | | | | | | Also perform the required dark rituals and sacrifices to placate the buildbot spirits. We shall see if they are appeased... llvm-svn: 128067
* Build the new RuntimeDyld library.Oscar Fuentes2011-03-211-1/+1
| | | | llvm-svn: 128035
* Library-ize the dyld components of llvm-rtdyld.Jim Grosbach2011-03-212-227/+11
| | | | | | | | | Move the dynamic linking functionality of the llvm-rtdyld program into an ExecutionEngine support library. Update llvm-rtdyld to just load an object file into memory, use the library to process it, then run the _main() function, if one is found. llvm-svn: 128031
* We need to pass the TargetMachine object to the InstPrinter if we are printingBill Wendling2011-03-214-9/+47
| | | | | | | | | the alias of an InstAlias instead of the thing being aliased. Because we need to know the features that are valid for an InstAlias. This is part of a work-in-progress. llvm-svn: 127986
* Make llvm-config.in configuration more MSYS-friendly.Oscar Fuentes2011-03-191-9/+10
| | | | | | | Some of those POSIX <-> Windows command line conversions ended on failure. llvm-svn: 127958
* CMake: store TARGET_TRIPLE on llvm-config.in.Oscar Fuentes2011-03-191-0/+1
| | | | llvm-svn: 127957
OpenPOWER on IntegriCloud