search for: ispod

Displaying 6 results from an estimated 6 matches for "ispod".

Did you mean: ipod
2009 Apr 01
1
[LLVMdev] Patches: Range insertion for DenseSet; definition of DenseMapInfo<char>
...!= E; ++I) + insert(*I); + } }; } // end namespace llvm Index: include/llvm/ADT/DenseMap.h =================================================================== --- include/llvm/ADT/DenseMap.h (revision 68214) +++ include/llvm/ADT/DenseMap.h (working copy) @@ -51,6 +51,17 @@ static bool isPod() { return true; } }; +// Provide DenseMapInfo for chars. +template<> struct DenseMapInfo<char> { + static inline char getEmptyKey() { return ~0; } + static inline char getTombstoneKey() { return ~0 - 1; } + static unsigned getHashValue(const char& Val) { return Val * 37; } +...
2007 Dec 11
0
[LLVMdev] Exception handling in JIT
...atic inline unsigned getEmptyKey() { return -1U; } > + static inline unsigned getTombstoneKey() { return -2U; } > + static unsigned getHashValue(const unsigned &Key) { return Key; } > + static bool isEqual(unsigned LHS, unsigned RHS) { return LHS == > RHS; } > + static bool isPod() { return true; } > +}; > + > +/// ActionEntry - Structure describing an entry in the actions table. > +struct ActionEntry { > + int ValueForTypeID; // The value to write - may not be equal to > the type id. > + int NextAction; > + struct ActionEntry *Previous; > +}...
2007 Dec 12
3
[LLVMdev] Exception handling in JIT
...getEmptyKey() { return -1U; } >> + static inline unsigned getTombstoneKey() { return -2U; } >> + static unsigned getHashValue(const unsigned &Key) { return Key; } >> + static bool isEqual(unsigned LHS, unsigned RHS) { return LHS == >> RHS; } >> + static bool isPod() { return true; } >> +}; >> + >> +/// ActionEntry - Structure describing an entry in the actions table. >> +struct ActionEntry { >> + int ValueForTypeID; // The value to write - may not be equal to >> the type id. >> + int NextAction; >> + struc...
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 Feb 04
0
[LLVMdev] Exception handling in JIT
...atic inline unsigned getEmptyKey() { return -1U; } > + static inline unsigned getTombstoneKey() { return -2U; } > + static unsigned getHashValue(const unsigned &Key) { return Key; } > + static bool isEqual(unsigned LHS, unsigned RHS) { return LHS == > RHS; } > + static bool isPod() { return true; } > +}; > + > +/// ActionEntry - Structure describing an entry in the actions table. > +struct ActionEntry { > + int ValueForTypeID; // The value to write - may not be equal to > the type id. > + int NextAction; > + struct ActionEntry *Previous; > +}...
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: