search for: createfsqrt

Displaying 2 results from an estimated 2 matches for "createfsqrt".

2015 Apr 18
2
[LLVMdev] how can I create an SSE instrinsics sqrt?
...-bounces at cs.uiuc.edu] *On > Behalf Of *zhi chen > *Sent:* Saturday, April 18, 2015 5:52 AM > *To:* LLVM Dev > *Subject:* [LLVMdev] how can I create an SSE instrinsics sqrt? > > > > I want to create a vector version sqrt as the following. > > > > Value *Approx::CreateFSqrt(IRBuilder<> &builder, Value *v, const char* > Name) { > > Type *tys[] = {v->getType()}; > > Module* M = currF->getParent(); > > Value* sqrtv = Intrinsic::getDeclaration(M, Intrinsic::x86_sse2_sqrt_pd); > > CallInst *CI = builder.CreateCall(sqrtv, v...
2015 Apr 18
2
[LLVMdev] how can I create an SSE instrinsics sqrt?
I want to create a vector version sqrt as the following. Value *Approx::CreateFSqrt(IRBuilder<> &builder, Value *v, const char* Name) { Type *tys[] = {v->getType()}; Module* M = currF->getParent(); Value* sqrtv = Intrinsic::getDeclaration(M, Intrinsic::x86_sse2_sqrt_pd); CallInst *CI = builder.CreateCall(sqrtv, v, Name); return CI; } Here is Value *v is...