Displaying 9 results from an estimated 9 matches for "clearallvaluemap".
Did you mean:
clearallvaluemaps
2004 Nov 22
2
[LLVMdev] Memory leaks revisited (and many fixed)
...ince they are public member variables of the ConstantBool class... If
>>only everyone used the ConstantBool::get() there would be no problem,
>>but that's not the case. Any suggestions?
>
> These should just be destroyed along with the rest of the constants, by
> Constant::clearAllValueMaps.
Hmmm, I was planning to call clearAllValueMaps once in a while to clear
out the float constants which are building up on me... This shouldn't
break anything as it stands, since the constants will be regenerated.
However, deleting True and False will cause big problems. I think I'm
ju...
2004 Nov 16
2
[LLVMdev] LLVM and memory leaks
...his -- there are some things you might not
> like about it:
>
> 1) I had to make the private destroyConstantImpl method public to access
> it from the template class ValueMap since there is no good way to
> declare it as a friend.
That's fine in principle, though if you make the clearAllValueMaps
function be a static method in Type this is unneeded I think.
> 2) I keep the types in a std::vector so I can easily drop all references
> and delete them without going through all the type maps - this adds a
> little bit of overhead, but there shouldn't be that many types (compared...
2004 Nov 19
0
[LLVMdev] LLVM and memory leaks
Chris Lattner wrote:
> Ok, here's some feedback. This patch looks like a combination of several
> different things. If you resubmit the patch in pieces, we can get the
> undebatable ones applied first:
>
> 2. The clearAllValueMaps related changes. These are also fine, but please
> make clearAllValueMaps be a static function in the Constant class,
> Constant::ClearAllValueMaps().
> 4. The Types change, including the vector. As you guessed, I'm not a fan
> of this at all: it adds overhead to the nor...
2004 Nov 22
0
[LLVMdev] Memory leaks revisited (and many fixed)
...ey are public member variables of the ConstantBool class... If
} >>only everyone used the ConstantBool::get() there would be no problem,
} >>but that's not the case. Any suggestions?
} >
} >These should just be destroyed along with the rest of the constants, by
} >Constant::clearAllValueMaps.
}
} Hmmm, I was planning to call clearAllValueMaps once in a while to clear
} out the float constants which are building up on me... This shouldn't
} break anything as it stands, since the constants will be regenerated.
} However, deleting True and False will cause big problems. I think I...
2004 Nov 19
0
[LLVMdev] Memory leaks revisited (and many fixed)
...ssor functions
> since they are public member variables of the ConstantBool class... If
> only everyone used the ConstantBool::get() there would be no problem,
> but that's not the case. Any suggestions?
These should just be destroyed along with the rest of the constants, by
Constant::clearAllValueMaps.
-Chris
--
http://llvm.org/
http://nondot.org/sabre/
2004 Nov 19
2
[LLVMdev] Memory leaks revisited (and many fixed)
Hi,
I finally took the time to track down the remaining memory leaks beside
the LeakDetector objects and TypeMaps/ValueMaps I already knew about. It
turns out almost all of them came from the command line options module,
so I cleaned up the patch for LeakDetector and made a new patch for
CommandLine. The patches are attached to this message.
That got rid of all but 4 leaks I'm getting,
2004 Nov 15
0
[LLVMdev] LLVM and memory leaks
Chris Lattner wrote:
>>It would also solve another problem -- We generate new shader code when
>>the user changes parameters, because the shader will be executed
>>millions of times it makes sense to recompile it with changed constants
>>to get maximum optimization. But if some of these parameters are floats,
>>and there is no way to destroy constants in LLVM we have
2004 Nov 12
2
[LLVMdev] LLVM and memory leaks
On Thu, 11 Nov 2004, Morten Ofstad wrote:
> Well, I already tried that, but the destructors crash because they are
> referencing other things which are being destroyed - Constants are Users
> of each other and there is no easy way to destroy them in the right
> order.
There are ways around this, but it turns into a two-pass operation: loop
over all constants to drop their uses, then
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
Hi,
Probably some of the leaks Valgrind reports are spurious, but the numbers
seem to be significant enough to demand some attention:
==10132== LEAK SUMMARY:
==10132== definitely lost: 15,624 bytes in 558 blocks.
==10132== indirectly lost: 44,548 bytes in 1,591 blocks.
==10132== possibly lost: 37,576 bytes in 98 blocks.
==10132== still reachable: 1,336,876 bytes in 1,364 blocks.