Displaying 3 results from an estimated 3 matches for "ca979cd8".
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
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
...catedType() which merely calls getType()->getElementType() for you.
>
> http://llvm.org/doxygen/classllvm_1_1AllocaInst.html .
>
> Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100528/ca979cd8/attachment.html>