search for: createfmul

Displaying 6 results from an estimated 6 matches for "createfmul".

2010 Mar 23
0
[LLVMdev] How to avoid memory leaks
Are you calling llvm_shutdown() at the end of your program? You should. valgrind reports "possible" leaks when it finds a pointer pointing inside a memory block (as opposed to at the first byte), and LLVM uses those a lot. llvm_shutdown() will free a lot of that memory, including the LLVMContext, which should remove any false leaks you might be seeing. On the other hand, the
2014 Sep 19
2
[LLVMdev] More careful treatment of floating point exceptions
Hi Sanjay, Thanks, I saw this flag and it's definitely should be considered, but it appeared to me to be static characteristic of target platform. I'm not sure how appropriate it would be to change its value from a front-end. It says "Has", while optional flag would rather say "Uses" meaning that implementation cares about floating point exceptions. Regards, Sergey
2014 Sep 25
2
[LLVMdev] More careful treatment of floating point exceptions
...der.h @@ -62,11 +62,14 @@ public: return Fold(ConstantExpr::getFSub(LHS, RHS)); } Constant *CreateMul(Constant *LHS, Constant *RHS, - bool HasNUW = false, bool HasNSW = false) const { - return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW)); - } - Constant *CreateFMul(Constant *LHS, Constant *RHS) const { - return Fold(ConstantExpr::getFMul(LHS, RHS)); + bool HasNUW = false, bool HasNSW = false, + bool HonorFPExceptions = false) const { + return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW, +...
2010 Mar 18
0
[LLVMdev] Does it cache the compiled code of executed functions upon runFunction(..)?
I think I found the cause. It appears that FP operations and functions (I used combinations of CreateFMulL CreateFAdd and CreateFSub ) is MUCH slower than their integer equivalents. I mean really slower (20x slower or even more) Can It be the cause ? Does the FP binary ops are so slow ? -- Regards, Gabi http://bugspy.net
2012 Apr 12
0
[LLVMdev] detection of constant diagonal matrix * vector
...(i == numElements) { Value* newShuffle = noShuffle ? value : Builder->CreateShuffleVector( value, leftShuffle->getOperand(1), ConstantVector::get(newShuffleMask), "shuffle"); return BinaryOperator::CreateFMul(newShuffle, ConstantVector::get(newConst), "mul"); } } } } }
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 0x423B04: llvm::ConstantFolder::CreateFMul(llvm::Constant*, llvm::Constant*) const (ConstantFolder.h:70) ==20504==    by 0x424F68: llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateFMul(llvm::Value*, llvm::Value*, llvm::Twine const&) (IRBuilder.h:382) ==20504==    by 0x42276F: vgen::Co...