Displaying 4 results from an estimated 4 matches for "gettypearray".
2014 Jul 21
4
[LLVMdev] LTO type uniquing: ODR assertion failure
...iptorRef (it makes our
>> > types
>> > loose) and am not sure about the 2nd condition.
>> >
>> > So I proposed to add DITypeArray (or DITypedArray<DITypeRef> as David
>> > suggested, where all elements are DITypeRef),
>> > DICompositeType::getTypeArray() will return DITypeArray and
>> > DITypeArray::getElement(unsigned) will return DITypeRef.
>> >
>> > This is actually more complicated than I thought, not all
>> > DICompositeType's
>> > getTypeArray() can return an array of DITypeRefs. For example,...
2014 Jul 21
2
[LLVMdev] LTO type uniquing: ODR assertion failure
...ef.
> I don't think it is a good idea to add DIDescriptorRef (it makes our types
> loose) and am not sure about the 2nd condition.
>
> So I proposed to add DITypeArray (or DITypedArray<DITypeRef> as David
> suggested, where all elements are DITypeRef),
> DICompositeType::getTypeArray() will return DITypeArray and
> DITypeArray::getElement(unsigned) will return DITypeRef.
>
> This is actually more complicated than I thought, not all DICompositeType's
> getTypeArray() can return an array of DITypeRefs. For example,
> getTypeArray() of ArrayType and VectorType c...
2014 Jul 21
2
[LLVMdev] LTO type uniquing: ODR assertion failure
On Mon, Jul 21, 2014 at 10:39 AM, Manman Ren <manman.ren at gmail.com> wrote:
>
>
>
> On Mon, Jul 14, 2014 at 11:32 AM, Manman Ren <manman.ren at gmail.com> wrote:
>>
>>
>> We still have access to types via MDNodes directly and the assertion that
>> assumes all accesses to DITypes are accessing the resolved DIType will fire
>>
>> i.e
2013 Nov 08
0
[LLVMdev] get source-level function signature?
...which is the following:
/// getReturnTypeName - Subprogram return types are encoded either as
/// DIType or as DICompositeType.
StringRef getReturnTypeName() const {
DICompositeType DCT(getFieldAs<DICompositeType>(7));
if (DCT.Verify()) {
DIArray A = DCT.getTypeArray();
DIType T(A.getElement(0));
return T.getName();
}
DIType T(getFieldAs<DIType>(7));
return T.getName();
}
I also tried to get the types of parameters by changing the index of
A.getElement() and noticed the same issue, namely, the types seem to
w...