I want to set value for a vectortype. It is a global variable, it contains several basic type, like float. If can set value element by element, it is better. -- Shining(史宁) Changchun, Jilin, China -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130806/706a13b1/attachment.html>
I have resolved the problem. It must create a ConstantVector, then use the setInitializer() api of the vectortype to set the value. Thanks. 2013/8/6 Shining <shining.llvm at gmail.com>> I want to set value for a vectortype. > It is a global variable, it contains several basic type, like float. > If can set value element by element, it is better. > > -- > Shining(史宁) > Changchun, Jilin, China > >-- Shining(史宁) Changchun, Jilin, China -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130808/40db2bd0/attachment.html>
Maybe Matching Threads
- [LLVMdev] Tracing values in llvm IR
- [llvm-commits@lists.llvm.org: Re: [llvm] 2dea3f1 - [SVE] Add new VectorType subclasses]
- LLVM FunctionType cannot be returned as VectorType?
- LLVM FunctionType cannot be returned as VectorType?
- [llvm-commits@lists.llvm.org: Re: [llvm] 2dea3f1 - [SVE] Add new VectorType subclasses]