search for: mallocallocator

Displaying 20 results from an estimated 28 matches for "mallocallocator".

2020 Oct 01
2
OrcV1 removal
...---------------------------------------------------------------------- 22 62,022,701,974 2,766,072 2,664,931 101,141 0 ... ->16.97% (469,433B) 0xB29E471: llvm::allocate_buffer(unsigned long, unsigned long) (MemAlloc.cpp:15) | ->03.54% (97,812B) 0x831FB40: llvm::MallocAllocator::Allocate(unsigned long, unsigned long) (AllocatorBase.h:85) | | ->03.54% (97,812B) 0x8330268: llvm::StringMapEntry<std::atomic<unsigned long> >* llvm::StringMapEntry<std::atomic<unsigned long> >::Create<llvm::MallocAllocator, int>(llvm::StringRef, llvm::MallocAlloc...
2015 Aug 31
2
StringSet copy constructor
...StringSet<>(selection), all(selection.all) {} Selection(bool all) : all(all) {} size_t count(const string &s) const { if (all) return true; return StringSet<>::count(s); } }; But I get an error when trying to compile error C2280: 'llvm::StringSet<llvm::MallocAllocator>::StringSet(const llvm::StringSet<llvm::MallocAllocator> &)': attempting to reference a deleted function \llvm\include\llvm/ADT/StringSet.h(31): note: compiler has generated 'llvm::StringSet<llvm::MallocAllocator>::StringSet' here The indicated line is on my construc...
2020 Oct 02
2
OrcV1 removal
...----------------------- >> 22 62,022,701,974 2,766,072 2,664,931 101,141 >> 0 >> ... >> ->16.97% (469,433B) 0xB29E471: llvm::allocate_buffer(unsigned long, >> unsigned long) (MemAlloc.cpp:15) >> | ->03.54% (97,812B) 0x831FB40: llvm::MallocAllocator::Allocate(unsigned >> long, unsigned long) (AllocatorBase.h:85) >> | | ->03.54% (97,812B) 0x8330268: >> llvm::StringMapEntry<std::atomic<unsigned long> >* >> llvm::StringMapEntry<std::atomic<unsigned long> >> >::Create<llvm::MallocAllocato...
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...ll!RtlFreeHeap(void * HeapHandle, unsigned long Flags, void * BaseAddress) Line 352 C ucrtbase.dll!_free_base(void * block) Line 105 C++ XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo) Line 238 C++ XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential * __ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::StringRef,llvm::ConstantDataSequential *> KV) Line 344 C++ [Inline Frame] XXXTest.exe!llvm::StringMap<llvm::Value *,llvm::MallocAllocator>::GetOrCreateValue(llvm::StringRef) Line 371 C++ [Inline Frame] XXXTest.exe!llvm::StringMap<llvm::Value *,llvm::Ma...
2020 Oct 01
2
OrcV1 removal
Hi, On 2020-09-30 21:31:33 -0700, Lang Hames wrote: > I've taken a first shot at hooking RTDyldObjectLinkingLayer up to the > ResourceTracker API in 7436b2ab2428. Could you let me know whether that > fixes the leak you were seeing? It did improve the situation significantly, thanks! There's still a smaller leak, unfortunately. The function comments for modules say that: /** *
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...le, unsigned long Flags, void * > BaseAddress) Line 352 C > ucrtbase.dll!_free_base(void * block) Line 105 C++ > XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo) > Line 238 C++ > XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential * > __ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::StringRef,llvm::ConstantDataSequential > *> KV) Line 344 C++ > [Inline Frame] XXXTest.exe!llvm::StringMap<llvm::Value > *,llvm::MallocAllocator>::GetOrCreateValue(llvm::StringRef) Line 371 C++ > [Inline Frame] XXXTest.exe!llvm::StringMap<ll...
2010 Aug 18
3
[LLVMdev] Using ValueSymbolTable...
...llowing error when trying to fetch the symbol table using getValueSymbolTable() /home/llvm/install/include/llvm/ADT/StringMap.h:256: void llvm::StringMap<ValueTy, AllocatorTy>::operator=(const llvm::StringMap<ValueTy, AllocatorTy>&) [with ValueTy = llvm::Value*, AllocatorTy = llvm::MallocAllocator]: Assertion `RHS.empty() && "assignment from non-empty stringmap not implemented yet!"' failed. Regards, subbu -- View this message in context: http://old.nabble.com/Using-ValueSymbolTable...-tp29461430p29468905.html Sent from the LLVM - Dev mailing list archive at Nabble.co...
2010 Aug 09
3
[LLVMdev] MmapAllocator
...mall (<128k) allocations, and > > even with mmaps it caches them for a while. > > Recommended reading: > http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemalloc.pdf If jemalloc provides same or better memory usage than MMapAllocator, I think it'd be better to have a JEMallocAllocator instead. I think jemalloc is fairly portable (firefox uses it), isn't it? > > > I think that is because mmap() is slow in multithreaded apps, since > > it needs to take a process level lock, which also contends with the > > lock taken by pagefaults from other existing mma...
2016 Mar 25
2
Link error on Linux
...398: undefined reference to `llvm::outs()' aklo-aklo.o: In function `llvm::raw_ostream::operator<<(char)': /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to `llvm::raw_ostream::write(unsigned char)' aklo-aklo.o: In function `llvm::StringMap<long, llvm::MallocAllocator>::find(llvm::StringRef) const': /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to `llvm::StringMapImpl::FindKey(llvm::StringRef) const' aklo-aklo.o: In function `llvm::StringMap<long, llvm::MallocAllocator>::insert(std::pair<llvm::StringRef, long>)': /...
2010 Aug 09
0
[LLVMdev] MmapAllocator
...and >> > even with mmaps it caches them for a while. >> >> Recommended reading: >> http://people.freebsd.org/~jasone/jemalloc/bsdcan2006/jemalloc.pdf > > If jemalloc provides same or better memory usage than > MMapAllocator, I think it'd be better to have a JEMallocAllocator > instead. > I think jemalloc is fairly portable (firefox uses it), isn't it? Reading the abstract, jemalloc seems like it has nothing to do with keeping the total heap usage low and everything to do with performance in a multithreaded app. >> > I think that is because mmap() i...
2016 Mar 25
3
Link error on Linux
...; aklo-aklo.o: In function `llvm::raw_ostream::operator<<(char)': > > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference > to > > `llvm::raw_ostream::write(unsigned char)' > > aklo-aklo.o: In function `llvm::StringMap<long, > > llvm::MallocAllocator>::find(llvm::StringRef) const': > > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to > > `llvm::StringMapImpl::FindKey(llvm::StringRef) const' > > aklo-aklo.o: In function `llvm::StringMap<long, > > llvm::MallocAllocator>::insert(std::pa...
2016 Mar 25
0
Link error on Linux
...to `llvm::outs()' > aklo-aklo.o: In function `llvm::raw_ostream::operator<<(char)': > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to > `llvm::raw_ostream::write(unsigned char)' > aklo-aklo.o: In function `llvm::StringMap<long, > llvm::MallocAllocator>::find(llvm::StringRef) const': > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to > `llvm::StringMapImpl::FindKey(llvm::StringRef) const' > aklo-aklo.o: In function `llvm::StringMap<long, > llvm::MallocAllocator>::insert(std::pair<llvm::StringRe...
2016 Mar 25
2
Link error on Linux
...nction `llvm::raw_ostream::operator<<(char)': >> > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined >> reference to >> > `llvm::raw_ostream::write(unsigned char)' >> > aklo-aklo.o: In function `llvm::StringMap<long, >> > llvm::MallocAllocator>::find(llvm::StringRef) const': >> > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to >> > `llvm::StringMapImpl::FindKey(llvm::StringRef) const' >> > aklo-aklo.o: In function `llvm::StringMap<long, >> > llvm::MallocAllocator>...
2016 Mar 25
0
Link error on Linux
...; > aklo-aklo.o: In function `llvm::raw_ostream::operator<<(char)': > > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to > > `llvm::raw_ostream::write(unsigned char)' > > aklo-aklo.o: In function `llvm::StringMap<long, > > llvm::MallocAllocator>::find(llvm::StringRef) const': > > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to > > `llvm::StringMapImpl::FindKey(llvm::StringRef) const' > > aklo-aklo.o: In function `llvm::StringMap<long, > > llvm::MallocAllocator>::insert(std::pa...
2016 Mar 25
0
Link error on Linux
....o: In function `llvm::raw_ostream::operator<<(char)': >> > /home/a/llvm/include/llvm/Support/raw_ostream.h:141: undefined reference to >> > `llvm::raw_ostream::write(unsigned char)' >> > aklo-aklo.o: In function `llvm::StringMap<long, >> > llvm::MallocAllocator>::find(llvm::StringRef) const': >> > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to >> > `llvm::StringMapImpl::FindKey(llvm::StringRef) const' >> > aklo-aklo.o: In function `llvm::StringMap<long, >> > llvm::MallocAllocator>...
2010 Aug 18
2
[LLVMdev] Using ValueSymbolTable...
Hi all, I have a question regarding populating ValueSymbolTable of a Function. Is it that ValueSymbolTable is populated automatically whenever an alloca instruction is created using IRBuilder or do we need to explicitly populate?? If we need to populate explicitly, the insert method in ValueSymbolTable is private, so how can we do it? Currently, I am trying to access the symbol table as below:
2010 Aug 18
0
[LLVMdev] Using ValueSymbolTable...
subramanyam wrote: > > Hi all, > I have a question regarding populating ValueSymbolTable of a Function. > Is it that ValueSymbolTable is populated automatically whenever an alloca > instruction is created using IRBuilder or do we need to explicitly > populate?? It's maintained by LLVM for you, by Value::setName and other methods. Nick
2010 Aug 09
0
[LLVMdev] MmapAllocator
On Aug 9, 2010, at 9:54 AM, Török Edwin wrote: > With mmap() it is always possible to fully release the memory once you > are done using it. Sure. Is that the goal, though? Why isn't malloc doing it already? > With malloc() no, it takes just 1 allocation at the end of the heap to > keep all the rest allocated. That wouldn't be a problem if libc would > use mmap() as the
2008 Feb 28
1
[LLVMdev] Are multiple execution engines allowed?
...53db671 "") at StringMap.cpp:130 130 unsigned HTSize = NumBuckets; (gdb) where #0 0x0071aaed in llvm::StringMapImpl::FindKey (this=0x0, KeyStart=0x53db66c "abort", KeyEnd=0x53db671 "") at StringMap.cpp:130 #1 0x006dbe27 in llvm::StringMap<llvm::Value*, llvm::MallocAllocator>::find (this=0x0, KeyStart=0x53db66c "abort", KeyEnd=0x53db671 "") at ADT/StringMap.h:281 #2 0x006db57f in llvm::ValueSymbolTable::lookup (this=0x0, Name=@0xbfffeee8) at ValueSymbolTable.cpp:51 #3 0x006acf6b in llvm::Module::getOrInsertFunction (this=0x1902d20, Name=@...
2019 Nov 18
2
Unable to parse command line more than once using llvm libraries?
Thanks, I tried calling ResetAllOptionOccurrences after the run like this… // Compile the module TimeCompilations times to give better compile time // metrics. for (unsigned I = TimeCompilations; I; --I) if (int RetVal = compileModule(argv, Context)) return RetVal; if (YamlFile) YamlFile->keep(); cl::ResetAllOptionOccurrences(); return 0; } Unfortunately