Home
last modified time | relevance | path

Searched refs:MSP430 (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430RegisterInfo.cpp1 //===-- MSP430RegisterInfo.cpp - MSP430 Register Information --------------===//
9 // This file contains the MSP430 implementation of the TargetRegisterInfo class.
14 #include "MSP430.h"
35 : MSP430GenRegisterInfo(MSP430::PC) {} in MSP430RegisterInfo()
42 MSP430::R4, MSP430::R5, MSP430::R6, MSP430::R7, in getCalleeSavedRegs()
43 MSP430::R8, MSP430 in getCalleeSavedRegs()
[all...]
H A DMSP430FrameLowering.cpp110 BuildMI(MBB, MBBI, DL, TII.get(MSP430::PUSH16r)) in emitPrologue()
111 .addReg(MSP430::R4, RegState::Kill) in emitPrologue()
121 unsigned DwarfFramePtr = TRI->getDwarfRegNum(MSP430::R4, true); in emitPrologue()
128 BuildMI(MBB, MBBI, DL, TII.get(MSP430::MOV16rr), MSP430::R4) in emitPrologue()
129 .addReg(MSP430::SP) in emitPrologue()
140 MBBJ.addLiveIn(MSP430::R4); in emitPrologue()
147 (MBBI->getOpcode() == MSP430::PUSH16r)) { in emitPrologue()
174 BuildMI(MBB, MBBI, DL, TII.get(MSP430::SUB16ri), MSP430::SP) in emitPrologue()
175 .addReg(MSP430::SP) in emitPrologue()
205 case MSP430::RET: in emitEpilogue()
[all …]
H A DMSP430InstrInfo.cpp33 : 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()
[all …]
H A DMSP430ISelDAGToDAG.cpp263 AM.Base.Reg = CurDAG->getRegister(MSP430::SR, MVT::i16); in SelectAddr()
343 Opcode = MSP430::MOV8rp; in tryIndexedLoad()
346 Opcode = MSP430::MOV16rp; in tryIndexedLoad()
403 CurDAG->SelectNodeTo(Node, MSP430::ADDframe, MVT::i16, TFI, in Select()
408 MSP430::ADDframe, dl, MVT::i16, TFI, in Select()
419 MSP430::ADD8rp, MSP430::ADD16rp)) in Select()
422 MSP430::ADD8rp, MSP430::ADD16rp)) in Select()
429 MSP430::SUB8rp, MSP430::SUB16rp)) in Select()
436 MSP430::AND8rp, MSP430::AND16rp)) in Select()
439 MSP430::AND8rp, MSP430::AND16rp)) in Select()
[all …]
H A DMSP430ISelLowering.cpp49 addRegisterClass(MVT::i8, &MSP430::GR8RegClass); in MSP430TargetLowering()
50 addRegisterClass(MVT::i16, &MSP430::GR16RegClass); in MSP430TargetLowering()
56 setStackPointerRegisterToSaveRestore(MSP430::SP); in MSP430TargetLowering()
403 return std::make_pair(0U, &MSP430::GR8RegClass); in getRegForInlineAsmConstraint()
405 return std::make_pair(0U, &MSP430::GR16RegClass); in getRegForInlineAsmConstraint()
460 MSP430::R12, MSP430::R13, MSP430::R14, MSP430::R15 in AnalyzeArguments()
464 MSP430::R8, MSP430::R9, MSP430::R10, MSP430::R11, in AnalyzeArguments()
465 MSP430::R12, MSP430::R13, MSP430::R14, MSP430::R15 in AnalyzeArguments()
654 Register VReg = RegInfo.createVirtualRegister(&MSP430::GR16RegClass); in LowerCCCArguments()
784 unsigned R12 = MSP430::R12; in LowerReturn()
[all …]
H A DMSP430.td1 //===-- MSP430.td - Describe the MSP430 Target Machine -----*- tablegen -*-===//
8 // This is the top level entry point for the MSP430 target.
22 "Enable MSP430-X extensions">;
37 // MSP430 supported processors.
87 def MSP430 : Target {
H A DMSP430RegisterInfo.td1 //===-- MSP430RegisterInfo.td - MSP430 Register defs -------*- tablegen -*-===//
10 // Declarations that describe the MSP430 register file
15 let Namespace = "MSP430";
25 let Namespace = "MSP430";
52 def subreg_8bit : SubRegIndex<8> { let Namespace = "MSP430"; }
73 def GR8 : RegisterClass<"MSP430", [i8], 8,
81 def GR16 : RegisterClass<"MSP430", [i16], 16,
H A DMSP430BranchSelector.cpp124 if (MI->getOpcode() != MSP430::JCC && MI->getOpcode() != MSP430::JMP) { in expandBranches()
146 if (MI->getOpcode() == MSP430::JCC && std::next(MI) != EE) { in expandBranches()
183 if (MI->getOpcode() == MSP430::JCC) { in expandBranches()
196 MI = BuildMI(*MBB, MI, dl, TII->get(MSP430::JCC)) in expandBranches()
204 MI = BuildMI(*MBB, MI, dl, TII->get(MSP430::Bi)).addMBB(DestBB); in expandBranches()
H A DMSP430CallingConv.td1 //==- MSP430CallingConv.td - Calling Conventions for MSP430 -*- tablegen -*-==//
8 // This describes the calling conventions for MSP430 architecture.
12 // MSP430 Return Value Calling Convention
23 // MSP430 Argument Calling Conventions
H A DMSP430AsmPrinter.cpp115 if (Disp.isImm() && Base.getReg() == MSP430::SR) in printSrcMemOperand()
120 if (Base.getReg() != MSP430::SR && Base.getReg() != MSP430::PC) { in printSrcMemOperand()
H A DMSP430InstrFormats.td1 //===-- MSP430InstrFormats.td - MSP430 Instruction Formats -*- tablegen -*-===//
10 // Describe MSP430 instructions format here
31 // Generic MSP430 Format
36 let Namespace = "MSP430";
45 // MSP430 Double Operand (Format I) Instructions
316 // MSP430 Single Operand (Format II) Instructions
423 // MSP430 Conditional Jumps Instructions
H A DMSP430InstrInfo.td1 //===-- MSP430InstrInfo.td - MSP430 Instruction defs -------*- tablegen -*-===//
9 // This file describes the MSP430 instructions in TableGen format.
41 // MSP430 Specific Node Definitions.
70 // MSP430 Operand Definitions.
152 // MSP430 Complex Pattern Definitions.
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/
H A DMSP430Disassembler.cpp67 MSP430::PCB, MSP430::SPB, MSP430::SRB, MSP430::CGB,
68 MSP430::R4B, MSP430::R5B, MSP430::R6B, MSP430::R7B,
69 MSP430::R8B, MSP430::R9B, MSP430::R10B, MSP430::R11B,
70 MSP430::R12B, MSP430::R13B, MSP430::R14B, MSP430::R15B
85 MSP430::PC, MSP430::SP, MSP430::SR, MSP430::CG,
86 MSP430::R4, MSP430::R5, MSP430::R6, MSP430::R7,
87 MSP430::R8, MSP430::R9, MSP430::R10, MSP430::R11,
88 MSP430::R12, MSP430::R13, MSP430::R14, MSP430::R15
350 MI.setOpcode(MSP430::JMP); in getInstructionCJ()
352 MI.setOpcode(MSP430::JCC); in getInstructionCJ()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430ELFObjectWriter.cpp37 case MSP430::fixup_32: return ELF::R_MSP430_32; in getRelocType()
38 case MSP430::fixup_10_pcrel: return ELF::R_MSP430_10_PCREL; in getRelocType()
39 case MSP430::fixup_16: return ELF::R_MSP430_16; in getRelocType()
40 case MSP430::fixup_16_pcrel: return ELF::R_MSP430_16_PCREL; in getRelocType()
41 case MSP430::fixup_16_byte: return ELF::R_MSP430_16_BYTE; in getRelocType()
42 case MSP430::fixup_16_pcrel_byte: return ELF::R_MSP430_16_PCREL_BYTE; in getRelocType()
43 case MSP430::fixup_2x_pcrel: return ELF::R_MSP430_2X_PCREL; in getRelocType()
44 case MSP430::fixup_rl_pcrel: return ELF::R_MSP430_RL_PCREL; in getRelocType()
45 case MSP430::fixup_8: return ELF::R_MSP430_8; in getRelocType()
46 case MSP430::fixup_sym_diff: return ELF::R_MSP430_SYM_DIFF; in getRelocType()
H A DMSP430MCCodeEmitter.cpp1 //===-- MSP430MCCodeEmitter.cpp - Convert MSP430 code to machine code -----===//
13 #include "MSP430.h"
117 static_cast<MCFixupKind>(MSP430::fixup_16_byte), MI.getLoc())); in getMachineOpValue()
136 MSP430::Fixups FixupKind; in getMemOpValue()
139 FixupKind = MSP430::fixup_16_pcrel_byte; in getMemOpValue()
142 FixupKind = MSP430::fixup_16_byte; in getMemOpValue()
145 FixupKind = MSP430::fixup_16_byte; in getMemOpValue()
163 static_cast<MCFixupKind>(MSP430::fixup_10_pcrel), MI.getLoc())); in getPCRelImmOpValue()
H A DMSP430AsmBackend.cpp59 return MSP430::NumTargetFixupKinds; in getNumFixupKinds()
63 const static MCFixupKindInfo Infos[MSP430::NumTargetFixupKinds] = { in getFixupKindInfo()
78 static_assert((std::size(Infos)) == MSP430::NumTargetFixupKinds, in getFixupKindInfo()
96 case MSP430::fixup_10_pcrel: { in adjustFixupValue()
H A DMSP430MCTargetDesc.cpp43 InitMSP430MCRegisterInfo(X, MSP430::PC); in createMSP430MCRegisterInfo()
57 nullptr, MRI.getDwarfRegNum(MSP430::SP, true), -stackGrowth); in createMSP430MCAsmInfo()
62 nullptr, MRI.getDwarfRegNum(MSP430::PC, true), stackGrowth); in createMSP430MCAsmInfo()
H A DMSP430FixupKinds.h14 #undef MSP430
17 namespace MSP430 {
H A DMSP430InstPrinter.cpp85 if (Base.getReg() == MSP430::SR) in printSrcMemOperand()
96 if ((Base.getReg() != MSP430::SR) && in printSrcMemOperand()
97 (Base.getReg() != MSP430::PC)) in printSrcMemOperand()
H A DMSP430ELFStreamer.cpp58 Streamer.emitInt8(STI.hasFeature(MSP430::FeatureX) ? ISAMSP430X : ISAMSP430); in MSP430TargetELFStreamer()
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp310 if (Reg == MSP430::NoRegister) { in tryParseRegister()
312 if (Reg == MSP430::NoRegister) in tryParseRegister()
466 MCRegister RegNo = MSP430::PC; in ParseOperand()
490 Operands.push_back(MSP430Operand::CreateMem(MSP430::SR, Val, StartLoc, in ParseOperand()
552 case MSP430::PC: return MSP430::PCB; in convertGR16ToGR8()
553 case MSP430::SP: return MSP430::SPB; in convertGR16ToGR8()
554 case MSP430::SR: return MSP430::SRB; in convertGR16ToGR8()
555 case MSP430::CG: return MSP430::CGB; in convertGR16ToGR8()
556 case MSP430::R4: return MSP430::R4B; in convertGR16ToGR8()
557 case MSP430::R5: return MSP430::R5B; in convertGR16ToGR8()
[all …]
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DMSP430.cpp32 class MSP430 final : public TargetInfo { class
34 MSP430();
42 MSP430::MSP430() { in MSP430() function in MSP430
47 RelExpr MSP430::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
62 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
92 static MSP430 target; in getMSP430TargetInfo()
/freebsd/usr.bin/clang/lld/
H A DMakefile45 SRCS+= ELF/Arch/MSP430.cpp
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DMSP430Target.def1 //===--- MSP430Target.def - MSP430 Feature/Processor Database----*- C++ -*-===//
9 // This file defines the MSP430 devices and their features.
12 // Target/MSP430/gen-msp430-def.py - use this tool rather than adding
/freebsd/contrib/llvm-project/
H A DFREEBSD-Xlist352 lldb/source/Plugins/ABI/MSP430/CMakeLists.txt
690 llvm/lib/Target/MSP430/AsmParser/CMakeLists.txt
691 llvm/lib/Target/MSP430/CMakeLists.txt
692 llvm/lib/Target/MSP430/Disassembler/CMakeLists.txt
693 llvm/lib/Target/MSP430/MCTargetDesc/CMakeLists.txt
694 llvm/lib/Target/MSP430/README.txt
695 llvm/lib/Target/MSP430/TargetInfo/CMakeLists.txt

12