| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit r193255 and instead creates an lto_bool_t typedef
that points to bool, _Bool, or unsigned char depending on what is
available. Only recent versions of MSVC provide a stdbool.h header.
Reviewers: rafael.espindola
Differential Revision: http://llvm-reviews.chandlerc.com/D2019
llvm-svn: 193377
|
|
|
|
| |
llvm-svn: 193257
|
|
|
|
| |
llvm-svn: 193255
|
|
|
|
| |
llvm-svn: 193254
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This provides rudimentary testing of the llvm-c api.
The following commands are implemented:
* --module-dump
Read bytecode from stdin - print ir
* --module-list-functions
Read bytecode from stdin - list summary of functions
* --module-list-globals
Read bytecode from stdin - list summary of globals
* --targets-list
List available targets
* --object-list-sections
Read object file from stdin - list sections
* --object-list-symbols
Read object file from stdin - list symbols (like nm)
* --disassemble
Read lines of triple, hex ascii machine code from stdin - print disassembly
* --calc
Read lines of name, rpn from stdin - print generated module ir
Differential-Revision: http://llvm-reviews.chandlerc.com/D1776
llvm-svn: 193233
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Replaced tabs with proper padding
- print() takes two arguments, which are the GCNO and GCDA filenames
- Files are listed at the top of output, appended by line 0
- Stripped strings of trailing \0s
- Removed last two lines of whitespace in output
Patch by Yuchen Wu!
llvm-svn: 193148
|
|
|
|
|
|
|
|
|
|
| |
collectLineCounts() should only organize the output data. This is done in
anticipation of subsequent changes which will pass in GCNO and GCDA filenames
into the print function where it is printed similar to the gcov output.
Patch by Yuchen Wu!
llvm-svn: 193134
|
|
|
|
|
|
| |
Thanks to Milan Lenčo for noticing it.
llvm-svn: 192996
|
|
|
|
|
|
|
| |
Destroying the codegen also frees the path of the created object. Copy the
path to a std::string.
llvm-svn: 192787
|
|
|
|
| |
llvm-svn: 192781
|
|
|
|
|
|
| |
Patch by Yaron Keren
llvm-svn: 192753
|
|
|
|
|
|
|
|
| |
This should fix PR17568.
Patch by Josh Samuel!
llvm-svn: 192610
|
|
|
|
|
|
|
| |
* std::string::append(int, int) can be ambiguous.
* std::vector<>::data() is a C++11 feature, use ArrayRef abstraction.
llvm-svn: 192542
|
|
|
|
| |
llvm-svn: 192519
|
|
|
|
|
|
|
|
| |
This fixes a problem from a previous check-in where a return value was omitted.
Previously the remote/stubs-remote.ll and remote/stubs-sm-pic.ll tests were reporting passes, but they should have been failing. Those tests attempt to link against an external symbol and remote symbol resolution is not supported. The old RemoteMemoryManager implementation resulted in local symbols being used for resolution and the child process crashed but the test didn't notice. With this check-in remote symbol resolution fails, and so the test (correctly) fails.
llvm-svn: 192514
|
|
|
|
| |
llvm-svn: 192504
|
|
|
|
|
|
|
|
| |
DIScopeRef.
A paired commit at clang is required due to changes to DIBuilder.
llvm-svn: 192378
|
|
|
|
|
|
| |
Patch by Josh Samuel!
llvm-svn: 192371
|
|
|
|
|
|
|
| |
We previously failed to check whether the SUCCESS variable was set,
and would thus always exit with a failure if vs2012 didn't exist.
llvm-svn: 192370
|
|
|
|
| |
llvm-svn: 192284
|
|
|
|
| |
llvm-svn: 192205
|
|
|
|
|
|
| |
Patch by Greg Bedwell.
llvm-svn: 192182
|
|
|
|
|
|
| |
r191088 is "llvm/tools/Makefile: Suppress building llvm-lto on cygming, for now, probably due to LTO.dll."
llvm-svn: 192104
|
|
|
|
|
|
|
| |
The patch reviewed by Michael Spencer.
http://llvm-reviews.chandlerc.com/D1846
llvm-svn: 192093
|
|
|
|
| |
llvm-svn: 192031
|
|
|
|
|
|
|
|
| |
We were writing in text mode.
Patch by Greg Bedwell.
llvm-svn: 191985
|
|
|
|
| |
llvm-svn: 191979
|
|
|
|
| |
llvm-svn: 191976
|
|
|
|
|
|
|
| |
This is unlikely to ever fail, but ubuntu GCC warns when the return value is
unused.
llvm-svn: 191973
|
|
|
|
| |
llvm-svn: 191970
|
|
|
|
| |
llvm-svn: 191938
|
|
|
|
|
|
|
|
|
|
|
| |
Generalize the API so we can distinguish symbols that are needed just for a DSO
symbol table from those that are used from some native .o.
The symbols that are only wanted for the dso symbol table can be dropped if
llvm can prove every other dso has a copy (linkonce_odr) and the address is not
important (unnamed_addr).
llvm-svn: 191922
|
|
|
|
|
|
|
| |
This makes it possible to add timers to the code generator and still use them
with -plugin-opt=emit-llvm.
llvm-svn: 191866
|
|
|
|
| |
llvm-svn: 191861
|
|
|
|
| |
llvm-svn: 191857
|
|
|
|
|
|
| |
searching $PATH for it then blindly executing it from $PWD anyway.
llvm-svn: 191856
|
|
|
|
| |
llvm-svn: 191848
|
|
|
|
| |
llvm-svn: 191845
|
|
|
|
| |
llvm-svn: 191844
|
|
|
|
|
|
|
|
| |
At this time only Unix-based systems are supported. Windows has stubs and should re-route to the simulated mode.
Thanks to Sriram Murali for contributions to this patch.
llvm-svn: 191843
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
infrastructure.
This was essentially work toward PGO based on a design that had several
flaws, partially dating from a time when LLVM had a different
architecture, and with an effort to modernize it abandoned without being
completed. Since then, it has bitrotted for several years further. The
result is nearly unusable, and isn't helping any of the modern PGO
efforts. Instead, it is getting in the way, adding confusion about PGO
in LLVM and distracting everyone with maintenance on essentially dead
code. Removing it paves the way for modern efforts around PGO.
Among other effects, this removes the last of the runtime libraries from
LLVM. Those are being developed in the separate 'compiler-rt' project
now, with somewhat different licensing specifically more approriate for
runtimes.
llvm-svn: 191835
|
|
|
|
|
|
|
| |
I really should sort it or do something more sustainable, but I couldn't
work up the energy to do it... Sorry.
llvm-svn: 191832
|
|
|
|
|
|
|
|
|
| |
This was broken when options were moved up in r191680. No test because this is
specific LLVMgold.so/libLTO.so.
Patch by Tom Roeder!
llvm-svn: 191829
|
|
|
|
|
|
| |
Patch by Tom Roeder.
llvm-svn: 191825
|
|
|
|
|
|
|
|
|
| |
Enable building the LTO library (.lib and.dll) and llvm-lto.exe on Windows with
MSVC and Mingw as well as re-enabling the associated test.
Patch by Greg Bedwell!
llvm-svn: 191823
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
APIs, both in C++ and C land.
It's useful for the memory managers that are allocating a section to know what the name of the section is.
At a minimum, this is useful for low-level debugging - it's customary for JITs to be able to tell you what
memory they allocated, and as part of any such dump, they should be able to tell you some meta-data about
what each allocation is for. This allows clients that supply their own memory managers to do this.
Additionally, we also envision the SectionName being useful for passing meta-data from within LLVM to an LLVM
client.
This changes both the C and C++ APIs, and all of the clients of those APIs within LLVM. I'm assuming that
it's safe to change the C++ API because that API is allowed to change. I'm assuming that it's safe to change
the C API because we haven't shipped the API in a release yet (LLVM 3.3 doesn't include the MCJIT memory
management C API).
llvm-svn: 191804
|
|
|
|
|
|
| |
Patch by Alp Toker.
llvm-svn: 191757
|
|
|
|
|
|
|
|
| |
Tests to follow.
PIC with small code model and EH frame handling will not work with multiple modules. There are also some rough edges to be smoothed out for remote target support.
llvm-svn: 191722
|
|
|
|
|
|
| |
Patch by Richard Sandiford.
llvm-svn: 191680
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit r191670.
It was causing build failures on the msvc bots:
http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/5166/steps/compile/logs/stdio
llvm-svn: 191679
|