Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCInstPrinter.cpp73 const MCOperand &Opnd = MI.getOperand(OpIdx); in matchAliasCondition() local
80 return Opnd.isImm() && Opnd.getImm() == int32_t(C.Value); in matchAliasCondition()
83 return Opnd.isReg() && Opnd.getReg() == C.Value; in matchAliasCondition()
86 return Opnd.isReg() && Opnd.getReg() == MI.getOperand(C.Value).getReg(); in matchAliasCondition()
89 return Opnd.isReg() && MRI.getRegClass(C.Value).contains(Opnd.getReg()); in matchAliasCondition()
92 return M.ValidateMCOperand(Opnd, *STI, C.Value); in matchAliasCondition()
/external/llvm-project/llvm/lib/MC/
DMCInstPrinter.cpp90 const MCOperand &Opnd = MI.getOperand(OpIdx); in matchAliasCondition() local
97 return Opnd.isImm() && Opnd.getImm() == int32_t(C.Value); in matchAliasCondition()
100 return Opnd.isReg() && Opnd.getReg() == C.Value; in matchAliasCondition()
103 return Opnd.isReg() && Opnd.getReg() == MI.getOperand(C.Value).getReg(); in matchAliasCondition()
106 return Opnd.isReg() && MRI.getRegClass(C.Value).contains(Opnd.getReg()); in matchAliasCondition()
109 return M.ValidateMCOperand(Opnd, *STI, C.Value); in matchAliasCondition()
/external/llvm-project/llvm/lib/Transforms/ObjCARC/
DObjCARC.h64 const auto *Opnd = Inst.getOperand(0)->stripPointerCasts(); in getreturnRVOperand() local
65 if (const auto *C = dyn_cast<CallInst>(Opnd)) in getreturnRVOperand()
67 return dyn_cast<InvokeInst>(Opnd); in getreturnRVOperand()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARC.h78 const auto *Opnd = Inst.getOperand(0)->stripPointerCasts(); in getreturnRVOperand() local
79 if (const auto *C = dyn_cast<CallInst>(Opnd)) in getreturnRVOperand()
81 return dyn_cast<InvokeInst>(Opnd); in getreturnRVOperand()
/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp123 Value *Opnd = Inst->getOperand(Idx); in findMatInsertPt() local
124 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt()
240 Value *Opnd = Inst->getOperand(Idx); in collectConstantCandidates() local
243 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates()
249 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates()
264 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in collectConstantCandidates()
490 Value *Opnd = ConstUser.Inst->getOperand(ConstUser.OpndIdx); in emitBaseConstants() local
493 if (isa<ConstantInt>(Opnd)) { in emitBaseConstants()
502 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants()
524 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in emitBaseConstants()
/external/llvm/lib/Target/AArch64/
DAArch64AddressTypePromotion.cpp167 const Instruction *Opnd = cast<Instruction>(Inst->getOperand(0)); in canGetThrough() local
170 Opnd->getOperand(0)->getType()->getIntegerBitWidth() && in canGetThrough()
320 Value *Opnd = Inst->getOperand(OpIdx); in propagateSignExtension() local
321 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) { in propagateSignExtension()
328 if (isa<UndefValue>(Opnd)) { in propagateSignExtension()
338 SExtForOpnd->setOperand(0, Opnd); in propagateSignExtension()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp175 Value *Opnd = Inst->getOperand(Idx); in findMatInsertPt() local
176 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt()
437 Value *Opnd = Inst->getOperand(Idx); in collectConstantCandidates() local
440 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates()
446 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates()
461 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in collectConstantCandidates()
767 Value *Opnd = ConstUser.Inst->getOperand(ConstUser.OpndIdx); in emitBaseConstants() local
770 if (isa<ConstantInt>(Opnd)) { in emitBaseConstants()
779 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants()
801 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in emitBaseConstants()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp175 Value *Opnd = Inst->getOperand(Idx); in findMatInsertPt() local
176 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt()
441 Value *Opnd = Inst->getOperand(Idx); in collectConstantCandidates() local
444 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates()
450 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates()
465 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in collectConstantCandidates()
772 Value *Opnd = ConstUser.Inst->getOperand(ConstUser.OpndIdx); in emitBaseConstants() local
775 if (isa<ConstantInt>(Opnd)) { in emitBaseConstants()
784 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants()
806 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in emitBaseConstants()
/external/llvm-project/llvm/lib/Target/BPF/
DBPFMISimplifyPatchable.cpp133 const MachineOperand &Opnd = DefInst->getOperand(0); in checkADDrr() local
134 if (Opnd.isReg() && Opnd.getReg() == I->getReg()) in checkADDrr()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2302 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
2303 IRBuilder<> Builder(Opnd); in TruncBuilder()
2304 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder()
2326 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in SExtBuilder() argument
2329 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
2351 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in ZExtBuilder() argument
2354 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
2494 Value *createTrunc(Instruction *Opnd, Type *Ty);
2496 Value *createSExt(Instruction *Inst, Value *Opnd, Type *Ty);
2498 Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
[all …]
/external/llvm/lib/Target/AMDGPU/Disassembler/
DAMDGPUDisassembler.cpp44 addOperand(MCInst &Inst, const MCOperand& Opnd) { in addOperand() argument
45 Inst.addOperand(Opnd); in addOperand()
46 return Opnd.isValid() ? in addOperand()
/external/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp1601 MCOperand Opnd; in processInstruction() local
1614 Opnd = Inst.getOperand(1); in processInstruction()
1615 if (!Opnd.isImm()) in processInstruction()
1617 Imm = Opnd.getImm(); in processInstruction()
1631 Opnd = Inst.getOperand(2); in processInstruction()
1632 if (!Opnd.isImm()) in processInstruction()
1634 Imm = Opnd.getImm(); in processInstruction()
1782 MCOperand Opnd; in processInstruction() local
1789 Opnd = Inst.getOperand(0); in processInstruction()
1790 if (!Opnd.isImm()) in processInstruction()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp702 for (const FAddend *Opnd : Opnds) { in createNaryFAdd() local
704 Value *V = createAddendVal(*Opnd, NeedNeg); in createNaryFAdd()
793 for (const FAddend *Opnd : Opnds) { in calcInstrNumber() local
794 if (Opnd->isConstant()) in calcInstrNumber()
797 const FAddendCoef &CE = Opnd->getCoef(); in calcInstrNumber()
820 Value *FAddCombine::createAddendVal(const FAddend &Opnd, bool &NeedNeg) { in createAddendVal() argument
821 const FAddendCoef &Coeff = Opnd.getCoef(); in createAddendVal()
823 if (Opnd.isConstant()) { in createAddendVal()
828 Value *OpndVal = Opnd.getSymVal(); in createAddendVal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2517 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
2518 IRBuilder<> Builder(Opnd); in TruncBuilder()
2519 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder()
2542 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in SExtBuilder() argument
2545 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
2568 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in ZExtBuilder() argument
2571 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
2748 Value *createTrunc(Instruction *Opnd, Type *Ty);
2751 Value *createSExt(Instruction *Inst, Value *Opnd, Type *Ty);
2754 Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2659 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
2660 IRBuilder<> Builder(Opnd); in TruncBuilder()
2662 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder()
2685 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in SExtBuilder() argument
2688 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
2711 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in ZExtBuilder() argument
2715 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
2893 Value *createTrunc(Instruction *Opnd, Type *Ty);
2896 Value *createSExt(Instruction *Inst, Value *Opnd, Type *Ty);
2899 Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp624 for (const FAddend *Opnd : Opnds) { in createNaryFAdd() local
626 Value *V = createAddendVal(*Opnd, NeedNeg); in createNaryFAdd()
708 for (const FAddend *Opnd : Opnds) { in calcInstrNumber() local
709 if (Opnd->isConstant()) in calcInstrNumber()
714 if (isa<UndefValue>(Opnd->getSymVal())) in calcInstrNumber()
717 const FAddendCoef &CE = Opnd->getCoef(); in calcInstrNumber()
740 Value *FAddCombine::createAddendVal(const FAddend &Opnd, bool &NeedNeg) { in createAddendVal() argument
741 const FAddendCoef &Coeff = Opnd.getCoef(); in createAddendVal()
743 if (Opnd.isConstant()) { in createAddendVal()
748 Value *OpndVal = Opnd.getSymVal(); in createAddendVal()
/external/llvm-project/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp2003 MCOperand Opnd; in processInstruction() local
2016 Opnd = Inst.getOperand(1); in processInstruction()
2017 if (!Opnd.isImm()) in processInstruction()
2019 Imm = Opnd.getImm(); in processInstruction()
2033 Opnd = Inst.getOperand(2); in processInstruction()
2034 if (!Opnd.isImm()) in processInstruction()
2036 Imm = Opnd.getImm(); in processInstruction()
2201 MCOperand Opnd; in processInstruction() local
2208 Opnd = Inst.getOperand(0); in processInstruction()
2209 if (!Opnd.isImm()) in processInstruction()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp1987 MCOperand Opnd; in processInstruction() local
2000 Opnd = Inst.getOperand(1); in processInstruction()
2001 if (!Opnd.isImm()) in processInstruction()
2003 Imm = Opnd.getImm(); in processInstruction()
2017 Opnd = Inst.getOperand(2); in processInstruction()
2018 if (!Opnd.isImm()) in processInstruction()
2020 Imm = Opnd.getImm(); in processInstruction()
2185 MCOperand Opnd; in processInstruction() local
2192 Opnd = Inst.getOperand(0); in processInstruction()
2193 if (!Opnd.isImm()) in processInstruction()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp624 for (const FAddend *Opnd : Opnds) { in createNaryFAdd() local
626 Value *V = createAddendVal(*Opnd, NeedNeg); in createNaryFAdd()
707 for (const FAddend *Opnd : Opnds) { in calcInstrNumber() local
708 if (Opnd->isConstant()) in calcInstrNumber()
713 if (isa<UndefValue>(Opnd->getSymVal())) in calcInstrNumber()
716 const FAddendCoef &CE = Opnd->getCoef(); in calcInstrNumber()
737 Value *FAddCombine::createAddendVal(const FAddend &Opnd, bool &NeedNeg) { in createAddendVal() argument
738 const FAddendCoef &Coeff = Opnd.getCoef(); in createAddendVal()
740 if (Opnd.isConstant()) { in createAddendVal()
745 Value *OpndVal = Opnd.getSymVal(); in createAddendVal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/Disassembler/
DAMDGPUDisassembler.cpp72 addOperand(MCInst &Inst, const MCOperand& Opnd) { in addOperand() argument
73 Inst.addOperand(Opnd); in addOperand()
74 return Opnd.isValid() ? in addOperand()
/external/swiftshader/third_party/subzero/src/
DIceCfg.cpp543 auto *Opnd = Instr.getSrc(i); in localCSE() local
544 if (auto *Var = llvm::dyn_cast<Variable>(Opnd)) { in localCSE()
562 auto *Opnd = Instr.getSrc(i); in localCSE() local
563 if (auto *Var = llvm::dyn_cast<Variable>(Opnd)) { in localCSE()
DIceCfgNode.cpp366 const Operand *Opnd) { in sameVarOrReg() argument
367 if (Var1 == Opnd) in sameVarOrReg()
369 const auto *Var2 = llvm::dyn_cast<Variable>(Opnd); in sameVarOrReg()
DIceTargetLoweringX86BaseImpl.h159 const Inst *getProducerFor(const Operand *Opnd) const;
335 const Inst *BoolFolding<Traits>::getProducerFor(const Operand *Opnd) const {
336 auto *Var = llvm::dyn_cast<const Variable>(Opnd);
791 inline uint64_t getConstantMemoryOrder(Operand *Opnd) {
792 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd))
3579 inline bool isZero(const Operand *Opnd) {
3580 if (auto *C64 = llvm::dyn_cast<ConstantInteger64>(Opnd))
3582 if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(Opnd))
6019 void TargetX86Base<TraitsType>::doMockBoundsCheck(Operand *Opnd) {
6022 if (auto *Mem = llvm::dyn_cast<X86OperandMem>(Opnd)) {
[all …]
DIceAssemblerARM32.cpp352 EncodedOperand encodeOperand(const Operand *Opnd, IValueT &Value, in encodeOperand() argument
355 if (const auto *Var = llvm::dyn_cast<Variable>(Opnd)) { in encodeOperand()
375 if (const auto *FlexImm = llvm::dyn_cast<OperandARM32FlexImm>(Opnd)) { in encodeOperand()
383 if (const auto *Const = llvm::dyn_cast<ConstantInteger32>(Opnd)) { in encodeOperand()
387 if (const auto *FlexReg = llvm::dyn_cast<OperandARM32FlexReg>(Opnd)) { in encodeOperand()
413 if (const auto *ShImm = llvm::dyn_cast<OperandARM32ShAmtImm>(Opnd)) { in encodeOperand()
480 EncodedOperand encodeAddress(const Operand *Opnd, IValueT &Value, in encodeAddress() argument
484 if (const auto *Var = llvm::dyn_cast<Variable>(Opnd)) { in encodeAddress()
497 if (const auto *Mem = llvm::dyn_cast<OperandARM32Mem>(Opnd)) { in encodeAddress()
/external/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/
DAMDGPUDisassembler.cpp73 addOperand(MCInst &Inst, const MCOperand& Opnd) { in addOperand() argument
74 Inst.addOperand(Opnd); in addOperand()
75 return Opnd.isValid() ? in addOperand()

123