search for: auto_ptr

Displaying 20 results from an estimated 43 matches for "auto_ptr".

2017 Jan 23
5
Upcoming removal of std::auto_ptr (in C++1z)
The upcoming C++1z (probably C++17) standard will not contain several things - most notably auto_ptr. Soon, libc++ will not be providing auto_ptr by default when building in C++1z mode. You'll be able to get it back with a "-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR" on your command line, or "#define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR" before including any libc++ header fi...
2008 Feb 15
2
[LLVMdev] Possible Bad Assertion in Value.cpp
...he following assertion from a program I've written: /home/vadve/criswell/src/llvm22/lib/VMCore/Value.cpp:57: virtual llvm::Value::~Value(): Assertion `use_empty() && "Uses remain when a value is destroyed!"' failed. This occurs when I free a Module (the program uses an auto_ptr() to the Module, and the auto_ptr() moves out of scope). It looks like the code that frees a BasicBlock frees all of its instructions in order without regards to the def-use chains. However, the Value class's destructor has the assertion that the Value has no uses. Is the assertion an err...
2008 Feb 15
0
[LLVMdev] Possible Bad Assertion in Value.cpp
...m a program I've written: > > /home/vadve/criswell/src/llvm22/lib/VMCore/Value.cpp:57: virtual > llvm::Value::~Value(): Assertion `use_empty() && "Uses remain when a > value is destroyed!"' failed. > > This occurs when I free a Module (the program uses an auto_ptr() to > the > Module, and the auto_ptr() moves out of scope). > > It looks like the code that frees a BasicBlock frees all of its > instructions in order without regards to the def-use chains. However, > the Value class's destructor has the assertion that the Value has no...
2012 Jan 12
3
[LLVMdev] 'opt' Aborted "While deleting: void %"
...7 libLLVM-2.9.so 0xf696958f llvm::BasicBlock::eraseFromParent() + 77 18 libLLVM-2.9.so 0xf69b7b11 llvm::Function::dropAllReferences() + 159 19 libLLVM-2.9.so 0xf6a2dc59 llvm::Module::dropAllReferences() + 81 20 libLLVM-2.9.so 0xf6a2caf2 llvm::Module::~Module() + 50 21 opt 0x08081e36 std::auto_ptr<llvm::Module>::~auto_ptr() + 36 22 opt 0x0807d5a4 main + 5045 23 libc.so.6 0xf57bdbd6 __libc_start_main + 230 24 opt 0x0806de41 Stack dump: 0. Program arguments: opt -debug -load /x/grwright/llvm/llvm-sfi/RelRecovery/Debug+Asserts/lib/relRecovery.so -profile-loader...
2011 Feb 22
2
[LLVMdev] still failed to build the llbrowse on Debian5-32b-llvm2.8
...piler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found wxWidgets: TRUE -- Looking for assert.h -- Looking for assert.h - found -- Looking for auto_ptr.h -- Looking for auto_ptr.h - not found -- Looking for C++ include memory -- Looking for C++ include memory - found -- LLVM llvm-config found at: /steffan/a/a0/czhao/opt/opt32/llvm-2.8r/bin/llvm-config -- Configuring done -- Generating done -- Build files have been written to: /steffan/a/a0/czhao/R...
2012 Jan 12
0
[LLVMdev] 'opt' Aborted "While deleting: void %"
...696958f llvm::BasicBlock::eraseFromParent() + 77 > 18 libLLVM-2.9.so 0xf69b7b11 llvm::Function::dropAllReferences() + 159 > 19 libLLVM-2.9.so 0xf6a2dc59 llvm::Module::dropAllReferences() + 81 > 20 libLLVM-2.9.so 0xf6a2caf2 llvm::Module::~Module() + 50 > 21 opt 0x08081e36 std::auto_ptr<llvm::Module>::~auto_ptr() + 36 > 22 opt 0x0807d5a4 main + 5045 > 23 libc.so.6 0xf57bdbd6 __libc_start_main + 230 > 24 opt 0x0806de41 > Stack dump: > 0. Program arguments: opt -debug -load > /x/grwright/llvm/llvm-sfi/RelRecovery/Debug+Asserts/lib/r...
2011 Feb 22
0
[LLVMdev] still failed to build the llbrowse on Debian5-32b-llvm2.8
...working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Found wxWidgets: TRUE > -- Looking for assert.h > -- Looking for assert.h - found > -- Looking for auto_ptr.h > -- Looking for auto_ptr.h - not found > -- Looking for C++ include memory > -- Looking for C++ include memory - found > -- LLVM llvm-config found at: > /steffan/a/a0/czhao/opt/opt32/llvm-2.8r/bin/llvm-config > -- Configuring done > -- Generating done > -- Build files hav...
2012 Jan 25
2
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
...unction.cpp:233 #21 0xf728ac59 in llvm::Module::dropAllReferences (this=0x80a9690) at /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:449 #22 0xf7289af2 in ~Module (this=0x80a9690, __in_chrg=<value optimized out>) at /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:70 #23 0x08081e36 in ~auto_ptr (this=0xffffd734, __in_chrg=<value optimized out>) at /usr/include/c++/4.4/backward/auto_ptr.h:168 #24 0x0807d5a4 in main (argc=13, argv=0xffffd814) at /x/grwright/llvm/llvm-2.9/tools/opt/opt.cpp:695 --------------------------------
2012 Jan 13
1
[LLVMdev] 'opt' Aborted "While deleting: void %"
...sicBlock::eraseFromParent() + 77 >> 18 libLLVM-2.9.so 0xf69b7b11 llvm::Function::dropAllReferences() + 159 >> 19 libLLVM-2.9.so 0xf6a2dc59 llvm::Module::dropAllReferences() + 81 >> 20 libLLVM-2.9.so 0xf6a2caf2 llvm::Module::~Module() + 50 >> 21 opt 0x08081e36 std::auto_ptr<llvm::Module>::~auto_ptr() + >> 36 >> 22 opt 0x0807d5a4 main + 5045 >> 23 libc.so.6 0xf57bdbd6 __libc_start_main + 230 >> 24 opt 0x0806de41 >> Stack dump: >> 0. Program arguments: opt -debug -load >> /x/grwright/llvm/llvm-sf...
2012 Jan 25
1
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
...0a9690) at >> /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:449 #22 0xf7289af2 in >> ~Module (this=0x80a9690, __in_chrg=<value optimized >> >> out>) >> >> at /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:70 #23 0x08081e36 >> in >> ~auto_ptr (this=0xffffd734, __in_chrg=<value optimized out>) at >> /usr/include/c++/4.4/backward/auto_ptr.h:168 #24 0x0807d5a4 in main >> (argc=13, argv=0xffffd814) at >> /x/grwright/llvm/llvm-2.9/tools/opt/opt.cpp:695 >> -------------------------------- >> >> >&g...
2012 Jan 25
0
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
...llvm::Module::dropAllReferences (this=0x80a9690) at > /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:449 #22 0xf7289af2 in > ~Module (this=0x80a9690, __in_chrg=<value optimized > > out>) > > at /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:70 #23 0x08081e36 in > ~auto_ptr (this=0xffffd734, __in_chrg=<value optimized out>) at > /usr/include/c++/4.4/backward/auto_ptr.h:168 #24 0x0807d5a4 in main > (argc=13, argv=0xffffd814) at > /x/grwright/llvm/llvm-2.9/tools/opt/opt.cpp:695 > -------------------------------- > > > > > _______________...
2012 Jan 23
1
[LLVMdev] Assertion `AA && "AA didn't call InitializeAliasAnalysis in its run method!"' failed.
...MCore/Function.cpp:233 #21 0xf728ac59 in llvm::Module::dropAllReferences (this=0x80a9690) at /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:449 #22 0xf7289af2 in ~Module (this=0x80a9690, __in_chrg=<value optimized out>) at /x/grwright/llvm/llvm-2.9/lib/VMCore/Module.cpp:70 #23 0x08081e36 in ~auto_ptr (this=0xffffd734, __in_chrg=<value optimized out>) at /usr/include/c++/4.4/backward/auto_ptr.h:168 #24 0x0807d5a4 in main (argc=13, argv=0xffffd814) at /x/grwright/llvm/llvm-2.9/tools/opt/opt.cpp:695 -------------------------------- I have a getAnalysisUsage method which does the following (...
2009 Mar 08
2
[LLVMdev] addPassesToEmitFile
...); However, in newer versions of llvm, like 2.5 that I'm testing now, I had to change the code to something like this: std::string Err; const llvm::TargetMachineRegistry::entry* _arch = llvm::TargetMachineRegistry::getClosestTargetForJIT(Err); std::string FeaturesStr; std::auto_ptr<llvm::TargetMachine> target(_arch->CtorFn(*_module, FeaturesStr)); std::ostringstream os; llvm::raw_ostream *Out = new llvm::raw_os_ostream(os); target->addPassesToEmitFile(*_passManager, *Out, llvm::TargetMachine::AssemblyFile, true); target->addPassesToEmitFileFini...
2012 Feb 03
3
[LLVMdev] How can I see what opt tries to delete at the end of a pass?
...7 libLLVM-2.9.so 0x5646b58f llvm::BasicBlock::eraseFromParent() + 77 18 libLLVM-2.9.so 0x564b9b11 llvm::Function::dropAllReferences() + 159 19 libLLVM-2.9.so 0x5652fc59 llvm::Module::dropAllReferences() + 81 20 libLLVM-2.9.so 0x5652eaf2 llvm::Module::~Module() + 50 21 opt 0x08081e36 std::auto_ptr<llvm::Module>::~auto_ptr() + 36 22 opt 0x0807d5a4 main + 5045 23 libc.so.6 0x5740bbd6 __libc_start_main + 230 24 opt 0x0806de41
2010 Aug 19
1
[LLVMdev] questions about context
Hi, I am trying to load another bytecode file in one pass. I checked the opt.cpp, it uses following to load a bytecode file: ... LLVMContext &Context = getGlobalContext(); ... SMDiagnostic Err; // Load the input module... std::auto_ptr<Module> M; M.reset(ParseIRFile(InputFilename, Err, Context)); ... My question is in the runOnModule method where I want to load another bytecode file, what context should I use? Is getGlobalContext() still OK? Thanks, Guoliang
2008 Feb 15
2
[LLVMdev] Possible Bad Assertion in Value.cpp
...tten: >> >> /home/vadve/criswell/src/llvm22/lib/VMCore/Value.cpp:57: virtual >> llvm::Value::~Value(): Assertion `use_empty() && "Uses remain when a >> value is destroyed!"' failed. >> >> This occurs when I free a Module (the program uses an auto_ptr() to >> the >> Module, and the auto_ptr() moves out of scope). >> >> It looks like the code that frees a BasicBlock frees all of its >> instructions in order without regards to the def-use chains. However, >> the Value class's destructor has the assertion th...
2008 May 28
1
[LLVMdev] Asm output while executing
...function!"' failed. ********** The code I use: /// The asm code output std::string Err; const llvm::TargetMachineRegistry::entry* MArch = llvm::TargetMachineRegistry::getClosestStaticTargetForModule(*_module,Err); std::string FeaturesStr; std::auto_ptr<llvm::TargetMachine>target(MArch->CtorFn(*_module,FeaturesStr)); assert(target.get() && "Could not allocate target machine!"); llvm::TargetMachine &Target = *target.get(); llvm::FunctionPassManager Passes(new llvm::ExistingModuleProvider(_module));...
2009 Mar 08
0
[LLVMdev] addPassesToEmitFile
...vm, like 2.5 that I'm testing now, I > had to change the code to something like this: > > >    std::string Err; >    const llvm::TargetMachineRegistry::entry* _arch = > llvm::TargetMachineRegistry::getClosestTargetForJIT(Err); > >    std::string FeaturesStr; >    std::auto_ptr<llvm::TargetMachine> target(_arch->CtorFn(*_module, > FeaturesStr)); > >    std::ostringstream os; >    llvm::raw_ostream *Out = new llvm::raw_os_ostream(os); >    target->addPassesToEmitFile(*_passManager, *Out, > llvm::TargetMachine::AssemblyFile, true); >    targ...
2007 Jul 05
2
[LLVMdev] PATCH (rest of code changes) "bytecode" --> "bitcode"
Here is the bulk of the sanitizing. My residual doubts center around the question whether we still do/want to support (un)compressed *byte*code in 2.0/2.1. I need a definitive word on this to proceed. My understanding is that bytecode is already gone, but there are still some functions/enums that really deal with *byte*code (instead of *bit*code). I did not touch those areas, so the attached
2009 Mar 09
1
[LLVMdev] addPassesToEmitFile
...testing now, I > > had to change the code to something like this: > > >    std::string Err; > >    const llvm::TargetMachineRegistry::entry* _arch = > > llvm::TargetMachineRegistry::getClosestTargetForJIT(Err); > > >    std::string FeaturesStr; > >    std::auto_ptr<llvm::TargetMachine> target(_arch->CtorFn(*_module, > > FeaturesStr)); > > >    std::ostringstream os; > >    llvm::raw_ostream *Out = new llvm::raw_os_ostream(os); > >    target->addPassesToEmitFile(*_passManager, *Out, > > llvm::TargetMachine::Assembly...