Displaying 4 results from an estimated 4 matches for "aba93ec4079f8d709a1d5b4745310782".
Did you mean:
aba93ec4079f8d709a1d5b4745310782e
2012 Dec 19
2
[LLVMdev] GetElementPtrConstantExpr
...lowing variable:
> > @yyy = linkonce_odr constant %xxx { [4 x i8] c"hello\00" }, but it's
> wrong.
> >
> > How do I do?
>
> You can use the ConstantExpr::getBitCast static member function:
>
>
> http://llvm.org/doxygen/classllvm_1_1ConstantExpr.html#aba93ec4079f8d709a1d5b4745310782e
>
> This is a common idiom on LLVM: a base class has static methods for
> creating instances of derived classes.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiu...
2012 Dec 18
0
[LLVMdev] GetElementPtrConstantExpr
...= type { i8* } and I must emit the
> following variable:
> @yyy = linkonce_odr constant %xxx { [4 x i8] c"hello\00" }, but it's wrong.
>
> How do I do?
You can use the ConstantExpr::getBitCast static member function:
http://llvm.org/doxygen/classllvm_1_1ConstantExpr.html#aba93ec4079f8d709a1d5b4745310782e
This is a common idiom on LLVM: a base class has static methods for
creating instances of derived classes.
2012 Dec 18
2
[LLVMdev] GetElementPtrConstantExpr
Because I need to convert an [4 x i8] type to i8* in the instantiation of a
GlobalVariable.
I have the follow declaration: %xxx = type { i8* } and I must emit the
following variable:
@yyy = linkonce_odr constant %xxx { [4 x i8] c"hello\00" }, but it's wrong.
How do I do?
2012/12/18 Óscar Fuentes <ofv at wanadoo.es>
> Alessio Giovanni Baroni <alessiogiovanni.baroni at
2012 Dec 19
0
[LLVMdev] GetElementPtrConstantExpr
...le:
> > @yyy = linkonce_odr constant %xxx { [4 x i8] c"hello\00" }, but it's wrong.
> >
> > How do I do?
>
> You can use the ConstantExpr::getBitCast static member function:
>
> http://llvm.org/doxygen/classllvm_1_1ConstantExpr.html#aba93ec4079f8d709a1d5b4745310782e
>
> This is a common idiom on LLVM: a base class has static methods for
> creating instances of derived classes.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu>...