summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* [X86] Remove many operands that represent memory stores from outs to ins. ↵Craig Topper2016-03-136-34/+34
| | | | | | These operands are the registers and immediates that specify the memory address not the memory itself thus they are inputs. llvm-svn: 263354
* Add echo test for constant data arrays in the LLVM C APIAmaury Sechet2016-03-132-0/+12
| | | | llvm-svn: 263350
* Use templated version of unwrap instead of cats in the Core.cpp. NFCAmaury Sechet2016-03-133-8/+8
| | | | llvm-svn: 263349
* Move LLVMConstStructInContext so that declarationa nd definition order ↵Amaury Sechet2016-03-131-8/+8
| | | | | | match. NFC llvm-svn: 263348
* update test to use FileCheckSanjay Patel2016-03-121-9/+17
| | | | llvm-svn: 263347
* fix documentation comments; NFCSanjay Patel2016-03-121-7/+2
| | | | llvm-svn: 263346
* fix documentation comments; NFCSanjay Patel2016-03-121-76/+62
| | | | llvm-svn: 263345
* remove unnecessary cast; NFCSanjay Patel2016-03-121-4/+3
| | | | llvm-svn: 263343
* fix formatting; NFCSanjay Patel2016-03-121-12/+12
| | | | llvm-svn: 263342
* use range loops; NFCISanjay Patel2016-03-121-21/+18
| | | | llvm-svn: 263341
* [x86, InstCombine] delete x86 SSE2 masked store with zero maskSanjay Patel2016-03-122-0/+19
| | | | | | | | | This follows up on the related AVX instruction transforms, but this one is too strange to do anything more with. Intel's behavioral description of this instruction in its Software Developer's Manual is tragi-comic. llvm-svn: 263340
* Fix for PR 26378Nemanja Ivanovic2016-03-122-0/+12
| | | | | | | | | | | This patch corresponds to review: http://reviews.llvm.org/D17712 We were not clearing the TOC vector in PPCAsmPrinter when initializing it. This caused duplicate definition asserts when the pass is reused on the module (i.e. with -compile-twice or in JIT contexts). llvm-svn: 263338
* Use default destructor and remove unnecessary virtual destructorTeresa Johnson2016-03-121-2/+1
| | | | | | | Only the virtual destructor in the base class is needed, and can use the default. llvm-svn: 263335
* [libFuzzer] refresh docs moreKostya Serebryany2016-03-121-20/+7
| | | | llvm-svn: 263332
* [libFuzzer] refresh docs moreKostya Serebryany2016-03-121-4/+1
| | | | llvm-svn: 263331
* [libFuzzer] refresh docs moreKostya Serebryany2016-03-121-20/+18
| | | | llvm-svn: 263330
* [lit] Hack lit to allow a test suite to request that it is run "early".Chandler Carruth2016-03-124-2/+17
| | | | | | | | | | | | | This lets us for example start running the unit test suite early. For 'check-llvm' on my machine, this drops the tim e from 44s to 32s!!!!! It's pretty ugly. I barely know how to write Python, so feel free to just tell me how I should write it instead. =D Thanks to Filipe and others for help. Differential Revision: http://reviews.llvm.org/D18089 llvm-svn: 263329
* [libFuzzer] refresh docsKostya Serebryany2016-03-121-43/+57
| | | | llvm-svn: 263328
* Make gc relocates more strongly typed; NFCSanjoy Das2016-03-121-10/+13
| | | | | | | Don't use a `Value *` where we can use a stronger `GCRelocateInst *` type. llvm-svn: 263327
* [X86] Make sure we do not clobber RBX with cmpxchg when used as a base pointer.Quentin Colombet2016-03-127-15/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cmpxchg[8|16]b uses RBX as one of its argument. In other words, using this instruction clobbers RBX as it is defined to hold one the input. When the backend uses dynamically allocated stack, RBX is used as a reserved register for the base pointer. Reserved registers have special semantic that only the target understands and enforces, because of that, the register allocator don’t use them, but also, don’t try to make sure they are used properly (remember it does not know how they are supposed to be used). Therefore, when RBX is used as a reserved register but defined by something that is not compatible with that use, the register allocator will not fix the surrounding code to make sure it gets saved and restored properly around the broken code. This is the responsibility of the target to do the right thing with its reserved register. To fix that, when the base pointer needs to be preserved, we use a different pseudo instruction for cmpxchg that save rbx. That pseudo takes two more arguments than the regular instruction: - One is the value to be copied into RBX to set the proper value for the comparison. - The other is the virtual register holding the save of the value of RBX as the base pointer. This saving is done as part of isel (i.e., we emit a copy from rbx). cmpxchg_save_rbx <regular cmpxchg args>, input_for_rbx_reg, save_of_rbx_as_bp This gets expanded into: rbx = copy input_for_rbx_reg cmpxchg <regular cmpxchg args> rbx = save_of_rbx_as_bp Note: The actual modeling of the pseudo is a bit more complicated to make sure the interferes that appears after the pseudo gets expanded are properly modeled before that expansion. This fixes PR26883. llvm-svn: 263325
* [libFuzzer] try to use max_len based on the items of the corpus instead of ↵Kostya Serebryany2016-03-126-27/+59
| | | | | | blindly defaulting to 64 bytes. llvm-svn: 263323
* Temporarily revert:Eric Christopher2016-03-1214-32/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit ae14bf6488e8441f0f6d74f00455555f6f3943ac Author: Mehdi Amini <mehdi.amini@apple.com> Date: Fri Mar 11 17:15:50 2016 +0000 Remove PreserveNames template parameter from IRBuilder Summary: Following r263086, we are now relying on a flag on the Context to discard Value names in release builds. Reviewers: chandlerc Subscribers: mzolotukhin, llvm-commits Differential Revision: http://reviews.llvm.org/D18023 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263258 91177308-0d34-0410-b5e6-96231b3b80d8 until we can figure out what to do about clang and Release build testing. This reverts commit 263258. llvm-svn: 263321
* Add Lanai.def to the module map.Eric Christopher2016-03-121-0/+1
| | | | llvm-svn: 263319
* [LoopUnroll] Convert some existing tests to unit-tests.Michael Zolotukhin2016-03-123-230/+144
| | | | | | | | | | | | Summary: As we now have unit-tests for UnrollAnalyzer, we can convert some existing tests to this format. It should make the tests more robust. Reviewers: chandlerc, sanjoy Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17904 llvm-svn: 263318
* Fix a memory leak due to missing virtual destructorsTeresa Johnson2016-03-121-0/+3
| | | | | | | Caused a couple of sanitizer bot failures in ThinLTO tests due to r263275. llvm-svn: 263317
* Updating source languages entry in FAQ.Wilfred Hughes2016-03-121-5/+4
| | | | | | | | | Dragonegg is no longer actively maintained[1], and the Pypy team is not actively pursuing LLVM[2]. 1: http://reviews.llvm.org/D9331 2: http://rpython.readthedocs.org/en/latest/faq.html#could-we-use-llvm llvm-svn: 263314
* Fix the docs I brokeChris Matthews2016-03-111-0/+3
| | | | llvm-svn: 263309
* [sancov] using md5 for anchors in attempt to reduce file size.Mike Aizatsky2016-03-112-7/+19
| | | | | | Differential Revision: http://reviews.llvm.org/D18102 llvm-svn: 263308
* Don't crash sancov if file is unreadable.Mike Aizatsky2016-03-111-6/+10
| | | | | | | | | | | | | | | Summary: Caller can provides the list of .so files where some files are unreadable (e.g linux-vdso.so.1). It's more convenient to handler this in sancov with warning then making all callers to check files. Reviewers: aizatsky Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D18103 llvm-svn: 263307
* Extend test-suite docs to describe how to run test-suite with cmake+litChris Matthews2016-03-111-9/+76
| | | | llvm-svn: 263305
* Minor cleanup and documentation to IRMover (NFC)Mehdi Amini2016-03-112-21/+41
| | | | | From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 263304
* [X86][SSE] Simplify vector LOAD + EXTEND on pre-SSE41 hardwareSimon Pilgrim2016-03-114-53/+90
| | | | | | | | | | | | Improve vector extension of vectors on hardware without dedicated VSEXT/VZEXT instructions. We already convert these to SIGN_EXTEND_VECTOR_INREG/ZERO_EXTEND_VECTOR_INREG but can further improve this by using the legalizer instead of prematurely splitting into legal vectors in the combine as this only properly helps for lowering to VSEXT/VZEXT. Removes a lot of unnecessary any_extend + mask pattern - (Fix for PR25718). Differential Revision: http://reviews.llvm.org/D17932 llvm-svn: 263303
* [AArch64] Don't blindly lower f16/f128 FCCMPs.Ahmed Bougacha2016-03-112-3/+68
| | | | | | | | | Instead, extend f16 (like we do when lowering a standalone SETCC), and let f128 be legalized to the RT calls. Fixes PR26803. llvm-svn: 263301
* Initialize CalleeInfo to fix bot after r263275Teresa Johnson2016-03-111-1/+1
| | | | | | | Hopefully will fix garbage output in http://lab.llvm.org:8011/builders/clang-x86-win2008-selfhost/builds/6901 llvm-svn: 263297
* Define NT_GNU_BUILD_ID constant.Rui Ueyama2016-03-111-0/+5
| | | | llvm-svn: 263288
* [WebAssembly] Add `final` keywords to a few more subclasses, for consistency.Dan Gohman2016-03-112-2/+2
| | | | llvm-svn: 263287
* [MemorySSA] Make a return type reflect reality. NFC.George Burgess IV2016-03-112-12/+13
| | | | llvm-svn: 263286
* Introduce @llvm.experimental.deoptimizeSanjoy Das2016-03-1110-1/+327
| | | | | | | | | | | | | | | | | | | | | | | | Summary: This intrinsic, together with deoptimization operand bundles, allow frontends to express transfer of control and frame-local state from one (typically more specialized, hence faster) version of a function into another (typically more generic, hence slower) version. In languages with a fully integrated managed runtime this intrinsic can be used to implement "uncommon trap" like functionality. In unmanaged languages like C and C++, this intrinsic can be used to represent the slow paths of specialized functions. Note: this change does not address how `@llvm.experimental_deoptimize` is lowered. That will be done in a later change. Reviewers: chandlerc, rnk, atrick, reames Subscribers: llvm-commits, kmod, mjacob, maksfb, mcrosier, JosephTremoulet Differential Revision: http://reviews.llvm.org/D17732 llvm-svn: 263281
* [PGO] Skip value profile instrumentation of inline asmVedant Kumar2016-03-112-1/+17
| | | | | | | | | Value profile instrumentation treats inline asm calls like they are indirect calls. This causes problems when the 'Callee' is passed to a ptrtoint cast -- the verifier rightly claims that this is bogus and crashes opt. llvm-svn: 263278
* [ThinLTO] Support for reference graph in per-module and combined summary.Teresa Johnson2016-03-1125-396/+1280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch adds support for including a full reference graph including call graph edges and other GV references in the summary. The reference graph edges can be used to make importing decisions without materializing any source modules, can be used in the plugin to make file staging decisions for distributed build systems, and is expected to have other uses. The call graph edges are recorded in each function summary in the bitcode via a list of <CalleeValueIds, StaticCount> tuples when no PGO data exists, or <CalleeValueId, StaticCount, ProfileCount> pairs when there is PGO, where the ValueId can be mapped to the function GUID via the ValueSymbolTable. In the function index in memory, the call graph edges reference the target via the CalleeGUID instead of the CalleeValueId. The reference graph edges are recorded in each summary record with a list of referenced value IDs, which can be mapped to value GUID via the ValueSymbolTable. Addtionally, a new summary record type is added to record references from global variable initializers. A number of bitcode records and data structures have been renamed to reflect the newly expanded scope of the summary beyond functions. More cleanup will follow. Reviewers: joker.eph, davidxl Subscribers: joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D17212 llvm-svn: 263275
* Type correct Visual Studio native visualization for PointerUnionsMike Spertus2016-03-111-9/+9
| | | | | | Visualize pointer unions by their actual type rather than as void *. llvm-svn: 263270
* Update test case to appease bots after 263255.Chad Rosier2016-03-111-4/+4
| | | | | | I'll follow up with Matt to confirm this is the correct fix. llvm-svn: 263268
* Fix spelling.Simon Pilgrim2016-03-111-1/+1
| | | | llvm-svn: 263266
* [IRTranslator] Translate unconditional branches.Quentin Colombet2016-03-115-1/+59
| | | | llvm-svn: 263265
* [MachineIRBuilder] Rework buildInstr API to maximize code reuse.Quentin Colombet2016-03-112-24/+34
| | | | llvm-svn: 263264
* [IRTranslator] Update getOrCreateVReg API to use references.Quentin Colombet2016-03-112-12/+13
| | | | | | | A value that we want to keep in a virtual register cannot be null. Reflect that in the API. llvm-svn: 263263
* [MachineIRBuilder] Rename the setter of MF for consistency with the getter.Quentin Colombet2016-03-113-3/+3
| | | | llvm-svn: 263262
* [MachineIRBuilder] Rename the setter for MBB for consistency with the getter.Quentin Colombet2016-03-113-5/+7
| | | | llvm-svn: 263261
* [IRTranslator] Update getOrCreateBB API to use references.Quentin Colombet2016-03-112-5/+7
| | | | | | A null basic block is invalid, so just pass a reference. llvm-svn: 263260
* [GlobalISel][Target] Add an opcode for unconditional branch.Quentin Colombet2016-03-115-7/+21
| | | | llvm-svn: 263259
OpenPOWER on IntegriCloud