summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [NFC] Updating FileCheck to reduce the std::vector interface used via cl::list.Chris Bieneman2015-04-291-6/+8
| | | | llvm-svn: 236164
* [NFC] Converting to range-based for.Chris Bieneman2015-04-291-2/+1
| | | | llvm-svn: 236163
* [opaque pointer type] update for LLVM API changeDavid Blaikie2015-04-295-11/+10
| | | | llvm-svn: 236161
* [opaque pointer type] Pass GlobalAlias the actual pointer type rather than ↵David Blaikie2015-04-2912-59/+41
| | | | | | | | | | | | | decomposing it into pointee type + address space Many of the callers already have the pointer type anyway, and for the couple of callers that don't it's pretty easy to call PointerType::get on the pointee type and address space. This avoids LLParser from using PointerType::getElementType when parsing GlobalAliases from IR. llvm-svn: 236160
* Revert r236060, it caused PR23375.Nico Weber2015-04-291-1/+23
| | | | llvm-svn: 236159
* Inline FragmentWriter into the only user.Rafael Espindola2015-04-291-18/+4
| | | | llvm-svn: 236158
* Write the symbol table directly to the output file.Rafael Espindola2015-04-291-79/+85
| | | | | | There is no need to first accumulate it in fragments. llvm-svn: 236157
* tidy up; NFCSanjay Patel2015-04-291-41/+28
| | | | llvm-svn: 236156
* Stop assuming a 64-bit target here.Richard Smith2015-04-291-3/+3
| | | | llvm-svn: 236155
* Make the .eh_frame_hdr code work on FreeBSD as well.Ed Schouten2015-04-291-1/+8
| | | | | | | | | | | | | | | We currently only include <link.h> on CloudABI and Linux. We can enable it on FreeBSD as well, as it also supports the dl_iterate_phdr() function that's provided by <link.h>. FreeBSD, however, does not provide the ElfW() macro. Instead, the host-specific ELF datastructures are named just Elf_XXX in addition to the host-independent Elf32_XXX and Elf64_XXX types. Differential Revision: http://reviews.llvm.org/D8169 Approved by: emaste llvm-svn: 236154
* Use pwrite to write the number of sections.Rafael Espindola2015-04-291-10/+15
| | | | | | | This avoids having to compute the number upfront, which will be used in the next patch. llvm-svn: 236153
* [UBSan] Various improvements to vptr.cpp test caseAlexey Samsonov2015-04-291-29/+26
| | | | | | | | | * Remove __ubsan_default_options, so that test would work on Darwin * Fix unintentional undefined behavior in the code (missing return) * Build the test with -fno-sanitize-recover to distinguish expected failures and expected passes by return code. llvm-svn: 236152
* [UBSan] Add a testcase for __ubsan_default_options() function.Alexey Samsonov2015-04-291-0/+18
| | | | llvm-svn: 236151
* too much space again; NFCSanjay Patel2015-04-291-4/+0
| | | | llvm-svn: 236150
* [GNU] Remove -x/-X from the list of options to be implemented.Davide Italiano2015-04-291-2/+0
| | | | llvm-svn: 236149
* Write the string table directly to the output file.Rafael Espindola2015-04-291-14/+22
| | | | | | There is no need to accumulate it in fragments first. llvm-svn: 236148
* too much space; NFCSanjay Patel2015-04-291-4/+0
| | | | llvm-svn: 236147
* [Sparc] Really add sparcel architecture support.Douglas Katzman2015-04-2914-61/+97
| | | | | | | | Mostly copy-and-paste from Sparc v8 architecture. Differential Revision: http://reviews.llvm.org/D8741 llvm-svn: 236146
* Write the section header string table directly to the output stream.Rafael Espindola2015-04-2914-110/+120
| | | | | | | | | | Instead of accumulating the content in a fragment first, just write it to the output stream. Also put it first in the section table, so that we never have to worry about its index being >= SHN_LORESERVE. llvm-svn: 236145
* Clean up docs references to './configure' in preparation for deprecating ↵Jonathan Roelofs2015-04-295-10/+10
| | | | | | | | in-source builds http://reviews.llvm.org/D8787 llvm-svn: 236144
* [AArch64] Refactor out codes that depend on specific CS save sequence.Manman Ren2015-04-291-19/+28
| | | | | | No functionality change. llvm-svn: 236143
* PR23373: A defaulted union copy constructor that is not trivial must still beRichard Smith2015-04-296-36/+72
| | | | | | emitted as a memcpy. llvm-svn: 236142
* Avoid a few const_cast.Rafael Espindola2015-04-291-13/+12
| | | | llvm-svn: 236141
* ARM: mark branch-like instructions with correct flags.Tim Northover2015-04-291-0/+2
| | | | | | | | | | | | There's probably no way to test BXJ, but if the compiler ever did emit it during CodeGen it would have to be a block terminator so "isBranch" is appropriate. BLX is more tricky. Clearly a call, but it affects surprisingly little. rdar://18719544 llvm-svn: 236140
* New architecture name - 'sparcel' for Sparc little-endian.Douglas Katzman2015-04-293-0/+27
| | | | | | Differential Revision: http://reviews.llvm.org/D9263 llvm-svn: 236139
* lldb-gdbserver should not use unnamed pipes on Windows.Chaoren Lin2015-04-291-0/+4
| | | | llvm-svn: 236138
* Make Sparc assembler accept parenthesized constant expressions.Douglas Katzman2015-04-292-0/+7
| | | | | | Differential Revision: http://reviews.llvm.org/D9087 llvm-svn: 236137
* Expose Close{Read/Write}FileDescriptor for pipes.Chaoren Lin2015-04-294-13/+14
| | | | llvm-svn: 236136
* Re-XFAIL UBSan vptr testcase on darwin.Ahmed Bougacha2015-04-291-0/+2
| | | | | | Partial revert of r235961; the test still fails on Green Dragon bots. llvm-svn: 236135
* Revert r236063 due to regression with -fdelayed-template-parsing.Richard Smith2015-04-292-21/+0
| | | | llvm-svn: 236134
* Add file descriptor constructor for PipePosix.Chaoren Lin2015-04-293-20/+6
| | | | llvm-svn: 236133
* Remove trap code from disassembly.Chaoren Lin2015-04-2910-66/+108
| | | | | | | | | | | | | | | | | | | | Summary: NativeProcessProtocol uses ReadMemory internally for setting/checking breakpoints but also for generic memory reads (Handle_m), this change adds a ReadMemoryWithoutTrap for that purpose. Also fixes a bunch of misuses of addr_t as size/length. Test Plan: `disassemble` no longer shows the trap code. Reviewers: jingham, vharron, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9330 llvm-svn: 236132
* [mips][microMIPSr6] Implement MUL, MUH, MULU and MUHU instructionsZoran Jovanovic2015-04-294-5/+29
| | | | | | Differential Revision: http://reviews.llvm.org/D8894 llvm-svn: 236131
* tsan: add another test for setuidDmitry Vyukov2015-04-291-0/+21
| | | | llvm-svn: 236130
* [WinEH] Fix minor bug in begincatch block splittingAndrew Kaylor2015-04-291-1/+1
| | | | llvm-svn: 236129
* Re-land r236052, the linker errors were fixed by LLVM r236123Reid Kleckner2015-04-298-153/+278
| | | | | | | Basic __finally blocks don't cause linker errors anymore (although they are miscompiled). llvm-svn: 236128
* Update polly for LLVM rename of debug info metadata with DI* prefixDuncan P. N. Exon Smith2015-04-2912-236/+236
| | | | | | | Ran the same rename-md-di-prefix.sh script attached to PR23080 as in LLVM r236120 and CFE r236121. llvm-svn: 236127
* Disable failing TestDevNull test on WindowsReid Kleckner2015-04-291-0/+2
| | | | llvm-svn: 236126
* Debug Info: Represent local anonymous unions as anonymous unionsAdrian Prantl2015-04-292-2/+27
| | | | | | | | | | | | | | | | and as artificial local variables in the debug info. This is a follow-up to r236059. We can't get rid of the local variables entirely because the gdb buildbot depends on them, but we can mark them as artificial while still emitting the correct debug info. As I learned from review comments other compilers also follow this model. A paired commit in LLVM temporarily relaxes the debug info verifier to not check the integrity of DW_OP_bit_pieces of artificial variables. rdar://problem/20730771 llvm-svn: 236125
* Temporarily relax a check in the debug info verifier.Adrian Prantl2015-04-291-0/+9
| | | | | | | | | | | | The clang frontend helps out GDB by emitting the members of local anonymous unions as artificial local variables with shared storage. When SROA splits the storage for artificial local variables that are smaller than the entire union, the overhang piece will be outside of the allotted space for the variable and this check fails. rdar://problem/20730771 llvm-svn: 236124
* [X86] Avoid mangling frameescape labelsReid Kleckner2015-04-294-5/+15
| | | | | | | | | | | | | | x86 Windows uses the '_' prefix for all global symbols, and this was mistakenly being applied to frameescape labels, which are not externally visible global symbols. They use the private global prefix 'L'. The *right* way to fix this is probably to stop masquerading this label as an ExternalSymbol and create a new SDNode type. These labels are not "external", and we know they will be resolved by assembly time. Having a custom SDNode type would allow us to do better X86 address mode matching, so it's probably worth doing eventually. llvm-svn: 236123
* These are the actual changes in the runtime to issue OMPT-related functions. ↵Andrey Churbanov2015-04-2913-26/+1276
| | | | | | All of them are surrounded by #if OMPT_SUPPORT and can be disabled (which is the default). llvm-svn: 236122
* DebugInfo: Metadata constructs now start with DI*Duncan P. N. Exon Smith2015-04-29142-1053/+1052
| | | | | | | | | | LLVM r236120 renamed debug info IR constructs to use a `DI` prefix, now that the `DIDescriptor` hierarchy has been gone for about a week. This commit was generated using the rename-md-di-nodes.sh upgrade script attached to PR23080, followed by running clang-format-diff.py on the `lib/` portion of the patch. llvm-svn: 236121
* IR: Give 'DI' prefix to debug info metadataDuncan P. N. Exon Smith2015-04-29548-11224/+11213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Finish off PR23080 by renaming the debug info IR constructs from `MD*` to `DI*`. The last of the `DIDescriptor` classes were deleted in r235356, and the last of the related typedefs removed in r235413, so this has all baked for about a week. Note: If you have out-of-tree code (like a frontend), I recommend that you get everything compiling and tests passing with the *previous* commit before updating to this one. It'll be easier to keep track of what code is using the `DIDescriptor` hierarchy and what you've already updated, and I think you're extremely unlikely to insert bugs. YMMV of course. Back to *this* commit: I did this using the rename-md-di-nodes.sh upgrade script I've attached to PR23080 (both code and testcases) and filtered through clang-format-diff.py. I edited the tests for test/Assembler/invalid-generic-debug-node-*.ll by hand since the columns were off-by-three. It should work on your out-of-tree testcases (and code, if you've followed the advice in the previous paragraph). Some of the tests are in badly named files now (e.g., test/Assembler/invalid-mdcompositetype-missing-tag.ll should be 'dicompositetype'); I'll come back and move the files in a follow-up commit. llvm-svn: 236120
* CodeGen: Default overflow operations to expand so we don't have to assume ↵Jan Vesely2015-04-292-6/+8
| | | | | | | | | | targets are lying Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: ab Differential Revision: http://reviews.llvm.org/D9265 llvm-svn: 236119
* [mips][microMIPSr6] Implement SUB and SUBU instructionsZoran Jovanovic2015-04-293-0/+14
| | | | | | Differential Revision: http://reviews.llvm.org/D8764 llvm-svn: 236118
* This patch contains the new files for OMPT and the needed changes to the ↵Andrey Churbanov2015-04-2916-2/+2120
| | | | | | build infrastructure llvm-svn: 236117
* Fix syntax error in CMake created when a variable is not defined.Eric Fiselier2015-04-291-2/+2
| | | | llvm-svn: 236115
* This is a preparation patch to get information about the actual release ↵Andrey Churbanov2015-04-292-51/+71
| | | | | | status from nested locks for OMPT. llvm-svn: 236114
* Allow compilation depending to the LLVM versionTom Stellard2015-04-293-1/+24
| | | | | | | | | It allows to keep temporary compatibilty with older version. For exemple, this can be use when change are not to large. Patch by: EdB llvm-svn: 236113
OpenPOWER on IntegriCloud