search for: size_type

Displaying 20 results from an estimated 34 matches for "size_type".

2017 Jan 16
4
[RFC 0/2] Propose a new pointer trait.
Hi, I'm part of an engineering team doing research on persistent memory support and we have stumbled upon an interesting problem. The issue is, we would like to be able to use the standard library containers in a persistent memory context (think NVDIMM-N). What I mean is that you allocate a container from said memory, use it like you normally would. After the application terminates, expectedly
2004 Dec 13
6
[LLVMdev] misc. patches
...s of my functions using different memory areas for global variables - it's also useful in other dynamic recompilation scenarios. Next the warnings.patch file contains some minor modification to make Visual Studio shut up (and possibly to make LLVM more 64bit friendly). I chose to typedef a size_type on the LLVM containers that try to mimic the std:: containers, while in the other case I just made a simple cast. Finally the leaks.patch file contains a destructor for the JITMemoryManager that frees system memory and a minor modification to how one particular singleton object gets instantiate...
2004 Dec 14
0
[LLVMdev] misc. patches
...ent memory > areas for global variables - it's also useful in other dynamic > recompilation scenarios. > > Next the warnings.patch file contains some minor modification to make > Visual Studio shut up (and possibly to make LLVM more 64bit friendly). I > chose to typedef a size_type on the LLVM containers that try to mimic > the std:: containers, while in the other case I just made a simple cast. > > Finally the leaks.patch file contains a destructor for the > JITMemoryManager that frees system memory and a minor modification to > how one particular singleto...
2018 Mar 22
2
ARM Backend BuildMI operand issues
...ng I noticed is that using ARM::tB results in the following error: .../include/llvm/ADT/SmallVector.h:154: const T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type) const [with T = llvm::MCOperand; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::const_reference = const llvm::MCOperand&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_typ...
2009 Sep 30
2
C++ parser for doc.get_data() result.
Xapians! Did anybody wrote and would like to share a routines that parse result from doc.get_data() into some key and pair values in C++ ? Code: Xapian::Document doc = i.get_document(); string data = doc.get_data(); mymap = parse_result(data); As you know the data string contain all the data within the document delimited by "=" sign and "\n" new line and needs to be parse
2018 Mar 22
0
ARM Backend BuildMI operand issues
...thing I noticed is that using ARM::tB results in the following error: > > .../include/llvm/ADT/SmallVector.h:154: const T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type) const [with T = llvm::MCOperand; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::const_reference = const llvm::MCOperand&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type = long unsigned int]...
2012 Jun 04
0
[LLVMdev] [cfe-dev] Inconsistent use of size_t in SmallVector.h
...ailing list. Leaving cfe-dev on the line so those who saw the initial mail can follow along. On Mon, Jun 4, 2012 at 2:14 PM, Will Wilson <will at indefiant.com> wrote: > Hi All, > > Just a quick question regarding SmallVector.h: It seems the interfaces > use a mixture of size_t, size_type and unsigned. Building on Win64 > this causes numerous implicit conversion warnings when accessing > anything by index. Is there any design/performance reason for this or > can it be changed so the interfaces in question make consistant use > size_type (currently typedef'd to size_...
2016 Dec 01
0
clang error: static_assert failed "Cache the hash code or make functors involved in hash code and bucket index computation default constructible"
...ame _Hashtable::const_iterator const_iterator; In file included from fail.cpp:1: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/unordered_map:48: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/unordered_map.h:124:36: error: member 'size_type' found in multiple base classes of different types typedef typename _Hashtable::size_type size_type; ^ In file included from fail.cpp:1: In file included from /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/unordered_map:48: /us...
2018 Mar 23
1
ARM Backend BuildMI operand issues
...noticed is that using ARM::tB results in the following error: >> >> .../include/llvm/ADT/SmallVector.h:154: const T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type) const [with T = llvm::MCOperand; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::const_reference = const llvm::MCOperand&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type = long unsigned int]...
2008 Dec 31
2
[LLVMdev] Win32 JIT issue + bug in ScheduleDAGSNodes.h?
...tandard, but at least VC++ 2008 Express Edition with >> _HAS_ITERATOR_DEBUGGING fails. >> >> > What is the assertion message? > > -bw > "vector subscript out of range" This is the asserting code from <vector> : const_reference operator[](size_type _Pos) const { // subscript nonmutable sequence #if _HAS_ITERATOR_DEBUGGING if (size() <= _Pos) { _DEBUG_ERROR("vector subscript out of range"); _SCL_SECURE_OUT_OF_RANGE; } #endif /* _HAS_ITERATOR_DEBUGGING */...
2018 Jun 30
2
Using BuildMI to insert Intel MPX instruction BNDCU failed
...build-llvm/bin/llc -o obj/simple.s obj/simple-opt.bc llc: /home/shenyouren/workspace/llvm/include/llvm/ADT/SmallVector.h:154: const T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type) const [with T = llvm::MCOperand; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::const_reference = const llvm::MCOperand&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type = long unsigned int]...
2013 Nov 23
2
[LLVMdev] Builds failing on lldb with the following for well over a week on a new build folder
...*** [tools/lldb/tools/driver/CMakeFiles/lldb.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/tools/lldb/tools/lldb-platform/lldb-platform.cpp:295:35: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare] for (int j = 0; j < listen_host_port.size(); j++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. Linking CXX executable ../../../../bin/lldb-platform ../../../../lib/liblldb.so.3.5: undefined...
2016 May 29
2
problems with objects larger than PTRDIFF_MAX
...largest > object size is not uncommon. For example, C++'s std::count doesn't return > a size_t but a iterator_traits<>::difference_type which is going to be a > ptrdiff_t for things like std::vector. Bug in C++? Because max_size() of std::vector<char> has the type `size_type` and returns SIZE_MAX in practice (even on x86-64). Let's see other examples (on x86-32): - glibc's malloc is happy to allocate more than PTRDIFF_MAX bytes (and this is important in practice so (at least some) glibc devs are reluctant to "fix" it); - clang has a compile-time...
2008 Dec 31
0
[LLVMdev] Win32 JIT issue + bug in ScheduleDAGSNodes.h?
...Express Edition with >>> _HAS_ITERATOR_DEBUGGING fails. >>> >>> >> What is the assertion message? >> >> > "vector subscript out of range" > > This is the asserting code from <vector> : > > > const_reference operator[](size_type _Pos) const > { // subscript nonmutable sequence > > #if _HAS_ITERATOR_DEBUGGING > if (size() <= _Pos) > { > _DEBUG_ERROR("vector subscript out of range"); > _SCL_SECURE_OUT_OF_RANGE; > } > #endif /...
2013 Nov 25
0
[LLVMdev] Builds failing on lldb with the following for well over a week on a new build folder
...ols/driver/CMakeFiles/lldb.dir/all] Error 2 > make[1]: *** Waiting for unfinished jobs.... > /home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/tools/lldb/tools/lldb-platform/lldb-platform.cpp:295:35: > warning: comparison of integers of different > signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare] > for (int j = 0; j < listen_host_port.size(); j++) > ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~ > 1 warning generated. > Linking CXX executable ../../../../bin/lldb-platform > ../../../../lib/lib...
2018 Dec 01
2
Restrict global constructors to base ISA
...9 cryptest.exe`_GLOBAL__sub_I_chacha_avx.cpp at string:1322, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) frame #0: 0x000000010016ec49 cryptest.exe`_GLOBAL__sub_I_chacha_avx.cpp at string:1322 1319 { 1320 size_type (&__a)[__n_words] = __r_.first().__r.__words; 1321 for (unsigned __i = 0; __i < __n_words; ++__i) -> 1322 __a[__i] = 0; 1323 } 1324 1325 template <size_type __a> static And: (lldb) disass cryptest.exe`_GLOBAL__sub_I_chacha_avx.cp...
2016 May 29
0
problems with objects larger than PTRDIFF_MAX
...on. For example, C++'s std::count doesn't >> return >> a size_t but a iterator_traits<>::difference_type which is going to be a >> ptrdiff_t for things like std::vector. >> > > Bug in C++? Because max_size() of std::vector<char> has the type > `size_type` and returns SIZE_MAX in practice (even on x86-64). > Some folks in the C++ community believe that using unsigned types in those places was the wrong decision. > > Let's see other examples (on x86-32): > > - glibc's malloc is happy to allocate more than PTRDIFF_MAX bytes (...
2002 Jan 14
1
trouble using R Mathlib as standalone
...******************************************************** #include "lattice.hh" #include "mh.hh" #define MATHLIB_STANDALONE #include <Rmath.h> /* random sample from proposal distribution q-gibbs */ double q_gibbs_rand(Cube& cube, double& beta, vector<double>::size_type& t) { vector<double> ctr = ((0.5)*(cube.down + cube.up)).coord; vector<double>::size_type hsize = ctr.size(); double a, u, y; if(t == 0) a = beta*ctr[t+1]; else if(t == hsize - 1) a = beta*ctr[t-1]; else a = beta*(ctr[t-1] + ctr[t+1]); GetRNGstate(); u...
2018 Jun 26
2
MachineFunction Instructions Pass using Segment Registers
...instructions give the following error > > clang-6.0: /LLVM6.0.0/llvm/include/llvm/ADT/SmallVector.h:154: const > T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> > >::operator[](llvm::SmallVectorTemplateCommon<T, > <template-parameter-1-2> >::size_type) const [with T = > llvm::MCOperand; <template-parameter-1-2> = void; > llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> > >::const_reference = const llvm::MCOperand&; > llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> > >::size_...
2020 Jul 24
4
[libnbd PATCH 0/3] Expose server block size constraints
Necessary when writing a client that wants to avoid unnecessary EINVAL errors from sending unaligned requests. At some point, we may want to add synchronous convenience API wrappers that do request splitting or read-modify-write to obey server constraints while still appearing to the library client as accepting any possible request. But such a wrapper should only be synchronous and not copied to