This is an archive of the discontinued LLVM Phabricator instance.

[Alignment][NFC] Deprecate untyped variants of CreateMemCpy/CreateMemMove
ClosedPublic

Authored by gchatelet on Dec 13 2019, 9:00 AM.

Details

Summary

This patch introduces a set of functions to enable deprecation of IRBuilder functions without breaking out of tree clients.
Functions will be deprecated one by one and as in tree code is cleaned up.

This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Diff Detail

Event Timeline

gchatelet created this revision.Dec 13 2019, 9:00 AM
courbet accepted this revision.Dec 16 2019, 12:23 AM

Please also change the title of the patch, to avoid panic :)

This revision is now accepted and ready to land.Dec 16 2019, 12:23 AM
gchatelet retitled this revision from [Alignment][NFC] Deprecate CreateMemCpy/CreateMemMove to [Alignment][NFC] Deprecate untyped variants of CreateMemCpy/CreateMemMove.Dec 16 2019, 2:44 AM
gchatelet updated this revision to Diff 234007.Dec 16 2019, 2:47 AM
  • Add some documentation
This revision was automatically updated to reflect the committed changes.
xbolva00 added inline comments.
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
565

I am wondering if the new code does not hurt a readability... Here we have a comment, but.. Looking at Align::None(), I had to open doc for Alignment.h to see how it is defined.

In my opinion, 'Align(1)' looks better.

dantrushin added inline comments.
llvm/include/llvm/IR/IRBuilder.h
575

This incorrectly forwards to another deprecated function (at line 589)
DstAlign/SrcAlign must be explicitly converted to MaybeAlign just like CreateMemCpy does