Home
last modified time | relevance | path

Searched refs:Opnd (Results 1 – 19 of 19) sorted by relevance

/openbsd/gnu/llvm/llvm/lib/MC/
H A DMCInstPrinter.cpp91 const MCOperand &Opnd = MI.getOperand(OpIdx); in matchAliasCondition() local
98 return Opnd.isImm() && Opnd.getImm() == int32_t(C.Value); in matchAliasCondition()
101 return Opnd.isReg() && Opnd.getReg() == C.Value; in matchAliasCondition()
104 return Opnd.isReg() && Opnd.getReg() == MI.getOperand(C.Value).getReg(); in matchAliasCondition()
107 return Opnd.isReg() && MRI.getRegClass(C.Value).contains(Opnd.getReg()); in matchAliasCondition()
110 return M.ValidateMCOperand(Opnd, *STI, C.Value); in matchAliasCondition()
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86FixupLEAs.cpp422 if (Opnd.isReg()) { in searchALUInst()
423 if (Opnd.getReg() == DestReg) { in searchALUInst()
424 if (Opnd.isDef() || !Opnd.isKill()) in searchALUInst()
470 if (!Opnd.isReg()) in checkRegUsage()
472 Register Reg = Opnd.getReg(); in checkRegUsage()
476 if (Opnd.isDef()) in checkRegUsage()
478 else if (Opnd.isKill()) in checkRegUsage()
479 *KilledBase = &Opnd; in checkRegUsage()
482 if (Opnd.isDef()) in checkRegUsage()
484 else if (Opnd.isKill()) in checkRegUsage()
[all …]
H A DX86FastISel.cpp2355 const Value *Opnd = nullptr; in X86SelectSelect() local
2358 case CmpInst::FCMP_FALSE: Opnd = I->getOperand(2); break; in X86SelectSelect()
2359 case CmpInst::FCMP_TRUE: Opnd = I->getOperand(1); break; in X86SelectSelect()
2362 if (Opnd) { in X86SelectSelect()
2363 Register OpReg = getRegForValue(Opnd); in X86SelectSelect()
/openbsd/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.h66 const auto *Opnd = Inst.getOperand(0)->stripPointerCasts(); in getreturnRVOperand() local
67 if (const auto *C = dyn_cast<CallInst>(Opnd)) in getreturnRVOperand()
69 return dyn_cast<InvokeInst>(Opnd); in getreturnRVOperand()
H A DObjCARCOpts.cpp876 for (Value *Opnd : PN->incoming_values()) in isInertARCValue()
877 if (!isInertARCValue(Opnd, VisitedPhis)) in isInertARCValue()
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp174 Value *Opnd = Inst->getOperand(Idx); in findMatInsertPt() local
175 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt()
454 Value *Opnd = Inst->getOperand(Idx); in collectConstantCandidates() local
457 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates()
463 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates()
478 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in collectConstantCandidates()
785 Value *Opnd = ConstUser.Inst->getOperand(ConstUser.OpndIdx); in emitBaseConstants() local
788 if (isa<ConstantInt>(Opnd)) { in emitBaseConstants()
797 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants()
819 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in emitBaseConstants()
H A DInferAddressSpaces.cpp239 unsigned getPredicatedAddrSpace(const Value &V, Value *Opnd) const;
873 Value *Opnd) const { in getPredicatedAddrSpace()
878 Opnd = Opnd->stripInBoundsOffsets(); in getPredicatedAddrSpace()
879 for (auto &AssumeVH : AC.assumptionsFor(Opnd)) { in getPredicatedAddrSpace()
H A DReassociate.cpp1285 static Value *createAndInstr(Instruction *InsertBefore, Value *Opnd, in createAndInstr() argument
1291 return Opnd; in createAndInstr()
1294 Opnd, ConstantInt::get(Opnd->getType(), ConstOpnd), "and.ra", in createAndInstr()
/openbsd/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFMISimplifyPatchable.cpp142 const MachineOperand &Opnd = DefInst->getOperand(0); in checkADDrr() local
143 if (Opnd.isReg() && Opnd.getReg() == MO.getReg()) in checkADDrr()
/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2889 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
2890 IRBuilder<> Builder(Opnd); in TruncBuilder()
2918 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
2945 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
3122 Value *createTrunc(Instruction *Opnd, Type *Ty);
4350 if (!Opnd) in canGetThrough()
4360 else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd))) in canGetThrough()
4361 OpndType = Opnd->getOperand(0)->getType(); in canGetThrough()
4505 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther() local
4515 if (isa<UndefValue>(Opnd)) { in promoteOperandForOther()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp1999 MCOperand Opnd; in processInstruction() local
2013 if (!Opnd.isImm()) in processInstruction()
2030 if (!Opnd.isImm()) in processInstruction()
2210 MCOperand Opnd; in processInstruction() local
2218 if (!Opnd.isImm()) in processInstruction()
2228 if (!Opnd.isImm()) in processInstruction()
2236 if (!Opnd.isImm()) in processInstruction()
2244 if (!Opnd.isImm()) in processInstruction()
2253 if (!Opnd.isImm()) in processInstruction()
2263 if (!Opnd.isImm()) in processInstruction()
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp616 for (const FAddend *Opnd : Opnds) { in createNaryFAdd() local
618 Value *V = createAddendVal(*Opnd, NeedNeg); in createNaryFAdd()
696 for (const FAddend *Opnd : Opnds) { in calcInstrNumber() local
697 if (Opnd->isConstant()) in calcInstrNumber()
702 if (isa<UndefValue>(Opnd->getSymVal())) in calcInstrNumber()
705 const FAddendCoef &CE = Opnd->getCoef(); in calcInstrNumber()
723 Value *FAddCombine::createAddendVal(const FAddend &Opnd, bool &NeedNeg) { in createAddendVal() argument
724 const FAddendCoef &Coeff = Opnd.getCoef(); in createAddendVal()
726 if (Opnd.isConstant()) { in createAddendVal()
731 Value *OpndVal = Opnd.getSymVal(); in createAddendVal()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/Disassembler/
H A DAMDGPUDisassembler.cpp59 addOperand(MCInst &Inst, const MCOperand& Opnd) { in addOperand() argument
60 Inst.addOperand(Opnd); in addOperand()
61 return Opnd.isValid() ? in addOperand()
/openbsd/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp1319 SDValue Opnd = Op->getOperand(++OpNo), In64; in lowerDSPIntr() local
1321 if (Opnd.getValueType() == MVT::i64) in lowerDSPIntr()
1322 In64 = initAccumulator(Opnd, DL, DAG); in lowerDSPIntr()
1324 Ops.push_back(Opnd); in lowerDSPIntr()
H A DMicroMips32r6InstrInfo.td1787 class JumpLinkMMR6<Instruction JumpInst, DAGOperand Opnd> :
1789 PseudoInstExpansion<(JumpInst Opnd:$target)>;
H A DMipsInstrInfo.td1604 class TailCall<Instruction JumpInst, DAGOperand Opnd> :
1606 PseudoInstExpansion<(JumpInst Opnd:$target)>;
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp2040 for (auto &Opnd : MI->uses()) { in selectLoad() local
2041 if (Opnd.isReg()) { in selectLoad()
2042 Reg = Opnd.getReg(); in selectLoad()
H A DAArch64ISelLowering.cpp15576 SDValue Opnd = V->getOperand(1); in performMulCombine() local
15579 std::swap(Opnd, MulOper); in performMulCombine()
15580 if (auto C = dyn_cast<ConstantSDNode>(Opnd)) in performMulCombine()
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp4899 for (const SDValue &Opnd : Op->ops()) in isKnownNeverNaN() local
4900 if (!isKnownNeverNaN(Opnd, SNaN, Depth + 1)) in isKnownNeverNaN()