Lines Matching full:msp430
1 //===-- MSP430InstrInfo.cpp - MSP430 Instruction Information --------------===//
9 // This file contains the MSP430 implementation of the TargetInstrInfo class.
14 #include "MSP430.h"
33 : MSP430GenInstrInfo(MSP430::ADJCALLSTACKDOWN, MSP430::ADJCALLSTACKUP), in MSP430InstrInfo()
50 if (RC == &MSP430::GR16RegClass) in storeRegToStackSlot()
51 BuildMI(MBB, MI, DL, get(MSP430::MOV16mr)) in storeRegToStackSlot()
54 else if (RC == &MSP430::GR8RegClass) in storeRegToStackSlot()
55 BuildMI(MBB, MI, DL, get(MSP430::MOV8mr)) in storeRegToStackSlot()
78 if (RC == &MSP430::GR16RegClass) in loadRegFromStackSlot()
79 BuildMI(MBB, MI, DL, get(MSP430::MOV16rm)) in loadRegFromStackSlot()
82 else if (RC == &MSP430::GR8RegClass) in loadRegFromStackSlot()
83 BuildMI(MBB, MI, DL, get(MSP430::MOV8rm)) in loadRegFromStackSlot()
95 if (MSP430::GR16RegClass.contains(DestReg, SrcReg)) in copyPhysReg()
96 Opc = MSP430::MOV16rr; in copyPhysReg()
97 else if (MSP430::GR8RegClass.contains(DestReg, SrcReg)) in copyPhysReg()
98 Opc = MSP430::MOV8rr; in copyPhysReg()
117 if (I->getOpcode() != MSP430::JMP && in removeBranch()
118 I->getOpcode() != MSP430::JCC && in removeBranch()
119 I->getOpcode() != MSP430::Bi && in removeBranch()
120 I->getOpcode() != MSP430::Br && in removeBranch()
121 I->getOpcode() != MSP430::Bm) in removeBranch()
188 if (I->getOpcode() == MSP430::Br || in analyzeBranch()
189 I->getOpcode() == MSP430::Bm) in analyzeBranch()
193 if (I->getOpcode() == MSP430::JMP || I->getOpcode() == MSP430::Bi) { in analyzeBranch()
218 assert(I->getOpcode() == MSP430::JCC && "Invalid conditional branch"); in analyzeBranch()
262 "MSP430 branch conditions have one component!"); in insertBranch()
268 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(TBB); in insertBranch()
274 BuildMI(&MBB, DL, get(MSP430::JCC)).addMBB(TBB).addImm(Cond[0].getImm()); in insertBranch()
279 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in insertBranch()