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

/external/llvm/lib/Target/AArch64/
H A DAArch64AddressTypePromotion.cpp167 const Instruction *Opnd = cast<Instruction>(Inst->getOperand(0)); local
170 Opnd->getOperand(0)->getType()->getIntegerBitWidth() &&
320 Value *Opnd = Inst->getOperand(OpIdx); local
321 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) {
328 if (isa<UndefValue>(Opnd)) {
338 SExtForOpnd->setOperand(0, Opnd);
H A DAArch64FastISel.cpp1981 for (auto &Opnd : MI->uses()) {
1982 if (Opnd.isReg()) {
1983 Reg = Opnd.getReg();
/external/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp123 Value *Opnd = Inst->getOperand(Idx); local
124 if (auto CastInst = dyn_cast<Instruction>(Opnd))
240 Value *Opnd = Inst->getOperand(Idx); local
243 if (auto ConstInt = dyn_cast<ConstantInt>(Opnd)) {
249 if (auto CastInst = dyn_cast<Instruction>(Opnd)) {
264 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) {
490 Value *Opnd = ConstUser.Inst->getOperand(ConstUser.OpndIdx); local
493 if (isa<ConstantInt>(Opnd)) {
502 if (auto CastInst = dyn_cast<Instruction>(Opnd)) {
524 if (auto ConstExpr = dyn_cast<ConstantExpr>(Opnd)) {
[all...]
H A DReassociate.cpp1136 static Value *createAndInstr(Instruction *InsertBefore, Value *Opnd,
1140 LLVMContext &Ctx = Opnd->getType()->getContext();
1142 I = BinaryOperator::CreateAnd(Opnd, ConstantInt::get(Ctx, ConstOpnd),
1147 return Opnd;
/external/llvm/lib/Target/AMDGPU/Disassembler/
H A DAMDGPUDisassembler.cpp44 addOperand(MCInst &Inst, const MCOperand& Opnd) { argument
45 Inst.addOperand(Opnd);
46 return Opnd.isValid() ?
/external/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2299 /// \brief Build a truncate instruction of \p Opnd producing a \p Ty
2301 /// trunc Opnd to Ty.
2302 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { argument
2303 IRBuilder<> Builder(Opnd);
2304 Val = Builder.CreateTrunc(Opnd, Ty, "promoted");
2323 /// \brief Build a sign extension instruction of \p Opnd producing a \p Ty
2325 /// sext Opnd to Ty.
2326 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) argument
2329 Val = Builder.CreateSExt(Opnd, T
2351 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) argument
2530 createTrunc(Instruction *Opnd, Type *Ty) argument
2538 createSExt(Instruction *Inst, Value *Opnd, Type *Ty) argument
2546 createZExt(Instruction *Inst, Value *Opnd, Type *Ty) argument
3062 Value *Opnd = ExtOpnd->getOperand(OpIdx); local
[all...]
/external/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp1601 MCOperand Opnd; local
1614 Opnd = Inst.getOperand(1);
1615 if (!Opnd.isImm())
1617 Imm = Opnd.getImm();
1631 Opnd = Inst.getOperand(2);
1632 if (!Opnd.isImm())
1634 Imm = Opnd.getImm();
1782 MCOperand Opnd; local
1789 Opnd = Inst.getOperand(0);
1790 if (!Opnd
1871 MCOperand Opnd = Inst.getOperand(1); local
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp702 for (const FAddend *Opnd : Opnds) {
704 Value *V = createAddendVal(*Opnd, NeedNeg);
793 for (const FAddend *Opnd : Opnds) {
794 if (Opnd->isConstant())
797 const FAddendCoef &CE = Opnd->getCoef();
820 Value *FAddCombine::createAddendVal(const FAddend &Opnd, bool &NeedNeg) { argument
821 const FAddendCoef &Coeff = Opnd.getCoef();
823 if (Opnd.isConstant()) {
828 Value *OpndVal = Opnd.getSymVal();
/external/swiftshader/third_party/subzero/src/
H A DIceCfgNode.cpp366 const Operand *Opnd) {
367 if (Var1 == Opnd)
369 const auto *Var2 = llvm::dyn_cast<Variable>(Opnd);
365 sameVarOrReg(TargetLowering *Target, const Variable *Var1, const Operand *Opnd) argument
H A DIceAssemblerARM32.cpp352 EncodedOperand encodeOperand(const Operand *Opnd, IValueT &Value,
355 if (const auto *Var = llvm::dyn_cast<Variable>(Opnd)) {
375 if (const auto *FlexImm = llvm::dyn_cast<OperandARM32FlexImm>(Opnd)) {
383 if (const auto *Const = llvm::dyn_cast<ConstantInteger32>(Opnd)) {
387 if (const auto *FlexReg = llvm::dyn_cast<OperandARM32FlexReg>(Opnd)) {
413 if (const auto *ShImm = llvm::dyn_cast<OperandARM32ShAmtImm>(Opnd)) {
478 // Encodes memory address Opnd, and encodes that information into Value, based
480 EncodedOperand encodeAddress(const Operand *Opnd, IValueT &Value,
484 if (const auto *Var = llvm::dyn_cast<Variable>(Opnd)) {
497 if (const auto *Mem = llvm::dyn_cast<OperandARM32Mem>(Opnd)) {
[all...]
H A DIceCfg.cpp640 auto *Opnd = Instr.getSrc(i); local
641 if (auto *Var = llvm::dyn_cast<Variable>(Opnd)) {
659 auto *Opnd = Instr.getSrc(i); local
660 if (auto *Var = llvm::dyn_cast<Variable>(Opnd)) {
H A 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) { argument
794 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd))
3503 inline bool isZero(const Operand *Opnd) { argument
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...]
H A DIceTargetLoweringMIPS32.h876 const Inst *getProducerOf(const Operand *Opnd) const {
877 auto *Var = llvm::dyn_cast<Variable>(Opnd);
H A DIceAssemblerMIPS32.cpp143 bool encodeOperand(const Operand *Opnd, IValueT &Value, argument
146 if (const auto *Var = llvm::dyn_cast<Variable>(Opnd)) {
H A DIceTargetLoweringARM32.cpp4806 inline uint64_t getConstantMemoryOrder(Operand *Opnd) {
4807 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd))
6013 // Returns whether Opnd needs the GOT address. Currently, ConstantRelocatables,
6015 bool operandNeedsGot(const Operand *Opnd) {
6016 if (llvm::isa<ConstantRelocatable>(Opnd)) {
6020 if (llvm::isa<ConstantFloat>(Opnd)) {
6022 return !OperandARM32FlexFpImm::canHoldImm(Opnd, &_);
6025 const auto *F64 = llvm::dyn_cast<ConstantDouble>(Opnd);
6028 return !OperandARM32FlexFpImm::canHoldImm(Opnd, &_) &&
H A DIceTargetLoweringARM32.h1255 const Inst *getProducerOf(const Operand *Opnd) const {
1256 auto *Var = llvm::dyn_cast<Variable>(Opnd);
H A DIceInstX86Base.h243 static void validateVectorAddrModeOpnd(const Operand *Opnd) { argument
244 if (llvm::isa<X86OperandMem>(Opnd) && isVectorType(Opnd->getType())) {
H A DIceTargetLoweringX86Base.h318 void doMockBoundsCheck(Operand *Opnd) override;
H A DIceTargetLoweringMIPS32.cpp258 inline uint64_t getConstantMemoryOrder(Operand *Opnd) { argument
259 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd))
/external/llvm/lib/Target/X86/
H A DX86FastISel.cpp2232 const Value *Opnd = nullptr; local
2235 case CmpInst::FCMP_FALSE: Opnd = I->getOperand(2); break;
2236 case CmpInst::FCMP_TRUE: Opnd = I->getOperand(1); break;
2239 if (Opnd) {
2240 unsigned OpReg = getRegForValue(Opnd);
2243 bool OpIsKill = hasTrivialKill(Opnd);
/external/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp1335 SDValue Opnd = Op->getOperand(++OpNo), In64; local
1337 if (Opnd.getValueType() == MVT::i64)
1338 In64 = initAccumulator(Opnd, DL, DAG);
1340 Ops.push_back(Opnd);

Completed in 401 milliseconds