search for: getreferencedtyp

Displaying 4 results from an estimated 4 matches for "getreferencedtyp".

Did you mean: getreferencedtype
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
...neral. Loads and Stores of these types (as well as other instructions) seem to work fine as long as the types being pointed to match the type of the value being stored. So what I was really looking for, I suppose, was a Value class virtual member function something like getLoadStoreType or perhaps getReferencedType which returned the type as it would be used in a load or store. It appears that both load and store do handle the pointer dereferencing automatically for both types, i.e. AllocaInst and GlobalVariable both dereference the pointers automatically. I can cast the value I get from the symbol table to...
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
...of these types (as well as other > instructions) seem to work fine as long as the types being pointed to match > the type of the value being stored. > So what I was really looking for, I suppose, was > a Value class virtual member function something like getLoadStoreType or > perhaps getReferencedType which returned the type as it would be used in a > load or store. It appears that both load and store do handle the pointer > dereferencing automatically for both types, > i.e. AllocaInst and GlobalVariable both dereference the pointers > automatically. > I can cast the value I get...
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
Curtis Faith wrote: > Is there a recommended way to retrieve the original type from an > AllocaInst object? > > For example, I am creating alloca instructions using the IRBuilder > interface like: > > alloca = builder.CreateAlloca( Type::getDoubleTy( context ), 0, > variableName.c_str() ); > > and I place the alloca into a symbol table. > > Later when I am
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
Is there a recommended way to retrieve the original type from an AllocaInst object? For example, I am creating alloca instructions using the IRBuilder interface like: alloca = builder.CreateAlloca( Type::getDoubleTy( context ), 0, variableName.c_str() ); and I place the alloca into a symbol table. Later when I am generating instructions for an assignment operation, I want to check the type of