summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [llvm-pdbdump] Decipher the remaining PDB streams.Zachary Turner2016-05-255-2/+53
| | | | | | | We know at least know the meaning of every stream of the PDB file. Yay! llvm-svn: 270669
* Revert "llvm-objdump: support dumping AUX records for weak externals"Saleem Abdulrasool2016-05-253-37/+0
| | | | | | Revert it until we can figure out the endianness issue. llvm-svn: 270667
* Rename a variable to avoid shadowing function parameter. NFC.Bob Wilson2016-05-251-7/+7
| | | | llvm-svn: 270666
* arc-repeated-use-of-weak should not warn about IBOutlet propertiesBob Wilson2016-05-253-1/+14
| | | | | | | | | | | | | | Revision r211132 was supposed to disable -Warc-repeated-use-of-weak for Objective-C properties marked with the IBOutlet attribute. Those properties are supposed to be weak but they are only accessed from the main thread so there is no risk of asynchronous updates setting them to nil. That combination makes -Warc-repeated-use-of-weak very noisy. The previous change only handled one kind of access to weak IBOutlet properties. Instead of trying to add checks for all the different kinds of property accesses, this patch removes the previous special case check and adds a check at the point where the diagnostic is reported. rdar://21366461 llvm-svn: 270665
* [X86] Update test cases to make sure storeu builtins use the storeu ↵Craig Topper2016-05-252-4/+4
| | | | | | | | instrinsics. We were previously matching on other stores in the IR from this being an -O0 test. We should probably look into making the storeu builtins just emit a normal store with an alignment of 1. llvm-svn: 270664
* Object: ensure that structures are fully definedSaleem Abdulrasool2016-05-251-0/+19
| | | | | | | | Ensure that the unused fields are explicitly stated when defining the types. Add some compile time assertions about the size requirements for the structure types. llvm-svn: 270663
* Include <mutex> in Process.h - Jim's change in r270593 added a std::mutexJason Molenda2016-05-251-0/+1
| | | | | | | ivar and this header is needed for it to compile on linux, judging by the build bots. llvm-svn: 270662
* [llvm-pdbdump] Dump the IPI stream and all records.Zachary Turner2016-05-256-27/+155
| | | | llvm-svn: 270661
* Really define --export-dynamic-symbol= as an alias to --export-dynamic-symbol.Rui Ueyama2016-05-252-1/+4
| | | | | | Thanks to Sean for pointing it out. llvm-svn: 270660
* Fix comment.Rui Ueyama2016-05-251-2/+2
| | | | llvm-svn: 270659
* Add support for arm64 compact unwind tables, used on darwin arm64Jason Molenda2016-05-253-0/+340
| | | | | | | | | | | | | | systems (ios, tvos, watchos). It's a simple format to use now that I have i386/x86_64 supported already. The unwind instructions are only valid at call sites -- that is, when lldb is unwinding a frame in the middle of the stack. It cannot be used for the currently executing frame; it has no information about prologues/epilogues/etc. <rdar://problem/12062336> llvm-svn: 270658
* Reduce code duplication.Rui Ueyama2016-05-251-25/+11
| | | | llvm-svn: 270657
* pdbdump: fix bug in name hash table.Rui Ueyama2016-05-252-17/+44
| | | | | | | | | | | name_ids() did not return all IDs but only the first NameCount items. The number of non-zero entries in IDs vector is NameCount, but it does not mean that all non-zero entries are at the beginning of IDs vector. Differential Revision: http://reviews.llvm.org/D20611 llvm-svn: 270656
* [llvm-pdbdump] Stream 0 isn't actually the MSF superblock.Zachary Turner2016-05-253-5/+11
| | | | | | | Oddly enough, I realized we don't actually know what stream 0 is (if anything). llvm-svn: 270655
* test: use a binary file insteadSaleem Abdulrasool2016-05-252-1/+1
| | | | | | | Generate the obj rather than use yaml2obj. Hopefully, this fixes the PPC64 test failures. llvm-svn: 270654
* [llvm-pdbdump] Dump stream summary list.Zachary Turner2016-05-258-14/+121
| | | | | | | | | Try to figure out what each stream is, and dump its name. This gives us a better picture of what streams we still don't understand. llvm-svn: 270653
* Add `static` to a file-scope function.Rui Ueyama2016-05-251-1/+1
| | | | llvm-svn: 270652
* Add a few options for compatibility with GNU.Rui Ueyama2016-05-251-0/+3
| | | | llvm-svn: 270651
* Add working set base runtime libraryDerek Bruening2016-05-257-6/+170
| | | | | | | | | | | | | | | | | | Summary: Adds the base runtime library for the working set tool. Adds slowpath code for updating the shadow memory. To be added in the future: + Scan memory and report the total size. + Take samples for intermediate values. Reviewers: aizatsky Subscribers: kubabrecka, vitalybuka, zhaoqin, kcc, eugenis, llvm-commits Differential Revision: http://reviews.llvm.org/D20485 llvm-svn: 270650
* Support: remove outdated commentSaleem Abdulrasool2016-05-251-1/+0
| | | | | | This information is in the latest version of the specification. llvm-svn: 270649
* llvm-objdump: support dumping AUX records for weak externalsSaleem Abdulrasool2016-05-253-0/+37
| | | | | | | | This is a support COFF feature. Ensure that we can display the weak externals auxiliary symbol. It contains useful information (such as the default binding and how to resolve the symbol). llvm-svn: 270648
* [PM] Port BDCE to the new pass manager.Davide Italiano2016-05-257-36/+76
| | | | llvm-svn: 270647
* Soften assertion in AMDGPU emitPrologue.Nirav Dave2016-05-251-2/+3
| | | | | | | | | | | | | | [AMDGPU] emitPrologue looks for an unused unallocated SGPR that is not the scratch descriptor. Continue search if unused register found fails other requirements. Reviewers: arsenm, tstellarAMD, nhaehnle Subscribers: arsenm, llvm-commits, kzhuravl Differential Revision: http://reviews.llvm.org/D20526 llvm-svn: 270646
* Fix some Include What You Use warnings in examples; other minor fixes.Eugene Zelenko2016-05-259-25/+114
| | | | | | Differential revision: http://reviews.llvm.org/D20607 llvm-svn: 270645
* ScheduleDAGInstrs: Fix memory corruptionMatthias Braun2016-05-251-2/+2
| | | | | | | | We have to modify V2SU before inserting new elements into the CurrentVRegDefs set because that may move V2SU in memory invalidating the reference. llvm-svn: 270644
* [Support] Cleanup of an ancient Darwin work-around in Signals.inc (PR26174)Gerolf Hoflehner2016-05-251-39/+0
| | | | | | Patch by Jeremy Huddleston Sequoia llvm-svn: 270643
* clang-cl: Fix unused argument warning when combining /O2 and /Ob2Hans Wennborg2016-05-252-1/+8
| | | | llvm-svn: 270642
* [esan|wset] Add working set tool driver flagsDerek Bruening2016-05-257-15/+39
| | | | | | | | | | | | | | Summary: Adds a new -fsanitize=efficiency-working-set flag to enable esan's working set tool. Adds appropriate tests for the new flag. Reviewers: aizatsky Subscribers: vitalybuka, zhaoqin, kcc, eugenis, llvm-commits Differential Revision: http://reviews.llvm.org/D20484 llvm-svn: 270641
* [esan|wset] EfficiencySanitizer working set tool fastpathDerek Bruening2016-05-253-0/+269
| | | | | | | | | | | | | | | | | Summary: Adds fastpath instrumentation for esan's working set tool. The instrumentation for an intra-cache-line load or store consists of an inlined write to shadow memory bits for the corresponding cache line. Adds a basic test for this instrumentation. Reviewers: aizatsky Subscribers: vitalybuka, zhaoqin, kcc, eugenis, llvm-commits Differential Revision: http://reviews.llvm.org/D20483 llvm-svn: 270640
* [libFuzzer] print stats if we crash on empty inputKostya Serebryany2016-05-254-3/+27
| | | | llvm-svn: 270639
* Revert r270569 (teach llvm-mc to generate compressed debug sections in zlibRichard Smith2016-05-255-32/+48
| | | | | | style). It appears that current ELF linkers are not ready for this. llvm-svn: 270638
* [codeview] Add support for new types and symbols.Zachary Turner2016-05-256-4/+42
| | | | | | | | | | | | This patch adds support for: S_EXPORT LF_BITFIELD With this patch, I have run through a couple of gigabytes of PDB files and cannot find a type or symbol that we do not understand. llvm-svn: 270637
* [codeview] Add support for S_EXPORT symbol.Zachary Turner2016-05-254-1/+57
| | | | llvm-svn: 270636
* [WebAssembly] Put __stack_pointer in the offset field of loads and stores.Dan Gohman2016-05-244-62/+63
| | | | | | | | | | | | | | | | | | | | Instead of this: i32.const $push10=, __stack_pointer i32.load $push11=, 0($pop10) Emit this: i32.const $push10=, 0 i32.load $push11=, __stack_pointer($pop10) It's not currently clear which is better, though there's a chance the second form may be better at overall compression. We can revisit this when we have more data; for now it makes sense to make PEI consistent with isel. Differential Revision: http://reviews.llvm.org/D20411 llvm-svn: 270635
* docs: Document how safestack handles setjmp and exceptions.Peter Collingbourne2016-05-241-0/+11
| | | | llvm-svn: 270634
* Rename test/CodeGen/inline-optim.cc to .c and provide a tripleHans Wennborg2016-05-241-3/+3
| | | | llvm-svn: 270633
* [libfuzzer] Trying random unit prefixes during corpus load.Mike Aizatsky2016-05-245-1/+72
| | | | | | Differential Revision: http://reviews.llvm.org/D20301 llvm-svn: 270632
* [esan|cfrag] Add test struct-simple.cppDerek Bruening2016-05-241-0/+38
| | | | | | | | | | | | | | | Summary: Adds a new test struct-simple.cpp for testing the cache-fragmentation tool with a multi-compilation-unit application. Patch by Qin Zhao. Reviewers: bruening Subscribers: kubabrecka, kcc, vitalybuka, eugenis, aizatsky, llvm-commits, zhaoqin Differential Revision: http://reviews.llvm.org/D20599 llvm-svn: 270631
* Re-enable "[LoopUnroll] Enable advanced unrolling analysis by default" one ↵Michael Zolotukhin2016-05-242-4/+4
| | | | | | | | more time. This reverts commit r270577. llvm-svn: 270630
* [LoopUnrollAnalyzer] Fix a crash in UnrolledInstAnalyzer::visitCastInst.Michael Zolotukhin2016-05-242-5/+19
| | | | | | This fixes PR27847. Now for real. llvm-svn: 270629
* [codeview] Add support for new type records.Zachary Turner2016-05-2413-186/+723
| | | | | | | | | | | | | | | | | | | This adds support for parsing and dumping the following symbol types: S_LPROCREF S_ENVBLOCK S_COMPILE2 S_REGISTER S_COFFGROUP S_SECTION S_THUNK32 S_TRAMPOLINE As of this patch, the test PDB files no longer have any unknown symbol types. llvm-svn: 270628
* [esan] Add calls from the ctor/dtor to the runtime libraryDerek Bruening2016-05-242-6/+45
| | | | | | | | | | | | | | | | | | | | | Summary: Adds createEsanInitToolGV for creating a tool-specific variable passed to the runtime library. Adds dtor "esan.module_dtor" and inserts calls from the dtor to "__esan_exit" in the runtime library. Updates the EfficiencySanitizer test. Patch by Qin Zhao. Reviewers: aizatsky Subscribers: bruening, kcc, vitalybuka, eugenis, llvm-commits Differential Revision: http://reviews.llvm.org/D20488 llvm-svn: 270627
* [libfuzzer][doc] documenting running libfuzzer tests.Mike Aizatsky2016-05-241-0/+12
| | | | | | Differential Revision: http://reviews.llvm.org/D20594 llvm-svn: 270626
* Make the altivec intrinsics that require immediate constant propagationEric Christopher2016-05-241-20/+12
| | | | | | | | | macros rather than functions. Unfortunately couldn't come up with a simple testcase that didn't need code generation to verify what was going on. llvm-svn: 270625
* [esan] Add compilation unit init/exit routines.Derek Bruening2016-05-245-2/+24
| | | | | | | | | | | | | | | | | | | | | Summary: Adds processCompilationUnitInit and processCompilationUnitExit for compilation unit init/exit. Adds a tool-specific argument passed to esan_init. Adds the dtor and esan_exit called from the dtor. A test will be added separately (adding it here results in failure until the corresponding compilation patch is in place). Reviewers: aizatsky Subscribers: kubabrecka, bruening, kcc, vitalybuka, eugenis, llvm-commits Differential Revision: http://reviews.llvm.org/D20486 llvm-svn: 270624
* [MBP] Factor out the optimizations on branch conditions and unanalyzable ↵Haicheng Wu2016-05-241-44/+49
| | | | | | | | | | | | | | | | | | | | | branches. NFCI. The benefits of this patch are -- We call AnalyzeBranch() to optimize unanalyzable branches, but the result of AnalyzeBranch() is not used. Now the result is useful. -- Before the layout of all the MBBs is set, the result of AnalyzeBranch() is not correct and needs to be fixed before using it to optimize the branch conditions. Now this optimization is called after the layout, the code used to fix the result of AnalyzeBranch() is not needed. -- The branch condition of the last block is not optimized before. Now it is optimized. Differential Revision: http://reviews.llvm.org/D20177 llvm-svn: 270623
* There's no reason to use _ to name variables different just for construction.Eric Christopher2016-05-242-5/+5
| | | | llvm-svn: 270622
* Fix an issue where the NSDate data formatter was not using the proper ↵Enrico Granata2016-05-241-1/+3
| | | | | | | | alignment on watchOS targets Fixes rdar://problem/23298264 llvm-svn: 270621
* Ach, editing too many files at once. Make this file compile again.Jason Molenda2016-05-241-1/+1
| | | | llvm-svn: 270620
* LiveIntervalAnalysis: Fix handleMove() re-using the wrong value numberMatthias Braun2016-05-242-9/+27
| | | | | | This fixes http://llvm.org/PR27856 llvm-svn: 270619
OpenPOWER on IntegriCloud