• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/

Lines Matching refs:AVR

1 //===-- AVRISelDAGToDAG.cpp - A dag to dag inst selector for AVR ----------===//
9 // This file defines an instruction selector for the AVR target.
13 #include "AVR.h"
26 /// Lowers LLVM IR (in DAG form) to AVR MC instructions (in DAG form).
33 return "AVR DAG->DAG Instruction Selection";
144 Opcode = (isPre) ? AVR::LDRdPtrPd : AVR::LDRdPtrPi;
152 Opcode = (isPre) ? AVR::LDWRdPtrPd : AVR::LDWRdPtrPi;
185 Opcode = AVR::LPMRdZPi;
192 Opcode = AVR::LPMWRdZPi;
219 RI.getRegClass(RegNode->getReg()) == &AVR::PTRDISPREGSRegClass) {
255 AVR::PTRDISPREGSRegClass.contains(Reg));
265 if (RI.getRegClass(Reg) != &AVR::PTRDISPREGSRegClass) {
268 Register VReg = RI.createVirtualRegister(&AVR::PTRDISPREGSRegClass);
297 Register VReg = RI.createVirtualRegister(&AVR::PTRDISPREGSRegClass);
317 CurDAG->SelectNodeTo(N, AVR::FRMIDX,
337 if (!RN || (RN->getReg() != AVR::SP)) {
347 unsigned Opc = (VT == MVT::i16) ? AVR::STDWSPQRr : AVR::STDSPQRr;
362 if (!AVR::isProgramMemoryAccess(LD)) {
377 Chain = CurDAG->getCopyToReg(Chain, DL, AVR::R31R30, Ptr, SDValue());
378 Ptr = CurDAG->getCopyFromReg(Chain, DL, AVR::R31R30, MVT::i16,
381 SDValue RegZ = CurDAG->getRegister(AVR::R31R30, MVT::i16);
393 ResNode = CurDAG->getMachineNode(AVR::LPMRdZ, DL, MVT::i8, MVT::Other,
397 ResNode = CurDAG->getMachineNode(AVR::LPMWRdZ, DL, MVT::i16,
434 Chain = CurDAG->getCopyToReg(Chain, DL, AVR::R31R30, Callee, InFlag);
436 Ops.push_back(CurDAG->getRegister(AVR::R31R30, MVT::i16));
447 CurDAG->getMachineNode(AVR::ICALL, DL, MVT::Other, MVT::Glue, Ops);
462 Chain = CurDAG->getCopyToReg(Chain, DL, AVR::R31R30, JmpAddr);
463 SDNode *ResNode = CurDAG->getMachineNode(AVR::IJMP, DL, MVT::Other, Chain);
478 unsigned MachineOp = isSigned ? AVR::MULSRdRr : AVR::MULRdRr;
489 CurDAG->getCopyFromReg(InChain, DL, AVR::R0, Type, InGlue);
500 CurDAG->getCopyFromReg(InChain, DL, AVR::R1, Type, InGlue);