Home
last modified time | relevance | path

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

123

/external/llvm/lib/Analysis/
DInstructionSimplify.cpp85 if (BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS)) in ExpandBinOp() local
86 if (Op0->getOpcode() == OpcodeToExpand) { in ExpandBinOp()
88 Value *A = Op0->getOperand(0), *B = Op0->getOperand(1), *C = RHS; in ExpandBinOp()
147 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS); in FactorizeBinOp() local
150 if (!Op0 || Op0->getOpcode() != OpcodeToExtract || in FactorizeBinOp()
155 Value *A = Op0->getOperand(0), *B = Op0->getOperand(1); in FactorizeBinOp()
220 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS); in SimplifyAssociativeBinOp() local
224 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeBinOp()
225 Value *A = Op0->getOperand(0); in SimplifyAssociativeBinOp()
226 Value *B = Op0->getOperand(1); in SimplifyAssociativeBinOp()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp101 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitMul() local
103 if (Value *V = SimplifyMulInst(Op0, Op1, TD)) in visitMul()
110 return BinaryOperator::CreateNeg(Op0, I.getName()); in visitMul()
115 if (BinaryOperator *SI = dyn_cast<BinaryOperator>(Op0)) in visitMul()
123 Constant *NewCst = ConstantInt::get(Op0->getType(), Val.logBase2()); in visitMul()
124 BinaryOperator *Shl = BinaryOperator::CreateShl(Op0, NewCst); in visitMul()
132 if (Op0->hasOneUse() && in visitMul()
133 match(Op0, m_Add(m_Value(X), m_ConstantInt(C1)))) { in visitMul()
147 if (Op0->hasOneUse()) { in visitMul()
150 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul()
[all …]
DInstCombineAndOrXor.cpp728 Value *Op0 = LHS->getOperand(0), *Op1 = LHS->getOperand(1); in FoldAndOfICmps() local
731 return getICmpValue(isSigned, Code, Op0, Op1, Builder); in FoldAndOfICmps()
1035 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitAnd() local
1037 if (Value *V = SimplifyAndInst(Op0, Op1, TD)) in visitAnd()
1053 if (BinaryOperator *Op0I = dyn_cast<BinaryOperator>(Op0)) { in visitAnd()
1132 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd()
1145 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitAnd()
1148 if (isa<PHINode>(Op0)) in visitAnd()
1155 if (Value *Op0NotVal = dyn_castNotVal(Op0)) in visitAnd()
1157 if (Op0->hasOneUse() && Op1->hasOneUse()) { in visitAnd()
[all …]
DInstCombineShifts.cpp23 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in commonShiftTransforms() local
30 if (isa<Constant>(Op0)) in commonShiftTransforms()
36 if (Instruction *Res = FoldShiftByConstant(Op0, CUI, I)) in commonShiftTransforms()
302 Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, ConstantInt *Op1, in FoldShiftByConstant() argument
310 CanEvaluateShifted(Op0, Op1->getZExtValue(), isLeftShift, *this)) { in FoldShiftByConstant()
312 " to eliminate shift:\n IN: " << *Op0 << "\n SH: " << I <<"\n"); in FoldShiftByConstant()
315 GetShiftedValue(Op0, Op1->getZExtValue(), isLeftShift, *this)); in FoldShiftByConstant()
321 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
328 return ReplaceInstUsesWith(I, Constant::getNullValue(Op0->getType())); in FoldShiftByConstant()
335 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) in FoldShiftByConstant()
[all …]
DInstCombineAddSub.cpp530 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitSub() local
532 if (Value *V = SimplifySubInst(Op0, Op1, I.hasNoSignedWrap(), in visitSub()
542 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
549 return BinaryOperator::CreateXor(Op0, Op1); in visitSub()
552 if (match(Op0, m_AllOnes())) in visitSub()
555 if (ConstantInt *C = dyn_cast<ConstantInt>(Op0)) { in visitSub()
595 if (match(Op1, m_Add(m_Specific(Op0), m_Value(Y))) || in visitSub()
596 match(Op1, m_Add(m_Value(Y), m_Specific(Op0)))) in visitSub()
600 if (match(Op0, m_Sub(m_Specific(Op1), m_Value(Y)))) in visitSub()
611 return BinaryOperator::CreateAdd(Op0, in visitSub()
[all …]
DInstCombineCompares.cpp1775 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitICmpInst() local
1780 if (getComplexity(Op0) < getComplexity(Op1)) { in visitICmpInst()
1782 std::swap(Op0, Op1); in visitICmpInst()
1786 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, TD)) in visitICmpInst()
1789 Type *Ty = Op0->getType(); in visitICmpInst()
1796 Value *Xor = Builder->CreateXor(Op0, Op1, I.getName()+"tmp"); in visitICmpInst()
1800 return BinaryOperator::CreateXor(Op0, Op1); in visitICmpInst()
1803 std::swap(Op0, Op1); // Change icmp ugt -> icmp ult in visitICmpInst()
1806 Value *Not = Builder->CreateNot(Op0, I.getName()+"tmp"); in visitICmpInst()
1810 std::swap(Op0, Op1); // Change icmp sgt -> icmp slt in visitICmpInst()
[all …]
DInstructionCombining.cpp144 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(I.getOperand(0)); in SimplifyAssociativeOrCommutative() local
149 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
150 Value *A = Op0->getOperand(0); in SimplifyAssociativeOrCommutative()
151 Value *B = Op0->getOperand(1); in SimplifyAssociativeOrCommutative()
191 if (Op0 && Op0->getOpcode() == Opcode) { in SimplifyAssociativeOrCommutative()
192 Value *A = Op0->getOperand(0); in SimplifyAssociativeOrCommutative()
193 Value *B = Op0->getOperand(1); in SimplifyAssociativeOrCommutative()
232 if (Op0 && Op1 && in SimplifyAssociativeOrCommutative()
233 Op0->getOpcode() == Opcode && Op1->getOpcode() == Opcode && in SimplifyAssociativeOrCommutative()
234 isa<Constant>(Op0->getOperand(1)) && in SimplifyAssociativeOrCommutative()
[all …]
/external/llvm/include/llvm/CodeGen/
DFastISel.h155 unsigned Op0, bool Op0IsKill);
164 unsigned Op0, bool Op0IsKill,
174 unsigned Op0, bool Op0IsKill,
184 unsigned Op0, bool Op0IsKill,
194 unsigned Op0, bool Op0IsKill,
204 unsigned Op0, bool Op0IsKill,
234 unsigned Op0, bool Op0IsKill);
241 unsigned Op0, bool Op0IsKill,
249 unsigned Op0, bool Op0IsKill,
258 unsigned Op0, bool Op0IsKill,
[all …]
/external/llvm/lib/Target/CellSPU/
DSPUISelDAGToDAG.cpp270 SDValue Op0, Op1; in SelectInlineAsmMemoryOperand() local
274 if (!SelectDFormAddr(Op.getNode(), Op, Op0, Op1) in SelectInlineAsmMemoryOperand()
275 && !SelectAFormAddr(Op.getNode(), Op, Op0, Op1)) in SelectInlineAsmMemoryOperand()
276 SelectXFormAddr(Op.getNode(), Op, Op0, Op1); in SelectInlineAsmMemoryOperand()
279 if (!SelectDFormAddr(Op.getNode(), Op, Op0, Op1) in SelectInlineAsmMemoryOperand()
280 && !SelectAFormAddr(Op.getNode(), Op, Op0, Op1)) { in SelectInlineAsmMemoryOperand()
281 Op0 = Op; in SelectInlineAsmMemoryOperand()
289 SelectAddrIdxOnly(Op, Op, Op0, Op1); in SelectInlineAsmMemoryOperand()
294 OutOps.push_back(Op0); in SelectInlineAsmMemoryOperand()
347 SDValue Op0 = N.getOperand(0); in SelectAFormAddr() local
[all …]
DSPUISelLowering.cpp625 SDValue Op0 = basePtr.getOperand(0); in LowerLOAD() local
632 basePtr = DAG.getNode(SPUISD::IndirectAddr, dl, PtrVT, Op0, Op1); in LowerLOAD()
638 basePtr = DAG.getNode(SPUISD::IndirectAddr, dl, PtrVT, Op0, Op1); in LowerLOAD()
819 SDValue Op0 = basePtr.getOperand(0); in LowerSTORE() local
826 basePtr = DAG.getNode(SPUISD::IndirectAddr, dl, PtrVT, Op0, Op1); in LowerSTORE()
832 basePtr = DAG.getNode(SPUISD::IndirectAddr, dl, PtrVT, Op0, Op1); in LowerSTORE()
1940 SDValue Op0 = Op.getOperand(0); // Op0 = the scalar in LowerSCALAR_TO_VECTOR() local
1943 if (Op0.getNode()->getOpcode() == ISD::Constant) { in LowerSCALAR_TO_VECTOR()
1947 ConstantSDNode *CN = cast<ConstantSDNode>(Op0.getNode()); in LowerSCALAR_TO_VECTOR()
1972 switch (Op0.getValueType().getSimpleVT().SimpleTy) { in LowerSCALAR_TO_VECTOR()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp357 unsigned Op0 = getRegForValue(I->getOperand(0)); in SelectBinaryOp() local
358 if (Op0 == 0) // Unhandled operand. Halt "fast" selection and bail. in SelectBinaryOp()
375 unsigned ResultReg = FastEmit_ri_(VT.getSimpleVT(), ISDOpcode, Op0, in SelectBinaryOp()
387 ISDOpcode, Op0, Op0IsKill, CF); in SelectBinaryOp()
405 Op0, Op0IsKill, in SelectBinaryOp()
707 unsigned Op0 = getRegForValue(I->getOperand(0)); in SelectBitCast() local
708 if (Op0 == 0) in SelectBitCast()
723 ResultReg).addReg(Op0); in SelectBitCast()
730 ISD::BITCAST, Op0, Op0IsKill); in SelectBitCast()
841 const Value *Op0 = EVI->getOperand(0); in SelectExtractValue() local
[all …]
/external/llvm/include/llvm/Support/
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()
108 gep_type_end(Type *Op0, ArrayRef<T> A) { in gep_type_end() argument
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp1140 unsigned Op0 = getFPReg(MI->getOperand(NumOperands-2)); in handleTwoArgFP() local
1142 bool KillsOp0 = MI->killsRegister(X86::FP0+Op0); in handleTwoArgFP()
1150 if (Op0 != TOS && Op1 != TOS) { // No operand at TOS? in handleTwoArgFP()
1155 moveToTop(Op0, I); // Move dead operand to TOS. in handleTwoArgFP()
1156 TOS = Op0; in handleTwoArgFP()
1166 duplicateToTop(Op0, Dest, I); in handleTwoArgFP()
1167 Op0 = TOS = Dest; in handleTwoArgFP()
1174 duplicateToTop(Op0, Dest, I); in handleTwoArgFP()
1175 Op0 = TOS = Dest; in handleTwoArgFP()
1181 assert((TOS == Op0 || TOS == Op1) && (KillsOp0 || KillsOp1) && in handleTwoArgFP()
[all …]
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp546 Constant *Op0 = CE->getOperand(0); in getConstantValue() local
550 GenericValue Result = getConstantValue(Op0); in getConstantValue()
552 uint64_t Offset = TD->getIndexedOffset(Op0->getType(), Indices); in getConstantValue()
559 GenericValue GV = getConstantValue(Op0); in getConstantValue()
565 GenericValue GV = getConstantValue(Op0); in getConstantValue()
571 GenericValue GV = getConstantValue(Op0); in getConstantValue()
578 GenericValue GV = getConstantValue(Op0); in getConstantValue()
584 GenericValue GV = getConstantValue(Op0); in getConstantValue()
589 GenericValue GV = getConstantValue(Op0); in getConstantValue()
604 GenericValue GV = getConstantValue(Op0); in getConstantValue()
[all …]
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp113 unsigned Op0, bool Op0IsKill);
116 unsigned Op0, bool Op0IsKill,
120 unsigned Op0, bool Op0IsKill,
125 unsigned Op0, bool Op0IsKill,
129 unsigned Op0, bool Op0IsKill,
133 unsigned Op0, bool Op0IsKill,
144 unsigned Op0, bool Op0IsKill,
289 unsigned Op0, bool Op0IsKill) { in FastEmitInst_r() argument
295 .addReg(Op0, Op0IsKill * RegState::Kill)); in FastEmitInst_r()
298 .addReg(Op0, Op0IsKill * RegState::Kill)); in FastEmitInst_r()
[all …]
DARMLoadStoreOptimizer.cpp1412 bool CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1, DebugLoc &dl,
1491 ARMPreAllocLoadStoreOpt::CanFormLdStDWord(MachineInstr *Op0, MachineInstr *Op1, in CanFormLdStDWord() argument
1504 unsigned Opcode = Op0->getOpcode(); in CanFormLdStDWord()
1521 if (!Op0->hasOneMemOperand() || in CanFormLdStDWord()
1522 !(*Op0->memoperands_begin())->getValue() || in CanFormLdStDWord()
1523 (*Op0->memoperands_begin())->isVolatile()) in CanFormLdStDWord()
1526 unsigned Align = (*Op0->memoperands_begin())->getAlignment(); in CanFormLdStDWord()
1535 int OffImm = getMemoryOpOffset(Op0); in CanFormLdStDWord()
1552 EvenReg = Op0->getOperand(0).getReg(); in CanFormLdStDWord()
1556 BaseReg = Op0->getOperand(1).getReg(); in CanFormLdStDWord()
[all …]
/external/llvm/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp193 SDValue Op0, Op1; in SelectInlineAsmMemoryOperand() local
197 if (!SelectADDRrr(Op, Op0, Op1)) in SelectInlineAsmMemoryOperand()
198 SelectADDRri(Op, Op0, Op1); in SelectInlineAsmMemoryOperand()
202 OutOps.push_back(Op0); in SelectInlineAsmMemoryOperand()
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h77 Value *SimplifyShlInst(Value *Op0, Value *Op1, bool isNSW, bool isNUW,
82 Value *SimplifyLShrInst(Value *Op0, Value *Op1, bool isExact,
87 Value *SimplifyAShrInst(Value *Op0, Value *Op1, bool isExact,
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1222 GenericValue Op0 = getOperandValue(CE->getOperand(0), SF); in getConstantExprValue() local
1227 case Instruction::Add: Dest.IntVal = Op0.IntVal + Op1.IntVal; break; in getConstantExprValue()
1228 case Instruction::Sub: Dest.IntVal = Op0.IntVal - Op1.IntVal; break; in getConstantExprValue()
1229 case Instruction::Mul: Dest.IntVal = Op0.IntVal * Op1.IntVal; break; in getConstantExprValue()
1230 case Instruction::FAdd: executeFAddInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
1231 case Instruction::FSub: executeFSubInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
1232 case Instruction::FMul: executeFMulInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
1233 case Instruction::FDiv: executeFDivInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
1234 case Instruction::FRem: executeFRemInst(Dest, Op0, Op1, Ty); break; in getConstantExprValue()
1235 case Instruction::SDiv: Dest.IntVal = Op0.IntVal.sdiv(Op1.IntVal); break; in getConstantExprValue()
[all …]
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp141 Value *Op0 = C->getOperand(0); in processCmp() local
142 if (isa<Instruction>(Op0) && in processCmp()
143 cast<Instruction>(Op0)->getParent() == C->getParent()) in processCmp()
/external/llvm/lib/Target/PTX/
DPTXISelLowering.cpp146 SDValue Op0 = Op.getOperand(0); in LowerSETCC() local
160 return DAG.getNode(ISD::AND, dl, MVT::i1, Op0, Op1); in LowerSETCC()
163 return DAG.getNode(ISD::SETCC, dl, MVT::i1, Op0, Op1, Op2); in LowerSETCC()
/external/llvm/lib/AsmParser/
DLLParser.cpp3027 Value *Op0; in ParseBr() local
3029 if (ParseTypeAndValue(Op0, Loc, PFS)) return true; in ParseBr()
3031 if (BasicBlock *BB = dyn_cast<BasicBlock>(Op0)) { in ParseBr()
3036 if (Op0->getType() != Type::getInt1Ty(Context)) in ParseBr()
3045 Inst = BranchInst::Create(Op1, Op2, Op0); in ParseBr()
3343 Value *Op0, *Op1, *Op2; in ParseSelect() local
3344 if (ParseTypeAndValue(Op0, Loc, PFS) || in ParseSelect()
3351 if (const char *Reason = SelectInst::areInvalidOperands(Op0, Op1, Op2)) in ParseSelect()
3354 Inst = SelectInst::Create(Op0, Op1, Op2); in ParseSelect()
3380 Value *Op0, *Op1; in ParseExtractElement() local
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp376 SDValue Op0 = N->getOperand(0); in SelectBitfieldInsert() local
381 CurDAG->ComputeMaskedBits(Op0, APInt::getAllOnesValue(32), LKZ, LKO); in SelectBitfieldInsert()
388 unsigned Op0Opc = Op0.getOpcode(); in SelectBitfieldInsert()
397 if (Op0.getOperand(0).getOpcode() == ISD::SHL || in SelectBitfieldInsert()
398 Op0.getOperand(0).getOpcode() == ISD::SRL) { in SelectBitfieldInsert()
401 std::swap(Op0, Op1); in SelectBitfieldInsert()
409 std::swap(Op0, Op1); in SelectBitfieldInsert()
436 SDValue Ops[] = { Op0, Op1, getI32Imm(SH), getI32Imm(MB), in SelectBitfieldInsert()
/external/llvm/lib/Target/MSP430/
DMSP430ISelDAGToDAG.cpp288 SDValue Op0, Op1; in SelectInlineAsmMemoryOperand() local
292 if (!SelectAddr(Op, Op0, Op1)) in SelectInlineAsmMemoryOperand()
297 OutOps.push_back(Op0); in SelectInlineAsmMemoryOperand()
/external/llvm/lib/Target/Alpha/
DAlphaISelDAGToDAG.cpp157 SDValue Op0; in SelectInlineAsmMemoryOperand() local
161 Op0 = Op; in SelectInlineAsmMemoryOperand()
165 OutOps.push_back(Op0); in SelectInlineAsmMemoryOperand()

123