search for: stringmap

Displaying 20 results from an estimated 276 matches for "stringmap".

2011 Oct 16
2
[LLVMdev] Static destructor problem with recent HEAD
...t;> getting a "pure virtual method called" exception (__cxa_pure_virtual) which >> I wasn't getting before. This is happening in the destructor of a >> statically-initialized object. (More precisely, it's blowing up in a >> BumpPtrAllocator, which is used by a StringMap, which is in turn a member of >> a statically initialized object.) >> >> Anyone know what might have changed recently that would cause this? >> > > It would help a lot to see the actual backtrace etc. ;] > Sure thing (although I'm not sure that this will tell y...
2011 Oct 16
0
[LLVMdev] Static destructor problem with recent HEAD
...000010106ad46 llvm::BumpPtrAllocator::DeallocateSlabs(llvm::MemSlab*) + 166 9 tartc 0x000000010106ac99 llvm::BumpPtrAllocator::~BumpPtrAllocator() + 25 10 tartc 0x000000010106ac75 llvm::BumpPtrAllocator::~BumpPtrAllocator() + 21 11 tartc 0x00000001000388b6 llvm::StringMap<char, llvm::BumpPtrAllocator>::~StringMap() + 74 12 tartc 0x0000000100101224 tart::StringTable::~StringTable() + 24 13 tartc 0x0000000100101905 tart::Module::~Module() + 1609 14 tartc 0x00000001000fd67b __tcf_3 + 27 15 libSystem.B.dylib 0x00007fff830e6374 _...
2016 Jul 13
6
[PATCH 0/5] Fix SELinux
We can use the setfiles(8) command to relabel the guest filesystem, even though we don't have a policy loaded nor SELinux enabled in the appliance kernel. This also deprecates or removes the old and broken SELinux support. This patch isn't quite complete - I would like to add some tests to the new API. I'm posting here to garner early feedback. Rich.
2011 Mar 15
10
[LLVMdev] Prevent unbounded memory consuption of long lived JIT processes
This series of patches address several issues causing memory usage to grow indefinetely on a long lived process. These are not convenional leaks -- memory would have been freed when the LLVM context or/and JIT engine is destroyed -- but for as long as they aren't the memory is usage effectively ubounded. The issues were found using valgrind with '--show-reachable=yes' option: 1.
2016 Jul 14
10
[PATCH v2 0/7] Fix SELinux
v1 -> v2: - Add simple test of the setfiles API. - Use SELinux_relabel module in virt-v2v (instead of touch /.autorelabel). - Small fixes. Rich.
2010 Aug 18
3
[LLVMdev] Using ValueSymbolTable...
..._ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > I am getting the following 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!"'...
2017 Jun 30
2
llvm-profdata determinism
I haven't tested it, but it looks to me like llvm-profdata merge (well, InstrProfWriter specifically) would not have deterministic output. Certainly the textual output iterates over FunctionData which is a StringMap of SmallDenseMaps, neither of which has deterministic iteration. The binary writing looks like it'd have similar issues - looping through these unordered maps & writing output (eg: InstrProfRecordWriterTrait::EmitData loops through the data in the same SmallDenseMap and writes content in t...
2011 Oct 16
2
[LLVMdev] Static destructor problem with recent HEAD
...asily fixed. However, I'm now getting a "pure virtual method called" exception (__cxa_pure_virtual) which I wasn't getting before. This is happening in the destructor of a statically-initialized object. (More precisely, it's blowing up in a BumpPtrAllocator, which is used by a StringMap, which is in turn a member of a statically initialized object.) Anyone know what might have changed recently that would cause this? -- -- Talin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111015/998210...
2015 Jul 11
2
[LLVMdev] StringMap question
Hello everyone! I'm a newcomer for the great LLVM project. I've started to explore the source code of LLVM project to become more familiar with it, and I've found some strange usage of move semantics in constructor of StringMapImpl( StringMapImpl &&RHS) {...} class in include/llvm/ADT/StringMap.h line 56. Could anyone explain me the purpose of zeroing of all fields of RHS in the body of this constructor if the declaration of the constructor uses move semantics? Here is the consturctor code below: *StringMapImpl(S...
2011 Oct 16
0
[LLVMdev] Static destructor problem with recent HEAD
..., I'm now > getting a "pure virtual method called" exception (__cxa_pure_virtual) which > I wasn't getting before. This is happening in the destructor of a > statically-initialized object. (More precisely, it's blowing up in a > BumpPtrAllocator, which is used by a StringMap, which is in turn a member of > a statically initialized object.) > > Anyone know what might have changed recently that would cause this? > It would help a lot to see the actual backtrace etc. ;] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http:/...
2016 Apr 28
2
Why duplicate "protected:" in SmallVector.h, StringMap.h?
In SmallVector.h: class SmallVectorBase { *protected:* void *BeginX, *EndX, *CapacityX; *protected:* SmallVectorBase(void *FirstEl, size_t Size) : BeginX(FirstEl), EndX(FirstEl), CapacityX((char*)FirstEl+Size) {} In StringMap.h: class StringMapImpl { *protected:* // Array of NumBuckets pointers to entries, null pointers are holes. // TheTable[NumBuckets] contains a sentinel value for easy iteration. Followed // by an array of the actual hash values as unsigned integers. StringMapEntryBase **TheTable; unsigned...
2007 Dec 08
1
[LLVMdev] documentation (or tutorial or example) of ADT/StringMap.h
Hello All Where is the documentation for ADT/StringMap.h (given into account that I am not quite familiar with stdc++ library)? In particular, I am surprised that key strings are specified by their start and end, I was expecting C-like strings, ie null terminated array of chars. Regards. -- Basile STARYNKEVITCH http://starynkevitch.net/Ba...
2017 Jun 30
2
llvm-profdata determinism
...ie <dblaikie at gmail.com> wrote: > >> I haven't tested it, but it looks to me like llvm-profdata merge (well, >> InstrProfWriter specifically) would not have deterministic output. >> >> Certainly the textual output iterates over FunctionData which is a >> StringMap of SmallDenseMaps, neither of which has deterministic iteration >> > > Does the iteration order of these maps depend on the order of hashes (of > strings for StringMap)? > Right - that's my understanding. (Some folks have started adding interesting things to LLVM to try to h...
2016 May 30
0
[cfe-dev] How to debug if LTO generate wrong code?
...#39;llvm'; did you mean 'StringSet'? > llvm::StringSwitch<unsigned>(LTOCodeModel) > ~~~~~~^~~~~~~~~~~~ > StringSet > /home/jshi19/llvm-3.8.0.src/include/llvm/ADT/StringSet.h:23:9: note: 'StringSet' declared here > class StringSet : public llvm::StringMap<char, AllocatorTy> { > ^ > In file included from /home/jshi19/llvm-3.8.0.src/tools/gold/gold-plugin.cpp:16: > In file included from /home/jshi19/llvm-3.8.0.src/include/llvm/ADT/DenseSet.h:17: > In file included from /home/jshi19/llvm-3.8.0.src/include/llvm/ADT/DenseMap.h:1...
2013 Oct 22
0
[LLVMdev] An enhancement for MCJIT::getFunctionAddress
Hi Jim, Clearly searching for name should not be linear in modules but with a map of some kind. After compilation to IR each module has a StringMap symbol table. After compiling to MC and loading the object file, the dynamic linker has a StringMap symbol table for all loaded modules. In the usual use case you'll load module(s) into MCJIT and then compile / link them and all is well, no linear search. The linear-search use case happens wh...
2018 Jul 04
4
[PATCH 0/3] v2v: Implement MAC address to network/bridge mapping.
Deep in the discussion of this bug, unfortunately mostly in private comments: https://bugzilla.redhat.com/show_bug.cgi?id=1594515 we decided it'd be more flexible for RHV if we had a way to map individual NICs to target networks and bridges. This can be done by adding a new --mac option so you can specify the exact mapping you need: $ virt-v2v [...] \ --mac
2017 Jun 30
0
llvm-profdata determinism
...>> wrote: >> >>> I haven't tested it, but it looks to me like llvm-profdata merge (well, >>> InstrProfWriter specifically) would not have deterministic output. >>> >>> Certainly the textual output iterates over FunctionData which is a >>> StringMap of SmallDenseMaps, neither of which has deterministic iteration >>> >> >> Does the iteration order of these maps depend on the order of hashes (of >> strings for StringMap)? >> > > Right - that's my understanding. > > (Some folks have started adding...
2016 May 30
0
[cfe-dev] How to debug if LTO generate wrong code?
...witch' in namespace 'llvm'; did you mean 'StringSet'? llvm::StringSwitch<unsigned>(LTOCodeModel) ~~~~~~^~~~~~~~~~~~ StringSet /home/jshi19/llvm-3.8.0.src/include/llvm/ADT/StringSet.h:23:9: note: 'StringSet' declared here class StringSet : public llvm::StringMap<char, AllocatorTy> { ^ In file included from /home/jshi19/llvm-3.8.0.src/tools/gold/gold-plugin.cpp:16: In file included from /home/jshi19/llvm-3.8.0.src/include/llvm/ADT/DenseSet.h:17: In file included from /home/jshi19/llvm-3.8.0.src/include/llvm/ADT/DenseMap.h:17: In file included...
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...Failure(_HEAP_FAILURE_TYPE FailureType, void * HeapAddress, void * Address, void * Param1, void * Param2, void * Param3) Line 158 C ntdll.dll!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...
2010 Oct 29
1
[LLVMdev] LLVM program compile error w/ gcc 4.5 but not 4.4
...I cannot test GCC 3.3.5 nor clang (on the Solaris10) though, since my code requires C++0x features not available in either package. This is the error: In file included from /waflhome/trapni/local/include/llvm/Support/Allocator.h:17:0, from /waflhome/trapni/local/include/llvm/ADT/StringMap.h:18, from /waflhome/trapni/local/include/llvm/PassRegistry.h:20, from /waflhome/trapni/local/include/llvm/PassSupport.h:25, from /waflhome/trapni/local/include/llvm/Pass.h:366, from /waflhome/trapni/local/include/llvm/PassManager....