| 1949 | |
| 1950 | |
| 1951 | bool MediumLevelILInstruction::GetOperandIndexForUsage(MediumLevelILOperandUsage usage, size_t& operandIndex) const |
| 1952 | { |
| 1953 | auto operationIter = MediumLevelILInstructionBase::operationOperandIndex.find(operation); |
| 1954 | if (operationIter == MediumLevelILInstructionBase::operationOperandIndex.end()) |
| 1955 | return false; |
| 1956 | auto usageIter = operationIter->second.find(usage); |
| 1957 | if (usageIter == operationIter->second.end()) |
| 1958 | return false; |
| 1959 | operandIndex = usageIter->second; |
| 1960 | return true; |
| 1961 | } |
| 1962 | |
| 1963 | |
| 1964 | MediumLevelILInstruction MediumLevelILInstruction::GetSourceExpr() const |