/external/llvm/lib/Target/XCore/Disassembler/ |
D | XCoreDisassembler.cpp | 241 Decode2OpInstruction(unsigned Insn, unsigned &Op1, unsigned &Op2) { in Decode2OpInstruction() argument 253 Op1 = (Op1High << 2) | fieldFromInstruction(Insn, 2, 2); in Decode2OpInstruction() 259 Decode3OpInstruction(unsigned Insn, unsigned &Op1, unsigned &Op2, in Decode3OpInstruction() argument 268 Op1 = (Op1High << 2) | fieldFromInstruction(Insn, 4, 2); in Decode3OpInstruction() 347 unsigned Op1, Op2; in Decode2RInstruction() local 348 DecodeStatus S = Decode2OpInstruction(Insn, Op1, Op2); in Decode2RInstruction() 352 DecodeGRRegsRegisterClass(Inst, Op1, Address, Decoder); in Decode2RInstruction() 360 unsigned Op1, Op2; in Decode2RImmInstruction() local 361 DecodeStatus S = Decode2OpInstruction(Insn, Op1, Op2); in Decode2RImmInstruction() 365 Inst.addOperand(MCOperand::createImm(Op1)); in Decode2RImmInstruction() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 177 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitMul() local 182 if (Value *V = SimplifyMulInst(Op0, Op1, DL, TLI, DT, AC)) in visitMul() 189 if (match(Op1, m_AllOnes())) { in visitMul() 243 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) { in visitMul() 269 if (isa<Constant>(Op1)) { in visitMul() 284 Value *Mul = Builder->CreateMul(C1, Op1); in visitMul() 288 return BinaryOperator::CreateAdd(Builder->CreateMul(X, Op1), Mul); in visitMul() 294 if (Value *Op1v = dyn_castNegVal(Op1)) { in visitMul() 298 match(Op1, m_NSWSub(m_Value(), m_Value()))) in visitMul() 307 Value *Op1C = Op1; in visitMul() [all …]
|
D | InstCombineShifts.cpp | 26 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in commonShiftTransforms() local 34 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms() 38 if (Constant *CUI = dyn_cast<Constant>(Op1)) in commonShiftTransforms() 46 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms() 50 Op1->getName()); in commonShiftTransforms() 321 Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, Constant *Op1, in FoldShiftByConstant() argument 326 if (ConstantDataVector *CV = dyn_cast<ConstantDataVector>(Op1)) in FoldShiftByConstant() 328 else if (ConstantVector *CV = dyn_cast<ConstantVector>(Op1)) in FoldShiftByConstant() 331 COp1 = dyn_cast<ConstantInt>(Op1); in FoldShiftByConstant() 359 ConstantExpr::getShl(BOOp, Op1)); in FoldShiftByConstant() [all …]
|
D | InstCombineAndOrXor.cpp | 890 Value *Op0 = LHS->getOperand(0), *Op1 = LHS->getOperand(1); in FoldAndOfICmps() local 893 return getNewICmpValue(isSigned, Code, Op0, Op1, Builder); in FoldAndOfICmps() 1217 Value *Op1 = I.getOperand(1); in matchDeMorgansLaws() local 1220 if (Value *Op1NotVal = dyn_castNotVal(Op1)) in matchDeMorgansLaws() 1221 if (Op0->hasOneUse() && Op1->hasOneUse()) { in matchDeMorgansLaws() 1234 match(Op1, m_OneUse(m_Xor(m_ZExt(m_Value(B)), m_Specific(C1))))) { in matchDeMorgansLaws() 1252 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitAnd() local 1257 if (Value *V = SimplifyAndInst(Op0, Op1, DL, TLI, DT, AC)) in visitAnd() 1272 if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(Op1)) { in visitAnd() 1387 match(Op1, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd() [all …]
|
D | InstCombineCompares.cpp | 2593 const Value * Op1) { in swapMayExposeCSEOpportunities() argument 2618 if (BinOp->getOperand(Op1Idx) != Op1) in swapMayExposeCSEOpportunities() 2743 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitICmpInst() local 2745 unsigned Op1Cplxity = getComplexity(Op1); in visitICmpInst() 2752 swapMayExposeCSEOpportunities(Op0, Op1))) { in visitICmpInst() 2754 std::swap(Op0, Op1); in visitICmpInst() 2759 SimplifyICmpInst(I.getPredicate(), Op0, Op1, DL, TLI, DT, AC, &I)) in visitICmpInst() 2764 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) in visitICmpInst() 2771 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst() 2775 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst() [all …]
|
D | InstCombineAddSub.cpp | 1493 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitSub() local 1498 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub() 1507 if (Value *V = dyn_castNegVal(Op1)) { in visitSub() 1510 if (const auto *BO = dyn_cast<BinaryOperator>(Op1)) { in visitSub() 1516 if (cast<Constant>(Op1)->isNotMinSignedValue() && I.hasNoSignedWrap()) in visitSub() 1524 return BinaryOperator::CreateXor(Op0, Op1); in visitSub() 1528 return BinaryOperator::CreateNot(Op1); in visitSub() 1533 if (match(Op1, m_Not(m_Value(X)))) in visitSub() 1537 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 1543 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub() [all …]
|
D | InstructionCombining.cpp | 202 BinaryOperator *Op1 = dyn_cast<BinaryOperator>(I.getOperand(1)); in SimplifyAssociativeOrCommutative() local 235 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative() 237 Value *B = Op1->getOperand(0); in SimplifyAssociativeOrCommutative() 238 Value *C = Op1->getOperand(1); in SimplifyAssociativeOrCommutative() 277 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative() 279 Value *B = Op1->getOperand(0); in SimplifyAssociativeOrCommutative() 280 Value *C = Op1->getOperand(1); in SimplifyAssociativeOrCommutative() 298 if (Op0 && Op1 && in SimplifyAssociativeOrCommutative() 299 Op0->getOpcode() == Opcode && Op1->getOpcode() == Opcode && in SimplifyAssociativeOrCommutative() 301 isa<Constant>(Op1->getOperand(1)) && in SimplifyAssociativeOrCommutative() [all …]
|
D | InstCombineCalls.cpp | 479 static Value *SimplifyX86insertq(IntrinsicInst &II, Value *Op0, Value *Op1, in SimplifyX86insertq() argument 529 Builder.CreateBitCast(Op1, ShufTy), in SimplifyX86insertq() 536 Constant *C1 = dyn_cast<Constant>(Op1); in SimplifyX86insertq() 565 Value *Args[] = {Op0, Op1, CILength, CIIndex}; in SimplifyX86insertq() 1209 Value *Op1 = II->getArgOperand(1); in visitCallInst() local 1211 unsigned VWidth1 = Op1->getType()->getVectorNumElements(); in visitCallInst() 1213 Op1->getType()->getPrimitiveSizeInBits() == 128 && VWidth0 == 2 && in visitCallInst() 1217 Constant *C1 = dyn_cast<Constant>(Op1); in visitCallInst() 1235 if (Value *V = SimplifyDemandedVectorEltsLow(Op1, VWidth1, 2)) { in visitCallInst() 1269 Value *Op1 = II->getArgOperand(1); in visitCallInst() local [all …]
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 171 if (BinaryOperator *Op1 = dyn_cast<BinaryOperator>(RHS)) in ExpandBinOp() local 172 if (Op1->getOpcode() == OpcodeToExpand) { in ExpandBinOp() 174 Value *A = LHS, *B = Op1->getOperand(0), *C = Op1->getOperand(1); in ExpandBinOp() 208 BinaryOperator *Op1 = dyn_cast<BinaryOperator>(RHS); in SimplifyAssociativeBinOp() local 230 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeBinOp() 232 Value *B = Op1->getOperand(0); in SimplifyAssociativeBinOp() 233 Value *C = Op1->getOperand(1); in SimplifyAssociativeBinOp() 272 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeBinOp() 274 Value *B = Op1->getOperand(0); in SimplifyAssociativeBinOp() 275 Value *C = Op1->getOperand(1); in SimplifyAssociativeBinOp() [all …]
|
D | ConstantFolding.cpp | 624 Constant *Op1, in SymbolicallyEvaluateBinop() argument 637 computeKnownBits(Op1, KnownZero1, KnownOne1, DL); in SymbolicallyEvaluateBinop() 644 return Op1; in SymbolicallyEvaluateBinop() 661 if (IsConstantOffsetFromGlobal(Op1, GV2, Offs2, DL) && GV1 == GV2) { in SymbolicallyEvaluateBinop() 1649 if (ConstantFP *Op1 = dyn_cast<ConstantFP>(Operands[0])) { in ConstantFoldScalarCall() local 1652 double Op1V = getValueAsDouble(Op1); in ConstantFoldScalarCall() 1655 if (Op2->getType() != Op1->getType()) in ConstantFoldScalarCall() 1663 APFloat V1 = Op1->getValueAPF(); in ConstantFoldScalarCall() 1670 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall() 1676 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonSplitDouble.cpp | 672 MachineOperand &Op1 = MI->getOperand(1); in splitImmediate() local 673 assert(Op0.isReg() && Op1.isImm()); in splitImmediate() 674 uint64_t V = Op1.getImm(); in splitImmediate() 700 MachineOperand &Op1 = MI->getOperand(1); in splitCombine() local 710 if (Op1.isImm()) { in splitCombine() 712 .addImm(Op1.getImm()); in splitCombine() 713 } else if (Op1.isReg()) { in splitCombine() 715 .addReg(Op1.getReg(), getRegState(Op1), Op1.getSubReg()); in splitCombine() 733 MachineOperand &Op1 = MI->getOperand(1); in splitExt() local 734 assert(Op0.isReg() && Op1.isReg()); in splitExt() [all …]
|
D | HexagonExpandPredSpillCode.cpp | 102 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 113 NewMI->addOperand(Op1); in runOnMachineFunction() 145 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 155 NewMI->addOperand(Op1); in runOnMachineFunction() 187 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 196 NewMI->addOperand(Op1); in runOnMachineFunction() 224 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 234 NewMI->addOperand(Op1); in runOnMachineFunction()
|
D | HexagonCopyToCombine.cpp | 121 const MachineOperand &Op1 = MI->getOperand(1); in isCombinableInstType() local 122 assert(Op0.isReg() && Op1.isReg()); in isCombinableInstType() 125 unsigned SrcReg = Op1.getReg(); in isCombinableInstType() 134 const MachineOperand &Op1 = MI->getOperand(1); in isCombinableInstType() local 141 if (!Op1.isImm() && Op1.getTargetFlags() != HexagonII::MO_NO_FLAG) in isCombinableInstType() 145 bool NotExt = Op1.isImm() && isInt<8>(Op1.getImm()); in isCombinableInstType()
|
/external/llvm/include/llvm/Target/ |
D | TargetSelectionDAGInfo.h | 51 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemcpy() argument 68 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemmove() argument 84 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemset() argument 97 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemcmp() argument 136 SDValue Op1, SDValue Op2, in EmitTargetCodeForStrcmp() argument
|
/external/llvm/lib/Target/X86/ |
D | X86OptimizeLEAs.cpp | 205 const MachineOperand *Op1 = &MI1.getOperand(N1 + X86::AddrDisp); in isSimilarMemOp() local 207 if (!isIdenticalOp(*Op1, *Op2)) { in isSimilarMemOp() 208 if (Op1->isImm() && Op2->isImm()) in isSimilarMemOp() 209 AddrDispShift = Op1->getImm() - Op2->getImm(); in isSimilarMemOp() 210 else if (Op1->isGlobal() && Op2->isGlobal() && in isSimilarMemOp() 211 Op1->getGlobal() == Op2->getGlobal()) in isSimilarMemOp() 212 AddrDispShift = Op1->getOffset() - Op2->getOffset(); in isSimilarMemOp()
|
D | X86FloatingPoint.cpp | 1141 unsigned Op1 = getFPReg(MI->getOperand(NumOperands-1)); in handleTwoArgFP() local 1143 bool KillsOp1 = MI->killsRegister(X86::FP0+Op1); in handleTwoArgFP() 1150 if (Op0 != TOS && Op1 != TOS) { // No operand at TOS? in handleTwoArgFP() 1158 moveToTop(Op1, I); in handleTwoArgFP() 1159 TOS = Op1; in handleTwoArgFP() 1181 assert((TOS == Op0 || TOS == Op1) && (KillsOp0 || KillsOp1) && in handleTwoArgFP() 1188 bool updateST0 = (TOS == Op0 && !KillsOp1) || (TOS == Op1 && !KillsOp0); in handleTwoArgFP() 1205 unsigned NotTOS = (TOS == Op0) ? Op1 : Op0; in handleTwoArgFP() 1213 if (KillsOp0 && KillsOp1 && Op0 != Op1) { in handleTwoArgFP() 1238 unsigned Op1 = getFPReg(MI->getOperand(NumOperands-1)); in handleCompareFP() local [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 74 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()() 76 return Builder.CreateFCmp(FCI.getPredicate(), Op0, Op1, Name); in operator ()() 85 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()() 87 return Builder.CreateICmp(ICI.getPredicate(), Op0, Op1, Name); in operator ()() 96 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()() 98 return Builder.CreateBinOp(BO.getOpcode(), Op0, Op1, Name); in operator ()() 382 Scatterer Op1 = scatter(&I, I.getOperand(1)); in splitBinary() local 384 assert(Op1.size() == NumElems && "Mismatched binary operation"); in splitBinary() 388 Res[Elem] = Split(Builder, Op0[Elem], Op1[Elem], in splitBinary() 401 Scatterer Op1 = scatter(&SI, SI.getOperand(1)); in visitSelectInst() local [all …]
|
D | CorrelatedValuePropagation.cpp | 195 Constant *Op1 = dyn_cast<Constant>(C->getOperand(1)); in processCmp() local 196 if (!Op1) return false; in processCmp() 208 LVI->getPredicateAt(C->getPredicate(), Op0, Op1, C); in processCmp() 347 Constant *Op1 = dyn_cast<Constant>(C->getOperand(1)); in getConstantAt() local 348 if (!Op1) return nullptr; in getConstantAt() 351 LVI->getPredicateAt(C->getPredicate(), Op0, Op1, At); in getConstantAt()
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAG.h | 647 SDValue getCALLSEQ_END(SDValue Chain, SDValue Op1, SDValue Op2, 652 Ops.push_back(Op1); 918 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2); 919 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, 921 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, 923 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, 932 SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, EVT VT, SDValue Op1); 934 SDValue Op1, SDValue Op2); 936 SDValue Op1, SDValue Op2, SDValue Op3); 947 EVT VT2, SDValue Op1); [all …]
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 179 ICToken Op1 = OperandStack.pop_back_val(); in execute() local 185 Val = Op1.second + Op2.second; in execute() 189 Val = Op1.second - Op2.second; in execute() 193 assert (Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() 195 Val = Op1.second * Op2.second; in execute() 199 assert (Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() 202 Val = Op1.second / Op2.second; in execute() 206 assert (Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() 208 Val = Op1.second | Op2.second; in execute() 212 assert(Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 735 SDValue Op1 = Op.getOperand(1); in ExpandSELECT() local 739 && Op1.getValueType() == Op2.getValueType() && "Invalid type"); in ExpandSELECT() 772 Op1 = DAG.getNode(ISD::BITCAST, DL, MaskTy, Op1); in ExpandSELECT() 779 Op1 = DAG.getNode(ISD::AND, DL, MaskTy, Op1, Mask); in ExpandSELECT() 781 SDValue Val = DAG.getNode(ISD::OR, DL, MaskTy, Op1, Op2); in ExpandSELECT() 932 SDValue Op1 = Op.getOperand(1); in ExpandVSELECT() local 947 TLI.getBooleanContents(Op1.getValueType()) != in ExpandVSELECT() 954 if (VT.getSizeInBits() != Op1.getValueType().getSizeInBits()) in ExpandVSELECT() 960 Op1 = DAG.getNode(ISD::BITCAST, DL, VT, Op1); in ExpandVSELECT() 967 Op1 = DAG.getNode(ISD::AND, DL, VT, Op1, Mask); in ExpandVSELECT() [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 45 : Op0(Op0In), Op1(Op1In), Opcode(0), ICmpType(0), CCValid(0), CCMask(0) {} in Comparison() 48 SDValue Op0, Op1; member 1545 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1.getNode()); in adjustZeroCmp() 1555 C.Op1 = DAG.getConstant(0, DL, C.Op1.getValueType()); in adjustZeroCmp() 1566 C.Op1.getOpcode() != ISD::Constant) in adjustSubwordCmp() 1577 auto *ConstOp1 = cast<ConstantSDNode>(C.Op1); in adjustSubwordCmp() 1624 if (C.Op1.getValueType() != MVT::i32 || in adjustSubwordCmp() 1626 C.Op1 = DAG.getConstant(Value, DL, MVT::i32); in adjustSubwordCmp() 1661 if (isa<ConstantFPSDNode>(C.Op1)) in shouldSwapCmpOperands() 1666 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1); in shouldSwapCmpOperands() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 1053 Value *Op1 = CI->getArgOperand(0); in optimizeCos() local 1054 if (BinaryOperator::isFNeg(Op1)) { in optimizeCos() 1055 BinaryOperator *BinExpr = cast<BinaryOperator>(Op1); in optimizeCos() 1101 Value *Op1 = CI->getArgOperand(0), *Op2 = CI->getArgOperand(1); in optimizePow() local 1102 if (ConstantFP *Op1C = dyn_cast<ConstantFP>(Op1)) { in optimizePow() 1108 hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp2, LibFunc::exp2f, in optimizePow() 1114 hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp10, LibFunc::exp10f, in optimizePow() 1130 if (auto *OpC = dyn_cast<CallInst>(Op1)) { in optimizePow() 1161 return EmitUnaryFloatFnCall(Op1, TLI->getName(LibFunc::sqrt), B, in optimizePow() 1170 Value *Sqrt = EmitUnaryFloatFnCall(Op1, "sqrt", B, Callee->getAttributes()); in optimizePow() [all …]
|
/external/llvm/lib/Target/BPF/MCTargetDesc/ |
D | BPFMCCodeEmitter.cpp | 157 const MCOperand Op1 = MI.getOperand(1); in getMemoryOpValue() local 158 assert(Op1.isReg() && "First operand is not register."); in getMemoryOpValue() 159 Encoding = MRI.getEncodingValue(Op1.getReg()); in getMemoryOpValue()
|
/external/opencv3/modules/cudev/include/opencv2/cudev/warp/detail/ |
D | reduce.hpp | 157 …class Op0, class Op1, class Op2, class Op3, class Op4, class Op5, class Op6, class Op7, class Op8,… 162 … const tuple<Op0, Op1, Op2, Op3, Op4, Op5, Op6, Op7, Op8, Op9>& op) in merge() argument 178 …class Op0, class Op1, class Op2, class Op3, class Op4, class Op5, class Op6, class Op7, class Op8,… 182 … const tuple<Op0, Op1, Op2, Op3, Op4, Op5, Op6, Op7, Op8, Op9>& op) in mergeShfl() argument
|