summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ms][dll] #26935 Defining a dllimport function should cause it to be exportedDenis Zobnin2016-05-258-91/+288
| | | | | | | | | | | | | | | | | | | If we have some function with dllimport attribute and then we have the function definition in the same module but without dllimport attribute we should add dllexport attribute to this function definition. The same should be done for variables. Example: struct __declspec(dllimport) C3 { ~C3(); }; C3::~C3() {;} // we should export this definition. Patch by Andrew V. Tischenko Differential revision: http://reviews.llvm.org/D18953 llvm-svn: 270686
* [X86][AVX2] Added more fast-isel tests to match ↵Simon Pilgrim2016-05-251-37/+660
| | | | | | clang/test/CodeGen/avx2-builtins.c llvm-svn: 270685
* Add unit tests for ModuleCachePavel Labath2016-05-254-0/+192
| | | | | | | | | | Reviewers: ovyalov, zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D20570 llvm-svn: 270684
* [X86][AVX2] Begun adding fast-isel tests to match ↵Simon Pilgrim2016-05-251-0/+557
| | | | | | clang/test/CodeGen/avx2-builtins.c llvm-svn: 270683
* [clang-tidy] Fix typo in test file name.Benjamin Kramer2016-05-251-0/+0
| | | | | | polo llvm-svn: 270682
* [X86][SSE2] Use storeu intrinsics for _mm_storeu_pd/_mm_storeu_pd testsSimon Pilgrim2016-05-251-6/+10
| | | | | | Also fixed name of _mm_store1_pd test llvm-svn: 270681
* [X86][SSE] Use storeu intrinsics for _mm_storeu_ps testSimon Pilgrim2016-05-251-2/+3
| | | | llvm-svn: 270680
* [X86][SSE] Updated _mm_store_ps1 test to match _mm_store1_psSimon Pilgrim2016-05-251-1/+1
| | | | llvm-svn: 270679
* [X86][SSE] Replace (V)CVTDQ2PD(Y) and (V)CVTPS2PD(Y) lossless conversion ↵Simon Pilgrim2016-05-258-143/+170
| | | | | | | | | | intrinsics with generic IR Followup to D20528 clang patch, this removes the (V)CVTDQ2PD(Y) and (V)CVTPS2PD(Y) llvm intrinsics and auto-upgrades to sitofp/fpext instead. Differential Revision: http://reviews.llvm.org/D20568 llvm-svn: 270678
* [X86] Remove the llvm.x86.sse2.storel.dq intrinsic. It hasn't been used in a ↵Craig Topper2016-05-258-71/+45
| | | | | | long time. llvm-svn: 270677
* [Support] Reapply cleanup r270643Gerolf Hoflehner2016-05-251-39/+0
| | | | llvm-svn: 270674
* [FunctionAttrs] Volatile loads should disable readonlyDavid Majnemer2016-05-252-0/+13
| | | | | | | | A volatile load has side effects beyond what callers expect readonly to signify. For example, it is not safe to reorder two function calls which each perform a volatile load to the same memory location. llvm-svn: 270671
* [Support] revert previous commit r270643Gerolf Hoflehner2016-05-251-0/+39
| | | | llvm-svn: 270670
* [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
OpenPOWER on IntegriCloud