/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 | 170 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitMul() local 175 if (Value *V = SimplifyMulInst(Op0, Op1, DL, TLI, DT, AC)) in visitMul() 182 if (match(Op1, m_AllOnes())) { in visitMul() 232 if (ConstantInt *CI = dyn_cast<ConstantInt>(Op1)) { in visitMul() 258 if (isa<Constant>(Op1)) { in visitMul() 273 Value *Mul = Builder->CreateMul(C1, Op1); in visitMul() 277 return BinaryOperator::CreateAdd(Builder->CreateMul(X, Op1), Mul); in visitMul() 283 if (Value *Op1v = dyn_castNegVal(Op1)) { in visitMul() 287 match(Op1, m_NSWSub(m_Value(), m_Value()))) in visitMul() 296 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 | 892 Value *Op0 = LHS->getOperand(0), *Op1 = LHS->getOperand(1); in FoldAndOfICmps() local 895 return getNewICmpValue(isSigned, Code, Op0, Op1, Builder); in FoldAndOfICmps() 1207 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitAnd() local 1212 if (Value *V = SimplifyAndInst(Op0, Op1, DL, TLI, DT, AC)) in visitAnd() 1227 if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(Op1)) { in visitAnd() 1334 if (Value *Op1NotVal = dyn_castNotVal(Op1)) in visitAnd() 1335 if (Op0->hasOneUse() && Op1->hasOneUse()) { in visitAnd() 1345 match(Op1, m_Not(m_And(m_Value(C), m_Value(D)))) && in visitAnd() 1350 if (match(Op1, m_Or(m_Value(A), m_Value(B))) && in visitAnd() 1358 Value *tmpOp1 = Op1; in visitAnd() [all …]
|
D | InstCombineAddSub.cpp | 1506 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitSub() local 1511 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub() 1520 if (Value *V = dyn_castNegVal(Op1)) { in visitSub() 1523 if (const auto *BO = dyn_cast<BinaryOperator>(Op1)) { in visitSub() 1529 if (cast<Constant>(Op1)->isNotMinSignedValue() && I.hasNoSignedWrap()) in visitSub() 1537 return BinaryOperator::CreateXor(Op0, Op1); in visitSub() 1541 return BinaryOperator::CreateNot(Op1); in visitSub() 1546 if (match(Op1, m_Not(m_Value(X)))) in visitSub() 1550 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 1556 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub() [all …]
|
D | InstCombineCompares.cpp | 2500 const Value * Op1) { in swapMayExposeCSEOpportunities() argument 2525 if (BinOp->getOperand(Op1Idx) != Op1) in swapMayExposeCSEOpportunities() 2650 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitICmpInst() local 2652 unsigned Op1Cplxity = getComplexity(Op1); in visitICmpInst() 2659 swapMayExposeCSEOpportunities(Op0, Op1))) { in visitICmpInst() 2661 std::swap(Op0, Op1); in visitICmpInst() 2665 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, DL, TLI, DT, AC)) in visitICmpInst() 2670 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) in visitICmpInst() 2677 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst() 2681 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst() [all …]
|
D | InstructionCombining.cpp | 193 BinaryOperator *Op1 = dyn_cast<BinaryOperator>(I.getOperand(1)); in SimplifyAssociativeOrCommutative() local 226 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative() 228 Value *B = Op1->getOperand(0); in SimplifyAssociativeOrCommutative() 229 Value *C = Op1->getOperand(1); in SimplifyAssociativeOrCommutative() 268 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative() 270 Value *B = Op1->getOperand(0); in SimplifyAssociativeOrCommutative() 271 Value *C = Op1->getOperand(1); in SimplifyAssociativeOrCommutative() 289 if (Op0 && Op1 && in SimplifyAssociativeOrCommutative() 290 Op0->getOpcode() == Opcode && Op1->getOpcode() == Opcode && in SimplifyAssociativeOrCommutative() 292 isa<Constant>(Op1->getOperand(1)) && in SimplifyAssociativeOrCommutative() [all …]
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 170 if (BinaryOperator *Op1 = dyn_cast<BinaryOperator>(RHS)) in ExpandBinOp() local 171 if (Op1->getOpcode() == OpcodeToExpand) { in ExpandBinOp() 173 Value *A = LHS, *B = Op1->getOperand(0), *C = Op1->getOperand(1); in ExpandBinOp() 207 BinaryOperator *Op1 = dyn_cast<BinaryOperator>(RHS); in SimplifyAssociativeBinOp() local 229 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeBinOp() 231 Value *B = Op1->getOperand(0); in SimplifyAssociativeBinOp() 232 Value *C = Op1->getOperand(1); in SimplifyAssociativeBinOp() 271 if (Op1 && Op1->getOpcode() == Opcode) { in SimplifyAssociativeBinOp() 273 Value *B = Op1->getOperand(0); in SimplifyAssociativeBinOp() 274 Value *C = Op1->getOperand(1); in SimplifyAssociativeBinOp() [all …]
|
D | ConstantFolding.cpp | 621 Constant *Op1, in SymbolicallyEvaluateBinop() argument 634 computeKnownBits(Op1, KnownZero1, KnownOne1, DL); in SymbolicallyEvaluateBinop() 641 return Op1; in SymbolicallyEvaluateBinop() 658 if (IsConstantOffsetFromGlobal(Op1, GV2, Offs2, DL) && GV1 == GV2) { in SymbolicallyEvaluateBinop() 1597 if (ConstantFP *Op1 = dyn_cast<ConstantFP>(Operands[0])) { in ConstantFoldScalarCall() local 1600 double Op1V = getValueAsDouble(Op1); in ConstantFoldScalarCall() 1603 if (Op2->getType() != Op1->getType()) in ConstantFoldScalarCall() 1611 APFloat V1 = Op1->getValueAPF(); in ConstantFoldScalarCall() 1618 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall() 1624 const APFloat &C1 = Op1->getValueAPF(); in ConstantFoldScalarCall() [all …]
|
/external/llvm/include/llvm/Target/ |
D | TargetSelectionDAGInfo.h | 58 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemcpy() argument 75 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemmove() argument 91 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemset() argument 105 SDValue Op1, SDValue Op2, in EmitTargetCodeForMemcmp() argument 146 SDValue Op1, SDValue Op2, in EmitTargetCodeForStrcmp() argument
|
/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 ()() 376 Scatterer Op1 = scatter(&I, I.getOperand(1)); in splitBinary() local 378 assert(Op1.size() == NumElems && "Mismatched binary operation"); in splitBinary() 382 Res[Elem] = Split(Builder, Op0[Elem], Op1[Elem], in splitBinary() 395 Scatterer Op1 = scatter(&SI, SI.getOperand(1)); in visitSelectInst() local [all …]
|
D | CorrelatedValuePropagation.cpp | 172 Constant *Op1 = dyn_cast<Constant>(C->getOperand(1)); in processCmp() local 173 if (!Op1) return false; in processCmp() 179 C->getOperand(0), Op1, *PI, in processCmp() 186 C->getOperand(0), Op1, *PI, in processCmp()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonExpandPredSpillCode.cpp | 101 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 112 NewMI->addOperand(Op1); in runOnMachineFunction() 144 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 154 NewMI->addOperand(Op1); in runOnMachineFunction() 186 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 195 NewMI->addOperand(Op1); in runOnMachineFunction() 223 MachineOperand &Op1 = MI->getOperand(1); in runOnMachineFunction() local 233 NewMI->addOperand(Op1); in runOnMachineFunction()
|
D | HexagonCopyToCombine.cpp | 131 const MachineOperand &Op1 = MI->getOperand(1); in isCombinableInstType() local 138 if (!Op1.isImm() && Op1.getTargetFlags() != HexagonII::MO_NO_FLAG) in isCombinableInstType() 142 bool NotExt = Op1.isImm() && isInt<8>(Op1.getImm()); in isCombinableInstType()
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAG.h | 627 SDValue getCALLSEQ_END(SDValue Chain, SDValue Op1, SDValue Op2, 632 Ops.push_back(Op1); 880 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2); 881 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, 883 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, 885 SDNode *UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, 894 SDNode *SelectNodeTo(SDNode *N, unsigned TargetOpc, EVT VT, SDValue Op1); 896 SDValue Op1, SDValue Op2); 898 SDValue Op1, SDValue Op2, SDValue Op3); 909 EVT VT2, SDValue Op1); [all …]
|
D | FastISel.h | 342 bool Op0IsKill, unsigned Op1, bool Op1IsKill); 360 unsigned Op0, bool Op0IsKill, unsigned Op1, 396 bool Op0IsKill, unsigned Op1, bool Op1IsKill); 402 bool Op0IsKill, unsigned Op1, bool Op1IsKill, 427 bool Op0IsKill, unsigned Op1, bool Op1IsKill, 434 bool Op0IsKill, unsigned Op1, bool Op1IsKill,
|
/external/llvm/lib/Target/Sparc/ |
D | SparcISelDAGToDAG.cpp | 200 SDValue Op0, Op1; in SelectInlineAsmMemoryOperand() local 205 if (!SelectADDRrr(Op, Op0, Op1)) in SelectInlineAsmMemoryOperand() 206 SelectADDRri(Op, Op0, Op1); in SelectInlineAsmMemoryOperand() 211 OutOps.push_back(Op1); in SelectInlineAsmMemoryOperand()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 405 unsigned Op1 = getRegForValue(I->getOperand(1)); in selectBinaryOp() local 406 if (!Op1) in selectBinaryOp() 411 fastEmit_ri_(VT.getSimpleVT(), ISDOpcode, Op1, Op1IsKill, in selectBinaryOp() 465 unsigned Op1 = getRegForValue(I->getOperand(1)); in selectBinaryOp() local 466 if (!Op1) // Unhandled operand. Halt "fast" selection and bail. in selectBinaryOp() 472 ISDOpcode, Op0, Op0IsKill, Op1, Op1IsKill); in selectBinaryOp() 1742 bool Op0IsKill, unsigned Op1, in fastEmitInst_rr() argument 1748 Op1 = constrainOperandRegClass(II, Op1, II.getNumDefs() + 1); in fastEmitInst_rr() 1753 .addReg(Op1, getKillRegState(Op1IsKill)); in fastEmitInst_rr() 1757 .addReg(Op1, getKillRegState(Op1IsKill)); in fastEmitInst_rr() [all …]
|
D | LegalizeVectorOps.cpp | 711 SDValue Op1 = Op.getOperand(1); in ExpandSELECT() local 715 && Op1.getValueType() == Op2.getValueType() && "Invalid type"); in ExpandSELECT() 747 Op1 = DAG.getNode(ISD::BITCAST, DL, MaskTy, Op1); in ExpandSELECT() 754 Op1 = DAG.getNode(ISD::AND, DL, MaskTy, Op1, Mask); in ExpandSELECT() 756 SDValue Val = DAG.getNode(ISD::OR, DL, MaskTy, Op1, Op2); in ExpandSELECT() 888 SDValue Op1 = Op.getOperand(1); in ExpandVSELECT() local 903 TLI.getBooleanContents(Op1.getValueType()) != in ExpandVSELECT() 910 if (VT.getSizeInBits() != Op1.getValueType().getSizeInBits()) in ExpandVSELECT() 916 Op1 = DAG.getNode(ISD::BITCAST, DL, VT, Op1); in ExpandVSELECT() 923 Op1 = DAG.getNode(ISD::AND, DL, VT, Op1, Mask); in ExpandVSELECT() [all …]
|
/external/llvm/lib/Target/BPF/MCTargetDesc/ |
D | BPFMCCodeEmitter.cpp | 155 const MCOperand Op1 = MI.getOperand(1); in getMemoryOpValue() local 156 assert(Op1.isReg() && "First operand is not register."); in getMemoryOpValue() 157 Encoding = MRI.getEncodingValue(Op1.getReg()); in getMemoryOpValue()
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 175 ICToken Op1 = OperandStack.pop_back_val(); in execute() local 181 Val = Op1.second + Op2.second; in execute() 185 Val = Op1.second - Op2.second; in execute() 189 assert (Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() 191 Val = Op1.second * Op2.second; in execute() 195 assert (Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() 198 Val = Op1.second / Op2.second; in execute() 202 assert (Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() 204 Val = Op1.second | Op2.second; in execute() 208 assert (Op1.first == IC_IMM && Op2.first == IC_IMM && in execute() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86FloatingPoint.cpp | 1151 unsigned Op1 = getFPReg(MI->getOperand(NumOperands-1)); in handleTwoArgFP() local 1153 bool KillsOp1 = MI->killsRegister(X86::FP0+Op1); in handleTwoArgFP() 1160 if (Op0 != TOS && Op1 != TOS) { // No operand at TOS? in handleTwoArgFP() 1168 moveToTop(Op1, I); in handleTwoArgFP() 1169 TOS = Op1; in handleTwoArgFP() 1191 assert((TOS == Op0 || TOS == Op1) && (KillsOp0 || KillsOp1) && in handleTwoArgFP() 1198 bool updateST0 = (TOS == Op0 && !KillsOp1) || (TOS == Op1 && !KillsOp0); in handleTwoArgFP() 1216 unsigned NotTOS = (TOS == Op0) ? Op1 : Op0; in handleTwoArgFP() 1224 if (KillsOp0 && KillsOp1 && Op0 != Op1) { in handleTwoArgFP() 1249 unsigned Op1 = getFPReg(MI->getOperand(NumOperands-1)); in handleCompareFP() local [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 401 SDValue Op0, uint64_t Op1) { in expandDisp() argument 403 int64_t TestDisp = AM.Disp + Op1; in expandDisp() 425 SDValue Op1 = N.getOperand(1); in expandAddress() local 428 unsigned Op1Code = Op1->getOpcode(); in expandAddress() 431 return expandAdjDynAlloc(AM, IsBase, Op1); in expandAddress() 436 return expandDisp(AM, IsBase, Op1, in expandAddress() 440 cast<ConstantSDNode>(Op1)->getSExtValue()); in expandAddress() 442 if (IsBase && expandIndex(AM, Op0, Op1)) in expandAddress() 1070 if (auto *Op1 = dyn_cast<ConstantSDNode>(Node->getOperand(1))) { in Select() local 1071 uint64_t Val = Op1->getZExtValue(); in Select() [all …]
|
D | SystemZISelLowering.cpp | 45 : Op0(Op0In), Op1(Op1In), Opcode(0), ICmpType(0), CCValid(0), CCMask(0) {} in Comparison() 48 SDValue Op0, Op1; member 1186 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1.getNode()); in adjustZeroCmp() 1196 C.Op1 = DAG.getConstant(0, C.Op1.getValueType()); in adjustZeroCmp() 1207 C.Op1.getOpcode() != ISD::Constant) in adjustSubwordCmp() 1218 auto *ConstOp1 = cast<ConstantSDNode>(C.Op1); in adjustSubwordCmp() 1265 if (C.Op1.getValueType() != MVT::i32 || in adjustSubwordCmp() 1267 C.Op1 = DAG.getConstant(Value, MVT::i32); in adjustSubwordCmp() 1302 if (isa<ConstantFPSDNode>(C.Op1)) in shouldSwapCmpOperands() 1307 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1); in shouldSwapCmpOperands() [all …]
|
/external/llvm/lib/Target/AArch64/Utils/ |
D | AArch64BaseInfo.cpp | 837 uint32_t Op0 = 0, Op1 = 0, CRn = 0, CRm = 0, Op2 = 0; in fromString() local 840 Ops[2].getAsInteger(10, Op1); in fromString() 844 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2; in fromString() 869 uint32_t Op1 = (Bits >> 11) & 0x7; in toString() local 874 return "s" + utostr(Op0)+ "_" + utostr(Op1) + "_c" + utostr(CRn) in toString()
|