search for: getidentifiedstructtypes

Displaying 6 results from an estimated 6 matches for "getidentifiedstructtypes".

2016 Mar 29
0
llvm extract struct elements and struct size in C++
...ffer via llvm-dev <llvm-dev at lists.llvm.org> wrote: > I want to create a database of all structures (global and local) > defined and being used in my program. Eg. < A , <int32, int32> , B , > <int32, bool , char *>>. I think the closest LLVM has is either Module::getIdentifiedStructTypes or the class it actually uses: "TypeFinder". Beware though, struct types may not have a name, and even if they do it won't necessarily correspond to the original C or C++ name in any meaningful way. These both return an std::vector<StructType *> in some form, which you can prob...
2016 Mar 28
2
llvm extract struct elements and struct size in C++
LLVM Newbie here. I have the following C++ program using namespace std; struct A{ int i; int j; }; int main() { struct A obj; obj.i = 10; obj.j = obj.i; return 0; } Using clang++, I can see that LLVM IR contains struct field as below %struct.A = type { i32, i32 } I would like to obtain the structure elements using LLVM Pass. I write the following program - that iterates
2016 Apr 22
2
RFC: EfficiencySanitizer Cache Fragmentation tool
...=========== We focus on two ways to get cache fragmentation information: 1. Struct field access patterns. 2. Heap/global object access patterns. ===================== Struct field access patterns ===================== 1. Get all the struct type information (e.g., via getIdentifiedStructTypes()), and create a counter for each field of each struct. 2. Instrument each GEP (GetElementPtr) instruction if it operates on a struct type to update the corresponding field counter. 3. At the program exit, filter and sort the struct field reference counters, and print the str...
2016 Apr 23
2
RFC: EfficiencySanitizer Cache Fragmentation tool
...ess patterns. > > > 2. > > > Heap/global object access patterns. > > > ===================== > > > Struct field access patterns > > > ===================== > > > 1. > > > Get all the struct type information (e.g., via > > getIdentifiedStructTypes()), and create a counter for each field of > > each struct. > > > 2. > > > Instrument each GEP (GetElementPtr) instruction if it operates on a > > struct type to update the corresponding field counter. > > > 3. > > > At the program exit, filter an...
2016 Apr 23
2
RFC: EfficiencySanitizer Cache Fragmentation tool
...> > Struct field access patterns. > 2. > > Heap/global object access patterns. > > > ===================== > > Struct field access patterns > > ===================== > > > 1. > > Get all the struct type information (e.g., via > getIdentifiedStructTypes()), and create a counter for each field of each > struct. > 2. > > Instrument each GEP (GetElementPtr) instruction if it operates on a > struct type to update the corresponding field counter. > 3. > > At the program exit, filter and sort the struct field re...
2017 Apr 04
3
RFC: Adding a string table to the bitcode format
On Tue, Apr 4, 2017 at 12:36 PM, Duncan P. N. Exon Smith < dexonsmith at apple.com> wrote: > > On 2017-Apr-04, at 12:12, Peter Collingbourne <peter at pcc.me.uk> wrote: > > On Mon, Apr 3, 2017 at 8:13 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> >> On Apr 3, 2017, at 7:08 PM, Peter Collingbourne <peter at pcc.me.uk> wrote: >>