Displaying 1 result from an estimated 1 matches for "insert0".
Did you mean:
insert
2014 Jul 22
2
[LLVMdev] InsertElementInst and ExtractElementInst
...ment <3 x i32> undef, i32 %43, i32 2
%extract4 = extractelement <3 x i32> undef, i32 %35
...
store i32 %extract4, i32* %46, align 4
The output of my program is different that the expected one, like the
extractelement takes an undefined value.
The instructions I used are:
Instruction *Insert0 = InsertElementInst::Create(vector, Or_set, index0,
"ins or");
..
Instruction *extract = ExtractElementInst::Create(vector, ch,
"extract"); //where ch takes a value from 0 to 2
instr->replaceAllUsesWith(extract); //where I want to replace the instr
instruction with the ins...