Displaying 1 result from an estimated 1 matches for "instr_vector".
2014 Jul 20
2
[LLVMdev] error in InsertElementInst
...this context
Instruction *Insert = new InsertElementInst(instr, emptyVec, index0, "test");
and
error: ‘llvm::InsertElementInst::InsertElementInst(llvm::Value*, llvm::Value*, llvm::Value*, const llvm::Twine&, llvm::Instruction*)’ is private
The code I have used is the following:
Type *Instr_vector = VectorType::get(Int32, 4);
Value *emptyVec = UndefValue::get(Instr_vector);
Constant* index0 = Constant::getIntegerValue(u32Ty, llvm::APInt(32, 0));
Instruction *Insert = new InsertElementInst(instr, emptyVec, index0, "test");
b->getInstList().insertAfter(Xor_flip, Insert);
Do you...