Home
last modified time | relevance | path

Searched refs:Op0 (Results 1 – 25 of 69) sorted by relevance

123

/external/llvm/lib/Analysis/
DInstructionSimplify.cpp137 if (BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS)) in ExpandBinOp() local
138 if (Op0->getOpcode() == OpcodeToExpand) { in ExpandBinOp()
140 Value *A = Op0->getOperand(0), *B = Op0->getOperand(1), *C = RHS; in ExpandBinOp()
196 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS); in SimplifyAssociativeBinOp() local
200 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeBinOp()
201 Value *A = Op0->getOperand(0); in SimplifyAssociativeBinOp()
202 Value *B = Op0->getOperand(1); in SimplifyAssociativeBinOp()
242 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeBinOp()
243 Value *A = Op0->getOperand(0); in SimplifyAssociativeBinOp()
244 Value *B = Op0->getOperand(1); in SimplifyAssociativeBinOp()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp121 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitMul() local
126 if (Value *V = SimplifyMulInst(Op0, Op1, DL)) in visitMul()
133 return BinaryOperator::CreateNeg(Op0, I.getName()); in visitMul()
174 if (Op0->hasOneUse()) { in visitMul()
177 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul()
179 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
193 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitMul()
197 if (isa<PHINode>(Op0)) in visitMul()
205 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
215 if (Value *Op0v = dyn_castNegVal(Op0)) // -X * -Y = X*Y in visitMul()
[all …]
DInstCombineAndOrXor.cpp801 Value *Op0 = LHS->getOperand(0), *Op1 = LHS->getOperand(1); in FoldAndOfICmps() local
804 return getNewICmpValue(isSigned, Code, Op0, Op1, Builder); in FoldAndOfICmps()
1107 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitAnd() local
1112 if (Value *V = SimplifyAndInst(Op0, Op1, DL)) in visitAnd()
1128 if (BinaryOperator *Op0I = dyn_cast<BinaryOperator>(Op0)) { in visitAnd()
1207 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
1220 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitAnd()
1223 if (isa<PHINode>(Op0)) in visitAnd()
1230 if (Value *Op0NotVal = dyn_castNotVal(Op0)) in visitAnd()
1232 if (Op0->hasOneUse() && Op1->hasOneUse()) { in visitAnd()
[all …]
DInstCombineShifts.cpp26 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in commonShiftTransforms() local
33 if (isa<Constant>(Op0)) in commonShiftTransforms()
39 if (Instruction *Res = FoldShiftByConstant(Op0, CUI, I)) in commonShiftTransforms()
314 Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, Constant *Op1, in FoldShiftByConstant() argument
332 CanEvaluateShifted(Op0, COp1->getZExtValue(), isLeftShift, *this)) { in FoldShiftByConstant()
334 " to eliminate shift:\n IN: " << *Op0 << "\n SH: " << I <<"\n"); in FoldShiftByConstant()
337 GetShiftedValue(Op0, COp1->getZExtValue(), isLeftShift, *this)); in FoldShiftByConstant()
342 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
348 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) in FoldShiftByConstant()
355 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in FoldShiftByConstant()
[all …]
DInstCombineCompares.cpp2294 static bool swapMayExposeCSEOpportunities(const Value * Op0, in swapMayExposeCSEOpportunities() argument
2298 if (Op0->getType()->isPointerTy()) in swapMayExposeCSEOpportunities()
2308 for (const User *U : Op0->users()) { in swapMayExposeCSEOpportunities()
2316 if (BinOp->getOperand(Op1Idx) == Op0) { in swapMayExposeCSEOpportunities()
2329 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitICmpInst() local
2330 unsigned Op0Cplxity = getComplexity(Op0); in visitICmpInst()
2338 swapMayExposeCSEOpportunities(Op0, Op1))) { in visitICmpInst()
2340 std::swap(Op0, Op1); in visitICmpInst()
2344 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, DL)) in visitICmpInst()
2352 if (match(Op0, m_Select(m_Value(Cond), m_Value(SelectTrue), in visitICmpInst()
[all …]
DInstCombineAddSub.cpp1452 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitSub() local
1457 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub()
1467 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
1474 return BinaryOperator::CreateXor(Op0, Op1); in visitSub()
1477 if (match(Op0, m_AllOnes())) in visitSub()
1480 if (Constant *C = dyn_cast<Constant>(Op0)) { in visitSub()
1510 if (ConstantInt *C = dyn_cast<ConstantInt>(Op0)) { in visitSub()
1530 if (match(Op1, m_Add(m_Specific(Op0), m_Value(Y))) || in visitSub()
1531 match(Op1, m_Add(m_Value(Y), m_Specific(Op0)))) in visitSub()
1535 if (match(Op0, m_Sub(m_Specific(Op1), m_Value(Y)))) in visitSub()
[all …]
DInstructionCombining.cpp215 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(I.getOperand(0)); in SimplifyAssociativeOrCommutative() local
220 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
221 Value *A = Op0->getOperand(0); in SimplifyAssociativeOrCommutative()
222 Value *B = Op0->getOperand(1); in SimplifyAssociativeOrCommutative()
233 (!Op0 || (isa<BinaryOperator>(Op0) && Op0->hasNoSignedWrap()))) { in SimplifyAssociativeOrCommutative()
271 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
272 Value *A = Op0->getOperand(0); in SimplifyAssociativeOrCommutative()
273 Value *B = Op0->getOperand(1); in SimplifyAssociativeOrCommutative()
312 if (Op0 && Op1 && in SimplifyAssociativeOrCommutative()
313 Op0->getOpcode() == Opcode && Op1->getOpcode() == Opcode && in SimplifyAssociativeOrCommutative()
[all …]
/external/llvm/include/llvm/CodeGen/
DFastISel.h193 unsigned Op0, bool Op0IsKill);
200 unsigned Op0, bool Op0IsKill,
209 unsigned Op0, bool Op0IsKill,
218 unsigned Op0, bool Op0IsKill,
227 unsigned Op0, bool Op0IsKill,
238 unsigned Op0, bool Op0IsKill,
265 unsigned Op0, bool Op0IsKill);
271 unsigned Op0, bool Op0IsKill,
278 unsigned Op0, bool Op0IsKill,
286 unsigned Op0, bool Op0IsKill,
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp402 unsigned Op0 = getRegForValue(I->getOperand(0)); in SelectBinaryOp() local
403 if (Op0 == 0) // Unhandled operand. Halt "fast" selection and bail. in SelectBinaryOp()
427 unsigned ResultReg = FastEmit_ri_(VT.getSimpleVT(), ISDOpcode, Op0, in SelectBinaryOp()
439 ISDOpcode, Op0, Op0IsKill, CF); in SelectBinaryOp()
457 Op0, Op0IsKill, in SelectBinaryOp()
893 unsigned Op0 = getRegForValue(I->getOperand(0)); in SelectBitCast() local
894 if (Op0 == 0) in SelectBitCast()
909 TII.get(TargetOpcode::COPY), ResultReg).addReg(Op0); in SelectBitCast()
915 ResultReg = FastEmit_r(SrcVT, DstVT, ISD::BITCAST, Op0, Op0IsKill); in SelectBitCast()
1066 const Value *Op0 = EVI->getOperand(0); in SelectExtractValue() local
[all …]
DTargetLowering.cpp1512 SDValue Op0 = N0; in SimplifySetCC() local
1513 if (Op0.getOpcode() == ISD::TRUNCATE) in SimplifySetCC()
1514 Op0 = Op0.getOperand(0); in SimplifySetCC()
1516 if ((Op0.getOpcode() == ISD::XOR) && in SimplifySetCC()
1517 Op0.getOperand(0).getOpcode() == ISD::SETCC && in SimplifySetCC()
1518 Op0.getOperand(1).getOpcode() == ISD::SETCC) { in SimplifySetCC()
1521 return DAG.getSetCC(dl, VT, Op0.getOperand(0), Op0.getOperand(1), in SimplifySetCC()
1524 if (Op0.getOpcode() == ISD::AND && in SimplifySetCC()
1525 isa<ConstantSDNode>(Op0.getOperand(1)) && in SimplifySetCC()
1526 cast<ConstantSDNode>(Op0.getOperand(1))->getAPIntValue() == 1) { in SimplifySetCC()
[all …]
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp74 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 ()()
370 Scatterer Op0 = scatter(&I, I.getOperand(0)); in splitBinary() local
372 assert(Op0.size() == NumElems && "Mismatched binary operation"); in splitBinary()
377 Res[Elem] = Split(Builder, Op0[Elem], Op1[Elem], in splitBinary()
398 Scatterer Op0 = scatter(&SI, SI.getOperand(0)); in visitSelectInst() local
[all …]
DCorrelatedValuePropagation.cpp164 Value *Op0 = C->getOperand(0); in processCmp() local
165 if (isa<Instruction>(Op0) && in processCmp()
166 cast<Instruction>(Op0)->getParent() == C->getParent()) in processCmp()
/external/llvm/lib/Target/SystemZ/
DSystemZISelDAGToDAG.cpp293 SDNode *splitLargeImmediate(unsigned Opcode, SDNode *Node, SDValue Op0,
399 SDValue Op0, uint64_t Op1) { in expandDisp() argument
403 changeComponent(AM, IsBase, Op0); in expandDisp()
422 SDValue Op0 = N.getOperand(0); in expandAddress() local
425 unsigned Op0Code = Op0->getOpcode(); in expandAddress()
431 return expandAdjDynAlloc(AM, IsBase, Op0); in expandAddress()
435 cast<ConstantSDNode>(Op0)->getSExtValue()); in expandAddress()
437 return expandDisp(AM, IsBase, Op0, in expandAddress()
440 if (IsBase && expandIndex(AM, Op0, Op1)) in expandAddress()
936 SDValue Op0 = N->getOperand(I ^ 1); in tryRxSBG() local
[all …]
DSystemZISelLowering.cpp44 : Op0(Op0In), Op1(Op1In), Opcode(0), ICmpType(0), CCValid(0), CCMask(0) {} in Comparison()
47 SDValue Op0, Op1; member
1137 if (!C.Op0.hasOneUse() || in adjustSubwordCmp()
1138 C.Op0.getOpcode() != ISD::LOAD || in adjustSubwordCmp()
1143 auto *Load = cast<LoadSDNode>(C.Op0); in adjustSubwordCmp()
1188 if (C.Op0.getValueType() != MVT::i32 || in adjustSubwordCmp()
1190 C.Op0 = DAG.getExtLoad(ExtType, SDLoc(Load), MVT::i32, in adjustSubwordCmp()
1228 if (C.Op0.getValueType() == MVT::f128) in shouldSwapCmpOperands()
1250 if (isNaturalMemoryOperand(C.Op0, C.ICmpType) && C.Op0.hasOneUse()) { in shouldSwapCmpOperands()
1269 unsigned Opcode0 = C.Op0.getOpcode(); in shouldSwapCmpOperands()
[all …]
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp1167 unsigned Op0 = getFPReg(MI->getOperand(NumOperands-2)); in handleTwoArgFP() local
1169 bool KillsOp0 = MI->killsRegister(X86::FP0+Op0); in handleTwoArgFP()
1177 if (Op0 != TOS && Op1 != TOS) { // No operand at TOS? in handleTwoArgFP()
1182 moveToTop(Op0, I); // Move dead operand to TOS. in handleTwoArgFP()
1183 TOS = Op0; in handleTwoArgFP()
1193 duplicateToTop(Op0, Dest, I); in handleTwoArgFP()
1194 Op0 = TOS = Dest; in handleTwoArgFP()
1201 duplicateToTop(Op0, Dest, I); in handleTwoArgFP()
1202 Op0 = TOS = Dest; in handleTwoArgFP()
1208 assert((TOS == Op0 || TOS == Op1) && (KillsOp0 || KillsOp1) && in handleTwoArgFP()
[all …]
/external/llvm/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp202 SDValue Op0, Op1; in SelectInlineAsmMemoryOperand() local
206 if (!SelectADDRrr(Op, Op0, Op1)) in SelectInlineAsmMemoryOperand()
207 SelectADDRri(Op, Op0, Op1); in SelectInlineAsmMemoryOperand()
211 OutOps.push_back(Op0); in SelectInlineAsmMemoryOperand()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp625 Constant *Op0 = CE->getOperand(0); in getConstantValue() local
629 GenericValue Result = getConstantValue(Op0); in getConstantValue()
638 GenericValue GV = getConstantValue(Op0); in getConstantValue()
644 GenericValue GV = getConstantValue(Op0); in getConstantValue()
650 GenericValue GV = getConstantValue(Op0); in getConstantValue()
657 GenericValue GV = getConstantValue(Op0); in getConstantValue()
663 GenericValue GV = getConstantValue(Op0); in getConstantValue()
668 GenericValue GV = getConstantValue(Op0); in getConstantValue()
683 GenericValue GV = getConstantValue(Op0); in getConstantValue()
699 GenericValue GV = getConstantValue(Op0); in getConstantValue()
[all …]
/external/llvm/include/llvm/IR/
DGetElementPtrTypeIterator.h102 gep_type_begin(Type *Op0, ArrayRef<T> A) { in gep_type_begin() argument
103 return generic_gep_type_iterator<const T *>::begin(Op0, A.begin()); in gep_type_begin()
DPatternMatch.h1179 m_Intrinsic(const T0 &Op0) {
1180 return m_CombineAnd(m_Intrinsic<IntrID>(), m_Argument<0>(Op0));
1185 m_Intrinsic(const T0 &Op0, const T1 &Op1) {
1186 return m_CombineAnd(m_Intrinsic<IntrID>(Op0), m_Argument<1>(Op1));
1191 m_Intrinsic(const T0 &Op0, const T1 &Op1, const T2 &Op2) {
1192 return m_CombineAnd(m_Intrinsic<IntrID>(Op0, Op1), m_Argument<2>(Op2));
1197 m_Intrinsic(const T0 &Op0, const T1 &Op1, const T2 &Op2, const T3 &Op3) {
1198 return m_CombineAnd(m_Intrinsic<IntrID>(Op0, Op1, Op2), m_Argument<3>(Op3));
1204 m_BSwap(const Opnd0 &Op0) {
1205 return m_Intrinsic<Intrinsic::bswap>(Op0);
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp110 unsigned Op0, bool Op0IsKill);
113 unsigned Op0, bool Op0IsKill,
117 unsigned Op0, bool Op0IsKill,
122 unsigned Op0, bool Op0IsKill,
126 unsigned Op0, bool Op0IsKill,
288 unsigned Op0, bool Op0IsKill) { in FastEmitInst_r() argument
294 Op0 = constrainOperandRegClass(II, Op0, 1); in FastEmitInst_r()
297 ResultReg).addReg(Op0, Op0IsKill * RegState::Kill)); in FastEmitInst_r()
300 .addReg(Op0, Op0IsKill * RegState::Kill)); in FastEmitInst_r()
310 unsigned Op0, bool Op0IsKill, in FastEmitInst_rr() argument
[all …]
DARMLoadStoreOptimizer.cpp1780 bool CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1, DebugLoc &dl,
1859 static void concatenateMemOperands(MachineInstr *MI, MachineInstr *Op0, in concatenateMemOperands() argument
1862 size_t numMemRefs = (Op0->memoperands_end() - Op0->memoperands_begin()) in concatenateMemOperands()
1868 std::copy(Op0->memoperands_begin(), Op0->memoperands_end(), MemBegin); in concatenateMemOperands()
1875 ARMPreAllocLoadStoreOpt::CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1, in CanFormLdStDWord() argument
1888 unsigned Opcode = Op0->getOpcode(); in CanFormLdStDWord()
1908 if (!Op0->hasOneMemOperand() || in CanFormLdStDWord()
1909 (*Op0->memoperands_begin())->isVolatile()) in CanFormLdStDWord()
1912 unsigned Align = (*Op0->memoperands_begin())->getAlignment(); in CanFormLdStDWord()
1921 int OffImm = getMemoryOpOffset(Op0); in CanFormLdStDWord()
[all …]
/external/llvm/lib/Target/Mips/
DMipsSEISelLowering.cpp550 SDValue Op0 = N->getOperand(0); in performANDCombine() local
552 unsigned Op0Opcode = Op0->getOpcode(); in performANDCombine()
570 SDValue Op0Op2 = Op0->getOperand(2); in performANDCombine()
577 SDValue Ops[] = { Op0->getOperand(0), Op0->getOperand(1), Op0Op2 }; in performANDCombine()
578 DAG.MorphNodeTo(Op0.getNode(), MipsISD::VEXTRACT_ZEXT_ELT, in performANDCombine()
579 Op0->getVTList(), in performANDCombine()
580 makeArrayRef(Ops, Op0->getNumOperands())); in performANDCombine()
581 return Op0; in performANDCombine()
671 SDValue Op0 = N->getOperand(0); in performORCombine() local
674 if (Op0->getOpcode() == ISD::AND && Op1->getOpcode() == ISD::AND) { in performORCombine()
[all …]
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h134 Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW,
141 Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact,
148 Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact,
/external/llvm/lib/Target/AArch64/Utils/
DAArch64BaseInfo.cpp804 uint32_t Op0 = 3, Op1 = 0, CRn = 0, CRm = 0, Op2 = 0; in fromString() local
810 Bits = (Op0 << 14) | (Op1 << 11) | (CRn << 7) | (CRm << 3) | Op2; in fromString()
845 uint32_t Op0 = (Bits >> 14) & 0x3; in toString() local
853 if (Op0 != 3 || (CRn != 11 && CRn != 15)) { in toString()
858 assert(Op0 == 3 && (CRn == 11 || CRn == 15) && "Invalid generic sysreg"); in toString()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp2020 GenericValue Op0 = getOperandValue(CE->getOperand(0), SF); in getConstantExprValue() local
2025 case Instruction::Add: Dest.IntVal = Op0.IntVal + Op1.IntVal; break; in getConstantExprValue()
2026 case Instruction::Sub: Dest.IntVal = Op0.IntVal - Op1.IntVal; break; in getConstantExprValue()
2027 case Instruction::Mul: Dest.IntVal = Op0.IntVal * Op1.IntVal; break; in getConstantExprValue()
2028 case Instruction::FAdd: executeFAddInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2029 case Instruction::FSub: executeFSubInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2030 case Instruction::FMul: executeFMulInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2031 case Instruction::FDiv: executeFDivInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2032 case Instruction::FRem: executeFRemInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
2033 case Instruction::SDiv: Dest.IntVal = Op0.IntVal.sdiv(Op1.IntVal); break; in getConstantExprValue()
[all …]

123