search for: sizetyp

Displaying 16 results from an estimated 16 matches for "sizetyp".

Did you mean: sizetype
2017 Apr 25
0
[vhost:vhost 6/19] drivers/net/virtio_net.c:2089:19: error: assignment of read-only location '*(ctx + (sizetype)rxq2vq(i))'
...74c124665ca2ff1bcf81b1b92a207f71a326742 builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>): drivers/net/virtio_net.c: In function 'virtnet_find_vqs': >> drivers/net/virtio_net.c:2089:19: error: assignment of read-only location '*(ctx + (sizetype)rxq2vq(i))' ctx[rxq2vq(i)] = true; ^ vim +2089 drivers/net/virtio_net.c 2083 callbacks[txq2vq(i)] = skb_xmit_done; 2084 sprintf(vi->rq[i].name, "input.%d", i); 2085 sprintf(vi->sq[i].name, "output.%d", i); 2086 names[rxq2...
2017 Apr 25
0
[vhost:vhost 6/19] drivers/net/virtio_net.c:2089:19: error: assignment of read-only location '*(ctx + (sizetype)rxq2vq(i))'
...74c124665ca2ff1bcf81b1b92a207f71a326742 builds fine. It only hurts bisectibility. All errors (new ones prefixed by >>): drivers/net/virtio_net.c: In function 'virtnet_find_vqs': >> drivers/net/virtio_net.c:2089:19: error: assignment of read-only location '*(ctx + (sizetype)rxq2vq(i))' ctx[rxq2vq(i)] = true; ^ vim +2089 drivers/net/virtio_net.c 2083 callbacks[txq2vq(i)] = skb_xmit_done; 2084 sprintf(vi->rq[i].name, "input.%d", i); 2085 sprintf(vi->sq[i].name, "output.%d", i); 2086 names[rxq2...
2016 Feb 07
3
[PATCH] strlen -> strnlen optimization
...// + // We ensure that there is only one user to avoid interfering with + // CSE. + if (!CI->hasOneUse() || !TLI->has(LibFunc::strnlen)) + return nullptr; + User *U = CI->user_back(); + ICmpInst *IC; + if (!(IC = dyn_cast<ICmpInst>(U))) + return nullptr; + IntegerType *SizeType = DL.getIntPtrType(B.GetInsertBlock()->getContext()); + Value *LHS = IC->getOperand(0), *RHS = IC->getOperand(1); + + ConstantInt *Con; + if (!((Con = dyn_cast<ConstantInt>(LHS)) || (Con = dyn_cast<ConstantInt>(RHS)))) + return nullptr; + uint64_t con_val = Con->getZ...
2011 Jun 24
1
[LLVMdev] ARM ATPCS ABI support
...m goal is definitely to go to aapcs. My question is more about bridging the gap until that is done and also providing compatibility with older binaries. Problem is that today Clang compiles FreeBSD code as apcs-gnu which is in my understanding wrong. Also clang fails to compile some C++ code as SizeType is defined as UnsignedLong for apcs-gnu (should be UnsignedInt).
2011 Jun 24
0
[LLVMdev] ARM ATPCS ABI support
> Both NetBSD and FreeBSD seems to use older ATPCS ABI standard. > As I can see it is not supported in LLVM. > > Seems that ATPCS is predecessor of AAPCS so I wonder how easy is > to implement it in LLVM/Clang... > > Is it worth efforts? Any thoughts? See http://gcc.gnu.org/ml/gcc/2010-05/msg00468.html : "Do they still want their OS to work on modern CPUs with any
2011 Jun 24
2
[LLVMdev] ARM ATPCS ABI support
Hi, Both NetBSD and FreeBSD seems to use older ATPCS ABI standard. As I can see it is not supported in LLVM. Seems that ATPCS is predecessor of AAPCS so I wonder how easy is to implement it in LLVM/Clang... Is it worth efforts? Any thoughts? Thanks, Damjan
2014 Oct 01
2
[LLVMdev] size_t?
We inject a typedef for size_t here: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.cpp?revision=218230&view=markup#l206 The typedef type is determined by calling getSizeType(). SizeType is (relevantly) calculated in two places: X86_64 http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?revision=218666&view=markup#l3512 X86_32 http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?revision=218666&view=markup#l3157 I don't see...
2008 Apr 17
1
[LLVMdev] Being able to know the jitted code-size before emitting
Thx again Evan for the review. Here's a new patch for the JIT in itself. The major changes are: 1) A JITMemoryManager now has a flag saying "I require to know the size of what you want to emit" 2) DwarfJITEmitter is augmented with GetSize* functions 3) JITEmitter::startFunction checks if the JITMemoryManager requires to know the size. If so, it computes it and gives it through the
2013 Aug 22
0
[LLVMdev] [RFC PATCH] X32 ABI support for Clang/compiler-rt (Clang patch)
...erWidth = PointerAlign = IsX32 ? 32 : 64; LongDoubleWidth = 128; LongDoubleAlign = 128; LargeArrayMinWidth = 128; LargeArrayAlign = 128; SuitableAlign = 128; - IntMaxType = SignedLong; - UIntMaxType = UnsignedLong; - Int64Type = SignedLong; + if (IsX32) { + SizeType = UnsignedInt; + PtrDiffType = SignedInt; + IntPtrType = SignedInt; + } else { + IntMaxType = SignedLong; + UIntMaxType = UnsignedLong; + Int64Type = SignedLong; + } RegParmMax = 6; - DescriptionString = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-...
2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...ypeIds.size(); I != M; ++I) { > + int TypeID = TypeIds[I]; > + assert(-1-TypeID < (int)FilterOffsets.size() && "Unknown > filter id!"); > + int ValueForTypeID = TypeID < 0 ? FilterOffsets[-1 - > TypeID] : TypeID; > + unsigned SizeTypeID = > AsmPrinter::SizeSLEB128(ValueForTypeID); > + > + int NextAction = SizeAction ? -(SizeAction + SizeTypeID) : 0; > + SizeAction = SizeTypeID + > AsmPrinter::SizeSLEB128(NextAction); > + SizeSiteActions += SizeAction; > + > + ActionEntry A...
2008 Feb 01
2
[LLVMdev] Exception handling in JIT
Dear all, Here's a new patch with Evan's comments (thx Evan!) and some cleanups. Now the (duplicated) exception handling code is in a new file: lib/ExecutionEngine/JIT/JITDwarfEmitter. This patch should work on linux/x86 and linux/ppc (tested). Nicolas -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: jit-exceptions.patch URL:
2013 Aug 22
7
[LLVMdev] [RFC PATCH] X32 ABI support for Clang/compiler-rt
Hi, I'm working on bringing up complete coverage for a Gentoo x32 "desktop" system. I've been cooking up quite a few patches for various packages to push upstream, but right now, the biggest blocker is the lack of support for building with/codegen targeting x32 in llvm/clang. Since the x32 patches were sent last year, I see support code has landed in LLVM, and basic handling of
2013 Aug 22
3
[LLVMdev] [NEW PATCH] X32 ABI support for Clang/compiler-rt (Clang patch)
...erWidth = PointerAlign = IsX32 ? 32 : 64; LongDoubleWidth = 128; LongDoubleAlign = 128; LargeArrayMinWidth = 128; LargeArrayAlign = 128; SuitableAlign = 128; - IntMaxType = SignedLong; - UIntMaxType = UnsignedLong; - Int64Type = SignedLong; + if (IsX32) { + SizeType = UnsignedInt; + PtrDiffType = SignedInt; + IntPtrType = SignedInt; + } else { + IntMaxType = SignedLong; + UIntMaxType = UnsignedLong; + Int64Type = SignedLong; + } RegParmMax = 6; - DescriptionString = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-...
2014 Oct 01
2
[LLVMdev] size_t?
I believe that we provide a definition of size_t inside the compiler itself when clang is in MSVC compatibility mode. On Tue, Sep 30, 2014 at 5:51 PM, Eric Mader <emader at gmx.us> wrote: > I did some more investigation of the size_t size error. I misunderstood > what was happening. It turns out that size_t is already defined before my > prefix header is included. I added the
2007 Dec 11
0
[LLVMdev] Exception handling in JIT
...ypeIds.size(); I != M; ++I) { > + int TypeID = TypeIds[I]; > + assert(-1-TypeID < (int)FilterOffsets.size() && "Unknown > filter id!"); > + int ValueForTypeID = TypeID < 0 ? FilterOffsets[-1 - > TypeID] : TypeID; > + unsigned SizeTypeID = AsmPrinter::SizeSLEB128 > (ValueForTypeID); > + > + int NextAction = SizeAction ? -(SizeAction + SizeTypeID) : 0; > + SizeAction = SizeTypeID + AsmPrinter::SizeSLEB128 > (NextAction); > + SizeSiteActions += SizeAction; > + > + ActionEntry A...
2007 Dec 10
2
[LLVMdev] Exception handling in JIT
Hi everyone, Here's a patch that enables exception handling when jitting. I've copy/pasted _many_code from lib/Codegen/DwarfWriter.cpp, so we may need to factorize it, but the functionality is there and I'm very happy with it :) lli should now be able to execute the output from llvm-gcc when using exceptions (the UnwindInst instruction is not involved in this patch). Just add the