search for: floatval

Displaying 9 results from an estimated 9 matches for "floatval".

2010 Mar 19
2
[LLVMdev] JIT : Does it cache the compiled code of executed functions upon runFunction(..)?
...uot; and needs this trick ? (but copes well with "define i32 @someFunc(i32 %x) ) The function was generated using "getOrInsertFunction(name, Type::getFloatTy(ctx), Type::getFloatTy(ctx), (Type*)NULL); And the orginal slow execution was: std::vector<GenericValue> args(1); args[0].FloatVal = 8.0f; GenericValue retVal = EE -> runFunction(f, args); return retVal.FloatVal; -- Regards, Gabi http://bugspy.net
2010 Mar 19
0
[LLVMdev] JIT : Does it cache the compiled code of executed functions upon runFunction(..)?
...ll with > "define i32 @someFunc(i32 %x) ) > > The function was generated using "getOrInsertFunction(name, > Type::getFloatTy(ctx), Type::getFloatTy(ctx), (Type*)NULL); > > And the orginal slow execution was: > > std::vector<GenericValue> args(1); > args[0].FloatVal = 8.0f; > GenericValue retVal =  EE -> runFunction(f, args); > return retVal.FloatVal; > > > > > > -- > Regards, > Gabi > > http://bugspy.net > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu    ...
2007 Jul 20
5
[LLVMdev] Seg faulting on vector ops
.../ modified from the fibonacci example int main(int argc, char **argv) { Module* pVectorModule = new Module("test vectors"); Function* pMain = generateVectorAndSelect(pVectorModule); pVectorModule->print(std::cout); GenericValue gv1, gv2, gvR; gv1.FloatVal = 2.0f; ExistingModuleProvider *pMP = new ExistingModuleProvider(pVectorModule); pMP->getModule()->setDataLayout("e-p:32:32:32-i1:8:8:8-i8:8:8:8-i32:32:3 2:32-f32:32:32:32"); ExecutionEngine *pEE = ExecutionEngine::create(pMP, false); std::vector<GenericVa...
2007 Jul 21
0
[LLVMdev] Seg faulting on vector ops
...> { > > Module* pVectorModule = new Module("test vectors"); > > > > Function* pMain = generateVectorAndSelect(pVectorModule); > > > > pVectorModule->print(std::cout); > > > > GenericValue gv1, gv2, gvR; > > > > gv1.FloatVal = 2.0f; > > > > ExistingModuleProvider *pMP = new > ExistingModuleProvider(pVectorModule); > > > pMP->getModule()->setDataLayout("e-p:32:32:32-i1:8:8:8-i8:8:8:8-i32:32:3 > 2:32-f32:32:32:32"); > > ExecutionEngine *pEE = ExecutionEngine::create(...
2007 Jul 24
2
[LLVMdev] Seg faulting on vector ops
...t vectors"); >> >> >> >> Function* pMain = generateVectorAndSelect(pVectorModule); >> >> >> >> pVectorModule->print(std::cout); >> >> >> >> GenericValue gv1, gv2, gvR; >> >> >> >> gv1.FloatVal = 2.0f; >> >> >> >> ExistingModuleProvider *pMP = new >> ExistingModuleProvider(pVectorModule); >> >> >> pMP->getModule()->setDataLayout("e-p:32:32:32-i1:8:8:8-i8:8:8:8- >> i32:32:3 >> 2:32-f32:32:32:32"); >> >...
2007 Jul 20
0
[LLVMdev] Seg faulting on vector ops
...{ > > Module* pVectorModule = new Module("test vectors"); > > > > Function* pMain = generateVectorAndSelect(pVectorModule); > > > > pVectorModule->print(std::cout); > > > > GenericValue gv1, gv2, gvR; > > > > gv1.FloatVal = 2.0f; > > > > ExistingModuleProvider *pMP = new ExistingModuleProvider > (pVectorModule); > > pMP->getModule()->setDataLayout("e-p:32:32:32-i1:8:8:8-i8:8:8:8- > i32:32:32:32-f32:32:32:32"); > > ExecutionEngine *pEE = ExecutionEngine::cre...
2007 Jul 26
0
[LLVMdev] Seg faulting on vector ops
...;> Function* pMain = generateVectorAndSelect(pVectorModule); >>> >>> >>> >>> pVectorModule->print(std::cout); >>> >>> >>> >>> GenericValue gv1, gv2, gvR; >>> >>> >>> >>> gv1.FloatVal = 2.0f; >>> >>> >>> >>> ExistingModuleProvider *pMP = new >>> ExistingModuleProvider(pVectorModule); >>> >>> >>> pMP->getModule()->setDataLayout("e-p:32:32:32-i1:8:8:8-i8:8:8:8- >>> i32:32:3 >>>...
2008 May 28
0
[LLVMdev] A quick update on FreeBSD support
On May 24, 2008, at 4:25 PM, Marcel Moolenaar wrote: > On May 24, 2008, at 12:12 PM, Bill Wendling wrote: >> Let us know if you would like extra eyes on the two PPC failures. >> Many >> of us have a lot of experience with C++. :-) Do you know where these >> allocations are? > > I don't mind if people help out, so here's some information: Nice!
2008 May 24
5
[LLVMdev] A quick update on FreeBSD support
On May 24, 2008, at 12:12 PM, Bill Wendling wrote: > Let us know if you would like extra eyes on the two PPC failures. Many > of us have a lot of experience with C++. :-) Do you know where these > allocations are? I don't mind if people help out, so here's some information: FAIL: /nfs/llvm/src/llvm/test/Transforms/PredicateSimplifier/ 2006-11-04-ReplacingZeros.ll Failed with