search for: generatevectorandselect

Displaying 5 results from an estimated 5 matches for "generatevectorandselect".

2007 Jul 20
5
[LLVMdev] Seg faulting on vector ops
...t* pV = new AllocaInst(VectorType::get(Type::FloatTy,dim),"pv",basicBlock); Value* v = new LoadInst(pV,"v",basicBlock); for (unsigned int i = 0 ; i < dim ; ++i) v = new InsertElementInst(v,s,i,"v",basicBlock); return v; } Function* generateVectorAndSelect(Module* pModule) { std::vector<Type const*> params; params.push_back(Type::FloatTy); FunctionType* funcType = FunctionType::get(Type::FloatTy,params,NULL); Function* func = cast<Function>(pModule->getOrInsertFunction("vSelect3",funcType));...
2007 Jul 21
0
[LLVMdev] Seg faulting on vector ops
...;,basicBlock); > > Value* v = new LoadInst(pV,"v",basicBlock); > > > > for (unsigned int i = 0 ; i < dim ; ++i) > > v = new InsertElementInst(v,s,i,"v",basicBlock); > > > > return v; > > } > > > > Function* generateVectorAndSelect(Module* pModule) > > { > > std::vector<Type const*> params; > > > > params.push_back(Type::FloatTy); > > > > FunctionType* funcType = > FunctionType::get(Type::FloatTy,params,NULL); > > Function* func = > cast<Function>(pModule...
2007 Jul 24
2
[LLVMdev] Seg faulting on vector ops
...uot;,basicBlock); >> >> >> >> for (unsigned int i = 0 ; i < dim ; ++i) >> >> v = new InsertElementInst(v,s,i,"v",basicBlock); >> >> >> >> return v; >> >> } >> >> >> >> Function* generateVectorAndSelect(Module* pModule) >> >> { >> >> std::vector<Type const*> params; >> >> >> >> params.push_back(Type::FloatTy); >> >> >> >> FunctionType* funcType = >> FunctionType::get(Type::FloatTy,params,NULL); >> &g...
2007 Jul 20
0
[LLVMdev] Seg faulting on vector ops
...sicBlock); > > Value* v = new LoadInst(pV,"v",basicBlock); > > > > for (unsigned int i = 0 ; i < dim ; ++i) > > v = new InsertElementInst(v,s,i,"v",basicBlock); > > > > return v; > > } > > > > Function* generateVectorAndSelect(Module* pModule) > > { > > std::vector<Type const*> params; > > > > params.push_back(Type::FloatTy); > > > > FunctionType* funcType = FunctionType::get > (Type::FloatTy,params,NULL); > > Function* func = cast<Function>(pModul...
2007 Jul 26
0
[LLVMdev] Seg faulting on vector ops
...;> for (unsigned int i = 0 ; i < dim ; ++i) >>> >>> v = new InsertElementInst(v,s,i,"v",basicBlock); >>> >>> >>> >>> return v; >>> >>> } >>> >>> >>> >>> Function* generateVectorAndSelect(Module* pModule) >>> >>> { >>> >>> std::vector<Type const*> params; >>> >>> >>> >>> params.push_back(Type::FloatTy); >>> >>> >>> >>> FunctionType* funcType = >>> Funct...