| 2149 | |
| 2150 | |
| 2151 | bool HighLevelILInstruction::GetOperandIndexForUsage(HighLevelILOperandUsage usage, size_t& operandIndex) const |
| 2152 | { |
| 2153 | auto operationIter = HighLevelILInstructionBase::operationOperandIndex.find(operation); |
| 2154 | if (operationIter == HighLevelILInstructionBase::operationOperandIndex.end()) |
| 2155 | return false; |
| 2156 | auto usageIter = operationIter->second.find(usage); |
| 2157 | if (usageIter == operationIter->second.end()) |
| 2158 | return false; |
| 2159 | operandIndex = usageIter->second; |
| 2160 | return true; |
| 2161 | } |
| 2162 | |
| 2163 | |
| 2164 | HighLevelILInstruction HighLevelILInstruction::GetSourceExpr() const |