Lines Matching refs:InstCast
512 InstCast::OpKind CastKind; in genTargetHelperCallFor()
519 CastKind = InstCast::Zext; in genTargetHelperCallFor()
523 CastKind = InstCast::Sext; in genTargetHelperCallFor()
527 CastKind = InstCast::Zext; in genTargetHelperCallFor()
531 CastKind = InstCast::Sext; in genTargetHelperCallFor()
547 Context.insert<InstCast>(CastKind, Src0_32, Src0); in genTargetHelperCallFor()
557 if (CastKind == InstCast::Zext) { in genTargetHelperCallFor()
565 Context.insert<InstCast>(CastKind, Src1_32, Src1); in genTargetHelperCallFor()
605 auto *CastInstr = llvm::cast<InstCast>(Instr); in genTargetHelperCallFor()
606 const InstCast::OpKind CastKind = CastInstr->getCastKind(); in genTargetHelperCallFor()
611 case InstCast::Fptosi: in genTargetHelperCallFor()
612 case InstCast::Fptoui: { in genTargetHelperCallFor()
616 const bool DestIsSigned = CastKind == InstCast::Fptosi; in genTargetHelperCallFor()
630 case InstCast::Sitofp: in genTargetHelperCallFor()
631 case InstCast::Uitofp: { in genTargetHelperCallFor()
635 const bool SourceIsSigned = CastKind == InstCast::Sitofp; in genTargetHelperCallFor()
649 case InstCast::Bitcast: { in genTargetHelperCallFor()
673 Context.insert<InstCast>(InstCast::Zext, Src0AsI32, Src0); in genTargetHelperCallFor()
681 Context.insert<InstCast>(InstCast::Zext, Src0AsI32, Src0); in genTargetHelperCallFor()
692 Context.insert<InstCast>(InstCast::Trunc, Dest, CallDest); in genTargetHelperCallFor()
696 case InstCast::Trunc: { in genTargetHelperCallFor()
708 case InstCast::Sext: in genTargetHelperCallFor()
709 case InstCast::Zext: { in genTargetHelperCallFor()
793 Context.insert<InstCast>(InstCast::Zext, ValExt, ValOp); in genTargetHelperCallFor()
3596 const auto *CastProducer = llvm::cast<InstCast>(Producer); in lowerInt1ForBranch()
3597 assert(CastProducer->getCastKind() == InstCast::Trunc); in lowerInt1ForBranch()
3894 void TargetARM32::lowerCast(const InstCast *Instr) { in lowerCast()
3895 InstCast::OpKind CastKind = Instr->getCastKind(); in lowerCast()
3903 case InstCast::Sext: { in lowerCast()
3967 case InstCast::Zext: { in lowerCast()
4026 case InstCast::Trunc: { in lowerCast()
4045 case InstCast::Fptrunc: in lowerCast()
4046 case InstCast::Fpext: { in lowerCast()
4049 const bool IsTrunc = CastKind == InstCast::Fptrunc; in lowerCast()
4059 case InstCast::Fptosi: in lowerCast()
4060 case InstCast::Fptoui: { in lowerCast()
4061 const bool DestIsSigned = CastKind == InstCast::Fptosi; in lowerCast()
4094 lowerCast(InstCast::create(Func, InstCast::Trunc, T_1, T)); in lowerCast()
4100 case InstCast::Sitofp: in lowerCast()
4101 case InstCast::Uitofp: { in lowerCast()
4102 const bool SourceIsSigned = CastKind == InstCast::Sitofp; in lowerCast()
4128 lowerCast(InstCast::create(Func, SourceIsSigned ? InstCast::Sext in lowerCast()
4129 : InstCast::Zext, in lowerCast()
4146 case InstCast::Bitcast: { in lowerCast()
6155 lowerCast(InstCast::create(Func, InstCast::Sext, T, Condition)); in lowerSelect()
6751 const auto *CastProducer = llvm::cast<InstCast>(Producer); in lowerInt1ForSelect()
6752 assert(CastProducer->getCastKind() == InstCast::Trunc); in lowerInt1ForSelect()
6852 const auto *CastProducer = llvm::cast<InstCast>(Producer); in lowerInt1()
6853 assert(CastProducer->getCastKind() == InstCast::Trunc); in lowerInt1()
6884 switch (llvm::cast<InstCast>(&Instr)->getCastKind()) { in shouldTrackProducer()
6887 case InstCast::Trunc: in shouldTrackProducer()
6912 switch (llvm::cast<InstCast>(&Instr)->getCastKind()) { in isValidConsumer()
6915 case InstCast::Sext: in isValidConsumer()
6917 case InstCast::Zext: in isValidConsumer()