<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in form-memset.ll</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>38fffa630ee80163dc65e759392ad29798905679 - [LLVM][IR] Use splat syntax when printing Constant[Data]Vector. (#112548)</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#38fffa630ee80163dc65e759392ad29798905679</link>
        <description>[LLVM][IR] Use splat syntax when printing Constant[Data]Vector. (#112548)

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Wed, 06 Nov 2024 11:53:33 +0000</pubDate>
        <dc:creator>Paul Walker &lt;paul.walker@arm.com&gt;</dc:creator>
    </item>
<item>
        <title>a11faeed446882a81e79d780125d93e7199df645 - [test] Switch to use -passes syntax in various test cases</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#a11faeed446882a81e79d780125d93e7199df645</link>
        <description>[test] Switch to use -passes syntax in various test cases

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Thu, 01 Dec 2022 20:00:24 +0000</pubDate>
        <dc:creator>Bjorn Pettersson &lt;bjorn.a.pettersson@ericsson.com&gt;</dc:creator>
    </item>
<item>
        <title>42d98d80fb86b0eb7058a7288e7a4c900f04c556 - [MemCpyOpt] Convert tests to opaque pointers (NFC)</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#42d98d80fb86b0eb7058a7288e7a4c900f04c556</link>
        <description>[MemCpyOpt] Convert tests to opaque pointers (NFC)Converted using the script athttps://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34.

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Wed, 05 Oct 2022 12:26:57 +0000</pubDate>
        <dc:creator>Nikita Popov &lt;npopov@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>88003cea1c6eb3ebcb18b4f1b9d0e2052dd76fe4 - [MemCpyOpt] Remove MemDepAnalysis-based implementation</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#88003cea1c6eb3ebcb18b4f1b9d0e2052dd76fe4</link>
        <description>[MemCpyOpt] Remove MemDepAnalysis-based implementationThe MemorySSA-based implementation has been enabled for a few months(since D94376). This patch drops the old MDA-based implementationentirely.I&apos;ve kept this to only the basic cleanup of dropping variousconditions -- the code could be further cleaned up now that thereis only one implementation.Differential Revision: https://reviews.llvm.org/D102113

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Sat, 08 May 2021 18:39:54 +0000</pubDate>
        <dc:creator>Nikita Popov &lt;nikita.ppv@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>d2f8961b7b8149848a78321c03ae9c74c45a2d5d - [MemCpyOpt] Remove unused check-prefixes</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#d2f8961b7b8149848a78321c03ae9c74c45a2d5d</link>
        <description>[MemCpyOpt] Remove unused check-prefixesJust use default CHECK

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Mon, 09 Nov 2020 11:38:39 +0000</pubDate>
        <dc:creator>Simon Pilgrim &lt;llvm-dev@redking.me.uk&gt;</dc:creator>
    </item>
<item>
        <title>cd6f40f4326c8251ebb628122bf092ca5536a634 - [MemCpyOpt] Add test scaffolding for MSSA based MemCpyOpt</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#cd6f40f4326c8251ebb628122bf092ca5536a634</link>
        <description>[MemCpyOpt] Add test scaffolding for MSSA based MemCpyOptThis adds an -enable-memcpyopt-memoryssa option that currently doesnothing apart from requiring MSSA as a dependency. The tests aresplit to run both with the option disabled and enabled. I went withthis rather than the separate directory DSE uses, as I found itconvenient to have a direct side-by-side comparison of differences.Differential Revision: https://reviews.llvm.org/D89206

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Fri, 02 Oct 2020 18:48:39 +0000</pubDate>
        <dc:creator>Nikita Popov &lt;nikita.ppv@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>64c54c5459cfae8478ce28710784f36b0d94fb2f - [MemCpyOpt] Regnerate test checks (NFC)</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#64c54c5459cfae8478ce28710784f36b0d94fb2f</link>
        <description>[MemCpyOpt] Regnerate test checks (NFC)

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Thu, 01 Oct 2020 20:42:14 +0000</pubDate>
        <dc:creator>Nikita Popov &lt;nikita.ppv@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>ad9ae6ee2b3c697a953321eeedb3ab0d0c922864 - MemCpyOpt cannot use ABI alignment even if it was not given</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#ad9ae6ee2b3c697a953321eeedb3ab0d0c922864</link>
        <description>MemCpyOpt cannot use ABI alignment even if it was not givenSummary: This patch fixes https://bugs.llvm.org/show_bug.cgi?id=44388 which incorrectly assigns an ABI alignment to memset when there was no explicit alignment given.Reviewers: gchatelet, lenary, nikicReviewed By: nikicSubscribers: hiraditya, llvm-commitsTags: #llvmDifferential Revision: https://reviews.llvm.org/D74083

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Wed, 05 Feb 2020 21:20:36 +0000</pubDate>
        <dc:creator>Juneyoung Lee &lt;aqjune@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>cee313d288a4faf0355d76fb6e0e927e211d08a5 - Revert &quot;Temporarily Revert &quot;Add basic loop fusion pass.&quot;&quot;</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#cee313d288a4faf0355d76fb6e0e927e211d08a5</link>
        <description>Revert &quot;Temporarily Revert &quot;Add basic loop fusion pass.&quot;&quot;The reversion apparently deleted the test/Transforms directory.Will be re-reverting again.llvm-svn: 358552

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Wed, 17 Apr 2019 04:52:47 +0000</pubDate>
        <dc:creator>Eric Christopher &lt;echristo@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>1e68724d24ba38de7c7cdb2e1939d78c8b37cc0d - Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#1e68724d24ba38de7c7cdb2e1939d78c8b37cc0d</link>
        <description>Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)Summary: This is a resurrection of work first proposed and discussed in Aug 2015:   http://lists.llvm.org/pipermail/llvm-dev/2015-August/089384.htmland initially landed (but then backed out) in Nov 2015:   http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151109/312083.html The @llvm.memcpy/memmove/memset intrinsics currently have an explicit argumentwhich is required to be a constant integer. It represents the alignment of thedest (and source), and so must be the minimum of the actual alignment of thetwo. This change is the first in a series that allows source and dest to eachhave their own alignments by using the alignment attribute on their arguments. In this change we:1) Remove the alignment argument.2) Add alignment attributes to the source &amp; dest arguments. We, temporarily,   require that the alignments for source &amp; dest be equal. For example, code which used to read:  call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 100, i32 4, i1 false)will now read  call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false) Downstream users may have to update their lit tests that check for@llvm.memcpy/memmove/memset call/declaration patterns. The following extended sed scriptmay help with updating the majority of your tests, but it does not catch all possiblepatterns so some manual checking and updating will be required.s~declare void @llvm\.mem(set|cpy|move)\.p([^(]*)\((.*), i32, i1\)~declare void @llvm.mem\1.p\2(\3, i1)~gs~call void @llvm\.memset\.p([^(]*)i8\(i8([^*]*)\* (.*), i8 (.*), i8 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i8(i8\2* \3, i8 \4, i8 \5, i1 \6)~gs~call void @llvm\.memset\.p([^(]*)i16\(i8([^*]*)\* (.*), i8 (.*), i16 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i16(i8\2* \3, i8 \4, i16 \5, i1 \6)~gs~call void @llvm\.memset\.p([^(]*)i32\(i8([^*]*)\* (.*), i8 (.*), i32 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i32(i8\2* \3, i8 \4, i32 \5, i1 \6)~gs~call void @llvm\.memset\.p([^(]*)i64\(i8([^*]*)\* (.*), i8 (.*), i64 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i64(i8\2* \3, i8 \4, i64 \5, i1 \6)~gs~call void @llvm\.memset\.p([^(]*)i128\(i8([^*]*)\* (.*), i8 (.*), i128 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.memset.p\1i128(i8\2* \3, i8 \4, i128 \5, i1 \6)~gs~call void @llvm\.memset\.p([^(]*)i8\(i8([^*]*)\* (.*), i8 (.*), i8 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i8(i8\2* align \6 \3, i8 \4, i8 \5, i1 \7)~gs~call void @llvm\.memset\.p([^(]*)i16\(i8([^*]*)\* (.*), i8 (.*), i16 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i16(i8\2* align \6 \3, i8 \4, i16 \5, i1 \7)~gs~call void @llvm\.memset\.p([^(]*)i32\(i8([^*]*)\* (.*), i8 (.*), i32 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i32(i8\2* align \6 \3, i8 \4, i32 \5, i1 \7)~gs~call void @llvm\.memset\.p([^(]*)i64\(i8([^*]*)\* (.*), i8 (.*), i64 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i64(i8\2* align \6 \3, i8 \4, i64 \5, i1 \7)~gs~call void @llvm\.memset\.p([^(]*)i128\(i8([^*]*)\* (.*), i8 (.*), i128 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.memset.p\1i128(i8\2* align \6 \3, i8 \4, i128 \5, i1 \7)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i8\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i8 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i8(i8\3* \4, i8\5* \6, i8 \7, i1 \8)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i16\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i16 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i16(i8\3* \4, i8\5* \6, i16 \7, i1 \8)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i32\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i32 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i32(i8\3* \4, i8\5* \6, i32 \7, i1 \8)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i64\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i64 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i64(i8\3* \4, i8\5* \6, i64 \7, i1 \8)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i128\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i128 (.*), i32 [01], i1 ([^)]*)\)~call void @llvm.mem\1.p\2i128(i8\3* \4, i8\5* \6, i128 \7, i1 \8)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i8\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i8 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i8(i8\3* align \8 \4, i8\5* align \8 \6, i8 \7, i1 \9)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i16\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i16 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i16(i8\3* align \8 \4, i8\5* align \8 \6, i16 \7, i1 \9)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i32\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i32 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i32(i8\3* align \8 \4, i8\5* align \8 \6, i32 \7, i1 \9)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i64\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i64 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i64(i8\3* align \8 \4, i8\5* align \8 \6, i64 \7, i1 \9)~gs~call void @llvm\.mem(cpy|move)\.p([^(]*)i128\(i8([^*]*)\* (.*), i8([^*]*)\* (.*), i128 (.*), i32 ([0-9]*), i1 ([^)]*)\)~call void @llvm.mem\1.p\2i128(i8\3* align \8 \4, i8\5* align \8 \6, i128 \7, i1 \9)~g The remaining changes in the series will:Step 2) Expand the IRBuilder API to allow creation of memcpy/memmove with differing   source and dest alignments.Step 3) Update Clang to use the new IRBuilder API.Step 4) Update Polly to use the new IRBuilder API.Step 5) Update LLVM passes that create memcpy/memmove calls to use the new IRBuilder API,        and those that use use MemIntrinsicInst::[get|set]Alignment() to use        getDestAlignment() and getSourceAlignment() instead.Step 6) Remove the single-alignment IRBuilder API for memcpy/memmove, and the        MemIntrinsicInst::[get|set]Alignment() methods.Reviewers: pete, hfinkel, lhames, reames, bolluReviewed By: reamesSubscribers: niosHD, reames, jholewinski, qcolombet, jfb, sanjoy, arsenm, dschuff, dylanmckay, mehdi_amini, sdardis, nemanjai, david2050, nhaehnle, javed.absar, sbc100, jgravelle-google, eraman, aheejin, kbarton, JDevlieghere, asb, rbar, johnrusso, simoncook, jordy.potman.lists, apazos, sabuasal, llvm-commitsDifferential Revision: https://reviews.llvm.org/D41675llvm-svn: 322965

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Fri, 19 Jan 2018 17:13:12 +0000</pubDate>
        <dc:creator>Daniel Neilson &lt;dneilson@azul.com&gt;</dc:creator>
    </item>
<item>
        <title>67cf9a723ba5cf0a711efcb317b241104b558779 - Revert &quot;Change memcpy/memset/memmove to have dest and source alignments.&quot;</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#67cf9a723ba5cf0a711efcb317b241104b558779</link>
        <description>Revert &quot;Change memcpy/memset/memmove to have dest and source alignments.&quot;This reverts commit r253511.This likely broke the bots inhttp://lab.llvm.org:8011/builders/clang-ppc64-elf-linux2/builds/20202http://bb.pgr.jp/builders/clang-3stage-i686-linux/builds/3787llvm-svn: 253543

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Thu, 19 Nov 2015 05:56:52 +0000</pubDate>
        <dc:creator>Pete Cooper &lt;peter_cooper@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>72bc23ef02bad3873d3572b2be529404a461d449 - Change memcpy/memset/memmove to have dest and source alignments.</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#72bc23ef02bad3873d3572b2be529404a461d449</link>
        <description>Change memcpy/memset/memmove to have dest and source alignments.Note, this was reviewed (and more details are in) http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151109/312083.htmlThese intrinsics currently have an explicit alignment argument which isrequired to be a constant integer.  It represents the alignment of thesource and dest, and so must be the minimum of those.This change allows source and dest to each have their own alignmentsby using the alignment attribute on their arguments.  The alignmentargument itself is removed.There are a few places in the code for which the code needs to bechecked by an expert as to whether using only src/dest alignment issafe.  For those places, they currently take the minimum of src/destalignments which matches the current behaviour.For example, code which used to read:  call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 500, i32 8, i1 false)will now read:  call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 8 %dest, i8* align 8 %src, i32 500, i1 false)For out of tree owners, I was able to strip alignment from calls using sed by replacing:  (call.*llvm\.memset.*)i32\ [0-9]*\,\ i1 false\)with:  $1i1 false)and similarly for memmove and memcpy.I then added back in alignment to test cases which needed it.A similar commit will be made to clang which actually has many differences in alignment as nowIRBuilder can generate different source/dest alignments on calls.In IRBuilder itself, a new argument was added.  Instead of calling:  CreateMemCpy(Dst, Src, getInt64(Size), DstAlign, /* isVolatile */ false)you now call  CreateMemCpy(Dst, Src, getInt64(Size), DstAlign, SrcAlign, /* isVolatile */ false)There is a temporary class (IntegerAlignment) which takes the source alignment and rejectsimplicit conversion from bool.  This is to prevent isVolatile here from passing its defaultparameter to the source alignment.Note, changes in future can now be made to codegen.  I didn&apos;t change anything here, but thischange should enable better memcpy code sequences.Reviewed by Hal Finkel.llvm-svn: 253511

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Wed, 18 Nov 2015 22:17:24 +0000</pubDate>
        <dc:creator>Pete Cooper &lt;peter_cooper@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>23af64846f29e8249c717cad08ae64afc2ba647b - [opaque pointer type] Add textual IR support for explicit type parameter to the call instruction</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#23af64846f29e8249c717cad08ae64afc2ba647b</link>
        <description>[opaque pointer type] Add textual IR support for explicit type parameter to the call instructionSee r230786 and r230794 for similar changes to gep and loadrespectively.Call is a bit different because it often doesn&apos;t have a single explicittype - usually the type is deduced from the arguments, and just thereturn type is explicit. In those cases there&apos;s no need to change theIR.When that&apos;s not the case, the IR usually contains the pointer type ofthe first operand - but since typed pointers are going away, thatrepresentation is insufficient so I&apos;m just stripping the &quot;pointerness&quot;of the explicit type away.This does make the IR a bit weird - it /sort of/ reads like the type ofthe first operand: &quot;call void () %x(&quot; but %x is actually of type &quot;void()*&quot; and will eventually be just of type &quot;ptr&quot;. But this seems not toobad and I don&apos;t think it would benefit from repeating the type(&quot;void (), void () * %x(&quot; and then eventually &quot;void (), ptr %x(&quot;) as hasbeen done with gep and load.This also has a side benefit: since the explicit type is no longer apointer, there&apos;s no ambiguity between an explicit type and a functionthat returns a function pointer. Previously this case needed an explicittype (eg: a function returning a void() function was written as&quot;call void () () * @x(&quot; rather than &quot;call void () * @x(&quot; because of theambiguity between a function returning a pointer to a void() functionand a function returning void).No ambiguity means even function pointer return types can just bewritten alone, without writing the whole function&apos;s type.This leaves /only/ the varargs case where the explicit type is required.Given the special type syntax in call instructions, the regex-fu usedfor migration was a bit more involved in its own unique way (as everyone of these is) so here it is. Use it in conjunction with the apply.shscript and associated find/xargs commands I&apos;ve provided in rr230786 tomigrate your out of tree tests. Do let me know if any of this doesn&apos;tcover your cases &amp; we can iterate on a more general script/regexes tohelp others with out of tree tests.About 9 test cases couldn&apos;t be automatically migrated - half of thosewere functions returning function pointers, where I just had to manuallydelete the function argument types now that we didn&apos;t need an explicitfunction type there. The other half were typedefs of function types usedin calls - just had to manually drop the * from those.import fileinputimport sysimport repat = re.compile(r&apos;((?:=|:|^|\s)call\s(?:[^@]*?))(\s*$|\s*(?:(?:\[\[[a-zA-Z0-9_]+\]\]|[@%](?:(&quot;)?[\\\?@a-zA-Z0-9_.]*?(?(3)&quot;|)|{{.*}}))(?:\(|$)|undef|inttoptr|bitcast|null|asm).*$)&apos;)addrspace_end = re.compile(r&quot;addrspace\(\d+\)\s*\*$&quot;)func_end = re.compile(&quot;(?:void.*|\)\s*)\*$&quot;)def conv(match, line):  if not match or re.search(addrspace_end, match.group(1)) or not re.search(func_end, match.group(1)):    return line  return line[:match.start()] + match.group(1)[:match.group(1).rfind(&apos;*&apos;)].rstrip() + match.group(2) + line[match.end():]for line in sys.stdin:  sys.stdout.write(conv(re.search(pat, line), line))llvm-svn: 235145

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Thu, 16 Apr 2015 23:24:18 +0000</pubDate>
        <dc:creator>David Blaikie &lt;dblaikie@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>f72d05bc7bd83d8a808c2c8662873a0840f39b4d - [opaque pointer type] Add textual IR support for explicit type parameter to gep operator</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#f72d05bc7bd83d8a808c2c8662873a0840f39b4d</link>
        <description>[opaque pointer type] Add textual IR support for explicit type parameter to gep operatorSimilar to gep (r230786) and load (r230794) changes.Similar migration script can be used to update test cases, whichsuccessfully migrated all of LLVM and Polly, but about 4 test casesneeded manually changes in Clang.(this script will read the contents of stdin and massage it into stdout- wrap it in the &apos;apply.sh&apos; script shown in previous commits + xargs toapply it over a large set of test cases)import fileinputimport sysimport rerep = re.compile(r&quot;(getelementptr(?:\s+inbounds)?\s*\()((&lt;\d*\s+x\s+)?([^@]*?)(|\s*addrspace\(\d+\))\s*\*(?(3)&gt;)\s*)(?=$|%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|zeroinitializer|&lt;|\[\[[a-zA-Z]|\{\{)&quot;, re.MULTILINE | re.DOTALL)def conv(match):  line = match.group(1)  line += match.group(4)  line += &quot;, &quot;  line += match.group(2)  return lineline = sys.stdin.read()off = 0for match in re.finditer(rep, line):  sys.stdout.write(line[off:match.start()])  sys.stdout.write(conv(match))  off = match.end()sys.stdout.write(line[off:])llvm-svn: 232184

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Fri, 13 Mar 2015 18:20:45 +0000</pubDate>
        <dc:creator>David Blaikie &lt;dblaikie@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>79e6c74981f4755ed55b38175d8cd34ec91395b1 - [opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instruction</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#79e6c74981f4755ed55b38175d8cd34ec91395b1</link>
        <description>[opaque pointer type] Add textual IR support for explicit type parameter to getelementptr instructionOne of several parallel first steps to remove the target type of pointers,replacing them with a single opaque pointer type.This adds an explicit type parameter to the gep instruction so that when thefirst parameter becomes an opaque pointer type, the type to gep through isstill available to the instructions.* This doesn&apos;t modify gep operators, only instructions (operators will be  handled separately)* Textual IR changes only. Bitcode (including upgrade) and changing the  in-memory representation will be in separate changes.* geps of vectors are transformed as:    getelementptr &lt;4 x float*&gt; %x, ...  -&gt;getelementptr float, &lt;4 x float*&gt; %x, ...  Then, once the opaque pointer type is introduced, this will ultimately look  like:    getelementptr float, &lt;4 x ptr&gt; %x  with the unambiguous interpretation that it is a vector of pointers to float.* address spaces remain on the pointer, not the type:    getelementptr float addrspace(1)* %x  -&gt;getelementptr float, float addrspace(1)* %x  Then, eventually:    getelementptr float, ptr addrspace(1) %xImportantly, the massive amount of test case churn has been automated bysame crappy python code. I had to manually update a few test cases thatwouldn&apos;t fit the script&apos;s model (r228970,r229196,r229197,r229198). Thepython script just massages stdin and writes the result to stdout, Ithen wrapped that in a shell script to handle replacing files, thenusing the usual find+xargs to migrate all the files.update.py:import fileinputimport sysimport reibrep = re.compile(r&quot;(^.*?[^%\w]getelementptr inbounds )(((?:&lt;\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|&gt;)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))&quot;)normrep = re.compile(       r&quot;(^.*?[^%\w]getelementptr )(((?:&lt;\d* x )?)(.*?)(| addrspace\(\d\)) *\*(|&gt;)(?:$| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$))&quot;)def conv(match, line):  if not match:    return line  line = match.groups()[0]  if len(match.groups()[5]) == 0:    line += match.groups()[2]  line += match.groups()[3]  line += &quot;, &quot;  line += match.groups()[1]  line += &quot;\n&quot;  return linefor line in sys.stdin:  if line.find(&quot;getelementptr &quot;) == line.find(&quot;getelementptr inbounds&quot;):    if line.find(&quot;getelementptr inbounds&quot;) != line.find(&quot;getelementptr inbounds (&quot;):      line = conv(re.match(ibrep, line), line)  elif line.find(&quot;getelementptr &quot;) != line.find(&quot;getelementptr (&quot;):    line = conv(re.match(normrep, line), line)  sys.stdout.write(line)apply.sh:for name in &quot;$@&quot;do  python3 `dirname &quot;$0&quot;`/update.py &lt; &quot;$name&quot; &gt; &quot;$name.tmp&quot; &amp;&amp; mv &quot;$name.tmp&quot; &quot;$name&quot;  rm -f &quot;$name.tmp&quot;doneThe actual commands:From llvm/src:find test/ -name *.ll | xargs ./apply.shFrom llvm/src/tools/clang:find test/ -name *.mm -o -name *.m -o -name *.cpp -o -name *.c | xargs -I &apos;{}&apos; ../../apply.sh &quot;{}&quot;From llvm/src/tools/polly:find test/ -name *.ll | xargs ./apply.shAfter that, check-all (with llvm, clang, clang-tools-extra, lld,compiler-rt, and polly all checked out).The extra &apos;rm&apos; in the apply.sh script is due to a few files in clang&apos;s testsuite using interesting unicode stuff that my python script was throwingexceptions on. None of those files needed to be migrated, so it seemedsufficient to ignore those cases.Reviewers: rafael, dexonsmith, grosserDifferential Revision: http://reviews.llvm.org/D7636llvm-svn: 230786

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Fri, 27 Feb 2015 19:29:02 +0000</pubDate>
        <dc:creator>David Blaikie &lt;dblaikie@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>17d9015d270a13d799a498a40a5ce3d8b660ee0a - ValueTracking: Make isBytewiseValue simpler and more powerful at the same time.</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#17d9015d270a13d799a498a40a5ce3d8b660ee0a</link>
        <description>ValueTracking: Make isBytewiseValue simpler and more powerful at the same time.Turns out there is a simpler way of checking that all bytes in a word are equalthan binary decomposition.llvm-svn: 228503

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Sat, 07 Feb 2015 19:29:02 +0000</pubDate>
        <dc:creator>Benjamin Kramer &lt;benny.kra@googlemail.com&gt;</dc:creator>
    </item>
<item>
        <title>3ef5e46b6d7ef95435328936864f509fa7f62880 - MemCpyOpt: When merging memsets also merge the trivial case of two memsets with the same destination.</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#3ef5e46b6d7ef95435328936864f509fa7f62880</link>
        <description>MemCpyOpt: When merging memsets also merge the trivial case of two memsets with the same destination.The testcase is from PR19092, but I think the bug described there is actually a clang issue.llvm-svn: 203489

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Mon, 10 Mar 2014 21:05:13 +0000</pubDate>
        <dc:creator>Benjamin Kramer &lt;benny.kra@googlemail.com&gt;</dc:creator>
    </item>
<item>
        <title>c1c7a1309c039ec8539e3c851f332825d8855223 - Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#c1c7a1309c039ec8539e3c851f332825d8855223</link>
        <description>Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.This update was done with the following bash script:  find test/Transforms -name &quot;*.ll&quot; | \  while read NAME; do    echo &quot;$NAME&quot;    if ! grep -q &quot;^; *RUN: *llc&quot; $NAME; then      TEMP=`mktemp -t temp`      cp $NAME $TEMP      sed -n &quot;s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p&quot; &lt; $NAME | \      while read FUNC; do        sed -i &apos;&apos; &quot;s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g&quot; $TEMP      done      mv $TEMP $NAME    fi  donellvm-svn: 186268

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Sun, 14 Jul 2013 01:42:54 +0000</pubDate>
        <dc:creator>Stephen Lin &lt;stephenwlin@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>15a257dadd3d5782ee0824c4ccd3b5486fd36454 - MemCpyOpt: When forming a memset from stores also take GEP constexprs into account.</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#15a257dadd3d5782ee0824c4ccd3b5486fd36454</link>
        <description>MemCpyOpt: When forming a memset from stores also take GEP constexprs into account.This is common when storing to global variables.llvm-svn: 163809

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Thu, 13 Sep 2012 16:29:49 +0000</pubDate>
        <dc:creator>Benjamin Kramer &lt;benny.kra@googlemail.com&gt;</dc:creator>
    </item>
<item>
        <title>8abf65a1309987b52390b356eff53999df261364 - Probably not a good idea to convert a single vector load into a memcpy.  We</title>
        <link>http://src.rcs.uwaterloo.ca:8080/source/history/llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll#8abf65a1309987b52390b356eff53999df261364</link>
        <description>Probably not a good idea to convert a single vector load into a memcpy.  Wedon&apos;t do this now, but add a test case to prevent this from happening in thefuture.Additional test for rdar://9892684llvm-svn: 145879

            List of files:
            /llvm-project/llvm/test/Transforms/MemCpyOpt/form-memset.ll</description>
        <pubDate>Tue, 06 Dec 2011 00:19:08 +0000</pubDate>
        <dc:creator>Chad Rosier &lt;mcrosier@apple.com&gt;</dc:creator>
    </item>
</channel>
</rss>
