search for: getvaluetypelist

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

2010 Apr 26
2
[LLVMdev] Bufer overrun in getValueTypeList()
Hi Duncan, I've modified my backend such that the function isn't called anymore with iPTR. I still think that if iPTR is an invalid input to getValueTypeList() that the function should have at least an assert checking that. Thanks, Javier Hi Javier, > I've observed in some tests that getValueTypeList() is sometimes called > with type MVT::iPTR. I think this is a bug, and you would do best to open a bugreport with a testcase. Cia...
2010 Apr 27
0
[LLVMdev] Bufer overrun in getValueTypeList()
Hi Javier, > I’ve modified my backend such that the function isn’t called anymore > with iPTR. I still think that if iPTR is an invalid input to > getValueTypeList() that the function should have at least an assert > checking that. I agree - please post a patch adding one. Ciao, Duncan.
2010 Apr 28
1
[LLVMdev] [Patch] Bufer overrun in getValueTypeList()
Hello, The attached patch is to add an assert to getValueTypeList() to verify that for simple value types their value is NOT between MAX_ALLOWED_VALUETYPE and LastSimpleValueType (inclusive) as this causes a buffer overrun. Thanks, Javier -----Original Message----- From: Duncan Sands [mailto:baldrick at free.fr] Sent: Tuesday, April 27, 2010 5:07 AM To: Martin...
2010 Apr 21
1
[LLVMdev] Bufer overrun in getValueTypeList()
Hello, I've observed in some tests that getValueTypeList() is sometimes called with type MVT::iPTR. There is a discrepancy between the size of the array VTs and the use in getTypeValueList(). The array is allocated with space for elements up to LAST_VALUE_TYPE and iPTR is defined after it. The enumerator value of iPTR is between LAST_VALUE_TYPE and Last...
2014 Jun 24
6
[LLVMdev] Making it possible to clear the LLVMContext
Hello, I'm trying to develop a way to reliably clean the LLVMContext in order to make it possible to use it multiple times. LLVMContext itself is an almost empty object delegating almost all its content to LLVMContextImpl. This makes it very clean ideally, because clearing the LLVMContext would be as easy as deleting the LLVMContextImpl and creating a new one. The problem is that for some
2014 Jun 24
0
[LLVMdev] Making it possible to clear the LLVMContext
...in the open source OpenGL driver stack is suffering from problems connected to LLVMContext. So our observation is, if we use several LLVMContexts within the program execution lifetime, LLVM accumulates memory that is only freed on destruction of the managed singletons. It turns out that in SDNode::getValueTypeList(EVT) the non simple value types are cached and keyed by a llvm::Type value which in the end refers to a LLVMContext reference value. Which in turn leads to the llvm library hogging memory in this EVT std::set for each new LLVMContext. For the OpenGL drivers using the global LLVMContext singleton le...