[llvm-commits] [llvm] r121312 - in /llvm/trunk: lib/MC/ELFObjectWriter.cpp lib/Target/ARM/ARMExpandPseudoInsts.cpp lib/Target/ARM/ARMInstrInfo.td test/CodeGen/ARM/2010-12-08-tpsoft.ll

Frits van Bommel fvbommel at gmail.com
Wed Dec 8 16:10:00 PST 2010


On Thu, Dec 9, 2010 at 12:14 AM, Jason W Kim <jason.w.kim.2009 at gmail.com> wrote:
> --- llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp (original)
> +++ llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp Wed Dec  8 17:14:44 2010
> @@ -699,6 +699,21 @@
>       MI.eraseFromParent();
>       break;
>     }
> +    case ARM::TPsoft: {
> +      unsigned PredReg = 0;
> +      ARMCC::CondCodes Pred = llvm::getInstrPredicate(&MI, PredReg);

'Pred' is unused.

> +      MachineInstrBuilder MIB =
> +        BuildMI(MBB, MBBI, MI.getDebugLoc(),
> +                TII->get(ARM::BL))
> +        .addExternalSymbol("__aeabi_read_tp", 0);
> +
> +      (*MIB).setMemRefs(MI.memoperands_begin(), MI.memoperands_end());
> +      TransferImpOps(MI, MIB, MIB);
> +      MI.eraseFromParent();
> +
> +      //assert(0 && "HELP!");
> +    }; break;




More information about the llvm-commits mailing list