Displaying 7 results from an estimated 7 matches for "issmall".
2018 Jun 21
4
RFC: Should SmallVectors be smaller?
...ointer/4B on 32-bit; 2 pointers/16B on 64-bit) if users could afford to test for small-mode vs. large-mode.
The current scheme works out to something like this:
```
template <class T, size_t SmallCapacity>
struct SmallVector {
T *BeginX, *EndX, *CapacityX;
T Small[SmallCapacity];
bool isSmall() const { return BeginX == Small; }
T *begin() { return BeginX; }
T *end() { return EndX; }
size_t size() const { return EndX - BeginX; }
size_t capacity() const { return CapacityX - BeginX; }
};
```
In the past I used something more like:
```
template <class T, size_t SmallCapacity>...
2020 Jan 22
3
Crash in SmallVector with latest MSVC 2019 (debug mode)
Is anybody using the LLVM/clang/lldb compiled with the MSVC 2019
(x86-32bit) successfully?
I am getting crash in SmallVector at multiple places after a
llvm:SmallVector is being moved around in move constructor or move
operator=.
Not sure what is going on.
~SmallVectorImpl() {
if (!this->isSmall())
free(this->begin()); // <=== crash here, line 336 SmallVector.h
}
The crash occurs only with clang compile in debug mode. Release mode is
fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments...
2018 Jun 22
3
RFC: Should SmallVectors be smaller?
...time.
> -Chris
>
>
>>
>> The current scheme works out to something like this:
>> ```
>> template <class T, size_t SmallCapacity>
>> struct SmallVector {
>> T *BeginX, *EndX, *CapacityX;
>> T Small[SmallCapacity];
>>
>> bool isSmall() const { return BeginX == Small; }
>> T *begin() { return BeginX; }
>> T *end() { return EndX; }
>> size_t size() const { return EndX - BeginX; }
>> size_t capacity() const { return CapacityX - BeginX; }
>> };
>> ```
>>
>> In the past I used somethi...
2016 Jun 11
3
SegFault creating a ExecutionEngine
...gineKind::JIT )
Where module is a `llvm::Module*`. This is code I'm migrating from 3.3
to 3.8. Since the deletion error is happening during constructor I'm at
a bit of a loss as to what I'm doing wrong.
The stack trace from gdb is:
#0 0x00007ffff1195a02 in llvm::SmallPtrSetImplBase::isSmall (this=0x0)
at /opt/llvm/include/llvm/ADT/SmallPtrSet.h:128
#1 0x00007ffff11e37d3 in llvm::SmallPtrSetImplBase::erase_imp
(this=0x0, Ptr=0x68c200) at /opt/llvm/lib/Support/SmallPtrSet.cpp:78
#2 0x00007ffff14c9174 in llvm::SmallPtrSetImpl<llvm::Module*>::erase
(this=0x0, Ptr=0x68c200) at /opt...
2006 Nov 30
0
[765] trunk/wxruby2: Fixed item_data functions for ListCtrl, plus test
...;nbsp     2006-11-30 01:21:25 UTC (rev 765)
</span><span class="lines">@@ -19,7 +19,10 @@
</span><span class="cx"> # deprecated:
</span><span class="cx"> %ignore wxListCtrl::GetItemSpacing(bool isSmall) const;
</span><span class="cx">
</span><ins>+// dealt with below
</ins><span class="cx"> %ignore wxListCtrl::GetItem(wxListItem& info) const;
</span><ins>+%ignore wxListCtrl::GetItemData;
+%ignore wxListCtrl::SetItemData;
<...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...nbsp     2006-11-15 18:41:10 UTC (rev 740)
</span><span class="lines">@@ -19,16 +19,30 @@
</span><span class="cx"> # deprecated:
</span><span class="cx"> %ignore wxListCtrl::GetItemSpacing(bool isSmall) const;
</span><span class="cx">
</span><ins>+%ignore wxListCtrl::GetItem(wxListItem& info) const;
</ins><span class="cx">
</span><ins>+%extend wxListCtrl {
+ VALUE get_item(int row, int col = -1)
+ {
+  &am...
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.