Displaying 3 results from an estimated 3 matches for "gettbaainfofornamedtype".
2011 Dec 05
0
[LLVMdev] tbaa
...), (i32** %p, 8), (i32** %q, 8), (float* %z, 4), (float** %t,
8), (i32* %2, 4)
I guess it is because of the way how TBAA alias analysis treats pointers.
See file: tools/clang/lib/CodeGen/CodeGenTBAA.cpp, line 147&148
147 if (Ty->isPointerType())
148 return MetadataCache[Ty] = getTBAAInfoForNamedType("any pointer",
149 getChar());
For any pointer, no matter which object it points to, TBAA will generate
the same type of tbaa metadata, which is called "any pointer". Since the
elements in the alias set you posted are a...
2011 Dec 05
2
[LLVMdev] tbaa
Duncan Sands <baldrick <at> free.fr> writes:
>
> Hi Yi,
>
> > Could anyone tell me how exactly do I use "Type Based Alias Analysis"?
> >
> > I compiled the C program with Clang, and verified that there is tbaa
> > metadata in the IR code.
> >
> > But then when I use "opt -tbaa input.c.bc -aa-eval" to check the results,
2011 Dec 06
3
[LLVMdev] tbaa
..., (float* %z, 4), (float** %t,
> 8), (i32* %2, 4)
>
> I guess it is because of the way how TBAA alias analysis treats pointers.
> See file: tools/clang/lib/CodeGen/CodeGenTBAA.cpp, line 147&148
>
> 147 if (Ty->isPointerType())
> 148 return MetadataCache[Ty] = getTBAAInfoForNamedType("any pointer",
> 149 getChar());
>
> For any pointer, no matter which object it points to, TBAA will generate
> the same type of tbaa metadata, which is called "any pointer". Since the
> elements in the ali...