search for: metadatacache

Displaying 3 results from an estimated 3 matches for "metadatacache".

2011 Dec 05
0
[LLVMdev] tbaa
...%1, 4), (i32* %x, 4), (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...
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
...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". Sinc...