Home
last modified time | relevance | path

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

12

/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()
DReassociate.cpp1136 static Value *createAndInstr(Instruction *InsertBefore, Value *Opnd, in createAndInstr() argument
1140 LLVMContext &Ctx = Opnd->getType()->getContext(); in createAndInstr()
1142 I = BinaryOperator::CreateAnd(Opnd, ConstantInt::get(Ctx, ConstOpnd), in createAndInstr()
1147 return Opnd; in createAndInstr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/
DObjCARC.h79 const auto *Opnd = Inst.getOperand(0)->stripPointerCasts(); in getreturnRVOperand() local
80 if (const auto *C = dyn_cast<CallInst>(Opnd)) in getreturnRVOperand()
82 return dyn_cast<InvokeInst>(Opnd); in getreturnRVOperand()
/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-7.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp162 Value *Opnd = Inst->getOperand(Idx); in findMatInsertPt() local
163 if (auto CastInst = dyn_cast<Instruction>(Opnd)) in findMatInsertPt()
380 Value *Opnd = Inst->getOperand(Idx); in collectConstantCandidates() local
383 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) { in collectConstantCandidates()
389 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in collectConstantCandidates()
404 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in collectConstantCandidates()
650 Value *Opnd = ConstUser.Inst->getOperand(ConstUser.OpndIdx); in emitBaseConstants() local
653 if (isa<ConstantInt>(Opnd)) { in emitBaseConstants()
662 if (auto CastInst = dyn_cast<Instruction>(Opnd)) { in emitBaseConstants()
684 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) { in emitBaseConstants()
DReassociate.cpp1159 static Value *createAndInstr(Instruction *InsertBefore, Value *Opnd, in createAndInstr() argument
1165 return Opnd; in createAndInstr()
1168 Opnd, ConstantInt::get(Opnd->getType(), ConstOpnd), "and.ra", in createAndInstr()
/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/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2233 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
2234 IRBuilder<> Builder(Opnd); in TruncBuilder()
2235 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder()
2258 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in SExtBuilder() argument
2261 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
2284 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in ZExtBuilder() argument
2287 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
2449 Value *createTrunc(Instruction *Opnd, Type *Ty);
2452 Value *createSExt(Instruction *Inst, Value *Opnd, Type *Ty);
2455 Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp712 for (const FAddend *Opnd : Opnds) { in createNaryFAdd() local
714 Value *V = createAddendVal(*Opnd, NeedNeg); in createNaryFAdd()
803 for (const FAddend *Opnd : Opnds) { in calcInstrNumber() local
804 if (Opnd->isConstant()) in calcInstrNumber()
809 if (isa<UndefValue>(Opnd->getSymVal())) in calcInstrNumber()
812 const FAddendCoef &CE = Opnd->getCoef(); in calcInstrNumber()
835 Value *FAddCombine::createAddendVal(const FAddend &Opnd, bool &NeedNeg) { in createAddendVal() argument
836 const FAddendCoef &Coeff = Opnd.getCoef(); in createAddendVal()
838 if (Opnd.isConstant()) { in createAddendVal()
843 Value *OpndVal = Opnd.getSymVal(); in createAddendVal()
/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-7.0/llvm/lib/Target/Mips/AsmParser/
DMipsAsmParser.cpp1941 MCOperand Opnd; in processInstruction() local
1954 Opnd = Inst.getOperand(1); in processInstruction()
1955 if (!Opnd.isImm()) in processInstruction()
1957 Imm = Opnd.getImm(); in processInstruction()
1971 Opnd = Inst.getOperand(2); in processInstruction()
1972 if (!Opnd.isImm()) in processInstruction()
1974 Imm = Opnd.getImm(); in processInstruction()
2190 MCOperand Opnd; in processInstruction() local
2197 Opnd = Inst.getOperand(0); in processInstruction()
2198 if (!Opnd.isImm()) in processInstruction()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/Disassembler/
DAMDGPUDisassembler.cpp58 addOperand(MCInst &Inst, const MCOperand& Opnd) { in addOperand() argument
59 Inst.addOperand(Opnd); in addOperand()
60 return Opnd.isValid() ? in addOperand()
/external/swiftshader/third_party/subzero/src/
DIceCfg.cpp640 auto *Opnd = Instr.getSrc(i); in localCSE() local
641 if (auto *Var = llvm::dyn_cast<Variable>(Opnd)) { in localCSE()
659 auto *Opnd = Instr.getSrc(i); in localCSE() local
660 if (auto *Var = llvm::dyn_cast<Variable>(Opnd)) { in localCSE()
DIceTargetLoweringX86BaseImpl.h146 const Inst *getProducerFor(const Operand *Opnd) const;
322 const Inst *BoolFolding<Traits>::getProducerFor(const Operand *Opnd) const {
323 auto *Var = llvm::dyn_cast<const Variable>(Opnd);
793 inline uint64_t getConstantMemoryOrder(Operand *Opnd) {
794 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd))
3503 inline bool isZero(const Operand *Opnd) {
3504 if (auto *C64 = llvm::dyn_cast<ConstantInteger64>(Opnd))
3506 if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(Opnd))
5940 void TargetX86Base<TraitsType>::doMockBoundsCheck(Operand *Opnd) {
5943 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()
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()
DIceTargetLoweringMIPS32.h876 const Inst *getProducerOf(const Operand *Opnd) const { in getProducerOf() argument
877 auto *Var = llvm::dyn_cast<Variable>(Opnd); in getProducerOf()
DIceTargetLoweringARM32.h1311 const Inst *getProducerOf(const Operand *Opnd) const { in getProducerOf() argument
1312 auto *Var = llvm::dyn_cast<Variable>(Opnd); in getProducerOf()
DIceAssemblerMIPS32.cpp143 bool encodeOperand(const Operand *Opnd, IValueT &Value, in encodeOperand() argument
146 if (const auto *Var = llvm::dyn_cast<Variable>(Opnd)) { in encodeOperand()
DIceTargetLoweringARM32.cpp4823 inline uint64_t getConstantMemoryOrder(Operand *Opnd) { in getConstantMemoryOrder() argument
4824 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd)) in getConstantMemoryOrder()
6247 bool operandNeedsGot(const Operand *Opnd) { in operandNeedsGot() argument
6248 if (llvm::isa<ConstantRelocatable>(Opnd)) { in operandNeedsGot()
6252 if (llvm::isa<ConstantFloat>(Opnd)) { in operandNeedsGot()
6254 return !OperandARM32FlexFpImm::canHoldImm(Opnd, &_); in operandNeedsGot()
6257 const auto *F64 = llvm::dyn_cast<ConstantDouble>(Opnd); in operandNeedsGot()
6260 return !OperandARM32FlexFpImm::canHoldImm(Opnd, &_) && in operandNeedsGot()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp2232 const Value *Opnd = nullptr; in X86SelectSelect() local
2235 case CmpInst::FCMP_FALSE: Opnd = I->getOperand(2); break; in X86SelectSelect()
2236 case CmpInst::FCMP_TRUE: Opnd = I->getOperand(1); break; in X86SelectSelect()
2239 if (Opnd) { in X86SelectSelect()
2240 unsigned OpReg = getRegForValue(Opnd); in X86SelectSelect()
2243 bool OpIsKill = hasTrivialKill(Opnd); in X86SelectSelect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86FastISel.cpp2381 const Value *Opnd = nullptr; in X86SelectSelect() local
2384 case CmpInst::FCMP_FALSE: Opnd = I->getOperand(2); break; in X86SelectSelect()
2385 case CmpInst::FCMP_TRUE: Opnd = I->getOperand(1); break; in X86SelectSelect()
2388 if (Opnd) { in X86SelectSelect()
2389 unsigned OpReg = getRegForValue(Opnd); in X86SelectSelect()
2392 bool OpIsKill = hasTrivialKill(Opnd); in X86SelectSelect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIInsertWaitcnts.cpp522 const MachineOperand &Opnd = MI->getOperand(OpNo); in setExpScore()
523 assert(TRI->isVGPR(*MRI, Opnd.getReg())); in setExpScore()

12