[llvm-commits] PATCH: Fix atomic load store instruction for pointer type
Eli Friedman
eli.friedman at gmail.com
Fri Aug 17 16:26:59 PDT 2012
On Thu, Aug 9, 2012 at 11:17 PM, Logan Chien <tzuhsiang.chien at gmail.com> wrote:
> Ping?
>
> BTW, after searching the bug database, I believe this patch should fix
> this as well: http://llvm.org/bugs/show_bug.cgi?id=11786
>
> Thanks.
r162146.
-Eli
>
> On Tue, Aug 7, 2012 at 10:12 PM, Logan Chien <tzuhsiang.chien at gmail.com>
> wrote:
>>
>> Ping?
>>
>>
>>
>> On Sat, Aug 4, 2012 at 10:57 PM, Logan Chien <tzuhsiang.chien at gmail.com>
>> wrote:
>>>
>>> Dear all,
>>>
>>> It seems that the target-independent code generator has some problem
>>> while handling *atomic* load/store instruction with pointer type, such
>>> as:
>>>
>>> %0 = load atomic i32** %a0 singlethread unordered, align 4
>>> store atomic i32* %a0, i32** %a1 singlethread unordered, align 4
>>> ; (read the patch for the complete test case)
>>>
>>> These instructions will cause SEGV when we are running llc. This is
>>> due
>>> to the fact that llvm::EVT::getSizeInBits() does not support pointer
>>> type, which
>>> is target-dependent. We should translate the pointer type with
>>> llvm::TargetLowering::getValueType(). I hope the attached patch can fix
>>> the
>>> problem. Thanks for your reading.
>>>
>>> Sincerely,
>>> Logan
>>
>>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list