search for: createfdiv

Displaying 4 results from an estimated 4 matches for "createfdiv".

Did you mean: createdir
2008 Apr 24
1
[LLVMdev] PHP Zend LLVM extension (SoC)
...le this is to write an language- >> specific pass on LLVM IR that knows your runtime and can propagate >> types around. The thing is, LLVM IR performs type checking when it's being constructed (e.g BinaryOperator::CreateAdd(A, B) checks A->type == B->type or BinaryOperator::CreateFDiv(A,B) checks if A is floating point, B is floating point and A->type == B->type). That's a stopper for performing type inference on the LLVM IR. To perform type inference on the IR, one should add/modify: 1) Setting the arguments of a function as Opaque (or something like that, at le...
2008 Apr 24
0
[LLVMdev] PHP Zend LLVM extension (SoC)
On Apr 24, 2008, at 12:54 AM, Chris Lattner wrote: >> LLVM likely won't be able to do type inference for you. > > I'd put it another way: an existing llvm pass won't do type inference > for you. The right way to tackle this is to write an language- > specific pass on LLVM IR that knows your runtime and can propagate > types around. > Or just do it at the Zend
2008 Apr 24
2
[LLVMdev] PHP Zend LLVM extension (SoC)
On Apr 23, 2008, at 10:49 PM, Owen Anderson wrote: > > On Apr 23, 2008, at 1:44 PM, Nuno Lopes wrote: > >> Thank you both for your answers! >> That part of type inference was my second question. PHP uses a >> structure >> with a union to represent a variable (because a variable can have >> different >> types, like a long, a double, a stream,
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...uction(unsigned int, llvm::Constant*, llvm::Constant*) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x88BD87: llvm::ConstantExpr::getTy(llvm::Type const*, unsigned int, llvm::Constant*, llvm::Constant*, unsigned int) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x423B58: llvm::ConstantFolder::CreateFDiv(llvm::Constant*, llvm::Constant*) const (ConstantFolder.h:82) ==20504==    by 0x42500C: llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateFDiv(llvm::Value*, llvm::Value*, llvm::Twine const&) (IRBuilder.h:406) ==20504==    by 0x4227CC: vgen::Co...