Lines Matching refs:left
67 function isSameOperandType(left: OperandType, right: OperandType): boolean {
68 return (left.constructor === right.constructor);
78 function basicOperandsEqual(left: OperandType, right: OperandType): boolean {
79 if (!isSameOperandType(left, right)) {
83 if (isVReg(left) && isVReg(right)) {
87 if (isImm(left) && isImm(right)) {
88 return left.value === right.value;
91 if (isLabel(left) && isLabel(right)) {
95 if (isId(left) && isId(right)) {
97 return left === right;
101 str += object2String(left);
107 export function basicChecker(left: IRNode, right: IRNode): boolean {
108 if (left.kind !== right.kind) {
109 console.log("left.kind:" + left.kind + " right.kind:" + right.kind);
113 const operandCount = left.operands.length;
115 const lop = left.operands[i];
119 console.log(left.operands[i]);