Home
last modified time | relevance | path

Searched refs:Op1Idx (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/Target/AMDGPU/
DSIInstrInfo.cpp58 int Op1Idx = AMDGPU::getNamedOperandIdx(Opc1, OpName); in nodesHaveSameOperandValue() local
60 if (Op0Idx == -1 && Op1Idx == -1) in nodesHaveSameOperandValue()
64 if ((Op0Idx == -1 && Op1Idx != -1) || in nodesHaveSameOperandValue()
65 (Op1Idx == -1 && Op0Idx != -1)) in nodesHaveSameOperandValue()
73 --Op1Idx; in nodesHaveSameOperandValue()
75 return N0->getOperand(Op0Idx) == N1->getOperand(Op1Idx); in nodesHaveSameOperandValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIInstrInfo.cpp115 int Op1Idx = AMDGPU::getNamedOperandIdx(Opc1, OpName); in nodesHaveSameOperandValue() local
117 if (Op0Idx == -1 && Op1Idx == -1) in nodesHaveSameOperandValue()
121 if ((Op0Idx == -1 && Op1Idx != -1) || in nodesHaveSameOperandValue()
122 (Op1Idx == -1 && Op0Idx != -1)) in nodesHaveSameOperandValue()
130 --Op1Idx; in nodesHaveSameOperandValue()
132 return N0->getOperand(Op0Idx) == N1->getOperand(Op1Idx); in nodesHaveSameOperandValue()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp1427 unsigned Op1Idx = ~0U; in SinkThenElseCodeToEnd() local
1433 if (Op1Idx != ~0U || isa<Constant>(I1->getOperand(I)) || in SinkThenElseCodeToEnd()
1441 Op1Idx = I; in SinkThenElseCodeToEnd()
1450 if (Op1Idx != ~0U) { in SinkThenElseCodeToEnd()
1461 I1->setOperand(Op1Idx, NewPN); in SinkThenElseCodeToEnd()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2971 unsigned Op1Idx = 1; in swapMayExposeCSEOpportunities() local
2972 if (BinOp->getOperand(Op1Idx) == Op0) { in swapMayExposeCSEOpportunities()
2973 Op1Idx = 0; in swapMayExposeCSEOpportunities()
2976 if (BinOp->getOperand(Op1Idx) != Op1) in swapMayExposeCSEOpportunities()