search for: getpointersize

Displaying 18 results from an estimated 18 matches for "getpointersize".

2013 Jul 25
2
[LLVMdev] Status of getPointerSize()/getPointerTy() per address space?
Awesome! What will the requirements be for the target? Is it sufficient to just override getPointerTy and add appropriate data layout strings, or will more hooks be needed? On Thu, Jul 25, 2013 at 3:41 PM, Matt Arsenault <arsenm2 at gmail.com> wrote: > > On Jul 25, 2013, at 12:33 , Justin Holewinski <justin.holewinski at gmail.com> > wrote: > > > Looking through
2013 Jul 25
2
[LLVMdev] Status of getPointerSize()/getPointerTy() per address space?
Looking through recent additions, it looks like the infrastructure exists for targets to specify a per-address-space pointer size/type, but this does not seem to be used anywhere (SelectionDAGBuilder, legalizer, etc.). What is the status of this support? Is anyone actively working on it? -- Thanks, Justin Holewinski -------------- next part -------------- An HTML attachment was scrubbed...
2013 Jul 25
0
[LLVMdev] Status of getPointerSize()/getPointerTy() per address space?
On Jul 25, 2013, at 12:33 , Justin Holewinski <justin.holewinski at gmail.com> wrote: > Looking through recent additions, it looks like the infrastructure exists for targets to specify a per-address-space pointer size/type, but this does not seem to be used anywhere (SelectionDAGBuilder, legalizer, etc.). What is the status of this support? Is anyone actively working on it? >
2012 Oct 22
1
[LLVMdev] VMkit compilation error
...inter' llvm[1]: Compiling VmkitGCPrinter.cpp for Release+Asserts build (PIC) VmkitGCPrinter.cpp: In member function ‘virtual void {anonymous}::VmkitAOTGCMetadataPrinter::finishAssembly(llvm::AsmPrinter&)’: VmkitGCPrinter.cpp:292:63: error: no matching function for call to ‘llvm::DataLayout::getPointerSize() const’ VmkitGCPrinter.cpp:292:63: note: candidate is: .../llvm_investigation/llvm/include/llvm/DataLayout.h:250:12: note: unsigned int llvm::DataLayout::getPointerSize(unsigned int) const .../llvm_investigation/llvm/include/llvm/DataLayout.h:250:12: note: candidate expects 1 argument, 0 provided...
2008 Feb 04
0
[LLVMdev] Exception handling in JIT
...artFunction, EndFunction, ExceptionTable); > + > + return Result; > +} > + > + > +void JITDwarfEmitter::EmitFrameMoves(intptr_t BaseLabelPtr, > + const std::vector<MachineMove> > &Moves) { > + unsigned PointerSize = TD->getPointerSize(); > + int stackGrowth = stackGrowthDirection == > TargetFrameInfo::StackGrowsUp ? > + PointerSize : -PointerSize; > + bool IsLocal = BaseLabelPtr; > + > + for (unsigned i = 0, N = Moves.size(); i < N; ++i) { > + const MachineMove &Move = Moves[i]; >...
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:
2002 Nov 10
3
[LLVMdev] DSGraph questions
1. What is the difference between DSNodeHandle and DSNode? What do the functions getLink() and getSize() do? 2. In the previous email, you mentioned that we can use DSNode::getPointerSize() to get the number of links, But I checked the doxygen documentation, there is no such member for DSNode. 3. Previously I use the following code: for( df_iterator<DSNode*> I = df_begin(pnode), E=df_end(pnode); I!=E; ++i) { ... ; } and got lots of error messages when I compile. A...
2002 Nov 11
1
[LLVMdev] DSGraph questions
Dear Prof. Adve, I recently checked out the llvm using cvs update command under the llvm directory. But when I went to see the DSNode.h, there is no getPointerSize function. I checked the doxygen tree, it's there. So that means I didn't update my cvs tree correctly. Could you let me know how to update my CVS tree? Or there is a problem at somewhere else? Thanks, xiaodong On Sun, 10 Nov 2002, Vikram Adve wrote: > I'll try to answer these beca...
2012 Oct 20
1
[LLVMdev] VMKit: Problem compiling vmkit
...ter' llvm[1]: Compiling VmkitGCPrinter.cpp for Release+Asserts build (PIC) VmkitGCPrinter.cpp: In member function ‘virtual void {anonymous}::VmkitAOTGCMetadataPrinter::finishAssembly(llvm::AsmPrinter&)’: VmkitGCPrinter.cpp:292:63: error: no matching function for call to ‘llvm::DataLayout::getPointerSize() const’ VmkitGCPrinter.cpp:292:63: note: candidate is: /home/callum/vmkit/llvm/include/llvm/DataLayout.h:250:12: note: unsigned int llvm::DataLayout::getPointerSize(unsigned int) const /home/callum/vmkit/llvm/include/llvm/DataLayout.h:250:12: note: candidate expects 1 argument, 0 provided /bin/r...
2007 Dec 11
0
[LLVMdev] Exception handling in JIT
...PointerToGlobal(GlobalValue *GV, void *Reference, > bool NoNeedStub); > }; > } > > +void DwarfJITEmitter::EmitFrameMoves(intptr_t BaseLabelPtr, > + const > std::vector<MachineMove> &Moves) { > + unsigned PointerSize = TD.getPointerSize(); > + int stackGrowth = > + TM.getFrameInfo()->getStackGrowthDirection() == > + TargetFrameInfo::StackGrowsUp ? > + PointerSize : -PointerSize; > + // TODO bool IsLocal = BaseLabel && strcmp(BaseLabel, "label") > == 0; > + bool Is...
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
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
2002 Nov 08
2
[LLVMdev] Re: LLVMdev digest, Vol 1 #44 - 2 msgs
llvm, What is the best way to implement a traversal of the DS graph, starting at a scalar and processing all nodes to which the scalar allows access? Currently the links vector is not public and there is no apparent way to bound the getLink call (ie a getNumLinks call).... Dave
2002 Nov 10
0
[LLVMdev] DSGraph questions
...fset "Offset" from the current node. (think of each node as a struct, so there can be pointers at different byte offsets within the struct.) getSize() returns the max #bytes for any object folded into this node. > 2. In the previous email, you mentioned that we can use > DSNode::getPointerSize() to get the number of links, But I checked the > doxygen documentation, there is no such member for DSNode. Check the header file. The doxygen docs were a little out of date (but Chris has updated them now). > 3. Previously I use the following code: > for( df_iterator<DSNode*>...
2008 Oct 27
3
[LLVMdev] endian independence
>> I'm already working on this myself. Would you be interested in having >> this work contributed back to LLVM? > > If this were to better support target independent languages, it would > be very useful. If you're just trying to *reduce* the endianness > assumptions that leak through, I don't think it's a good approach. > There is just no way to solve
2009 May 06
4
[LLVMdev] Suggestion: Support union types in IR
Chris Lattner wrote: > On May 5, 2009, at 8:09 PM, Talin wrote: > > >> I wanted to mention, by the way, that my need/desire for this hasn't >> gone away :) >> >> And my wish list still includes support for something like uintptr_t >> - a >> primitive integer type that is defined to always be the same size as a >> pointer, however large or
2007 Dec 12
3
[LLVMdev] Exception handling in JIT
...void *Reference, >> bool NoNeedStub); >> }; >> } >> >> +void DwarfJITEmitter::EmitFrameMoves(intptr_t BaseLabelPtr, >> + const >> std::vector<MachineMove> &Moves) { >> + unsigned PointerSize = TD.getPointerSize(); >> + int stackGrowth = >> + TM.getFrameInfo()->getStackGrowthDirection() == >> + TargetFrameInfo::StackGrowsUp ? >> + PointerSize : -PointerSize; >> + // TODO bool IsLocal = BaseLabel && strcmp(BaseLabel, "label") >&g...
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...achine().getCodeModel() != CodeModel::Kernel) { + Offset = 0x280; + AddressSpace = 256; + return true; + } + } + } else if (Subtarget->isTargetDarwin()) { + // %gs:(192*sizeof(void*)) + AddressSpace = 256; + Offset = 192 * (Subtarget->getDataLayout()->getPointerSize()); + return true; + } + return false; +} + bool X86TargetLowering::isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const { assert(SrcAS != DestAS && "Expected different address spaces!"); diff --git a/lib/Target/X86/X86IS...