summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-06-28TGSI: Add support for read.workdim intrinsicHEADmasterHans de Goede5-4/+22
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Add tgsi_kernel_start to opencl.kernels metadataHans de Goede1-0/+11
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Fix isKernelFunctionHans de Goede2-20/+16
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Add instruction labels to the asm outputHans de Goede4-6/+27
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Use a machine-wide ConstantPoolHans de Goede5-10/+23
Not really pretty, maybe add module wide constant pool functionality to the Module class, and use that ? Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Implement read blockid / blocksize / gridsize intrinsicsHans de Goede1-0/+27
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Use new MEMORY declarations for various mem accessesHans de Goede3-8/+19
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Fix ASM file / function header generationHans de Goede4-0/+20
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: initial Intrinsic supportHans de Goede12-8/+285
Add Intrinsic support for get_local_id() and friends. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28Cleanup header of the outputHans de Goede6-1/+192
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28Finish IMM / constantpool supportHans de Goede8-12/+174
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28Use ConstantPool for immediatesHans de Goede4-7/+115
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28Drop si, sf, vi, vf suffixes added to emitted instructionsHans de Goede1-34/+34
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28Fix load / store's to add address-space argumentHans de Goede1-18/+18
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28Fix specifying swizzling when only using one component for source operandsHans de Goede1-3/+33
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28TGSI: Fix register names in output asmHans de Goede1-160/+160
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-28Port TGSI backend to current llvm trunkHans de Goede20-193/+178
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2016-06-27TGSI back-end: Initial import.Francisco Jerez39-1/+2587
2016-06-27Mips: Fix access to private functions.Rafael Espindola2-1/+15
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273843 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26add tests for potential select transformsSanjay Patel1-0/+117
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273833 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Use isPositionIndependent predicate. NFC.Rafael Espindola1-1/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273830 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Use isPositionIndependent. NFC.Rafael Espindola1-1/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273829 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Use isPositionIndependent predicate.Rafael Espindola1-1/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273828 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Use isPositionIndependent predicate. NFC.Rafael Espindola1-9/+8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273827 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Refactor a duplicated predicate. NFC.Rafael Espindola6-10/+6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273826 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[lit] Add SANITIZER_IGNORE_CVE_2016_2143 to pass_vars.Marcin Koscielnicki1-1/+2
This variable is used by ASan (and other sanitizers in the future) on s390x-linux to override a check for CVE-2016-2143 in the running kernel (see revision 267747 on compiler-rt). Since the check simply checks if the kernel version is in a whitelist of known-good versions, it may miss distribution kernels, or manually-patched kernels - hence the need for this variable. To enable running the ASan testsuite on such kernels, this variable should be passed from the environment down to the testcases. Differential Revision: http://reviews.llvm.org/D19888 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273825 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Apply clang-tidy's modernize-loop-convert to lib/Analysis.Benjamin Kramer19-121/+105
Only minor manual fixes. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273816 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Revert r273807 (and r273809, r273810), it caused PR28311Nico Weber2-240/+3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273815 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Apply clang-tidy's modernize-loop-convert to lib/MC.Benjamin Kramer6-67/+56
Only minor manual fixes. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273814 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Apply clang-tidy's modernize-loop-convert to most of lib/IR.Benjamin Kramer10-70/+61
Only minor manual fixes. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273813 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[CodeExtractor] Merge DEBUG statements in an attempt to fix the msvcBenjamin Kramer1-4/+6
build. There's a known bug in msvc 2013 that fails to compile do-while loops inside of ranged for loops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273811 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Fixed build failure (due to unused variable error) in r273807.Amjad Aboud1-0/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273810 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Fixed build failure (due to unused variable error) in r273807.Amjad Aboud1-3/+1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273809 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26Apply clang-tidy's modernize-loop-convert to most of lib/Transforms.Benjamin Kramer53-519/+398
Only minor manual fixes. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273808 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[codeview] Improved array type support.Amjad Aboud2-2/+240
Added support for: 1. Multi dimension array. 2. Array of structure type, which previously was declared incompletely. 3. Dynamic size array. Differential Revision: http://reviews.llvm.org/D21526 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273807 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Appease MSVCSanjoy Das1-2/+4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273805 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[X86] Rewrite lowerVectorShuffleWithPSHUFB to not require a ZeroableMask to ↵Craig Topper1-39/+21
be created. We can do everything with the starting mask and zeroable bit vector. This removes the last usage of isSingleInputShuffleMask. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273804 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[X86] Replace calls to isSingleInputShuffleMask with just checking if V2 is ↵Craig Topper1-25/+25
UNDEF. Canonicalization and creation of shuffle vector ensures this is equivalent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273803 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[SelectionDAG] Use DAG.getCommutedVectorShuffle instead of reimplementing it.Craig Topper1-15/+2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273802 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[LoopUnswitch] Unswitch on conditions feeding into guardsSanjoy Das2-7/+130
Summary: This is a straightforward extension of what LoopUnswitch does to branches to guards. That is, we unswitch ``` for (;;) { ... guard(loop_invariant_cond); ... } ``` into ``` if (loop_invariant_cond) { for (;;) { ... // There is no need to emit guard(true) ... } } else { for (;;) { ... guard(false); // SimplifyCFG will clean this up by adding an // unreachable after the guard(false) ... } } ``` Reviewers: majnemer Subscribers: mcrosier, llvm-commits, mzolotukhin Differential Revision: http://reviews.llvm.org/D21725 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273801 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring the BDVState struct up to code; NFCSanjoy Das1-25/+33
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273800 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring computeLiveInValues up to code; NFCSanjoy Das1-8/+5
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273799 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring computeLiveOutSeed up to code; NFCSanjoy Das1-7/+7
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273798 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring computeLiveInValues up to code; NFCSanjoy Das1-19/+8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273797 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring recomputeLiveInValues up to code; NFCSanjoy Das1-9/+9
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273796 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring containsGCPtrType, isGCPointerType up to code; NFCSanjoy Das1-3/+2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273795 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring analyzeParsePointLiveness up to code; NFCSanjoy Das1-7/+7
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273794 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring meetBDVStateImpl up to code; NFCSanjoy Das1-14/+13
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273793 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Get rid of the unnecessary MeetBDVStates struct; NFCSanjoy Das1-58/+36
All of its implementation is in just one function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273792 91177308-0d34-0410-b5e6-96231b3b80d8
2016-06-26[RSForGC] Bring findBasePointer up to code; NFCSanjoy Das2-110/+96
Name-casing and minor style changes to bring the function up to the LLVM coding style. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273791 91177308-0d34-0410-b5e6-96231b3b80d8