Home
last modified time | relevance | path

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

/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/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()
DAArch64FastISel.cpp1981 for (auto &Opnd : MI->uses()) { in selectLoad() local
1982 if (Opnd.isReg()) { in selectLoad()
1983 Reg = Opnd.getReg(); in selectLoad()
/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/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/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()
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.h1311 const Inst *getProducerOf(const Operand *Opnd) const { in getProducerOf() argument
1312 auto *Var = llvm::dyn_cast<Variable>(Opnd); in getProducerOf()
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()
DIceInstX86Base.h243 static void validateVectorAddrModeOpnd(const Operand *Opnd) { in validateVectorAddrModeOpnd()
244 if (llvm::isa<X86OperandMem>(Opnd) && isVectorType(Opnd->getType())) { in validateVectorAddrModeOpnd()
DIceTargetLoweringX86Base.h318 void doMockBoundsCheck(Operand *Opnd) override;
DIceTargetLoweringMIPS32.cpp258 inline uint64_t getConstantMemoryOrder(Operand *Opnd) { in getConstantMemoryOrder() argument
259 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd)) in getConstantMemoryOrder()
/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/llvm/lib/Target/Mips/
DMipsSEISelLowering.cpp1335 SDValue Opnd = Op->getOperand(++OpNo), In64; in lowerDSPIntr() local
1337 if (Opnd.getValueType() == MVT::i64) in lowerDSPIntr()
1338 In64 = initAccumulator(Opnd, DL, DAG); in lowerDSPIntr()
1340 Ops.push_back(Opnd); in lowerDSPIntr()