[llvm] r178368 - Hexagon: Add emitFrameIndexDebugValue function to emit debug information.
Rafael Ávila De Espíndola
rafael.espindola at gmail.com
Mon Apr 1 08:52:10 PDT 2013
Test case?
Sent from my iPhone
On 2013-03-29, at 17:09, Jyotsna Verma <jverma at codeaurora.org> wrote:
> Author: jverma
> Date: Fri Mar 29 16:09:53 2013
> New Revision: 178368
>
> URL: http://llvm.org/viewvc/llvm-project?rev=178368&view=rev
> Log:
> Hexagon: Add emitFrameIndexDebugValue function to emit debug information.
>
>
> Modified:
> llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
> llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.h
>
> Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp?rev=178368&r1=178367&r2=178368&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp (original)
> +++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp Fri Mar 29 16:09:53 2013
> @@ -537,6 +537,15 @@ MachineInstr *HexagonInstrInfo::foldMemo
> return(0);
> }
>
> +MachineInstr*
> +HexagonInstrInfo::emitFrameIndexDebugValue(MachineFunction &MF,
> + int FrameIx, uint64_t Offset,
> + const MDNode *MDPtr,
> + DebugLoc DL) const {
> + MachineInstrBuilder MIB = BuildMI(MF, DL, get(Hexagon::DBG_VALUE))
> + .addImm(0).addImm(Offset).addMetadata(MDPtr);
> + return &*MIB;
> +}
>
> unsigned HexagonInstrInfo::createVR(MachineFunction* MF, MVT VT) const {
>
>
> Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.h?rev=178368&r1=178367&r2=178368&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.h (original)
> +++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.h Fri Mar 29 16:09:53 2013
> @@ -141,6 +141,11 @@ public:
> isProfitableToDupForIfCvt(MachineBasicBlock &MBB,unsigned NumCycles,
> const BranchProbability &Probability) const;
>
> + virtual MachineInstr *emitFrameIndexDebugValue(MachineFunction &MF,
> + int FrameIx,
> + uint64_t Offset,
> + const MDNode *MDPtr,
> + DebugLoc DL) const;
> virtual DFAPacketizer*
> CreateTargetScheduleState(const TargetMachine *TM,
> const ScheduleDAG *DAG) const;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list