Lines Matching refs:TargetOpcode
65 TII.get(TargetOpcode::COPY), ConstrainedReg) in constrainOperandRegClass()
70 TII.get(TargetOpcode::COPY), Reg) in constrainOperandRegClass()
201 if (MI.getOpcode() == TargetOpcode::LOCAL_ESCAPE) in isTriviallyDead()
204 if (MI.getOpcode() == TargetOpcode::LIFETIME_START || in isTriviallyDead()
205 MI.getOpcode() == TargetOpcode::LIFETIME_END) in isTriviallyDead()
295 return Opcode == TargetOpcode::G_CONSTANT || in getConstantVRegValWithLookThrough()
296 (HandleFConstant && Opcode == TargetOpcode::G_FCONSTANT); in getConstantVRegValWithLookThrough()
318 case TargetOpcode::G_ANYEXT: in getConstantVRegValWithLookThrough()
322 case TargetOpcode::G_TRUNC: in getConstantVRegValWithLookThrough()
323 case TargetOpcode::G_SEXT: in getConstantVRegValWithLookThrough()
324 case TargetOpcode::G_ZEXT: in getConstantVRegValWithLookThrough()
330 case TargetOpcode::COPY: in getConstantVRegValWithLookThrough()
335 case TargetOpcode::G_INTTOPTR: in getConstantVRegValWithLookThrough()
352 case TargetOpcode::G_TRUNC: in getConstantVRegValWithLookThrough()
355 case TargetOpcode::G_ANYEXT: in getConstantVRegValWithLookThrough()
356 case TargetOpcode::G_SEXT: in getConstantVRegValWithLookThrough()
359 case TargetOpcode::G_ZEXT: in getConstantVRegValWithLookThrough()
371 if (MI->getOpcode() != TargetOpcode::G_CONSTANT) in getConstantIntVRegVal()
379 if (TargetOpcode::G_FCONSTANT != MI->getOpcode()) in getConstantFPVRegVal()
392 while (Opc == TargetOpcode::COPY || isPreISelGenericOptimizationHint(Opc)) { in getDefSrcRegIgnoringCopies()
453 case TargetOpcode::G_ADD: in ConstantFoldBinOp()
455 case TargetOpcode::G_AND: in ConstantFoldBinOp()
457 case TargetOpcode::G_ASHR: in ConstantFoldBinOp()
459 case TargetOpcode::G_LSHR: in ConstantFoldBinOp()
461 case TargetOpcode::G_MUL: in ConstantFoldBinOp()
463 case TargetOpcode::G_OR: in ConstantFoldBinOp()
465 case TargetOpcode::G_SHL: in ConstantFoldBinOp()
467 case TargetOpcode::G_SUB: in ConstantFoldBinOp()
469 case TargetOpcode::G_XOR: in ConstantFoldBinOp()
471 case TargetOpcode::G_UDIV: in ConstantFoldBinOp()
475 case TargetOpcode::G_SDIV: in ConstantFoldBinOp()
479 case TargetOpcode::G_UREM: in ConstantFoldBinOp()
483 case TargetOpcode::G_SREM: in ConstantFoldBinOp()
506 case TargetOpcode::G_FADD: in ConstantFoldFPBinOp()
509 case TargetOpcode::G_FSUB: in ConstantFoldFPBinOp()
512 case TargetOpcode::G_FMUL: in ConstantFoldFPBinOp()
515 case TargetOpcode::G_FDIV: in ConstantFoldFPBinOp()
518 case TargetOpcode::G_FREM: in ConstantFoldFPBinOp()
521 case TargetOpcode::G_FCOPYSIGN: in ConstantFoldFPBinOp()
524 case TargetOpcode::G_FMINNUM: in ConstantFoldFPBinOp()
526 case TargetOpcode::G_FMAXNUM: in ConstantFoldFPBinOp()
528 case TargetOpcode::G_FMINIMUM: in ConstantFoldFPBinOp()
530 case TargetOpcode::G_FMAXIMUM: in ConstantFoldFPBinOp()
532 case TargetOpcode::G_FMINNUM_IEEE: in ConstantFoldFPBinOp()
533 case TargetOpcode::G_FMAXNUM_IEEE: in ConstantFoldFPBinOp()
562 if (DefMI->getOpcode() == TargetOpcode::G_BUILD_VECTOR) { in isKnownNeverNaN()
572 case TargetOpcode::G_FMINNUM_IEEE: in isKnownNeverNaN()
573 case TargetOpcode::G_FMAXNUM_IEEE: { in isKnownNeverNaN()
583 case TargetOpcode::G_FMINNUM: in isKnownNeverNaN()
584 case TargetOpcode::G_FMAXNUM: { in isKnownNeverNaN()
596 case TargetOpcode::G_FPEXT: in isKnownNeverNaN()
597 case TargetOpcode::G_FPTRUNC: in isKnownNeverNaN()
598 case TargetOpcode::G_FCANONICALIZE: in isKnownNeverNaN()
652 BuildMI(EntryMBB, EntryMBB.begin(), DL, TII.get(TargetOpcode::COPY), LiveIn) in getFunctionLiveInPhysReg()
667 case TargetOpcode::G_SEXT_INREG: { in ConstantFoldExtOp()
679 assert(Opcode == TargetOpcode::G_SITOFP || Opcode == TargetOpcode::G_UITOFP); in ConstantFoldIntToFloat()
682 DstVal.convertFromAPInt(*MaybeSrcVal, Opcode == TargetOpcode::G_SITOFP, in ConstantFoldIntToFloat()
700 case TargetOpcode::G_CONSTANT: { in isKnownToBeAPowerOfTwo()
705 case TargetOpcode::G_SHL: { in isKnownToBeAPowerOfTwo()
717 case TargetOpcode::G_LSHR: { in isKnownToBeAPowerOfTwo()
725 case TargetOpcode::G_BUILD_VECTOR: { in isKnownToBeAPowerOfTwo()
735 case TargetOpcode::G_BUILD_VECTOR_TRUNC: { in isKnownToBeAPowerOfTwo()
863 assert(MI.getOpcode() == TargetOpcode::G_SHUFFLE_VECTOR && in getSplatIndex()
884 return Opcode == TargetOpcode::G_BUILD_VECTOR || in isBuildVectorOp()
885 Opcode == TargetOpcode::G_BUILD_VECTOR_TRUNC; in isBuildVectorOp()
956 if (AllowUndefs && Def->getOpcode() == TargetOpcode::G_IMPLICIT_DEF) in matchUnaryPredicate()
960 if (Def->getOpcode() == TargetOpcode::G_CONSTANT) in matchUnaryPredicate()
963 if (Def->getOpcode() != TargetOpcode::G_BUILD_VECTOR) in matchUnaryPredicate()
969 if (AllowUndefs && SrcDef->getOpcode() == TargetOpcode::G_IMPLICIT_DEF) { in matchUnaryPredicate()
975 if (SrcDef->getOpcode() != TargetOpcode::G_CONSTANT || in matchUnaryPredicate()