search for: idx2mbbcompare

Displaying 5 results from an estimated 5 matches for "idx2mbbcompare".

2008 Apr 02
4
[LLVMdev] Comparison mismatch causes assert using VStudio STL
Hola LLVMers, We saw a problem with some code in LiveIntervalAnalysis.h/.c which we've fixed locally. We'd like to get a patch to the mainline and want to know how you'd like it fixed. A couple of things come together to cause the problem: struct Idx2MBBCompare { bool operator()(const IdxMBBPair &LHS, const IdxMBBPair &RHS) const { return LHS.first < RHS.first; } This comparator function compares the first elements of the IdxMBBPair. This is in contrast to the default comparator for std::pairs, which compares the second ele...
2008 Feb 11
0
[LLVMdev] Some questions about live intervals
...i]; > } > > -namespace llvm { > - inline bool operator<(unsigned V, const IdxMBBPair &IM) { > - return V < IM.first; > - } > > - inline bool operator<(const IdxMBBPair &IM, unsigned V) { > - return IM.first < V; > - } > - > - struct Idx2MBBCompare { > - bool operator()(const IdxMBBPair &LHS, const IdxMBBPair &RHS) > const { > - return LHS.first < RHS.first; > - } > - }; > -} > - > Index: include/llvm/CodeGen/LiveIntervalAnalysis.h > ==========================================================...
2008 Feb 08
2
[LLVMdev] Some questions about live intervals
Hi Evan, Here is a patch for the LiveIntervalAnalysis that we discussed. --- Evan Cheng <evan.cheng at apple.com> schrieb: > > 1) What is the easiest way to understand which MBB a given > instruction index belongs to? All the required information is > available in the > > MBB2IdxMap of the LiveIntervalAnalysis class. Would it be useful > to add a small function
2008 Feb 11
2
[LLVMdev] Some questions about live intervals
...gt; - inline bool operator<(unsigned V, const IdxMBBPair &IM) { > > - return V < IM.first; > > - } > > > > - inline bool operator<(const IdxMBBPair &IM, unsigned V) { > > - return IM.first < V; > > - } > > - > > - struct Idx2MBBCompare { > > - bool operator()(const IdxMBBPair &LHS, const IdxMBBPair &RHS) > > > const { > > - return LHS.first < RHS.first; > > - } > > - }; > > -} > > - > > Index: include/llvm/CodeGen/LiveIntervalAnalysis.h > > ========...
2008 Feb 12
0
[LLVMdev] Some questions about live intervals
...tor<(unsigned V, const IdxMBBPair &IM) { >>> - return V < IM.first; >>> - } >>> >>> - inline bool operator<(const IdxMBBPair &IM, unsigned V) { >>> - return IM.first < V; >>> - } >>> - >>> - struct Idx2MBBCompare { >>> - bool operator()(const IdxMBBPair &LHS, const IdxMBBPair &RHS) >> >>> const { >>> - return LHS.first < RHS.first; >>> - } >>> - }; >>> -} >>> - >>> Index: include/llvm/CodeGen/LiveIntervalAna...