• Home
  • Raw
  • Download

Lines Matching refs:InstArithmetic

456     const InstArithmetic::OpKind Op =  in genTargetHelperCallFor()
457 llvm::cast<InstArithmetic>(Instr)->getOp(); in genTargetHelperCallFor()
462 case InstArithmetic::Fdiv: in genTargetHelperCallFor()
463 case InstArithmetic::Frem: in genTargetHelperCallFor()
464 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
465 case InstArithmetic::Srem: in genTargetHelperCallFor()
466 case InstArithmetic::Udiv: in genTargetHelperCallFor()
467 case InstArithmetic::Urem: in genTargetHelperCallFor()
484 case InstArithmetic::Udiv: in genTargetHelperCallFor()
487 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
490 case InstArithmetic::Urem: in genTargetHelperCallFor()
493 case InstArithmetic::Srem: in genTargetHelperCallFor()
516 case InstArithmetic::Udiv: in genTargetHelperCallFor()
520 case InstArithmetic::Sdiv: in genTargetHelperCallFor()
524 case InstArithmetic::Urem: in genTargetHelperCallFor()
528 case InstArithmetic::Srem: in genTargetHelperCallFor()
582 if (Op != InstArithmetic::Frem) { in genTargetHelperCallFor()
2140 lowerArithmetic(InstArithmetic::create(Func, InstArithmetic::Add, NewBase, in hiOperand()
2161 lowerArithmetic(InstArithmetic::create(Func, InstArithmetic::Add, in hiOperand()
2343 TargetARM32::lowerInt1Arithmetic(const InstArithmetic *Instr) { in lowerInt1Arithmetic()
2372 case InstArithmetic::And: in lowerInt1Arithmetic()
2375 case InstArithmetic::Or: in lowerInt1Arithmetic()
2378 case InstArithmetic::Xor: in lowerInt1Arithmetic()
2581 void TargetARM32::lowerInt64Arithmetic(InstArithmetic::OpKind Op, in lowerInt64Arithmetic()
2595 case InstArithmetic::_num: in lowerInt64Arithmetic()
2598 case InstArithmetic::Add: { in lowerInt64Arithmetic()
2609 case InstArithmetic::And: { in lowerInt64Arithmetic()
2620 case InstArithmetic::Or: { in lowerInt64Arithmetic()
2631 case InstArithmetic::Xor: { in lowerInt64Arithmetic()
2642 case InstArithmetic::Sub: { in lowerInt64Arithmetic()
2660 case InstArithmetic::Mul: { in lowerInt64Arithmetic()
2695 case InstArithmetic::Shl: { in lowerInt64Arithmetic()
2792 case InstArithmetic::Lshr: in lowerInt64Arithmetic()
2793 case InstArithmetic::Ashr: { in lowerInt64Arithmetic()
2794 const bool ASR = Op == InstArithmetic::Ashr; in lowerInt64Arithmetic()
2905 case InstArithmetic::Fadd: in lowerInt64Arithmetic()
2906 case InstArithmetic::Fsub: in lowerInt64Arithmetic()
2907 case InstArithmetic::Fmul: in lowerInt64Arithmetic()
2908 case InstArithmetic::Fdiv: in lowerInt64Arithmetic()
2909 case InstArithmetic::Frem: in lowerInt64Arithmetic()
2912 case InstArithmetic::Udiv: in lowerInt64Arithmetic()
2913 case InstArithmetic::Sdiv: in lowerInt64Arithmetic()
2914 case InstArithmetic::Urem: in lowerInt64Arithmetic()
2915 case InstArithmetic::Srem: in lowerInt64Arithmetic()
3072 void TargetARM32::lowerArithmetic(const InstArithmetic *Instr) { in lowerArithmetic()
3099 case InstArithmetic::Add: in lowerArithmetic()
3100 case InstArithmetic::And: in lowerArithmetic()
3101 case InstArithmetic::Ashr: in lowerArithmetic()
3102 case InstArithmetic::Fadd: in lowerArithmetic()
3103 case InstArithmetic::Fmul: in lowerArithmetic()
3104 case InstArithmetic::Fsub: in lowerArithmetic()
3105 case InstArithmetic::Lshr: in lowerArithmetic()
3106 case InstArithmetic::Mul: in lowerArithmetic()
3107 case InstArithmetic::Or: in lowerArithmetic()
3108 case InstArithmetic::Shl: in lowerArithmetic()
3109 case InstArithmetic::Sub: in lowerArithmetic()
3110 case InstArithmetic::Xor: in lowerArithmetic()
3125 case InstArithmetic::Udiv: { in lowerArithmetic()
3132 case InstArithmetic::Sdiv: { in lowerArithmetic()
3139 case InstArithmetic::Urem: { in lowerArithmetic()
3146 case InstArithmetic::Srem: { in lowerArithmetic()
3153 case InstArithmetic::Frem: { in lowerArithmetic()
3159 case InstArithmetic::Fadd: { in lowerArithmetic()
3174 case InstArithmetic::Fsub: { in lowerArithmetic()
3188 case InstArithmetic::Fmul: { in lowerArithmetic()
3195 case InstArithmetic::Fdiv: { in lowerArithmetic()
3207 case InstArithmetic::_num: in lowerArithmetic()
3210 case InstArithmetic::Add: { in lowerArithmetic()
3247 case InstArithmetic::And: { in lowerArithmetic()
3270 case InstArithmetic::Or: { in lowerArithmetic()
3283 case InstArithmetic::Xor: { in lowerArithmetic()
3296 case InstArithmetic::Sub: { in lowerArithmetic()
3338 case InstArithmetic::Mul: { in lowerArithmetic()
3428 case InstArithmetic::Shl: { in lowerArithmetic()
3449 case InstArithmetic::Lshr: { in lowerArithmetic()
3475 case InstArithmetic::Ashr: { in lowerArithmetic()
3500 case InstArithmetic::Udiv: in lowerArithmetic()
3501 case InstArithmetic::Sdiv: in lowerArithmetic()
3502 case InstArithmetic::Urem: in lowerArithmetic()
3503 case InstArithmetic::Srem: in lowerArithmetic()
3507 case InstArithmetic::Fadd: in lowerArithmetic()
3508 case InstArithmetic::Fsub: in lowerArithmetic()
3509 case InstArithmetic::Fmul: in lowerArithmetic()
3510 case InstArithmetic::Fdiv: in lowerArithmetic()
3511 case InstArithmetic::Frem: in lowerArithmetic()
3602 const auto *ArithProducer = llvm::cast<InstArithmetic>(Producer); in lowerInt1ForBranch()
3606 case InstArithmetic::And: { in lowerInt1ForBranch()
3629 case InstArithmetic::Or: { in lowerInt1ForBranch()
3767 InstArithmetic::create(Func, InstArithmetic::Add, NewBase, SP, Loc)); in lowerCall()
4860 InstArithmetic *createArithInst(Cfg *Func, uint32_t Operation, Variable *Dest, in createArithInst()
4862 InstArithmetic::OpKind Oper; in createArithInst()
4869 Oper = InstArithmetic::Add; in createArithInst()
4872 Oper = InstArithmetic::And; in createArithInst()
4875 Oper = InstArithmetic::Sub; in createArithInst()
4878 Oper = InstArithmetic::Or; in createArithInst()
4881 Oper = InstArithmetic::Xor; in createArithInst()
4884 return InstArithmetic::create(Func, Oper, Dest, Src0, Src1); in createArithInst()
5548 bool isAddOrSub(const Inst *Instr, InstArithmetic::OpKind *Kind) { in isAddOrSub()
5549 if (const auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr)) { in isAddOrSub()
5553 case InstArithmetic::Add: in isAddOrSub()
5554 case InstArithmetic::Sub: in isAddOrSub()
5589 InstArithmetic::OpKind _; in matchCombinedBaseIndex()
5619 auto *ArithInst = llvm::dyn_cast<InstArithmetic>(IndexInst); in matchShiftedOffsetReg()
5637 case InstArithmetic::Shl: { in matchShiftedOffsetReg()
5643 case InstArithmetic::Lshr: { in matchShiftedOffsetReg()
5649 case InstArithmetic::Ashr: { in matchShiftedOffsetReg()
5655 case InstArithmetic::Udiv: in matchShiftedOffsetReg()
5656 case InstArithmetic::Mul: { in matchShiftedOffsetReg()
5664 NewShiftKind = ArithInst->getOp() == InstArithmetic::Udiv in matchShiftedOffsetReg()
5701 auto *ArithInst = llvm::dyn_cast<const InstArithmetic>(BaseInst); in matchOffsetBase()
5704 InstArithmetic::OpKind Kind; in matchOffsetBase()
5707 bool IsAdd = Kind == InstArithmetic::Add; in matchOffsetBase()
5857 const InstArithmetic::OpKind Op = in formAddressingMode()
5858 OffsetImm > 0 ? InstArithmetic::Add : InstArithmetic::Sub; in formAddressingMode()
5881 Context.insert<InstArithmetic>(Op, T, BaseVar, in formAddressingMode()
6743 const auto *ArithProducer = llvm::cast<InstArithmetic>(Producer); in lowerInt1ForSelect()
6841 const auto *ArithProducer = llvm::cast<InstArithmetic>(Producer); in lowerInt1()
6872 switch (llvm::cast<InstArithmetic>(&Instr)->getOp()) { in shouldTrackProducer()
6875 case InstArithmetic::And: in shouldTrackProducer()
6876 case InstArithmetic::Or: in shouldTrackProducer()
6902 switch (llvm::cast<InstArithmetic>(&Instr)->getOp()) { in isValidConsumer()
6905 case InstArithmetic::And: in isValidConsumer()
6907 case InstArithmetic::Or: in isValidConsumer()
6921 switch (llvm::cast<InstArithmetic>(&Instr)->getOp()) { in shouldTrackProducer()
6924 case InstArithmetic::Fmul: in shouldTrackProducer()
6936 switch (llvm::cast<InstArithmetic>(&Instr)->getOp()) { in isValidConsumer()
6939 case InstArithmetic::Fadd: in isValidConsumer()
6940 case InstArithmetic::Fsub: in isValidConsumer()
6954 switch (llvm::cast<InstArithmetic>(&Instr)->getOp()) { in shouldTrackProducer()
6957 case InstArithmetic::Mul: in shouldTrackProducer()
6969 switch (llvm::cast<InstArithmetic>(&Instr)->getOp()) { in isValidConsumer()
6972 case InstArithmetic::Add: in isValidConsumer()
6973 case InstArithmetic::Sub: in isValidConsumer()