search for: oprnd

Displaying 3 results from an estimated 3 matches for "oprnd".

Did you mean: opnd
2015 Apr 17
2
[LLVMdev] how to use "new instruction()"
...Type::get(Type::getDoubleTy(ctxt), 2); Value *emptyVec = UndefValue::get(vecTy); Type* u32Ty = Type::getInt32Ty(currF->getContext()); Value *index0 = ConstantInt::get(u32Ty, 0); Value *index1 = ConstantInt::get(u32Ty, 1); Instruction *InsertVal = InsertElementInst::Create(emptyVec, oprnd, index0, "insert"); InsertVal = InsertElementInst::Create(emptyVec, oprnd, index1, "insert"); vecVal = builder.CreateFAdd(emptyVec, emptyVec, ""); Best, Zhi On Fri, Apr 17, 2015 at 12:17 PM, Nick Lewycky <nicholas at mxc.ca> wrote: > zhi chen wrote:...
2013 Sep 20
0
[LLVMdev] Passing Arguments to External Function Call in llvm pass
I have a external function which is like this :- void foo(int num, ...) { va_list arguments; va_start(arguments,num); for(int x=0;x<num;x++) { long long *oprnd=va_arg ( arguments, long long* ); } va_end ( arguments ); } And on llvm pass i have one vector of Value* (i.e. vector&lt;Value*> vect). which basically contains getoperand(0) of all Load instruction present on some test program. eg. load i32* %a, align 4 vect.push_back(getoper...
2015 Apr 17
2
[LLVMdev] how to use "new instruction()"
I got it. Thanks, Nick. So, it is back to the previous problem. If I have the following instruction: %3 = fadd double %1, double %2 I want to change it into %6 = fadd <2 x double> %4, double %5 where %4 = <double %1, double %1>, %5 = <double %2, double %2>, how can I do this? Thanks, Best On Fri, Apr 17, 2015 at 1:56 AM, Nick Lewycky <nicholas at mxc.ca> wrote: >