Home | History | Annotate | Download | only in src

Lines Matching refs:InstCast

512       InstCast::OpKind CastKind;
519 CastKind = InstCast::Zext;
523 CastKind = InstCast::Sext;
527 CastKind = InstCast::Zext;
531 CastKind = InstCast::Sext;
545 // we just insert a InstCast right before the call to the helper.
547 Context.insert<InstCast>(CastKind, Src0_32, Src0);
550 // For extending Src1, we will just insert an InstCast if Src1 is not a
557 if (CastKind == InstCast::Zext) {
565 Context.insert<InstCast>(CastKind, Src1_32, Src1);
605 auto *CastInstr = llvm::cast<InstCast>(Instr);
606 const InstCast::OpKind CastKind = CastInstr->getCastKind();
611 case InstCast::Fptosi:
612 case InstCast::Fptoui: {
616 const bool DestIsSigned = CastKind == InstCast::Fptosi;
630 case InstCast::Sitofp:
631 case InstCast::Uitofp: {
635 const bool SourceIsSigned = CastKind == InstCast::Sitofp;
649 case InstCast::Bitcast: {
673 Context.insert<InstCast>(InstCast::Zext, Src0AsI32, Src0);
681 Context.insert<InstCast>(InstCast::Zext, Src0AsI32, Src0);
692 Context.insert<InstCast>(InstCast::Trunc, Dest, CallDest);
696 case InstCast::Trunc: {
708 case InstCast::Sext:
709 case InstCast::Zext: {
793 Context.insert<InstCast>(InstCast::Zext, ValExt, ValOp);
3579 const auto *CastProducer = llvm::cast<InstCast>(Producer);
3580 assert(CastProducer->getCastKind() == InstCast::Trunc);
3877 void TargetARM32::lowerCast(const InstCast *Instr) {
3878 InstCast::OpKind CastKind = Instr->getCastKind();
3886 case InstCast::Sext: {
3950 case InstCast::Zext: {
4009 case InstCast::Trunc: {
4028 case InstCast::Fptrunc:
4029 case InstCast::Fpext: {
4032 const bool IsTrunc = CastKind == InstCast::Fptrunc;
4042 case InstCast::Fptosi:
4043 case InstCast::Fptoui: {
4044 const bool DestIsSigned = CastKind == InstCast::Fptosi;
4077 lowerCast(InstCast::create(Func, InstCast::Trunc, T_1, T));
4083 case InstCast::Sitofp:
4084 case InstCast::Uitofp: {
4085 const bool SourceIsSigned = CastKind == InstCast::Sitofp;
4111 lowerCast(InstCast::create(Func, SourceIsSigned ? InstCast::Sext
4112 : InstCast::Zext,
4129 case InstCast::Bitcast: {
5923 lowerCast(InstCast::create(Func, InstCast::Sext, T, Condition));
6519 const auto *CastProducer = llvm::cast<InstCast>(Producer);
6520 assert(CastProducer->getCastKind() == InstCast::Trunc);
6620 const auto *CastProducer = llvm::cast<InstCast>(Producer);
6621 assert(CastProducer->getCastKind() == InstCast::Trunc);
6652 switch (llvm::cast<InstCast>(&Instr)->getCastKind()) {
6655 case InstCast::Trunc:
6680 switch (llvm::cast<InstCast>(&Instr)->getCastKind()) {
6683 case InstCast::Sext:
6685 case InstCast::Zext: