search for: parsedef

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

2014 Sep 25
5
[LLVMdev] New type of smart pointer for LLVM
...tion. r215176 applies several temporary ugly fixes of memory leaks in TGParser.cpp which would be great to be refactored using smart pointers. D5443 <http://reviews.llvm.org/D5443> demonstrates how the solution with a certain type of smart pointer would look like (see changes in TGParser::ParseDef(), TGParser::InstantiateMulticlassDef() and TGParser::ParseSimpleValue()). Briefly: consider a leaky example: { T* p = new T; if (condition1) { f(p); // takes ownership of p } p->SomeMethod(); if (condition2) { return nullptr; // Leak! } g(p); // don't take...
2012 Jan 20
1
[LLVMdev] TableGen Crash
...b 0x00007fff8fe713c8 malloc_zone_malloc + 77 4 llvm-tblgen 0x0000000108913f83 llvm::TGParser::ParseSubClassReference(llvm::Record*, bool) + 515 5 llvm-tblgen 0x000000010891b269 llvm::TGParser::ParseObjectBody(llvm::Record*) + 121 6 llvm-tblgen 0x000000010891bab1 llvm::TGParser::ParseDef(llvm::MultiClass*) + 1201 7 llvm-tblgen 0x000000010891cab9 llvm::TGParser::ParseObject(llvm::MultiClass*) + 153 8 llvm-tblgen 0x000000010891cb82 llvm::TGParser::ParseObjectList(llvm::MultiClass*) + 66 9 llvm-tblgen 0x000000010891f9d7 llvm::TGParser::ParseFile() + 55 10 llvm-tbl...
2014 Sep 25
2
[LLVMdev] New type of smart pointer for LLVM
...t; r215176 applies several temporary ugly fixes of memory leaks in > TGParser.cpp > > which would be great to be refactored using smart pointers. D5443 > demonstrates > > how the solution with a certain type of smart pointer would look like > (see > > changes in TGParser::ParseDef(), TGParser::InstantiateMulticlassDef() and > > TGParser::ParseSimpleValue()). > > > > Briefly: > > consider a leaky example: > > { > > T* p = new T; > > if (condition1) { > > f(p); // takes ownership of p > > } > > p->SomeM...
2014 Oct 01
4
[LLVMdev] New type of smart pointer for LLVM
...76 applies several temporary ugly fixes of memory leaks in TGParser.cpp > which would be great to be refactored using smart pointers. D5443 > <http://reviews.llvm.org/D5443> demonstrates how the solution with a > certain type of smart pointer would look like (see changes in TGParser::ParseDef(), > TGParser::InstantiateMulticlassDef() and TGParser::ParseSimpleValue()). > > Briefly: > consider a leaky example: > { > T* p = new T; > if (condition1) { > f(p); // takes ownership of p > } > p->SomeMethod(); > > if (condition2) { > re...