Displaying 3 results from an estimated 3 matches for "addparamattr".
2018 Jan 19
0
Change memcpy/memmove/memset to have dest and source alignment attributes
...inimum alignment of both of the pointer args (%src & %dest). After this change, this same call will instead read:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false)
where we use an align attribute on first two function-call arguments. (i.e CallInst::addParamAttr(0, …) & CallInst::addParamAttr(1, …))
That is all that this first step is doing. With the caveat that we, temporarily (basically for the purposes of testing the initial change), will require that the alignment attribute on both of the pointer args be the same value. So, nothing like this for...
2018 Jan 19
2
Change memcpy/memmove/memset to have dest and source alignment attributes
> On Jan 18, 2018, at 7:45 AM, Daniel Neilson via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>
> Hi all,
> This change has been reviewed, and appears to be ready to land (review available here if anyone still wants to chime in: https://reviews.llvm.org/D41675 <https://reviews.llvm.org/D41675> ). The process that we’re going to use for landing this will take a few
2018 Aug 27
3
Replacing a function from one module into another one
...I thought as a solution was to
then change the arguments of the function foo2 (the one that is being
replaced) with the ones in the function foo3, to "move" the references, but
I don't understand the difference between the functions of llvm::Function
"addAttribute" and "addParamAttr", neither why they require to specify the
attribute (or the Attribute::AttrKind
<http://llvm.org/doxygen/classllvm_1_1Attribute.html#aab7ee4b8fd1d3e7e4cea87868855e60e>
) if the function already requires the argument position. When I did a
similar process to change the calling instructi...