search for: createsentinel

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

2010 Jun 21
0
[LLVMdev] getGlobalContext()
...g: LLVMContext *mycontext = new LLVMContext(); But it seems there are still places that explicitly refer to the global context (like in Module.cpp). I wonder wether this is indended or has yet to be fixed ? Thanks Junjie -------- Module.cpp GlobalVariable *ilist_traits<GlobalVariable>::createSentinel() { GlobalVariable *Ret = new GlobalVariable(Type::getInt32Ty(getGlobalContext()), false, GlobalValue::ExternalLinkage); // This should not be garbage monitored. LeakDetector::removeGarbageObject(Ret); return Ret; } GlobalAlias *ilist_traits<Glo...
2016 Feb 10
5
Question about an error we're now starting to get on LLVM 3.8.0rc2since
...a drive by, reduce the number of template parameters from 2 to 1 by > using a SymbolTableListParentType metafunction (I originally had this as > a separate commit, but it touched most of the same lines so I squashed > them). > > I'm in the process of trying to remove the UB in `createSentinel()` (see > the FIXMEs I added for `ilist_embedded_sentinel_traits` and > `ilist_half_embedded_sentinel_traits`). My eventual goal is to separate > the list logic into a base class layer that knows nothing about (and > isn't templated on) the downcasted nodes -- removing the need to...
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...operator new(unsigned) (vg_replace_malloc.c:164) ==10132== by 0x84B6327: llvm::FunctionType::get(llvm::Type const*, std::vector<llvm::Type const*, std::allocator<llvm::Type const*> > const&, bool) (Type.cpp:996) ==10132== by 0x84AC455: llvm::ilist_traits<llvm::Function>::createSentinel() ( Module.cpp:32) ==10132== by 0x850E85E: llvm::iplist<llvm::Function, llvm::ilist_traits<llvm::Function> >::iplist() (ilist:238) ==10132== by 0x84AC8ED: llvm::Module::Module(std::string const&) ( Module.cpp:64) ==10132== by 0x83E6E4D: llvm::BytecodeReader::ParseBytecode(u...
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...Debug/vgen) ==20504==    by 0x8BC327: llvm::GlobalVariable::GlobalVariable(llvm::Type const*, bool, llvm::GlobalValue::LinkageTypes, llvm::Constant*, llvm::Twine const&, bool, unsigned int) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8EBF17: llvm::ilist_traits<llvm::GlobalVariable>::createSentinel() (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8EC05E: llvm::Module::dropAllReferences() (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x8ED019: llvm::Module::~Module() (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x421855: vgen::CodeCreator::~CodeCreator() (CodeCreator.cpp:38) ==20504==...