summaryrefslogtreecommitdiffstats
path: root/llvm/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* [llvm-readobj][ELF] Teach llvm-readobj to show dynamic relocation in REL formatSimon Atanasyan2016-01-161-34/+69
| | | | | | | | | | MIPS 32-bit ABI uses REL relocation record format to save dynamic relocations. The patch teaches llvm-readobj to show dynamic relocations in this format. Differential Revision: http://reviews.llvm.org/D16114 llvm-svn: 258001
* GlobalValue: use getValueType() instead of getType()->getPointerElementType().Manuel Jacob2016-01-161-1/+1
| | | | | | | | | | | | Reviewers: mjacob Subscribers: jholewinski, arsenm, dsanders, dblaikie Patch by Eduard Burtescu. Differential Revision: http://reviews.llvm.org/D16260 llvm-svn: 257999
* Fixed CRLF->LF line endings from r257914. NFC.George Rimar2016-01-161-8/+8
| | | | llvm-svn: 257990
* [llvm-readobj] Dump DT_RELACOUNT correctly.Davide Italiano2016-01-161-0/+2
| | | | llvm-svn: 257988
* [PGO] fix a bug in profile summary computationXinliang David Li2016-01-161-1/+1
| | | | | | | | Entry block count was not counted and is corrected. Also introduce a new metric that is MaxInternalBlockCount which show command shows (as before). llvm-svn: 257987
* Revert of 57967George Rimar2016-01-161-1/+2170
| | | | | | | Initial commit message: CRLF -> LF. NFC llvm-svn: 257973
* Introduce sanstats tool and llvm::CreateSanitizerStatReport function.Peter Collingbourne2016-01-164-1/+164
| | | | | | | | | This is part of a new statistics gathering feature for the sanitizers. See clang/docs/SanitizerStats.rst for further info and docs. Differential Revision: http://reviews.llvm.org/D16174 llvm-svn: 257970
* CRLF -> LF. NFCGeorge Rimar2016-01-161-2170/+1
| | | | llvm-svn: 257967
* [codeview] Handle multiple frame descriptions in readobjReid Kleckner2016-01-151-35/+29
| | | | llvm-svn: 257943
* [Orc] Make FDRPCChannel final.Lang Hames2016-01-151-1/+1
| | | | | | This class is in the LLI tool, and isn't subclassed. llvm-svn: 257937
* Bring back "Assert that we have all use/users in the getters."Rafael Espindola2016-01-151-3/+12
| | | | | | | | | | | | | | | | | | | | | | This reverts commit r257751, bringing back r256105. The problem the assert found was fixed in r257915. Original commit message: Assert that we have all use/users in the getters. An error that is pretty easy to make is to use the lazy bitcode reader and then do something like if (V.use_empty()) The problem is that uses in unmaterialized functions are not accounted for. This patch adds asserts that all uses are known. llvm-svn: 257920
* # This is a combination of 2 commits.Reid Kleckner2016-01-152-13/+0
| | | | | | | | | | | | | | | | # The first commit's message is: Revert "[ARM] Add DSP build attribute and extension targeting" This reverts commit b11cc50c0b4a7c8cdb628abc50b7dc226ff583dc. # This is the 2nd commit message: Revert "[ARM] Add new system registers to ARMv8-M Baseline/Mainline" This reverts commit 837d08454e3e5beb8581951ac26b22fa07df3cd5. llvm-svn: 257916
* Recommit r257912George Rimar2016-01-151-6/+8
| | | | | | | | | | | | | | Added forgotten ELFDumper.cpp to commit. Initial commit message: [llvm-readobj] Add support for TLSDESC_PLT and TLSDESC_GOT dynamic section tags to the llvm-readobj. If module uses uses lazy TLSDESC relocations it should define DT_TLSDESC_PLT and DT_TLSDESC_GOT entries. They were unknown for llvm-readobj before this patch. Differential revision: http://reviews.llvm.org/D16224 llvm-svn: 257914
* [codeview] Dump the file checksum substreamReid Kleckner2016-01-151-0/+38
| | | | llvm-svn: 257910
* [ARM] Add DSP build attribute and extension targetingBradley Smith2016-01-152-0/+13
| | | | llvm-svn: 257885
* lli: use llvm::utostr() instead of std::to_string().NAKAMURA Takumi2016-01-151-2/+3
| | | | llvm-svn: 257857
* [codeview] Translate file table offsets to filenames and print themReid Kleckner2016-01-151-48/+63
| | | | llvm-svn: 257846
* [sancov] html reportMike Aizatsky2016-01-141-6/+144
| | | | | | Differential Revision: http://reviews.llvm.org/D16161 llvm-svn: 257824
* [PGO] Move profile summary interface/impl into InstrProf.[*] /NFCXinliang David Li2016-01-141-99/+0
| | | | llvm-svn: 257819
* [Orc] Add support for EH-frame registration to the Orc Remote Target utilityLang Hames2016-01-141-1/+9
| | | | | | | | | classes. OrcRemoteTargetClient::RCMemoryManager will now register EH frames with the server automatically. This allows remote-execution of code that uses exceptions. llvm-svn: 257816
* [codeview] Dump function callees and add more labels to inlinee infoReid Kleckner2016-01-141-8/+26
| | | | | | | I kept forgetting which number is the line delta and which is the code delta. llvm-svn: 257813
* Update to use new name alignTo().Rui Ueyama2016-01-146-24/+21
| | | | llvm-svn: 257804
* [codeview] Dump CodeView inlinee lines subsectionReid Kleckner2016-01-141-0/+36
| | | | llvm-svn: 257790
* dsymutil: Provide better warnings when clang modules cannot be found.Adrian Prantl2016-01-142-2/+35
| | | | | | rdar://problem/22823264 llvm-svn: 257784
* Use std::map::insert instead of emplace for libstdc++ 4.7Reid Kleckner2016-01-141-1/+1
| | | | llvm-svn: 257780
* Print function names when they are referenced via TypeIndexReid Kleckner2016-01-141-1/+1
| | | | llvm-svn: 257778
* [readobj] Add functionality to dump relocations inside of binary blobsReid Kleckner2016-01-141-6/+38
| | | | llvm-svn: 257777
* [codeview] Print relocations against code and data offset fieldsReid Kleckner2016-01-142-76/+67
| | | | | | | | These fields are almost always zero. However, there are relocations against them, and we should print the relocation symbol with it as SYM+0xNN. llvm-svn: 257776
* Revert "Assert that we have all use/users in the getters."Michael Zolotukhin2016-01-141-12/+3
| | | | | | This reverts commit fdb838f3f8a8b6896bbbd5285555874eb3b748eb. llvm-svn: 257751
* [CodeView] Add support for dumping binary annotationsDavid Majnemer2016-01-141-1/+100
| | | | | | | | | | | | Binary annotations are encoded along the lines of UTF-8 and ECI but with a few minor differences. The algorithm specified in "ECMA-335 CLI Section II.3.2 - Blobs and Signatures" is used to compress binary annotations. Signed binary annotations are encoded like unsigned annotations except the sign bit is rotated left to reduce the number of bits needed to be encoded. llvm-svn: 257742
* llvm-profdata.cpp: Fix comment lines. [-Wdocumentation]NAKAMURA Takumi2016-01-141-3/+3
| | | | llvm-svn: 257726
* [codeview] Share more enums across the writer and the dumperReid Kleckner2016-01-135-686/+25
| | | | | | | | | Moves some .def files into include/DebugInfo/CodeView. Aslo remove a 'using namespace' directive from a header in readobj and update the uses of the endian helper types to compensate. llvm-svn: 257712
* Display detailed profile summary in llvm-profdata tool.Easwaran Raman2016-01-131-16/+136
| | | | | | | | | | | This adds a detailed profile summary in llvm-profdata. The summary is in the form of one or more triples of the form (P, N, M) which is interpreted as if we look at the Top-N counts in the profile, their sum accounts for P percentage of the sum of all counts in the program and the minimum count in the Top-N is M. Differential Revision: http://reviews.llvm.org/D16005 llvm-svn: 257680
* dsymutil: Only warn about missing clang modules once.Adrian Prantl2016-01-131-3/+1
| | | | | | rdar://problem/22269336 llvm-svn: 257664
* [readobj] Expand CodeView dumping functionalityReid Kleckner2016-01-137-146/+2608
| | | | | | | | | | | | | | | | This rewrites and expands the existing codeview dumping functionality in llvm-readobj using techniques similar to those in lib/Object. This defines a number of new records and enums useful for reading memory mapped codeview sections in COFF objects. The dumper is intended as a testing tool for LLVM as it grows more codeview output capabilities. Reviewers: majnemer Differential Revision: http://reviews.llvm.org/D16104 llvm-svn: 257658
* [llvm-readobj] Remove dead code. Add an assertion instead.Davide Italiano2016-01-131-2/+3
| | | | | | | | | | When we arrive at the end of the function, the validation of the object has been done already. In theory, so, we should never arrive here with something broken as the object isn't mutated. Practice sometimes proves theory to be wrong, so leave an assertion instead, as suggested by David Blaikie, to catch bugs. llvm-svn: 257570
* [llvm-objdump] Use report_error() and improve error coverage.Davide Italiano2016-01-131-4/+2
| | | | llvm-svn: 257561
* [CodeView] Improve the line table dumperDavid Majnemer2016-01-131-14/+28
| | | | | | | | This change has us print out fields we didn't previously understand. To improve readability, we now group column information with it's respective line. llvm-svn: 257552
* For llvm-objdump, add the option -private-header (without the trailing ’s’)Kevin Enderby2016-01-133-11/+46
| | | | | | | | | | | | | | | to only print the first private header. Which for Mach-O files only prints the Mach header and not the subsequent load commands. Which is used by scripts to match what the darwin otool(1) with the -h flag does without the -l flag. For non-Mach-O files it has the same functionality as -private-headers (with the trailing ’s’). rdar://24158331 llvm-svn: 257548
* COFF: Teach llvm-objdump how to dump DLL forwarder symbols.Rui Ueyama2016-01-121-1/+18
| | | | llvm-svn: 257539
* [WebAssembly] Add a EM_WEBASSEMBLY value, and several bits of code that use it.Dan Gohman2016-01-122-1/+19
| | | | | | | | | A request has been made to the official registry, but an official value is not yet available. This patch uses a temporary value in order to support development. When an official value is recieved, the value of EM_WEBASSEMBLY will be updated. llvm-svn: 257517
* Revert r257003Andrew Wilkins2016-01-125-102/+44
| | | | | | | | This revision breaks llvm-config if you set BUILD_SHARED_LIBS=on in a CMake build. Backing out until the fix is ready to land. llvm-svn: 257457
* lli: Fix warnings. [-Wsign-compare]NAKAMURA Takumi2016-01-121-2/+2
| | | | llvm-svn: 257430
* lli-child-target: Introduce a new dependency on RuntimeDyld.NAKAMURA Takumi2016-01-111-0/+1
| | | | llvm-svn: 257410
* Add a missing error handling to llvm-lto.Rafael Espindola2016-01-111-0/+1
| | | | llvm-svn: 257395
* XFAIL the LLI remote JIT tests on Win32.Lang Hames2016-01-111-3/+1
| | | | llvm-svn: 257391
* lli/ChildTarget now depends on OrcJIT. Add that component to the Makefile. Lang Hames2016-01-111-1/+1
| | | | llvm-svn: 257360
* [LLI] Remove dependence on RemoteTarget.cpp from ChildTarget's Makefile.Lang Hames2016-01-111-1/+1
| | | | | | RemoteTarget.cpp was removed in r257343. llvm-svn: 257351
* [LLI] Replace the LLI remote-JIT support with the new ORC remote-JIT components.Lang Hames2016-01-1115-1510/+319
| | | | | | | | The new ORC remote-JITing support provides a superset of the old code's functionality, so we can replace the old stuff. As a bonus, a couple of previously XFAILed tests have started passing. llvm-svn: 257343
* [Orc] Rename OrcTargetSupport to OrcArchitectureSupport to avoid confusion withLang Hames2016-01-111-1/+1
| | | | | | the upcoming remote-target support classes. llvm-svn: 257302
OpenPOWER on IntegriCloud