summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add dynamic_table iterators back to ELF.h.Rafael Espindola2015-08-076-22/+72
| | | | | | | | | In tree they are only used by llvm-readobj, but it is also used by https://github.com/mono/CppSharp. While at it, add some missing error checking. llvm-svn: 244320
* [dsymutil] Use the new MCDwarfLineTableParams customization to emit linetablesFrederic Riss2015-08-074-10/+63
| | | | | | | | llvm-dsymutil has to be able to process debug info produced by other compilers which use different line table settings. The testcase wasn't generated by another compiler, but by a modified clang. llvm-svn: 244319
* [MC/Dwarf] Allow to specify custom parameters for linetable emission.Frederic Riss2015-08-076-61/+86
| | | | | | | | | NFC patch for current users, but llvm-dsymutil will use the new functionality to adapt to the input linetable. Based on a patch by Adrian Prantl. llvm-svn: 244318
* ELF: Correctly identify SHT_NOTE sections with !SHF_ALLOC as type*NoteTom Stellard2015-08-072-3/+10
| | | | | | | | Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11266 llvm-svn: 244317
* [ASAN] Disable ManyThreadsTest in AArch64Renato Golin2015-08-071-0/+3
| | | | | | | | This test was in an infinite loop in AArch64. We're investigating it on PR24389, but I'm disabling it for now, so that we continue testing everything else. llvm-svn: 244316
* Fix unused variable warning introduced in r244314Silviu Baranga2015-08-071-2/+4
| | | | llvm-svn: 244315
* [ARM] Update ReconstructShuffle to handle mismatched typesSilviu Baranga2015-08-073-92/+263
| | | | | | | | | | | | | | | | | | Summary: Port the ReconstructShuffle function from AArch64 to ARM to handle mismatched incoming types in the BUILD_VECTOR node. This fixes an outstanding FIXME in the ReconstructShuffle code. Reviewers: t.p.northover, rengolin Subscribers: aemerson, llvm-commits, rengolin Differential Revision: http://reviews.llvm.org/D11720 llvm-svn: 244314
* Revert "Make global aliases have symbol size equal to their type"John Brawn2015-08-075-37/+0
| | | | | | | This reverts r242520, as it caused pr24379. Also removes part of the test added by r243874 that checks the size of alias symbols. llvm-svn: 244313
* Silence tools/clang/lib/Tooling/CompilationDatabase.cpp:328:12: warning:Yaron Keren2015-08-071-1/+1
| | | | | | | ‘clang::tooling::JSONAnchorDest’ defined but not used [-Wunused-variable] from gcc 5.1. llvm-svn: 244312
* Tweak llvm/test/tools/dsymutil/arch-option.test to avoid globbing on mingw-w64.NAKAMURA Takumi2015-08-071-1/+1
| | | | llvm-svn: 244311
* Require LLVM >=3.7 and bump version to 0.2.0Jeroen Ketema2015-08-072-19/+8
| | | | | | | | v2: Also remove LLVM 3.6 traces from prepare-builtins.cpp Patch by: EdB llvm-svn: 244310
* ShrinkWrap.cpp: Tweak r244235 for a non-functional member, PredicateFtor. ↵NAKAMURA Takumi2015-08-071-2/+2
| | | | | | [-Wdocumentation] llvm-svn: 244309
* [LLDB][MIPS] Fix offsets of all register sets and add MSA regset and FRE=1 ↵Sagar Thakur2015-08-0723-1748/+3818
| | | | | | | | | | | | | | | | | | mode support This change : - Fixes offsets of all register sets for Mips. - Adds MSA register set and FRE=1 mode support for FP register set. - Separates lldb register numbers and register infos of freebsd/mips64 from linux/mips64. - Re-orders the register numbers of all kinds for mips to be consistent with freebsd order of register numbers. - Eliminates ENABLE_128_BIT_SUPPORT and union ValueData from Scalar.cpp and uses llvm::APInt and llvm::APFloat for all integer and floating point types. Reviewers : emaste, jaydeep, clayborg Subscribers : emaste, mohit.bhakkad, nitesh.jain, bhushan Differential : http://reviews.llvm.org/D10919 llvm-svn: 244308
* Make sure the Features field of the Builtin Info struct is always ↵Craig Topper2015-08-072-36/+44
| | | | | | | | initialized. Silences -Wmissing-field-initializers. While there convert 0 in the BUILTIN macros to nullptr. llvm-svn: 244307
* Make 'arm' cover both 32 and 64 bit architecutresBen Langmuir2015-08-074-0/+82
| | | | | | | | | | | | | | | | ... and add aarch32 to specifically refer to the 32-bit ones. Previously, 'arm' meant only 32-bit architectures and there was no way for a module to build with both 32 and 64 bit ARM architectures. Now a module that is intended to work on both architectures can specify requires arm whereas a module only for 32-bit platforms can say requires aarch32 and just like before, 64-bit only can say requires aarch64 llvm-svn: 244306
* WebAssembly: textual emission uses expected opcode namesJF Bastien2015-08-073-44/+45
| | | | | | | | | | | | Summary: WebAssembly's tablegen instructions have the names WebAssembly expects, but by LLVM convention they're uppercase and suffixed with their type after an underscore. Leave the C++ code that way, but print outt he names WebAssembly expects (lowercase, no type). We could teach tablegen to do this later, maybe by using `!cast<string>(node)` in the .td files. Reviewers: sunfish Subscribers: jfb, llvm-commits Differential Revision: http://reviews.llvm.org/D11776 llvm-svn: 244305
* ELF: Add AMDGPU specific defintionsTom Stellard2015-08-074-5/+71
| | | | | | | | | | Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11458 llvm-svn: 244303
* ValueMapper: Resolve uniquing cycles more aggressivelyDuncan P. N. Exon Smith2015-08-071-9/+14
| | | | | | | | | | | | As a follow-up to r244181, resolve uniquing cycles underneath distinct nodes on the fly. This prevents uniquing cycles in early operands from affecting later operands. It also removes an iteration through distinct nodes' operands. No real functional change here, just more prompt resolution of temporary nodes. llvm-svn: 244302
* ValueMapper: Pull out helper to resolve cycles, NFCDuncan P. N. Exon Smith2015-08-071-8/+10
| | | | | | | Pull out a helper for resolving uniquing cycles of `Metadata` to remove the boiler-plate of downcasting to `MDNode`. llvm-svn: 244301
* [llvm-readobj] Convert to range-loops.Davide Italiano2015-08-072-6/+4
| | | | llvm-svn: 244300
* MIR Serialization: Fix serialization of unnamed IR block references.Alex Lorenz2015-08-063-12/+55
| | | | | | | | The block address machine operands can reference IR blocks in other functions. This commit fixes a bug where the references to unnamed IR blocks in other functions weren't serialized correctly. llvm-svn: 244299
* Add -latomic to Android mips build to avoid http://b.android.com/182094.Chaoren Lin2015-08-061-0/+3
| | | | | | | | | | Reviewers: ovyalov Subscribers: tberghammer, danalbert, srhines, lldb-commits Differential Revision: http://reviews.llvm.org/D11825 llvm-svn: 244298
* Revert test commit.Tanya Lattner2015-08-061-1/+1
| | | | llvm-svn: 244297
* Test commitTanya Lattner2015-08-061-1/+1
| | | | llvm-svn: 244296
* MIR Parser: Simplify the token's string value handling.Alex Lorenz2015-08-063-56/+67
| | | | | | | | | | | | | | | | | This commit removes the 'StringOffset' and 'HasStringValue' fields from the MIToken struct and simplifies the 'stringValue' method which now returns the new 'StringValue' field. This commit also adopts a different way of initializing the lexed tokens - instead of constructing a new MIToken instance, the lexer resets the old token using the new 'reset' method and sets its attributes using the new 'setStringValue', 'setOwnedStringValue', and 'setIntegerValue' methods. Reviewers: Sean Silva Differential Revision: http://reviews.llvm.org/D11792 llvm-svn: 244295
* [LangRef] Cleanup some stray whitespace inconsistencies.Sean Silva2015-08-061-104/+104
| | | | | | Patch by Debora Setton Sanches! <setton.debora@gmail.com> llvm-svn: 244294
* [LangRef] Tiny editorial fixes.Sean Silva2015-08-061-20/+20
| | | | | | Patch by Debora Setton Sanches! <setton.debora@gmail.com> llvm-svn: 244293
* Add initial documentation for the MIR serialization format.Alex Lorenz2015-08-062-0/+129
| | | | | | Differential Revision: http://reviews.llvm.org/D11736 llvm-svn: 244292
* [AArch64][FastISel] Always use AND before checking the branch flag.Juergen Ributzka2015-08-062-1/+25
| | | | | | | | | | | | | When we are not emitting the condition for the branch, because the condition is in another BB or SDAG did the selection for us, then we have to mask the flag in the register with AND. This is required when the condition comes from a truncate, because SDAG only truncates down to a legal size of i32. This fixes rdar://problem/22161062. llvm-svn: 244291
* Range-forify a loop, delete trailing whitespace. NFCDouglas Katzman2015-08-061-6/+4
| | | | llvm-svn: 244290
* [modules] Remove unused ModuleManager::visitDepthFirst function.Richard Smith2015-08-062-95/+0
| | | | llvm-svn: 244289
* [modules] Fix use-after-iterator-invalidation bug.Richard Smith2015-08-061-1/+1
| | | | llvm-svn: 244288
* Revert "[AArch64][FastISel] Add more truncation tests." and ↵Juergen Ributzka2015-08-063-91/+43
| | | | | | | | | | | "[AArch64][FastISel] Always use an AND instruction when truncating to non-legal types." This reverts commit r243198 and 243304. Turns out this wasn't the correct fix for this problem. It works only within FastISel, but fails when the truncate is selected by SDAG. llvm-svn: 244287
* Continue the work from r243908 by adding a Features field to Builtin::InfoEric Christopher2015-08-062-2/+9
| | | | | | | | so that we can populate it on a per-target basis with required features. Future commits will start using this information for warnings. llvm-svn: 244286
* [modules] Stop walking all modules when looking for lexical decls for aRichard Smith2015-08-065-75/+66
| | | | | | DeclContext. These only ever come from the owning module file for the Decl. llvm-svn: 244285
* [compatibility.ll] Cover explicitly named comdats.Sean Silva2015-08-062-0/+8
| | | | | | Patch by Vedant Kumar! <vsk@apple.com> llvm-svn: 244284
* Describe the process better.Sean Silva2015-08-061-3/+5
| | | | | | Patch by Vedant Kumar! <vsk@apple.com> llvm-svn: 244283
* Move to llvm-readobj code that is only used there.Rafael Espindola2015-08-064-215/+216
| | | | | | | | | | lld might end up using a small part of this, but it will be in a much refactored form. For now this unblocks avoiding the full section scan in the ELFFile constructor. This also has a (very small) error handling improvement. llvm-svn: 244282
* Change the warning message about optimization to be printed onceJason Molenda2015-08-061-4/+5
| | | | | | | | | | | | | per Module instead of once per CompileUnit, and print the module name. A module may have a mix of compile units built with optimization and compile units built without optimization -- the warning won't be printed until the user selects a stack frame of a function that was built with optimization. And as before, it will only be printed once per module per debug session. <rdar://problem/19281172> llvm-svn: 244281
* Fix alignment of TemplateArgumentList.James Y Knight2015-08-061-1/+1
| | | | llvm-svn: 244280
* Revert accidentally committed WinEHPrepare changesDavid Majnemer2015-08-062-374/+9
| | | | | | This reverts commit r244272, r244273, r244274, and r244275. llvm-svn: 244278
* [modules] Remove now-unused MergedLookups map.Richard Smith2015-08-062-27/+0
| | | | llvm-svn: 244277
* [IR] Remove TerminateInst's "NameStr" argumentDavid Majnemer2015-08-062-26/+18
| | | | | | | TerminateInst can't have a name because it doesn't produce a result. No functionality change is intended, this is just a cleanup. llvm-svn: 244276
* PHIs don't need to be postprocessedDavid Majnemer2015-08-061-31/+6
| | | | llvm-svn: 244275
* Handle PHI nodes prefacing EH pads tooDavid Majnemer2015-08-062-14/+88
| | | | llvm-svn: 244274
* handle phi nodesDavid Majnemer2015-08-061-4/+27
| | | | llvm-svn: 244273
* [WinEHPrepare] Add rudimentary support for the new EH instructionsDavid Majnemer2015-08-061-8/+301
| | | | | | | | | | | | | | | | | | | | | | | Summary: This adds somewhat basic preparation functionality including: - Formation of funclets via coloring basic blocks. - Cloning of polychromatic blocks to ensure that funclets have unique program counters. - Demotion of values used between different funclets. - Some amount of cleanup once we have removed predecessors from basic blocks. - Verification that we are left with a CFG that makes some amount of sense. N.B. Arguments and numbering still need to be done. Reviewers: rnk, JosephTremoulet Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11750 llvm-svn: 244272
* [modules] Remove redundant lookups into non-primary DeclContexts. These were ↵Richard Smith2015-08-061-64/+13
| | | | | | made unnecessary by r244192. llvm-svn: 244271
* [dsymutil] Implement dSYM bundle creationFrederic Riss2015-08-063-17/+165
| | | | | | | | | | | | | | A dSYM bundle is a file hierarchy that looks slike this: <bundle name>.dSYM/ Contents/ Info.plist Resources/ DWARF/ <DWARF file(s)> This is the default output mode of dsymutil. llvm-svn: 244270
* [dsymutil] Add (unimplemented) --flat optionFrederic Riss2015-08-0613-21/+31
| | | | | | | | | | | | | | dsymutil should by default generate dSYM bundles which are filesystem hierarchies containing the debug info and an additional Info.plist. Currently llvm-dsymutil emits raw binaries containing the debug info. This is what we call the 'flat mode'. Add a -f/-flat option that is supposed to enable that flat mode, but don't wire it for now, only pass it to the tests that will need it to stay functional once we do bundle generation by default. This basically makes this commit NFC and removes the noise from the actual commit that adds support for bundle generation. llvm-svn: 244269
OpenPOWER on IntegriCloud