Displaying 1 result from an estimated 1 matches for "opcodepair".
2004 Oct 25
2
[LLVMdev] hash_map issues with Visual Studio
...hashing
functions is different, the default implementation works for 99% of all
the cases and the ADT/HashExtras.h file is not necessary.
BUT there is one place where llvm defines it's own hashing function, in
include/llvm/Target/TargetSchedInfo.h
template <> struct hash<llvm::OpCodePair> {
size_t operator()(const llvm::OpCodePair& pair) const {
return hash<long>()(pair.val);
}
};
which for Visual Studio can be replaced with:
const size_t hash_value(const llvm::OpCodePair& pair) {
return hash_value((long)pair.val);
}
however,...